stdopen: Fix compilation error with IRIX cc.
[gnulib.git] / ChangeLog
blobdb51bd8cdcefcb4c46f393c0006cc94afba7bc53
1 2019-01-06  Bruno Haible  <bruno@clisp.org>
3         stdopen: Fix compilation error with IRIX cc.
4         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
6 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8         xfreopen need not include stdio--.h
9         * lib/xfreopen.c: Do not include stdio--.h.
11         xfreopen need not depend on freopen-safer
12         * modules/xfreopen (Depends-on):
13         Depend on freopen, not freopen-safer.
15         stdopen: modernize and simplify
16         * lib/stdopen.c: Update copyright date
17         Do not include sys/types.h; no longer needed these days.
18         (stdopen): Use C99-style decl in loop.  Return int errno
19         value, rather than just a bool.  Do not worry about fd mismatches,
20         since the caller cares only if 0, 1, 2 are occupied.
21         * lib/stdopen.h: No need to include <stdbool.h>.
22         * m4/stdopen.m4: Remove.
23         * modules/stdopen: New file.
25         stdopen: copy from last use in coreutils
26         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
27         New files, taken from their last commit in coreutils
28         2007-07-23T12:35:58Z!jim@meyering.net
29         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
31 2019-01-05  Bruno Haible  <bruno@clisp.org>
33         argp: Don't pass an invalid argument to dgettext().
34         Reported by He X <xw897002528@gmail.com>.
35         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
36         dgettext().
38 2019-01-05  Bruno Haible  <bruno@clisp.org>
40         argp: Don't pass an invalid argument to dgettext().
41         Reported by He X <xw897002528@gmail.com>.
42         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
43         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
44         dgettext().
46 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
48         stdioext: port to newer 32-bit Android
49         Problem reported by Tom Yan in:
50         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
51         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
52         (fp_) [__ANDROID__]: Use it.
54 2019-01-04  Bruno Haible  <bruno@clisp.org>
56         lock: Fix link error with --enable-threads=pth.
57         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
58         Mark as weak.
60 2019-01-04  Bruno Haible  <bruno@clisp.org>
62         Fix link errors in unit tests.
63         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
65         * modules/array-map-tests (Makefile.am): Link test-array_map against
66         libintl.
67         * modules/array-set-tests (Makefile.am): Link test-array_set against
68         libintl.
69         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
70         libintl.
71         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
72         libintl.
73         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
74         against libintl.
75         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
76         against libintl.
78 2019-01-04  Bruno Haible  <bruno@clisp.org>
80         Fix incorrect 'Link' sections.
81         * modules/regex (Link): Mention the link requirement of module 'lock'.
82         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
84 2019-01-04  Bruno Haible  <bruno@clisp.org>
86         Fix some 'Link' sections.
87         * modules/c-stack (Link): Add link directive from the 'gettext-h'
88         dependency.
89         * modules/getaddrinfo (Link): Likewise.
91 2019-01-04  Bruno Haible  <bruno@clisp.org>
93         Remove redundant 'Link' sections.
94         * modules/canon-host (Link): Remove section.
95         * modules/timevar (Link): Likewise.
97 2019-01-04  Bruno Haible  <bruno@clisp.org>
99         Remove incorrect 'Link' sections.
100         * modules/acl (Link): Remove section. Use combined 'Link' sections from
101         the dependencies instead.
102         * modules/crypto/md5 (Link): Likewise.
103         * modules/crypto/sha1 (Link): Likewise.
104         * modules/crypto/sha256 (Link): Likewise.
105         * modules/crypto/sha512 (Link): Likewise.
106         * modules/faccessat (Link): Likewise.
107         * modules/fdutimensat (Link): Likewise.
108         * modules/iconv_open-utf (Link): Likewise.
109         * modules/propername (Link): Likewise.
110         * modules/qacl (Link): Likewise.
111         * modules/unicodeio (Link): Likewise.
112         * modules/utimecmp (Link): Likewise.
113         * modules/utimensat (Link): Likewise.
114         * modules/xstriconv (Link): Likewise.
115         * modules/xstriconveh (Link): Likewise.
117 2019-01-04  Bruno Haible  <bruno@clisp.org>
119         gnulib-tool: New option --extract-recursive-link-directive.
120         * gnulib-tool (func_usage): Document the new options
121         --extract-recursive-dependencies, --extract-recursive-link-directive.
122         (func_verify_module): Document output variables.
123         (func_get_dependencies_recursively): New function.
124         (func_get_link_directive_recursively): New function.
125         Use them to implement the new options
126         --extract-recursive-dependencies, --extract-recursive-link-directive.
127         * doc/gnulib-tool.texi (Link-time requirements): New section.
129 2019-01-04  Bruno Haible  <bruno@clisp.org>
131         Clarify meaning of 'Link' section in module description.
132         * doc/gnulib.texi (Module description): Clarify the meaning of the
133         'Link' section versus the one of the dependencies.
134         * NEWS: Mention the change.
136 2019-01-04  Bruno Haible  <bruno@clisp.org>
138         pselect: Fix module description.
139         * modules/pselect (Link): Put one link option per line.
141 2019-01-04  Bruno Haible  <bruno@clisp.org>
143         cosl: Fix module description.
144         * modules/cosl (Link): Fix typo.
145         * modules/mathl (configure.ac): Likewise.
147 2019-01-04  Bruno Haible  <bruno@clisp.org>
149         c-xvasprintf: Fix module dependencies.
150         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
152 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
154         bootstrap: die when some submodules are not initialized
155         * build-aux/bootstrap: Make sure all submodules are initialized.
157 2019-01-04  Bruno Haible  <bruno@clisp.org>
159         bitsetv: Fix module dependencies.
160         * lib/bitsetv.c: Include xalloc.h.
161         * modules/bitsetv (Depends-on): Add 'xalloc'.
163 2019-01-04  Bruno Haible  <bruno@clisp.org>
165         xmemdup0: Remove redundant code.
166         * lib/xmemdup0.h (xalloc_die): Remove declaration.
168 2019-01-04  Bruno Haible  <bruno@clisp.org>
170         backupfile: Fix module dependencies.
171         * modules/backupfile (Depends-on): Add 'xalloc'.
173 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
175         bitset, crypto/gc: fix conflicts with Solaris 11
176         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
177         avoid clash with Solaris 11 <sys/bitset.h>.
178         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
179         with Solaris 11 <xorg/gc.h>.
181 2019-01-04  Bruno Haible  <bruno@clisp.org>
183         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
184         Reported by Andy Fiddaman <andy@omniosce.org>.
185         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
187 2019-01-03  Eric Blake  <eblake@redhat.com>
189         maintainer-makefile: fix typo in previous patch
190         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
191         of Roman's work.
193 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
195         maintainer-makefile: prefer $(GREP) over grep
196         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
197         defined.
198         * top/maint.mk: Use it everywhere.
200         maintainer-makefile: split long argument lines
201         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
202         it would be too long for exec limits on BSD.
204 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
206         mkfifo: bring back HAVE_MKFIFO macro
207         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
208         Problem reported by Andrew Janke in:
209         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
211 2018-12-21  Bruno Haible  <bruno@clisp.org>
213         Assume Autoconf >= 2.63.
214         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
215         versions < 2.60.
217 2018-12-21  Bruno Haible  <bruno@clisp.org>
219         memcmp: Mention the clang bug.
220         * tests/test-memcmp.c: Add comment about a known test failure.
221         * doc/posix-functions/memcmp.texi: Mention the clang bug.
223 2018-12-20  Jim Meyering  <meyering@fb.com>
225         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
226         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
227           echo '123-x'|LC_ALL=C grep -E '.\bx'
228         The goal is to revert the first, but reverting it requires to restore
229         the function deleted in the second. I ran this to restore the deleted
230         function:
231           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
232             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
233             | patch -R -p1
234         * lib/dfa.c (charclass_context): Restore deleted function.
235         Reverting the primary commit removes this change:
236         dfa: Simplify a building state
237         * lib/dfa.c (build_state): Simplify a building state.
239 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
241         version-etc: allow zero authors
242         * lib/version-etc.c (version_etc_arn): If no authors are given,
243         omit authorship info instead of dumping core.
245 2018-12-19  Bruno Haible  <bruno@clisp.org>
247         lchown tests: Be more permissive regarding errno values.
248         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
249         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
250         alternative to ENOSYS.
251         * modules/lchown-tests (Depends-on): Add 'errno'.
252         * modules/fchownat-tests (Depends-on): Likewise.
254 2018-12-18  Bruno Haible  <bruno@clisp.org>
256         duplocale: Avoid test failure on AIX 7.
257         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
258         (configure.ac): Invoke gt_FUNC_USELOCALE.
259         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
260         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
261         works.
263 2018-12-18  Bruno Haible  <bruno@clisp.org>
265         localename: Fix test failure on AIX 7.
266         Reported by Assaf Gordon in
267         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
268         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
269         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
270         instead of ac_cv_func_uselocale.
271         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
272         HAVE_USELOCALE.
273         * lib/localename-table.h: Likewise.
274         * lib/localename-table.c: Likewise.
275         * tests/test-localename.c: Likewise.
276         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
278 2018-12-18  Bruno Haible  <bruno@clisp.org>
280         localename: Update comments regarding Cygwin.
281         * lib/localename.c: Update comment.
282         * doc/posix-functions/uselocale.texi: Update platforms list.
283         * doc/posix-functions/newlocale.texi: Likewise.
284         * doc/posix-functions/duplocale.texi: Likewise.
285         * doc/posix-functions/freelocale.texi: Likewise.
287 2018-12-16  Bruno Haible  <bruno@clisp.org>
289         c-stack: Fix for Linux/sparc.
290         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
291         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
293 2018-12-16  Bruno Haible  <bruno@clisp.org>
295         localename: Avoid test failure on some glibc systems.
296         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
297         Unset environment variables that might disturb the first setlocale call,
298         and verify that this setlocale call succeeds.
300 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
302         random: Fix build error on native Windows (regression from 2018-06-21).
303         * lib/random.c (__srandom, __initstate, __setstate, __random,
304         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
305         to the symbols without '__' prefix.
307 2018-12-16  Bruno Haible  <bruno@clisp.org>
309         obstack, libc-config: Support HP-UX cc in C99 mode.
310         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
311         compiler, even when in C99 mode.
312         * lib/cdefs.h (__flexarr): Likewise.
313         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
315 2018-12-16  Bruno Haible  <bruno@clisp.org>
317         localename: Fix test failure on OpenBSD >= 6.2.
318         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
319         locale system. Define HAVE_FAKE_LOCALES in this case.
320         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
321         HAVE_USELOCALE.
322         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
323         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
324         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
325         platforms list.
326         * doc/posix-functions/newlocale.texi: Likewise.
327         * doc/posix-functions/duplocale.texi: Update platforms list.
328         * doc/posix-functions/freelocale.texi: Likewise.
330 2018-12-16  Bruno Haible  <bruno@clisp.org>
332         duplocale tests: Re-enable the test on platforms without <monetary.h>.
333         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
334         of the test, on platforms without <monetary.h>.
336 2018-12-16  Bruno Haible  <bruno@clisp.org>
338         localename: Update comments.
339         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
341 2018-12-15  Jim Meyering  <meyering@fb.com>
343         regex: fix indentation
344         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
346 2018-12-15  Bruno Haible  <bruno@clisp.org>
348         openat-safer tests: Avoid test failure on NetBSD 8.
349         * tests/test-openat-safer.c (main): Execute a Linux specific test only
350         on Linux.
352 2018-12-15  Jim Meyering  <meyering@fb.com>
354         regex: work around a bug in glibc-2.27 and prior
355         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
356         assertion for /0|()0|\1|0/.
357         * tests/test-regex.c (main): Add the same test here.
359 2018-12-15  Bruno Haible  <bruno@clisp.org>
361         localename: Fix use of uninitialized shell variable.
362         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
363         gt_cv_locale_solaris114 always before use. Remove assignment without
364         effect.
366 2018-12-15  Bruno Haible  <bruno@clisp.org>
368         dfa tests: Avoid test failure on Alpine Linux.
369         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
370         command found on Alpine Linux.
372 2018-12-15  Jim Meyering  <meyering@fb.com>
374         dfa: avoid new warnings from gcc
375         These would prevent building with -Werror and a Dec snapshot of gcc.
376         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
377         Rename each inner instance to "p".
378         (charclass_context): Remove unused static function.
380 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
382         mkdir-p: improve diagnostic for FUSE mounts
383         Problem reported by Niklas Hambüchen in:
384         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
385         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
386         errno to mkdir errno if the stat errno is likely more interesting.
388 2018-12-14  Bruno Haible  <bruno@clisp.org>
390         hash-map: Add tests.
391         * tests/test-hash_map.c: New file.
392         * modules/hash-map-tests: New file.
394         linkedhash-map: Add tests.
395         * tests/test-linkedhash_map.c: New file.
396         * modules/linkedhash-map-tests: New file.
398         array-map: Add tests.
399         * tests/test-array_map.c: New file.
400         * modules/array-map-tests: New file.
402         xmap: New module.
403         * lib/gl_xmap.h: New file.
404         * lib/gl_xmap.c: New file.
405         * modules/xmap: New file.
407         hash-map: New module.
408         * lib/gl_hash_map.h: New file.
409         * lib/gl_hash_map.c: New file.
410         * modules/hash-map: New file.
412         linkedhash-map: New module.
413         * lib/gl_linkedhash_map.h: New file.
414         * lib/gl_linkedhash_map.c: New file.
415         * lib/gl_anyhash1.h: Update comments.
416         * lib/gl_anyhash2.h: Likewise.
417         * modules/linkedhash-map: New file.
419         array-map: New module.
420         * lib/gl_array_map.h: New file.
421         * lib/gl_array_map.c: New file.
422         * modules/array-map: New file.
424         map: New module.
425         * lib/gl_map.h: New file.
426         * lib/gl_map.c: New file.
427         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
428         conflict with gl_map.h.
429         * modules/map: New file.
431 2018-12-13  Bruno Haible  <bruno@clisp.org>
433         select tests: Avoid test failure on Cygwin.
434         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
436 2018-12-13  Bruno Haible  <bruno@clisp.org>
438         localtime-buffer: Avoid endless recursion in localtime and gmtime.
439         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
441 2018-12-13  Bruno Haible  <bruno@clisp.org>
443         localeconv tests: Avoid test failure on Cygwin.
444         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
445         'mon_grouping' tests.
447 2018-12-11  Bruno Haible  <bruno@clisp.org>
449         omap: Don't dispose the old value when the function returns it.
450         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
451         here.
452         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
453         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
454         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
455         here.
457         array-omap, avltree-omap, rbtree-omap: Tweak style.
458         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
459         false.
460         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
462         rbtree-omap: Add tests.
463         * tests/test-rbtree_omap.c: New file.
464         * modules/rbtree-omap-tests: New file.
466         avltree-omap: Add tests.
467         * tests/test-avltree_omap.c: New file.
468         * modules/avltree-omap-tests: New file.
470         array-omap: Add tests.
471         * tests/test-array_omap.c: New file.
472         * modules/array-omap-tests: New file.
474         xomap: New module.
475         * lib/gl_xomap.h: New file.
476         * lib/gl_xomap.c: New file.
477         * modules/xomap: New file.
479         rbtree-omap: New module.
480         * lib/gl_rbtree_omap.h: New file.
481         * lib/gl_rbtree_omap.c: New file.
482         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
483         Parameterize.
484         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
485         * modules/rbtree-omap: New file.
486         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
487         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
489         avltree-omap: New module.
490         * lib/gl_avltree_omap.h: New file.
491         * lib/gl_avltree_omap.c: New file.
492         * lib/gl_avltree_ordered.h: Code moved to here from
493         lib/gl_avltree_oset.c. Parameterize.
494         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
495         * lib/gl_anytree_omap.h: New file.
496         * modules/avltree-omap: New file.
497         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
498         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
500         array-omap: New module.
501         * lib/gl_array_omap.h: New file.
502         * lib/gl_array_omap.c: New file.
503         * modules/array-omap: New file.
505         omap: New module.
506         * lib/gl_omap.h: New file.
507         * lib/gl_omap.c: New file.
508         * modules/omap: New file.
510 2018-12-11  Bruno Haible  <bruno@clisp.org>
512         hash-set, linkedhash-set: Reduce code duplication.
513         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
514         lib/gl_anyhash_set1.h.
515         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
516         lib/gl_anyhash_set2.h. Parameterize.
517         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
518         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
519         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
520         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
521         * lib/gl_rbtreehash_list.c: Likewise.
522         * lib/gl_linkedhash_list.c: Likewise.
523         (hash_resize_after_add): Remove function.
524         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
525         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
526         * gl_hash_set.c: Likewise.
527         * modules/avltreehash-list (Files, Makefile.am): Update file list.
528         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
529         * modules/linkedhash-list (Files, Makefile.am): Likewise.
530         * modules/linkedhash-set (Files, Makefile.am): Likewise.
531         * modules/hash-set (Files, Makefile.am): Likewise.
533 2018-12-11  Bruno Haible  <bruno@clisp.org>
535         array-set: Optimize.
536         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
537         outside the loop, not inside the loop.
539 2018-12-11  Bruno Haible  <bruno@clisp.org>
541         times: Fix tests.
542         * tests/test-times.c (doublecmp): Implement a total order.
544 2018-12-11  Bruno Haible  <bruno@clisp.org>
546         array-set, linkedhash-set, hash-set: Fix tests.
547         * tests/test-array_set.c (cmp_objects_in_array): New function.
548         (check_equals): Use it.
549         * tests/test-hash_set.c: Likewise.
550         * tests/test-linkedhash_set.c: Likewise.
552 2018-12-08  Bruno Haible  <bruno@clisp.org>
554         Fix comments.
555         * lib/gl_list.h (gl_list_free): Clarify what it does.
556         * lib/gl_oset.h (gl_oset_free): Likewise.
557         * lib/gl_set.h (gl_set_free): Likewise.
558         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
559         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
560         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
561         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
563 2018-12-03  Bruno Haible  <bruno@clisp.org>
565         hash-set: Add tests.
566         * tests/test-hash_set.c: New file.
567         * modules/hash-set-tests: New file.
569         linkedhash-set: Add tests.
570         * tests/test-linkedhash_set.c: New file.
571         * modules/linkedhash-set-tests: New file.
573         array-set: Add tests.
574         * tests/test-array_set.c: New file.
575         * modules/array-set-tests: New file.
577         xset: New module.
578         * lib/gl_xset.h: New file.
579         * lib/gl_xset.c: New file.
580         * modules/xset: New file.
582         hash-set: New module.
583         * lib/gl_hash_set.h: New file.
584         * lib/gl_hash_set.c: New file.
585         * modules/hash-set: New file.
587         linkedhash-set: New module.
588         * lib/gl_linkedhash_set.h: New file.
589         * lib/gl_linkedhash_set.c: New file.
590         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
591         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
592         * lib/gl_anyhash_primes.h: New file, extracted from
593         lib/gl_anyhash_list2.h.
594         * lib/gl_anyhash_list2.h: Include it.
595         (primes, next_prime): Remove definitions.
596         * modules/linkedhash-set: New file.
597         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
598         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
599         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
600         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
601         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
602         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
604         array-set: New module.
605         * lib/gl_array_set.h: New file.
606         * lib/gl_array_set.c: New file.
607         * modules/array-set: New file.
609         set: New module.
610         * lib/gl_set.h: New file.
611         * lib/gl_set.c: New file.
612         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
613         gl_set.h.
614         * modules/set: New file.
616 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
618         bison: don't force the Yacc mode
619         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
620         errors when Bison features are used in the grammar file.  Some of
621         these features (such as %expect) were flagged non-yacc recently.  Most
622         of the time, -y is actually used to please Automake's ylwrap which
623         expects the output to be y.tab.c.
624         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
626 2018-12-01  Bruno Haible  <bruno@clisp.org>
628         gnupload: Document short options.
629         * build-aux/gnupload (usage): Document the short options.
631 2018-11-28  Ben Elliston  <bje@gnu.org>
633         gnupload: Support option -h as alias of --help.
634         * build-aux/gnupload: Support -h.
636 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
638         memrchr: port better to clang
639         * lib/memrchr.c (__memrchr): Cast to void * instead of to
640         longword *, to pacify clang -Wcast-align (Bug#33544).
642 2018-11-29  Eric Blake  <eblake@redhat.com>
644         docs: mention printf %m considerations
645         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
646         is not portable, and is easy enough to work around.
647         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
648         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
649         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
650         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
651         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
652         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
653         * doc/posix-functions/printf.texi (printf): Likewise.
654         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
655         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
656         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
657         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
658         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
659         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
660         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
661         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
662         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
663         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
664         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
665         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
667 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
669         bitset: rename ebitset/expandable.* as tbitset/table.*
670         See
671         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
672         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
673         * lib/bitset/table.h, lib/bitset/table.c: these.
674         Rename all the ebitset* symbols as tbitset*.
675         Adjust dependencies.
677 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
679         bitset: check the operations
680         * tests/test-bitset.c (bitset_random): New.
681         Use it.
682         * lib/bitset/expandable.c (ebitset_not): Fix typo.
684 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
686         bitset: properly use false/true instead of 0/1 for Booleans
687         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
688         0/1, as Booleans.
690 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
692         bitset: rename BITSET_VARRAY as BITSET_VECTOR
693         For consistency with the name of the file.
694         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
695         * lib/bitset/stats.c, lib/bitset/vector.c
696         (BITSET_VARRAY): Rename as...
697         (BITSET_VECTOR): this.
699 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
701         strerror_r-posix: memmove, not memcpy
702         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
703         since the source and destination might overlap in the call
704         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
705         Simplify.
707 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
709         bitsetv: new module
710         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
712 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
714         bitset: add tests and doc
715         First stabs at providing a documentation and test for the bitset
716         module.
717         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
719 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
721         bitset: new module
722         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
723         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
724         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
725         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
726         * lib/bitset/vector.h, modules/bitset:
727         New.
729 2018-11-23  Bruno Haible  <bruno@clisp.org>
731         localename: Fix gettext test failures on mingw.
732         * lib/localename.c (gl_locale_name_posix): Convert the result of
733         gl_locale_name_environ to XPG syntax.
735 2018-11-23  Karl Berry  <karl@freefriends.org>
737         * config/srclistvars.txt,
738         * config/srclist.txt: remove all gettext references;
739         the gettext maintainers will sync as needed.
741 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
743         mktime: add libc-config dependency
744         I missed this when we synced from glibc.
745         * modules/mktime (Depends-on): Add libc-config.
747 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
749         longlong: fix comment typo
750         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
752 2018-11-11  Bruno Haible  <bruno@clisp.org>
754         havelib: Remove the need to include asm-underscore.m4.
755         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
756         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
757         gl_HOST_CPU_C_ABI.
758         * modules/havelib (Files): Add host-cpu-c-abi.m4.
759         (Depends-on): Remove host-cpu-c-abi.
761 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
763         parse-datetime: simplify test for mktime failure
764         * lib/parse-datetime.y (mktime_ok): Simplify.
765         Remove args TZ and T; no longer needed.  Callers changed.
767         posixtm: simplify test for mktime failure
768         * lib/posixtm.c (posixtime): Simplify.
770         nstrftime: simplify test for mktime failure
771         * lib/nstrftime.c (__strftime_internal): Simplify.
773 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
775         gnulib-common.m4: port _Noreturn to C++
776         Problem reported by Akim Demaille in:
777         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
778         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
779         Merge adjustments from _Noreturn.h and from glibc into the non-C++
780         version.
781         * lib/_Noreturn.h: Match gnulib-common.
783 2018-10-30  Bruno Haible  <bruno@clisp.org>
785         gnu-make: Fix for NetBSD 8 'make'.
786         Reported by Reuben Thomas in
787         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
788         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
789         output, ignoring exit codes.
791 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
793         maintainer-makefile: fix syntax-check rule for "same.h"
794         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
795         for 'same_nameat', too.
797 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
799         havelib: fix nested ‘configure’ chatter
800         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
801         AC_CACHE_CHECK calls, which resulted in confusing output like
802         “checking for the common suffixes of directories in the library
803         search path... checking for 64-bit host... no lib,lib”.
805         backupfile: tweak for better code
806         * lib/backupfile.c: Sort include directives, and remove
807         unnecessary <limits.h> include.
808         (FALLTHROUGH): New macro, copied from other modules.
809         (backupfile_internal): Use it to avoid code duplication.
810         This lets GCC 8.2.1 generate better code by inlining the
811         call to check_extension.
813 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
815         backupfile: new dir_fd args
816         New module opendirat with code taken from fts.
817         Use this module to let backupfile use a directory file descriptor.
818         * NEWS: Document the incompatible change.
819         * lib/backup-find.c (find_backup_file_name):
820         * lib/backup-rename.c (backup_file_rename):
821         New arg DIR_FD.
822         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
823         (SIZE_MAX): Remove.
824         Include opendirat.h rather than dirent--.h.
825         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
826         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
827         (backupfile_internal): New arg DIR_FD.  All callers changed.
828         * lib/fts.c: Include opendirat.h.
829         (opendirat): Move to opendirat.c.
830         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
831         * modules/backupfile (Depends-on): Remove dirfd, opendir.
832         Add opendirat.
833         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
834         Add opendirat.
836 2018-10-23  Bruno Haible  <bruno@clisp.org>
838         localename: Simplify support for per-thread locales on Solaris 11.4.
839         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
840         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
841         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
842         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
843         specific code.
844         * lib/localename-table.h: Update comments.
845         * lib/localename-table.c: Update comments.
846         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
847         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
848         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
849         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
850         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
851         HAVE_NAMELESS_LOCALES here.
852         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
853         m4/intlsolaris.m4.
854         * modules/gettext (Files): Likewise.
856 2018-10-22  Bruno Haible  <bruno@clisp.org>
858         std-gnu11: Support Autoconf versions < 2.64.
859         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
860         when _AC_DO_LIMIT does not exist.
862 2018-10-22  Bruno Haible  <bruno@clisp.org>
864         Assume Autoconf >= 2.63.
865         * DEPENDENCIES: Mention the requirement.
867         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
868         (func_get_filelist): Don't list m4/onceonly.m4 any more.
869         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
870         * m4/onceonly.m4: Remove file.
872         * m4/openmp.m4: Remove file.
873         * modules/openmp (Files): Remove m4/openmp.m4.
875         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
876         htmldir, dvidir, pdfdir, psdir, localedir.
877         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
879         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
880         Autoconf < 2.60.
881         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
882         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
884         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
885         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
886         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
888         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
889         exists.
890         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
892         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
893         Autoconf < 2.61.
895         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
896         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
897         Autoconf >= 2.52.
899         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
900         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
901         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
903 2018-10-22  Bruno Haible  <bruno@clisp.org>
905         Assume Automake >= 1.11.
906         * m4/configmake.m4: Update comments.
907         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
908         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
909         of 'eval'.
910         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
911         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
912         requires Automake >= 1.11.
914 2018-10-22  Bruno Haible  <bruno@clisp.org>
916         localename: Fix typo in comment.
917         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
919 2018-10-22  Bruno Haible  <bruno@clisp.org>
921         Fix failure of 'gnulib-tool --create-testdir' with all modules.
922         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
924 2018-10-21  Bruno Haible  <bruno@clisp.org>
926         locale: Ease integration with GNU libintl.
927         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
928         GNULIB_defined_freelocale): New macros.
930 2018-10-21  Bruno Haible  <bruno@clisp.org>
932         localename: Fine-tune support for per-thread locales on Solaris 11.4.
933         * lib/localename-table.h: New file, extracted from lib/localename.c.
934         * lib/localename-table.c: Likewise.
935         * lib/localename.c: Include localename-table.h.
936         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
937         locale_hash_function instead of pointer_hash.
938         * modules/localename (Files): Add lib/localename-table.h,
939         lib/localename-table.c.
940         (lib_SOURCES): Add localename-table.c.
941         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
942         for Solaris 11.4 locale system only on Solaris. Test for it
943         independently whether getlocalename_l exists.
944         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
945         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
946         HAVE_NAMELESS_LOCALES.
947         * modules/gettext (Files): Add m4/intlsolaris.m4.
949 2018-10-21  Bruno Haible  <bruno@clisp.org>
951         Small update from gettext.
952         * m4/intl.m4: Update from gettext:
953         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
954         mode on AIX.
955         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
956         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
958 2018-10-16  Bruno Haible  <bruno@clisp.org>
960         mountlist: Remove support for Cray with UNICOS 9.
961         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
962         MOUNTED_LISTMNTENT.
963         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
965 2018-10-16  Bruno Haible  <bruno@clisp.org>
967         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
968         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
969         STAT_STATFS2_FS_DATA.
970         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
971         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
972         MOUNTED_GETMNT.
973         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
974         * lib/getloadavg.c (decstation): Remove definition and case.
975         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
976         * lib/getgroups.c: Likewise.
977         * doc/posix-functions/getgroups.texi: Likewise.
978         * lib/time.in.h: Update comments.
980 2018-10-16  Bruno Haible  <bruno@clisp.org>
982         getloadavg: Remove support for ConvexOS.
983         * lib/getloadavg.c: Remove convex case.
985 2018-10-16  Bruno Haible  <bruno@clisp.org>
987         getloadavg: Remove support for Sony NEWS.
988         * lib/getloadavg.c: Remove sony_news case.
990 2018-10-16  Bruno Haible  <bruno@clisp.org>
992         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
993         * lib/fsusage.c: Remove _SEQUENT_ case.
994         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
995         * lib/mountlist.c: Don't test for MNTTABNAME.
996         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
997         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
998         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
999         * lib/stat-size.h: Don't mention the Sequent bug.
1000         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
1002 2018-10-16  Bruno Haible  <bruno@clisp.org>
1004         fsusage: Remove support for AIX 3.
1005         * lib/fsusage.c: Remove code for AIX 3.
1006         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
1008 2018-10-16  Bruno Haible  <bruno@clisp.org>
1010         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
1011         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
1012         * lib/fsusage.c: Remove code for AIX PS/2.
1013         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
1014         * lib/getloadavg.c: Likewise.
1016 2018-10-16  Bruno Haible  <bruno@clisp.org>
1018         getloadavg: Remove support for HP-UX on m68k.
1019         * lib/getloadavg.c: Remove hp9000s300 case.
1021 2018-10-16  Bruno Haible  <bruno@clisp.org>
1023         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
1024         * lib/fsusage.c: Remove DOLPHIN case.
1025         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
1026         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
1028 2018-10-16  Bruno Haible  <bruno@clisp.org>
1030         getloadavg: Remove support for Alliant FX/2800.
1031         * lib/getloadavg.c: Remove alliant case.
1033 2018-10-16  Bruno Haible  <bruno@clisp.org>
1035         getloadavg: Remove support for tek4300.
1036         * lib/getloadavg.c: Remove tek4300 case.
1038 2018-10-16  Bruno Haible  <bruno@clisp.org>
1040         getloadavg: Remove support for Ardent.
1041         * lib/getloadavg.c: Remove ardent case.
1043 2018-10-16  Bruno Haible  <bruno@clisp.org>
1045         mountlist: Remove support for SVR2.
1046         Reported by Andrew Borodin <aborodin@vmail.ru> in
1047         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
1048         * lib/mountlist.c: Remove MOUNTED_FREAD case.
1049         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1050         MOUNTED_FREAD.
1052 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1054         libc-config: merge from glibc
1055         * lib/cdefs.h (__glibc_has_attribute): New macro.
1057         regex: depend on libc-config
1058         * modules/regex (Depends-on): Add libc-config.
1059         This is needed after the recent autoupdate from glibc.
1061 2018-10-14  Bruno Haible  <bruno@clisp.org>
1063         localename: Add support for per-thread locales on Solaris 11.4.
1064         * lib/locale.in.h (newlocale, freelocale): New declarations.
1065         (duplocale): Declare also when the 'localename' module requests it.
1066         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
1067         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
1068         (struniq): Update.
1069         (struct locale_categories_names, struct locale_hash_node): New types.
1070         (LOCALE_HASH_TABLE_SIZE): New constant.
1071         (locale_hash_table, locale_lock): New variables.
1072         (pointer_hash, get_locale_t_name): New functions.
1073         (newlocale, duplocale, freelocale): New overridden functions.
1074         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
1075         * m4/intlsolaris.m4: New file.
1076         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
1077         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
1078         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
1079         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
1080         declared.
1081         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
1082         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
1083         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
1084         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
1085         * modules/localename (Files): Add intlsolaris.m4.
1086         (Depends-on): Add 'locale'.
1087         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
1088         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
1089         the signatures.
1091 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
1093         timevar: use gethrxtime to get wall clock time
1094         clock_gettime is not portable.  gethrxtime takes the best available
1095         option to get the wall clock time, including clock_gettime (monotonic
1096         clock), and gettime (non monotonic).
1097         Also, using xtime_t instead of float preserves the precision.
1098         Suggested by Bruno Haible.
1099         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
1100         * modules/timevar (Depends-on): We need gethrxtime.
1101         We no longer use times().
1102         (Link): Update.
1103         * lib/timevar.h (timevar_time_def): Use xtime_t.
1104         * lib/timevar.c (set_to_current_time): Use gethrxtime.
1105         (timevar_print): Instead of checking whether the timings themselves
1106         are large enough for the timevar to be printed, check the percentages.
1108 2018-10-14  Bruno Haible  <bruno@clisp.org>
1110         wcsnrtombs: Work around Solaris 11.4 bug.
1111         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
1112         macro.
1113         (gl_FUNC_WCSNRTOMBS): Invoke it.
1114         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
1116 2018-10-14  Bruno Haible  <bruno@clisp.org>
1118         mbsnrtowcs: Work around Solaris 11.4 bug.
1119         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
1120         macro.
1121         (gl_FUNC_MBSNRTOWCS): Invoke it.
1122         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
1124 2018-10-14  Bruno Haible  <bruno@clisp.org>
1126         doc: Update for Solaris 11.4.
1127         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
1128         mention Solaris 11.4.
1129         * m4/printf.m4: Update comments about Solaris.
1130         * m4/log.m4: Likewise.
1131         * m4/log10.m4: Likewise.
1132         * m4/logb.m4: Likewise.
1133         * m4/logbf.m4: Likewise.
1134         * m4/logbl.m4: Likewise.
1135         * m4/rename.m4: Likewise.
1136         * m4/wcrtomb.m4: Likewise.
1137         * m4/hostent.m4: Likewise.
1138         * m4/servent.m4: Likewise.
1140 2018-10-14  Bruno Haible  <bruno@clisp.org>
1142         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
1143         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
1144         pointer.
1145         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
1146         pointer.
1147         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
1148         pointer.
1149         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
1150         pointer.
1151         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
1152         pointer.
1154 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1156         bootstrap: fix wget command for po files.
1157         * build-aux/bootstrap (po_download_command_format): Fix comment,
1158         and adjust callers.
1160 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1162         timevar: improve the output format
1163         Suggested by Bruno Haible.
1164         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
1165         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
1166         wall, since its resolution is much higher.
1168 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1170         timevar: expect that getrusage is available.
1171         Don't keep both times and getrusage as backend: both are guaranteed by
1172         gnulib, a single one suffices.  Using getrusage is open to possibly
1173         tracking other types of resources in the future.
1174         * modules/timevar (Depends-on): Add getrusage.
1175         (configure.ac): Remove gl_TIMEVAR.
1176         (Files): Remove m4/timevar.m4.
1177         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
1178         * lib/timevar.h (timevar_enabled): Clarify documentation.
1179         * lib/timevar.c: Remove all the code about times.
1180         Remove all the CPP guards about getrusage: expect it to be present
1181         (courtesy of gnulib).
1183 2018-10-12  Bruno Haible  <bruno@clisp.org>
1185         mountlist: Improve support for Solaris in 64-bit mode.
1186         Reported by David Wood <David.Wood@deshaw.com> in
1187         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
1188         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
1189         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
1190         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
1192 2018-10-12  Bruno Haible  <bruno@clisp.org>
1194         mountlist: Add support for Minix.
1195         Reported by Assaf Gordon in
1196         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
1197         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
1198         AC_CHECK_FUNCS to check for 'getmntinfo'.
1199         * lib/mountlist.c: Update comments.
1201 2018-10-12  Bruno Haible  <bruno@clisp.org>
1203         Make better use of Autoconf.
1204         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
1205         * m4/manywarnings.m4: Likewise.
1206         * m4/manywarnings-c++.m4: Likewise.
1207         * m4/socklen.m4: Likewise.
1208         * m4/sockpfaf.m4: Likewise.
1209         * m4/stdarg.m4: Likewise.
1210         * m4/visibility.m4: Likewise.
1211         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
1212         indentation.
1213         * m4/ls-mntd-fs.m4: Likewise.
1215 2018-10-11  Bruno Haible  <bruno@clisp.org>
1217         mountlist: Modernize platform lists.
1218         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
1219         platforms, deemphasizing the obsolete ones.
1220         * lib/mountlist.c: Likewise.
1222 2018-10-11  Bruno Haible  <bruno@clisp.org>
1224         getprogname: Add support for 32-bit programs on HP-UX.
1225         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
1226         try the similar functions 32-bit programs on 64-bit HP-UX.
1228 2018-10-11  Bruno Haible  <bruno@clisp.org>
1230         getprogname: Work around program name truncation when possible.
1231         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
1232         possibly use pst_cmd instead.
1234 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1236         fts: cleanup after FTS_NOATIME removal
1237         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
1238         (FTS_STOP): Shrink to minimal values.  We don’t need to
1239         worry about binary compatibility in Gnulib, and the old way
1240         of doing things had a hole in the user options that caused
1241         FTS_OPTIONMASK to not work as desired.
1243 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
1245         fts: remove FTS_NOATIME
1246         This reverts commit da4d6974013c822af1498941e32db774b2031765.
1247         We cannot guarantee that O_NOATIME works: e.g. openat fails
1248         with EPERM if the effective user ID of the caller does not match
1249         the owner of the file and the caller is not privileged.
1250         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
1251         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
1252         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
1253         (FTS_OPTIONMASK): Adjust.
1254         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
1255         (fd_ring_check): Likewise.
1257 2018-10-08  Bruno Haible  <bruno@clisp.org>
1259         csharpcomp*, csharpexec*: Remove support for pnet.
1260         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
1261         HAVE_CSCC.
1262         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
1263         Don't test HAVE_CSCC.
1264         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
1265         (compile_csharp_class): Don't invoke it.
1266         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
1267         HAVE_ILRUN.
1268         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
1269         Don't test HAVE_ILRUN.
1270         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
1271         (execute_csharp_program): Don't invoke it.
1272         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
1273         any more.
1275 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
1277         renameatu: prefer renameat2 to syscall
1278         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
1279         Use renameat2 instead of syscall (Bug#32796).
1280         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
1282 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1284         bootstrap, gnulib-tool: use https instead of insecure rsync
1285         * build-aux/bootstrap (download_po_files, po_download_command_format):
1286         Don't try using rsync; always use wget over https to fetch PO files.
1287         * gnulib-tool (func_import): Likewise.
1288         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1290 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1292         bootstrap, gnulib-tool: correct the translations wget command
1293         * build-aux/bootstrap (po_download_command_format2): Restrict
1294         recursion to a single level.
1295         * gnulib-tool (func_import): Likewise.
1296         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1298 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1300         doc: the gnulib snapshots are not maintained
1301         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
1303 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1305         timevar: add to lib_SOURCES
1306         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
1308 2018-10-07  Bruno Haible  <bruno@clisp.org>
1310         dirent: Update documentation.
1311         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
1313 2018-10-05  Bruno Haible  <bruno@clisp.org>
1315         strpbrk: Make it possible to namespace the defined symbol.
1316         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
1318 2018-10-05  Bruno Haible  <bruno@clisp.org>
1320         strcspn: Make it possible to namespace the defined symbol.
1321         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
1323 2018-10-05  Bruno Haible  <bruno@clisp.org>
1325         raise: Make it possible to namespace the defined symbol.
1326         * lib/raise.c (raise): Undefine only after the replacement function has
1327         been defined.
1328         (raise): Renamed from rpl_raise.
1329         (raise_nothrow): Move to the end of the compilation unit.
1331 2018-10-05  Bruno Haible  <bruno@clisp.org>
1333         memcmp: Make it possible to namespace the defined symbol.
1334         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
1336 2018-10-05  Bruno Haible  <bruno@clisp.org>
1338         explicit_bzero: Make it possible to namespace the defined symbol.
1339         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
1340         glibc.
1342 2018-10-05  Bruno Haible  <bruno@clisp.org>
1344         mkdir-p: Depend on 'mkdir'.
1345         * modules/mkdir-p (Depends-on): Add 'mkdir'.
1347 2018-10-05  Bruno Haible  <bruno@clisp.org>
1349         tempname: Depend on 'mkdir'.
1350         Reported by Maarten Bosmans <mkbosmans@gmail.com>
1351         at <https://savannah.gnu.org/bugs/?33379>.
1352         * modules/tempname (Depends-on): Add 'mkdir'.
1354 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
1356         timevar: rely on gnulib modules for time portability.
1357         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
1358         * m4/timevar.m4: Don't check for clock_t and struct tms,
1359         guaranteed by gnulib.
1360         * lib/timevar.h: Use extern "C" protection.
1361         Include <stdio.h> for FILE.
1362         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
1363         they are guaranteed by gnulib.
1364         Remove uses of clock as (now useless) fallback.
1366 2018-10-04  Bruno Haible  <bruno@clisp.org>
1368         sh-filename: New module.
1369         * m4/sh-filename.m4: New file.
1370         * modules/sh-filename: New file.
1371         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
1372         "/bin/sh".
1373         * tests/test-posix_spawn1.c (main): Likewise.
1374         * tests/test-posix_spawn2.c (main): Likewise.
1375         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
1376         is_envjavac_gcj43): Likewise.
1377         * lib/javaexec.c (execute_java_class): Likewise.
1378         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
1379         * modules/posix_spawnp-tests (Depends-on): Likewise.
1380         * modules/javacomp (Depends-on): Likewise.
1381         * modules/javaexec (Depends-on): Likewise.
1383 2018-10-04  Bruno Haible  <bruno@clisp.org>
1385         spawn-pipe tests: Avoid test failure on native Windows.
1386         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
1387         that fd 2 is closed.
1389 2018-10-04  Bruno Haible  <bruno@clisp.org>
1391         fcntl: Make it possible to namespace the defined symbol.
1392         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
1393         been defined.
1394         (fcntl): Renamed from rpl_fcntl.
1395         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
1396         from fcntl.
1397         (klibc_fcntl): Move to the end of the compilation unit.
1399 2018-10-02  Bruno Haible  <bruno@clisp.org>
1401         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
1402         * tests/test-vasnprintf.c (test_function): Change the test added on
1403         2018-09-23 to check only the 18 most significant digits.
1405         vasnprintf tests: Avoid test failure on Cygwin.
1406         * tests/test-vasnprintf.c (test_function): Change the test added on
1407         2018-09-23 to check only the 42 most significant digits.
1409 2018-10-01  Bruno Haible  <bruno@clisp.org>
1411         mkostemp, mkostemps: Update documentation.
1412         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
1413         * doc/glibc-functions/mkostemps.texi: Likewise.
1415 2018-10-01  Tom Tromey  <tom@tromey.com>
1417         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
1418         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
1419         on OS X.
1421 2018-09-30  Pádraig Brady  <P@draigBrady.com>
1423         hmac-*: refactor to remove repetitive code
1424         * lib/hmac.c: A new parameterized single implementation.
1425         * lib/hmac-md5.c: Define parameters and include implementation.
1426         * lib/hmac-sha1.c: Likewise.
1427         * lib/hmac-sha256.c: Likewise.
1428         * lib/hmac-sha512.c: Likewise.
1429         * modules/crypto/hmac-md5: Reference the new implementation file.
1430         * modules/crypto/hmac-sha1: Likewise.
1431         * modules/crypto/hmac-sha256: Likewise.
1432         * modules/crypto/hmac-sha512: Likewise.
1433         * tests/test-hmac-md5.c: Refactor common code to a single function.
1434         * tests/test-hmac-sha1.c: Likewise.
1435         * tests/test-hmac-sha256.c: Likewise.
1436         * tests/test-hmac-sha512.c: Likewise.
1438 2018-09-30  Zhang Qing  <zhangqingl@126.com>
1440         hmac-sha512: fix hash for keys > blocksize (128 bytes)
1441         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
1442         key length to that output by sha512, not the blocksize.
1443         Otherwise uninitialized data from the stack
1444         is used when computing the hash.
1445         * tests/test-hmac-sha512.c: Add a shortened key test case.
1446         Reported at https://github.com/coreutils/gnulib/pull/5
1448 2018-09-30  Bruno Haible  <bruno@clisp.org>
1450         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
1451         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
1452         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
1453         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
1454         'unsigned int' before comparison with an unsigned value.
1456 2018-09-30  Bruno Haible  <bruno@clisp.org>
1458         grantpt: Remove unnecessary dependency.
1459         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
1461 2018-09-30  Bruno Haible  <bruno@clisp.org>
1463         timevar: Small tweaks.
1464         * lib/timevar.h: Fix comments. Add parameter names to function
1465         declarations.
1466         * lib/timevar.c: Include timevar.h immediately after config.h.
1467         * lib/timevar.def: Fix comments.
1468         * modules/timevar (Maintainer): List Akim Demaille.
1470 2018-09-30  Bruno Haible  <bruno@clisp.org>
1472         timevar: Include documentation in gnulib manual.
1473         * doc/timevar.texi: Change node and section name to 'Profiling of
1474         program phases'.
1475         In the code snippets, tweak the #includes and use GNU coding style.
1476         * doc/gnulib.texi: Include timevar.texi.
1478 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
1480         timevar: import from Bison.
1481         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
1482         New files.
1483         * lib/timevar.def: New file.
1484         * doc/timevar.texi: New file.
1486 2018-09-26  Bruno Haible  <bruno@clisp.org>
1488         javacomp-script, javacomp: Add preliminary support for Java 12..17.
1489         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
1490         * lib/javacomp.c (default_target_version): Likewise.
1492 2018-09-26  Bruno Haible  <bruno@clisp.org>
1494         javacomp-script, javacomp: Add support for Java 11.
1495         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
1496         target-version 11.
1497         * lib/javaversion.h: Update comments.
1498         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1499         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1500         TARGET_VERSION_BOUND, target_version_index,
1501         corresponding_classfile_version): Accept source_version 11 and
1502         target_version 11.
1503         * lib/javacomp.h: Update comments accordingly.
1505 2018-09-23  Bruno Haible  <bruno@clisp.org>
1507         vasnprintf: Fix heap memory overrun bug.
1508         Reported by Ben Pfaff <blp@cs.stanford.edu> in
1509         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
1510         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
1511         memory.
1512         * tests/test-vasnprintf.c (test_function): Add another test.
1514 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
1516         maint: mktime.c now shared with glibc
1517         * config/srclist.txt: intprops.h, timegm.c and mktime.c
1518         are now the same in Gnulib and glibc.
1520         mktime: fix _LIBC typo
1521         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
1523 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1525         dfa: optimization for state merge
1526         * lib/dfa.c (merge2): New function.
1527         (merge_nfa_state): Use it.
1529 2018-09-18  Jim Meyering  <meyering@fb.com>
1531         dfa: trivial comment fix: s/is/if/
1532         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
1534 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1536         dfa: use more-informative function name
1537         * lib/dfa.c (maybe_disable_superset_dfa):
1538         Rename from dfautf8noss.  Use change.
1540         dfa: tweak allocation performance
1541         * lib/dfa.c (merge_nfa_state, dfaoptimize):
1542         Prefer ptrdiff_t for indexes some more.
1543         Use char for flags, as it’s wide enough.
1544         Allocate queue and flags together, with one malloc call.
1545         No need to use xnmalloc since the multiplication and
1546         addition cannot overflow (it’s already been checked by
1547         earlier allocation).  Prefer memset to open-coding.
1549         dfa: prune states as we go
1550         * lib/dfa.c (prune): Remove.
1551         dfa: reorder enum for efficiency
1552         (merge_nfa_state): Prune as we go instead of at the end.
1553         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
1555         * lib/dfa.c (END): Now -1 again.  Reorder other elements
1556         of the enumeration to make it easier for GCC to generate
1557         efficient code by using fewer comparisons to check for
1558         ranges of values.
1559         (atom): Take advantage of the reordering.
1561 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1563         dfa: optimize alternation in NFA
1564         Even when similar states exist in alternation, the DFA treats them
1565         as separate items, which may complicate the transition in NFA and
1566         cause slowdown.  This change assembles the states into one.  For
1567         example, ab|ac is changed into a(b|c).  This change speeds-up
1568         matching for many branched patterns.  For example, grep speeds up
1569         more than 30× in:
1571           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
1572           time -p env LC_ALL=C grep -vf in in
1574         * lib/dfa.c (prune): New function.
1575         (merge_nfa_state): New function.  It merges similar NFA states.
1576         (dfaoptimize): New function.  It seeks merged and removed nodes.
1577         (dfaanalyze): Call new function.
1578         (dfautf8noss): Change name from dfaoptimize because of addition of new
1579         function.
1580         (dfacomp): Update caller.
1582         dfa: simplify initial state
1583         Simplifying the initial state enables easier optimization of the NFA.
1584         * lib/dfa.c (enum token): Add new element BEG.
1585         (prtok): Adjust due to adding element BEG.
1586         (dfaparse): Put BEG at a head of tokens.
1587         (state_index): Adjust due to adding element BEG.
1588         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
1589         build initial state.
1590         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
1592 2018-09-18  Bruno Haible  <bruno@clisp.org>
1594         file-has-acl: Fix test failure on Cygwin 2.9.
1595         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
1596         * lib/acl-internal.h: Likewise.
1597         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
1598         * lib/acl-internal.c: Update comments regarding Cygwin.
1599         * lib/acl_entries.c: Likewise.
1600         * lib/file-has-acl.c: Likewise.
1601         (file_has_acl): For Cygwin, use a different way to determine whether
1602         the "default" ACL of a directory is nontrivial.
1603         * lib/get-permissions.c: Update comments regarding Cygwin.
1604         * lib/set-permissions.c: Likewise.
1606 2018-09-18  Bruno Haible  <bruno@clisp.org>
1608         stat-time tests: Fix test failure on Cygwin.
1609         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
1611 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1613         doc: OS X 10.11 lacked ns time functions
1614         According to <https://github.com/zeromq/libzmq/issues/2175>,
1615         nanosecond-resolution timestamp functions were introduced
1616         in macOS 10.12, so document the last version (OS X 10.11)
1617         where they were absent.
1619         gettime: nanotime never existed
1620         Problem reported by Bruno Haible in:
1621         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
1622         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
1623         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
1625 2018-09-18  Bruno Haible  <bruno@clisp.org>
1627         doc: Update statement about target platforms.
1628         Reported by Simon Sobisch.
1629         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
1630         restrictions on MSVC versions.
1632 2018-09-18  Bruno Haible  <bruno@clisp.org>
1634         posix_spawn tests: Fix link error on 64-bit Cygwin.
1635         * tests/test-posix_spawn1.c (environ): Remove declaration.
1636         * tests/test-posix_spawn2.c (environ): Likewise.
1637         * tests/test-posix_spawn3.c (environ): Likewise.
1638         * tests/test-posix_spawn4.c (environ): Likewise.
1639         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
1640         * modules/posix_spawnp-tests (Depends-on): Likewise.
1642 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1644         timespec: new function current_timespec
1645         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
1646         and don’t worry about it failing on a CLOCK_REALTIME arg.
1647         POSIX requires it to succeed and I don’t know of any
1648         counterexamples where the fallbacks would work.
1649         (current_timespec): New function, taken from Emacs.  It is more
1650         convenient than gettime, and can help register allocation.
1651         * lib/timespec.h: Include arg-nonnull.h.
1652         (current_timespec): New declaration.
1653         (gettime, settime): Declare args to be nonnull.
1654         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
1656 2018-09-16  Bruno Haible  <bruno@clisp.org>
1658         setlocale: Improve locale handling on macOS 10.12 or newer.
1659         * lib/setlocale.c: Include header files for CoreFoundation. Declare
1660         gl_locale_name_canonicalize.
1661         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
1662         and LC_MESSAGES.
1663         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
1665 2018-09-16  Bruno Haible  <bruno@clisp.org>
1667         Update list of locale names with scripts on macOS.
1668         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
1669         match Mac OS X 10.13 and recent glibc.
1671 2018-09-16  Bruno Haible  <bruno@clisp.org>
1673         gettext: Use newer macOS APIs when possible.
1674         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
1675         CFLocaleCopyPreferredLanguages.
1677 2018-09-16  Bruno Haible  <bruno@clisp.org>
1679         localename: Revisit macOS specific code.
1680         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
1681         Fix comments about Mac OS X versions.
1683 2018-09-15  Bruno Haible  <bruno@clisp.org>
1685         setlocale: Improve support for locales not supported by libc.
1686         Reported by Dapeng Gao <peter@dpgao.cc> at
1687         <https://savannah.gnu.org/bugs/?54479>.
1688         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
1689         (libintl_setlocale): Use a more error-tolerant strategy when the locale
1690         to be set is not supported by libc: Emit warnings instead of failing.
1692 2018-09-15  Bruno Haible  <bruno@clisp.org>
1694         strstr, strcasestr: Add workaround against glibc-2.28 bug.
1695         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
1696         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
1697         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
1698         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
1699         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
1700         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
1701         * doc/glibc-functions/strcasestr.texi: Likewise.
1703 2018-09-14  Bruno Haible  <bruno@clisp.org>
1705         doc: Fix bottom of top-level page.
1706         Reported by Akim Demaille <akim.demaille@gmail.com> in
1707         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
1708         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
1709         mode.
1710         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
1711         accordingly.
1713 2018-09-12  Bruno Haible  <bruno@clisp.org>
1715         Add test case from a recent glibc bug.
1716         * tests/test-strstr.c (main): Add test of long needle.
1717         * tests/test-strcasestr.c (main): Likewise.
1718         * tests/test-c-strstr.c (main): Likewise.
1719         * tests/test-c-strcasestr.c (main): Likewise.
1720         * tests/test-memmem.c (main): Likewise.
1722 2018-09-12  Bruno Haible  <bruno@clisp.org>
1724         Apply Eric Blake's improvements from 2011-02-25 to more tests.
1725         * tests/test-c-strstr.c (main): Add the same tests here as well.
1727 2018-09-12  Bruno Haible  <bruno@clisp.org>
1729         Apply Jim Meyering's fix from 2015-01-11 to more tests.
1730         * tests/test-memmem.c (main): Free haystack.
1731         * tests/test-strcasestr.c (main): Likewise.
1732         * tests/test-c-strcasestr.c (main): Likewise.
1734 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
1736         xstrtol: fix missing-TYPE_SIGNED typo
1737         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
1739 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1741         timespec: fix resolution confusion
1742         In normal usage, clock resolution is given in seconds, but the
1743         code was mistakenly using inverse seconds and calling it
1744         “resolution”.  Fix this, partly by renaming two identifiers.
1745         The old names will be kept for a bit, to ease transition.
1746         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
1747         New constants, replacing TIMESPEC_RESOLUTION and
1748         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
1749         All uses changed.
1751 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
1753         mktime: simplify in prep for glibc merge
1754         * lib/mktime.c, lib/timegm.c [_LIBC]:
1755         Include mktime-internal.h (a small file just for glibc)
1756         instead of using a typedef.
1758 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
1760         intprops: minor clarification of code
1761         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
1762         Use _GL_INT_CONVERT rather than reinventing it.
1764 2018-09-07  Bruno Haible  <bruno@clisp.org>
1766         Fix a comment.
1767         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
1769 2018-09-07  Bruno Haible  <bruno@clisp.org>
1771         posix_spawn_file_actions_addchdir: Add tests.
1772         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
1773         * tests/test-posix_spawn4.c: New file.
1774         * modules/posix_spawn_file_actions_addchdir-tests: New file.
1776 2018-09-07  Bruno Haible  <bruno@clisp.org>
1778         posix_spawn_file_actions_addchdir: New module.
1779         Suggested by Eric Blake in
1780         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
1781         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
1782         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
1783         union member 'chdir_action'.
1784         * lib/spawn_faction_addchdir.c: New file.
1785         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
1786         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
1787         HAVE_WORKING_POSIX_SPAWN.
1788         * lib/spawn_faction_adddup2.c: Likewise.
1789         * lib/spawn_faction_addopen.c: Likewise.
1790         * m4/posix_spawn_faction_addchdir.m4: New file.
1791         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
1792         'posix_spawn_file_actions_addchdir' is present and whether
1793         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
1794         instead of HAVE_WORKING_POSIX_SPAWN.
1795         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
1796         posix_spawn_file_actions_addchdir is declared.
1797         (gl_SPAWN_H_DEFAULTS): Initialize
1798         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1799         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1800         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
1801         * modules/spawn (Makefile.am): Substitute
1802         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1803         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1804         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
1805         * modules/posix_spawn_file_actions_addchdir: New file.
1806         * modules/posix_spawn_file_actions_addclose (Depends-on,
1807         configure.ac): Test also REPLACE_POSIX_SPAWN.
1808         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
1809         configure.ac): Likewise.
1810         * modules/posix_spawn_file_actions_addopen (Depends-on,
1811         configure.ac): Likewise.
1812         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
1813         signature.
1814         * doc/posix-functions/posix_spawn.texi: Mention the new module.
1815         * doc/posix-functions/posix_spawnp.texi: Likewise.
1817 2018-09-06  Bruno Haible  <bruno@clisp.org>
1819         stddef: Override max_align_t on NetBSD 8.0/x86.
1820         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
1821         the value of __alignof__ (max_align_t).
1822         * doc/posix-headers/stddef.texi: Mention the issue.
1824 2018-09-06  Bruno Haible  <bruno@clisp.org>
1826         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
1827         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
1828         system fcntl.
1829         * doc/posix-functions/fcntl.texi: Document the issue.
1831 2018-09-06  Bruno Haible  <bruno@clisp.org>
1833         count-trailing-zeros tests: Rely on limits-h module.
1834         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
1835         definition.
1836         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
1838 2018-09-06  Bruno Haible  <bruno@clisp.org>
1840         count-leading-zeros tests: Rely on limits-h module.
1841         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
1842         definition.
1843         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
1845 2018-09-06  Bruno Haible  <bruno@clisp.org>
1847         count-one-bits tests: Rely on limits-h module.
1848         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
1849         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
1851 2018-09-06  Bruno Haible  <bruno@clisp.org>
1853         xstrtoll: Rely on limits-h module.
1854         * lib/xstrtol.c: Don't include intprops.h.
1855         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
1856         * modules/xstrtol (Depends-on): Remove 'intprops'.
1857         * modules/xstrtoll (Depends-on): Add 'limits-h'.
1859 2018-09-06  Bruno Haible  <bruno@clisp.org>
1861         strtoll, strtoull: Rely on limits-h module.
1862         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
1863         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
1864         * modules/strtoll (Depends-on): Add limits-h.
1865         * modules/strtoull (Depends-on): Likewise.
1867 2018-09-06  Bruno Haible  <bruno@clisp.org>
1869         intprops tests: Fix compilation error with pre-C99 compiler.
1870         * tests/test-intprops.c (verify_stmt): New macro.
1871         (VERIFY, main): Use it.
1873 2018-09-06  Bruno Haible  <bruno@clisp.org>
1875         limits-h: Provide numerical limits macros.
1876         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
1877         IRIX and for GCC.
1878         (WORD_BIT, LONG_BIT): Define.
1879         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
1880         <limits.h> does not define LLONG_MAX or WORD_BIT.
1881         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
1882         TYPE_MAXIMUM): New macros, from intprops.h.
1883         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
1884         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
1885         provides.
1887 2018-09-05  Bruno Haible  <bruno@clisp.org>
1889         fcntl: Don't access nonexistent optional argument.
1890         Reported by Frank Busse <f.busse@imperial.ac.uk> in
1891         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
1892         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
1893         don't consume an argument. For actions that take an 'int' argument,
1894         consume an 'int' argument.
1896 2018-09-05  Eric Blake  <eblake@redhat.com>
1898         doc: mention environ pitfall
1899         * doc/posix-functions/environ.texi (environ): Assigning NULL to
1900         environ is a glibc extension.
1902 2018-09-03  Bruno Haible  <bruno@clisp.org>
1904         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
1905         Reported by Antoine Luong <antoine.luong@c-s.fr> in
1906         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
1907         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
1908         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
1909         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
1911 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1913         mktime: fix unlikely race+overflow bug
1914         Problem reported by Alexandre Oliva in:
1915         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
1916         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
1917         to avoid an unlikely race if the compiler delays a load and
1918         if this cascades into a signed integer overflow.
1920 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
1922         mktime, timegm: simplify glibc time64_t
1923         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
1924         Now long int, not time_t, since long int is the longstanding type
1925         for this in glibc and there is no need to change it even if time_t
1926         becomes 64 bits - even int would do, though this would be a change
1927         to the glibc generated code.  When this change is merged into
1928         glibc, it should simplify the time_t vs time64_t situation.
1930         mktime, timegm: simplify merge to glibc
1931         Move code around to make a merge to glibc easier to audit.
1932         This should not change behavior.
1933         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
1934         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
1935         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
1936         simplify later conditionals; default the others to zero.  In uses
1937         of these conditionals, explicitly spell out how _LIBC affects
1938         things, so it’s easier to review from a glibc viewpoint.
1939         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
1940         compartmentalize tzset issues.  Move system-dependent tzsettish
1941         code here from mktime.
1942         (mktime): Move tzsettish code to my_tzset, and move
1943         localtime_offset to within mktime so that it doesn’t
1944         need a separate ifdef.
1946 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
1948         intprops: avoid evaluation of some expressions
1949         This makes EXPR_SIGNED (e) easier to use, as it no longer
1950         evaluates the expression E.  Formerly, E was required to be free
1951         of side effects.
1952         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
1953         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
1954         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
1956 2018-08-23  Bruno Haible  <bruno@clisp.org>
1958         getcwd: Add cross-compilation guesses.
1959         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
1960         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
1961         Based on a patch by Paul Eggert.
1962         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
1963         guesses for all GNU systems.
1965 2018-08-19  Bruno Haible  <bruno@clisp.org>
1967         glob-h: Formalize side effects from other modules.
1968         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
1969         * m4/glob.m4 (gl_GLOB): Invoke it.
1971         fnmatch-h: Formalize side effects from other modules.
1972         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
1973         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
1975         limits-h: Formalize side effects from other modules.
1976         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
1977         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
1979 2018-08-19  Bruno Haible  <bruno@clisp.org>
1981         getpass: Move declaration to <unistd.h>.
1982         * lib/unistd.in.h (getpass): New declaration.
1983         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
1984         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
1985         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
1986         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
1987         On glibc systems, don't set REPLACE_GETPASS to 1.
1988         * modules/getpass (Depends-on): Add 'unistd'.
1989         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
1990         (Include): Specify <unistd.h> instead of "getpass.h".
1991         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
1992         (configure.ac): Sync with the configure.ac section of modules/getpass.
1993         (Include): Specify <unistd.h> instead of "getpass.h".
1994         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
1995         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
1996         REPLACE_GETPASS.
1997         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
1998         REPLACE_GETPASS.
1999         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
2000         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
2001         and musl.
2002         * NEWS: Mention the change.
2004 2018-08-19  Bruno Haible  <bruno@clisp.org>
2006         glob: Fix over-optimization due to attribute __nonnull__.
2007         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
2009 2018-08-19  Bruno Haible  <bruno@clisp.org>
2011         glob: Fix another compilation error when glob.h is not replaced.
2012         Reported by Reuben Thomas <rrt@sc3d.org> in
2013         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
2014         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
2015         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
2017 2018-08-18  Bruno Haible  <bruno@clisp.org>
2019         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
2020         Reported by Reuben Thomas <rrt@sc3d.org> in
2021         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
2022         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
2023         in config.h.
2025 2018-08-18  Bruno Haible  <bruno@clisp.org>
2027         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
2028         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
2029         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
2030         Solution proposed by Eli Zaretskii.
2031         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
2032         * lib/gettimeofday.c (GetProcAddress): Likewise.
2033         * lib/link.c (GetProcAddress): Likewise.
2034         * lib/physmem.c (GetProcAddress): Likewise.
2035         * lib/poll.c (GetProcAddress): Likewise.
2036         * lib/select.c (GetProcAddress): Likewise.
2037         * lib/stat-w32.c (GetProcAddress): Likewise.
2039 2018-08-18  Bruno Haible  <bruno@clisp.org>
2041         glob: Fix another compilation error when glob.h is not replaced.
2042         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
2043         * lib/globfree.c: Include <libc-config.h>.
2045 2018-08-18  Bruno Haible  <bruno@clisp.org>
2047         glob: Fix compilation error when glob.h is not replaced.
2048         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
2049         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
2050         * lib/glob_pattern_p.c: Include <libc-config.h>.
2051         * modules/glob (Depends-on): Add libc-config.
2053 2018-08-18  Bruno Haible  <bruno@clisp.org>
2055         scratch_buffer: Add tests.
2056         * tests/test-scratch-buffer.c: New file.
2057         * modules/scratch_buffer-tests: New file.
2059 2018-08-18  Bruno Haible  <bruno@clisp.org>
2061         scratch_buffer: Fix include file.
2062         Reported by Reuben Thomas <rrt@sc3d.org> in
2063         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
2064         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
2065         double-inclusion guard.
2067 2018-08-18  Bruno Haible  <bruno@clisp.org>
2069         glob-h: Revert Paul Eggert's revert.
2070         * m4/glob_h.m4: Revert to previous state.
2071         * modules/glob-h: Likewise.
2073 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2075         glob-h: always build glob.h
2076         This works around a problem reported by Reuben Thomas in:
2077         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
2078         This workaround always builds glob.h, even on platforms that
2079         do not need it; perhaps this could be improved someday.
2080         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
2081         is always created now.
2082         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
2084 2018-08-13  Bruno Haible  <bruno@clisp.org>
2086         monetary: Simplify m4 code.
2087         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
2088         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
2090 2018-08-13  Bruno Haible  <bruno@clisp.org>
2092         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
2093         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
2094         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
2095         and by Paul J. Lucas <paul@lucasmail.org> in
2096         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
2097         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
2099 2018-08-11  Bruno Haible  <bruno@clisp.org>
2101         setlocale: Trivial simplification.
2102         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
2104 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2106         verify: port 'assume' to traditional tools
2107         * lib/verify.h (assume): Port better to Oracle Studio 12.6
2108         and other tools that use /*NOTREACHED*/ comments.
2110 2018-08-10  Bruno Haible  <bruno@clisp.org>
2112         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
2113         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2114         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
2115         'fnmatch-gnu' is in use.
2117 2018-08-07  Bruno Haible  <bruno@clisp.org>
2119         glob-h: Add tests.
2120         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
2121         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
2122         tests/test-glob-h.c.
2123         * modules/glob-h-tests: New file.
2124         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
2125         conditions.
2126         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
2127         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
2129 2018-08-07  Bruno Haible  <bruno@clisp.org>
2131         glob-h: New module.
2132         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
2133         replacements.
2134         * lib/glob.c: Include <config.h>.
2135         * m4/glob_h.m4: New file.
2136         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
2137         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
2138         REPLACE_GLOB_PATTERN_P as appropriate.
2139         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
2140         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
2141         * modules/glob-h: New file.
2142         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
2143         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
2144         lstat, sys_stat. Change conditions.
2145         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
2146         REPLACE_GLOB_PATTERN_P. Set module indicator.
2147         (Makefile.am): Remove code that is moved to glob-h.
2148         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
2149         * modules/posixcheck (Depends-on): Add glob-h.
2151 2018-08-06  Bruno Haible  <bruno@clisp.org>
2153         Force generation of substitute .h file when C++ support is enabled.
2154         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
2155         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
2156         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
2157         FNMATCH_H to non-empty.
2158         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
2159         ICONV_H to non-empty.
2160         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
2161         MONETARY_H to non-empty.
2162         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
2163         non-empty.
2165 2018-08-06  Bruno Haible  <bruno@clisp.org>
2167         fnmatch-h: Fix test compilation error on mingw (regression from today).
2168         * lib/fnmatch.in.h: Fix conditions.
2170 2018-08-06  Bruno Haible  <bruno@clisp.org>
2172         sys_resource: Relicense under LGPLv2+.
2173         John Malmberg's approval is in
2174         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
2175         * modules/sys_resource (License): Change to LGPLv2+.
2177 2018-08-06  Bruno Haible  <bruno@clisp.org>
2179         fnmatch-h: Add tests.
2180         * tests/test-fnmatch-h.c: New file.
2181         * modules/fnmatch-h-tests: New file.
2182         * tests/test-fnmatch-h-c++.cc: New file.
2183         * modules/fnmatch-h-c++-tests: New file.
2185 2018-08-06  Bruno Haible  <bruno@clisp.org>
2187         fnmatch-h: New module.
2188         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
2189         replacements.
2190         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
2191         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
2192         'posixcheck' warning.
2193         * m4/fnmatch_h.m4: New file.
2194         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
2195         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
2196         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
2197         as appropriate.
2198         * modules/fnmatch-h: New file.
2199         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
2200         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
2201         conditions.
2202         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
2203         indicator.
2204         (Makefile.am): Remove code that is moved to fnmatch-h.
2205         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
2206         REPLACE_FNMATCH.
2207         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
2208         * modules/posixcheck (Depends-on): Add fnmatch-h.
2210 2018-08-06  Bruno Haible  <bruno@clisp.org>
2212         Enable more C++ tests.
2213         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
2214         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
2215         * modules/strings-tests (Depends-on): Add strings-c++-tests.
2216         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
2217         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
2219 2018-08-06  Bruno Haible  <bruno@clisp.org>
2221         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
2222         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
2223         getopt.h.
2224         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
2226 2018-08-05  Bruno Haible  <bruno@clisp.org>
2228         utime-h: Generate header file when module 'posixcheck' is in use.
2229         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
2230         UTIME_H to non-empty.
2232 2018-08-05  Bruno Haible  <bruno@clisp.org>
2234         monetary: Generate header file when module 'posixcheck' is in use.
2235         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
2236         use, set MONETARY_H to non-empty.
2238 2018-08-05  Bruno Haible  <bruno@clisp.org>
2240         iconv-h: Generate header file when module 'posixcheck' is in use.
2241         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
2242         set ICONV_H to non-empty.
2244 2018-08-05  Bruno Haible  <bruno@clisp.org>
2246         Optimize the "checking whether ... is declared without a macro" checks.
2247         Suggested by Paul Eggert in
2248         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
2249         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
2250         Gnulib module 'posixcheck' is not in use.
2252 2018-08-05  Bruno Haible  <bruno@clisp.org>
2254         iconv-h: Enable 'posixcheck' warnings.
2255         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
2256         iconv_open.
2257         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
2259 2018-08-05  Bruno Haible  <bruno@clisp.org>
2261         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
2262         * m4/extern-inline.m4: Add more comments.
2263         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
2264         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
2265         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
2267 2018-08-04  Bruno Haible  <bruno@clisp.org>
2269         New module 'posixcheck'.
2270         * modules/posixcheck: New file.
2271         * m4/posixcheck.m4: New file.
2272         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
2273         (Which modules?): Reference it.
2275 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
2277         dfa: fix memory leak
2278         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
2280 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2282         ieee754-h: new module
2283         It looks like Emacs can use this for some NaN processing.
2284         Emacs uses it only on double NaNs so it should be safe.
2285         * MODULES.html.sh (func_all_modules): Add ieee754-h.
2286         * config/srclist.txt: Mention ieee754.h in a comment.
2287         * doc/glibc-headers/ieee754.texi (ieee754.h):
2288         Gnulib now has a substitute that should work
2289         except for long double and for non-IEEE platforms.
2290         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
2291         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
2293 2018-07-27  Bruno Haible  <bruno@clisp.org>
2295         iswcntrl: Mention minor problem on macOS.
2296         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
2298 2018-07-26  Colin Watson  <cjwatson@debian.org>
2300         bootstrap, gnulib-tool: fix translations rsync
2301         Previously, we created files such as $pobase/Makefile.in.in and then the
2302         subsequent rsync would immediately delete them.
2303         * build-aux/bootstrap (po_download_command_format): Avoid deleting
2304         non-.po files in target directory when rsyncing translations.
2305         * gnulib-tool (func_import): Likewise.
2306         * pygnulib/GLImport.py (GLImport.execute): Likewise.
2308 2018-07-25  Jim Meyering  <meyering@fb.com>
2310         bootstrap: reinstate definition fo gnulib_mk.
2311         That variable is used at least by cppi.
2312         * build-aux/bootstrap (gnulib_mk): Restore definition.
2313         This reverts the deletion from v0.1-1844-gc66dba9ba.
2315 2018-07-23  Bruno Haible  <bruno@clisp.org>
2317         doc: For module names, use texinfo markup @code{} or @samp{}.
2318         * doc/alloca.texi: Mark gnulib module names with @code.
2319         * doc/alloca-opt.texi: Likewise.
2320         * doc/quote.texi: Likewise.
2321         * doc/posix-functions/freopen.texi: Likewise.
2322         * doc/posix-functions/open.texi: Likewise.
2323         * doc/posix-functions/readlink.texi: Likewise.
2324         * doc/posix-functions/readlinkat.texi: Likewise.
2325         * doc/posix-functions/stdout.texi: Likewise.
2326         * doc/posix-functions/stderr.texi: Likewise.
2327         * doc/posix-functions/unlink.texi: Likewise.
2328         * doc/posix-functions/unlinkat.texi: Likewise.
2329         * doc/posix-functions/utime.texi: Likewise.
2330         * doc/posix-functions/utimensat.texi: Likewise.
2331         * doc/posix-functions/utimes.texi: Likewise.
2332         * doc/posix-headers/stdint.texi: Likewise.
2333         * doc/glibc-functions/futimesat.texi: Likewise.
2334         * doc/glibc-functions/lutimes.texi: Likewise.
2335         * doc/glibc-functions/memmem.texi: Likewise.
2337 2018-07-23  Werner LEMBERG  <wl@gnu.org>
2339         doc: Avoid some overfull lines in the TeX output.
2340         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
2341         @example.
2342         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
2343         newline before the long URL.
2344         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
2345         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
2346         Add line breaks in code snippets.
2348 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
2350         hard-locale: simplify by removing hard-locale.m4
2351         * m4/hard-locale.m4: Remove.
2352         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
2353         (configure.ac): Do not call gl_HARD_LOCALE.
2355         gnulib-tool: limit line length for git send-email
2356         * gnulib-tool (func_import): Break actioncmd log line
2357         into multiple lines.
2359 2018-07-16  Bruno Haible  <bruno@clisp.org>
2361         ffs: Ensure declaration on mingw.
2362         Reported by Daniel P. Berrangé <berrange@redhat.com>
2363         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
2364         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
2365         also declared.
2367 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
2369         regex-tests: add dependency
2370         * modules/regex-tests (Depends-on): Add gettext-h.
2371         This is needed given the recent changes to regex,
2372         which no longer depends on gettext-h.
2374 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2376         regex: now in sync with glibc
2377         * config/srclist.txt: Gnulib and glibc regex code
2378         are synchronized again.
2380 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2382         renameatu: rename from renameat2
2383         It's looking like Glibc will add a renameat2 function
2384         that is incompatible with Gnulib renameat2; see:
2385         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
2386         To help avoid future confusion, rename renameat2 to something else.
2387         Use the name 'renameatu', as the Gnulib function is close to the
2388         Glibc function.  Perhaps someday there will also be a renameat2
2389         Gnulib module, which mimicks the future glibc renameat2, but that
2390         can wait as nobody seems to need such a module now.
2391         * NEWS: Mention this.
2392         * lib/renameatu.c: Rename from lib/renameat2.c.
2393         * lib/renameatu.h: Rename from lib/renameat2.h.
2394         * modules/renameatu: Rename from modules/renameat2.
2395         * modules/renameatu-tests: Rename from modules/renameat2-tests.
2396         All uses of "renameat2" in identifiers or file name
2397         changed to "renameatu", except for two instances in
2398         lib/renameatu.c that deal with the Linux kernel's
2399         renameat2 syscall.
2401 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2403         gnulib-tool: minor tweaks for --gnu-make
2404         * gnulib-tool: Do not allow --gnu-make in test modes,
2405         since they all require automake.
2406         (func_emit_lib_Makefile_am): Don’t emit automake comment
2407         if --gnu-make.
2409         regex: work around conditional-dependencies glitch
2410         * modules/regex (Depends-on): Add langinfo.
2411         Without this change, I had problems building an experimental
2412         version of GNU Emacs.  The symptom of the bug was a message
2413         ‘./configure: line 12726: test: =: unary operator expected’.
2414         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
2415         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
2416         was unset.  Although gl_FUNC_NL_LANGINFO has
2417         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
2418         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
2419         --conditional-dependencies sometimes arranges for the
2420         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
2421         code.  Since the regex code includes <langinfo.h> it should be
2422         depending on the langinfo module anyway, and this happens to work
2423         around the bug, so install that as a workaround for now.  To
2424         reproduce the original problem, run the following shell script on
2425         the version of Gnulib just before this patch was installed.
2426                 rm -fr foo
2427                 mkdir foo
2428                 cat >foo/configure.ac <<'EOF'
2429                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
2430                 gl_EARLY
2431                 gl_INIT
2432                 AC_OUTPUT
2433                 EOF
2434                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
2435                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
2436                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
2437                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
2438                 cd foo
2439                 aclocal -I m4
2440                 autoconf
2441                 ./configure --with-included-regex
2443 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2445         wchar: fix bug when checking for ‘inline’
2446         I discovered this when looking into using the regex module
2447         with Emacs.
2448         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
2449         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
2450         conftest1.c and conftest2.c but these files were not created.
2451         As far as I can see, this check never worked and nobody reported
2452         it until now, which is a bit worrisome.
2454 2018-06-30  Jim Meyering  <meyering@fb.com>
2456         bootstrap: s/--option val/--option=val/
2457         * build-aux/bootstrap (gnulib_tool_options): Change the
2458         spelling of "--option val" pairs to "--option=val", for
2459         aesthetics, and also so that this file no longer triggers
2460         a common help2man syntax-check warning when copied into
2461         projects like grep, gzip, etc.
2463 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2465         manywarnings: omit -Wswitch-default
2466         This should make things more consistent, as we already ignore
2467         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
2468         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
2469         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
2470         Add -Wswitch-default.
2471         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
2472         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
2473         Remove -Wswitch-default.
2475         regex: revert most trimming
2476         Problems reported by Bruno Haible in:
2477         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
2478         * modules/regex (Depends-on): Add lock, memcmp, memmove,
2479         and wctype back in.  lock because regex users shouldn’t
2480         need to know that regex needs locking, and the rest because
2481         gnulib-tool should ordinarily ignore them anyway.
2483 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2485         regex: trim module dependencies
2486         * modules/regex (Depends-on): Remove gettext-h and lock,
2487         since the regex code should work OK without these modules,
2488         and Emacs uses it that way.  Also remove memcmp, memmove,
2489         and wctype, as these modules are obsolete and should not be
2490         needed any more.
2492 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
2494         regex: glibc does not use intprops.h
2495         Maybe we can talk glibc into using intprops.h someday, but
2496         now doesn’t seem to be a good time.
2497         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
2498         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
2499         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
2501 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
2503         regex: port to recently proposed glibc regex merge
2504         This patch is inspired by Adhemerval Zanella's recent proposal
2505         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
2506         to merge glibc and Gnulib regex.  It aims to simplify the merge on
2507         the glibc side, without keeping Gnulib portable.
2508         * lib/regex.h: Fix a problem with glibc installed-header checking,
2509         as follows:
2510         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
2511         (_Restrict_arr_): Prefer __restrict_arr if defined,
2512         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
2513         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
2514         (build_wcs_upper_buffer, build_upper_buffer)
2515         (re_string_translate_buffer, re_string_context_at):
2516         Move decls here from lib/regex_internal.h, for glibc internal tests.
2517         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
2518         glibc BZ #18496.
2519         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
2520         -Wunused-value.
2521         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
2522         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2523         (bitset_mask): Now static inline, and without any __attribute__
2524         ((unused)) decoration, for glibc internal tests.
2526 2018-06-25  Bruno Haible  <bruno@clisp.org>
2528         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
2529         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
2530         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
2531         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
2532         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
2533         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
2534         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
2535         / -lthread / -lpth does not get optimized away by a preceding
2536         --as-needed option.
2538 2018-06-25  Bruno Haible  <bruno@clisp.org>
2540         Continue to use spaces for indentation, not tabs.
2541         * MODULES.html.sh: Untabify.
2542         * doc/regex.texi: Likewise.
2543         * lib/acl-internal.c: Likewise.
2544         * lib/dfa.c: Likewise.
2545         * lib/exclude.c: Likewise.
2546         * lib/exclude.h: Likewise.
2547         * lib/get-permissions.c: Likewise.
2548         * lib/gettimeofday.c: Likewise.
2549         * lib/parse-datetime.y: Likewise.
2550         * lib/pselect.c: Likewise.
2551         * lib/set-permissions.c: Likewise.
2552         * lib/time.in.h: Likewise.
2553         * m4/canonicalize.m4: Likewise.
2554         * m4/gc.m4: Likewise.
2555         * m4/gnulib-common.m4: Likewise.
2556         * m4/pthread_sigmask.m4: Likewise.
2557         * m4/vararrays.m4: Likewise.
2558         * tests/test-digest.h: Likewise.
2559         * tests/test-fcntl-h.c: Likewise.
2560         * tests/test-timespec.c: Likewise.
2561         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
2563 2018-06-25  Bruno Haible  <bruno@clisp.org>
2565         manywarnings: Don't enable -Wjump-misses-init warnings by default.
2566         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
2567         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
2568         -Wjump-misses-init.
2570 2018-06-25  Jim Meyering  <meyering@fb.com>
2572         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
2573         * lib/acl-internal.h (free_permission_context): Remove that
2574         attribute directive.  Otherwise, it would provoke this from GCC 9:
2575         lib/acl-internal.h:300:3: error: 'const' attribute on function \
2576           returning 'void' [-Werror=attributes]
2578 2018-06-24  Jim Meyering  <meyering@fb.com>
2580         parse-datetime: accommodate gcc-4.8.5
2581         Bruno Haible reported the build failure in
2582         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
2583         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
2584         on declaration of new local.
2586 2018-06-24  Bruno Haible  <bruno@clisp.org>
2588         af_alg: Fail in continuable manner on Linux/powerpc64le.
2589         Reported by Assaf Gordon <assafgordon@gmail.com>
2590         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
2591         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
2592         byte send() as the first round.
2594 2018-06-24  Bruno Haible  <bruno@clisp.org>
2596         af_alg: Fix state of stream after sendfile() succeeds.
2597         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
2598         the stream is correctly positioned afterwards.
2599         * modules/crypto/af_alg (Depends-on): Add fflush.
2600         * tests/test-digest.h (test_digest_on_files): Verify that after the
2601         operation the stream is positioned at end of file.
2603 2018-06-24  Jim Meyering  <meyering@fb.com>
2605         canon-host: take GCC9's advice rather than ignoring warning
2606         Pádraig Brady suggested not to ignore this GCC9 advice.
2607         * lib/canon-host.c: Undo preceding change.
2608         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
2610         parse-datetime.y: avoid spurious GCC 9 warning
2611         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
2612         a function local prior to the first "goto fail".  The prior use would
2613         evoke this:
2614         parse-datetime.y: In function 'parse_datetime2':
2615         parse-datetime.y:1791:19: error: jump skips variable initialization \
2616           [-Werror=jump-misses-init]
2617         parse-datetime.y:2385:2: note: label 'fail' defined here
2618         parse-datetime.y:188:43: note: '({anonymous})' declared here
2619         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
2621         canon-host.c: avoid spurious GCC 9 warning
2622         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
2624         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
2625         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
2626         * m4/manywarnings.m4: Remove them.
2627         Otherwise, building coreutils, I would see this:
2628         cc1: error: deprecated command line option '-Wchkp' [-Werror]
2629         cc1: error: -Wabi won't warn about anything [-Werror=abi]
2630         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
2631           which is also used by default
2632         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
2634 2018-06-24  Bruno Haible  <bruno@clisp.org>
2636         af_alg tests: Add another test.
2637         * tests/test-digest.h (test_digest_on_files): Also check a large file
2638         with a skipped header.
2639         * tests/test-md5.c: Include macros.h.
2640         * tests/test-sha1.c: Likewise.
2641         * tests/test-sha256.c: Likewise.
2642         * tests/test-sha512.c: Likewise.
2643         * modules/crypto/md5-tests (Files): Add tests/macros.h.
2644         * modules/crypto/sha1-tests (Files): Likewise.
2645         * modules/crypto/sha256-tests (Files): Likewise.
2646         * modules/crypto/sha512-tests (Files): Likewise.
2648 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2650         maint: clarify comments about sticky EOF
2651         * lib/af_alg.c: Be more direct that we can't
2652         assume stickiness of EOF for portability reasons.
2653         * lib/md5.c: Clarify that this isn't just a glibc issue.
2654         * lib/sha1.c: Likewise.
2655         * lib/sha256.c: Likewise.
2656         * lib/sha512.c: Likewise.
2658 2018-06-24  Bruno Haible  <bruno@clisp.org>
2660         af_alg: Comment and style improvements.
2661         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
2662         (afalg_buffer, afalg_stream): Improve comments.
2664 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2666         af_alg: disable kernel hash functions by default
2667         All the kernel routines were seen to be significantly slower
2668         with these relatively recent components on an i3-2310M system:
2669           kernel-4.10.6-200.fc25.x86_64
2670           openssl-1.0.2m-1.fc25.x86_64
2671         sha1 was nearly twice as slow in the kernel for example.
2672         Further considerations why this should not be the default, at:
2673         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
2675         * m4/af_alg.m4: Require --with-linux-crypto to enable.
2676         * m4/gl-openssl.m4: Tweak accordingly.
2678 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2680         af_alg: avoid hangs when reading from streams
2681         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
2682         and thus avoid doing a fread() when feof() is set.
2683         * lib/md5.c: Ensure feof() is called before fread().
2684         * lib/sha1.c: Likewise.
2685         * lib/sha256.c: Likewise.
2686         * lib/sha512.c: Likewise.
2688 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2690         af_alg: fix error handling when hash not returned
2691         * lib/af_alg.c (afalg_stream): Handle the case where we've
2692         successfully written data to the kernel in the read/write loop,
2693         but the kernel doesn't respond with the hash.
2695 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
2697         libc-config: merge from glibc
2698         * lib/cdefs.h (__inline, __restrict):
2699         Copy from current glibc.  This fixes glibc bug 17721,
2700         which Gnulib had already fixed in a different way.
2701         (__nonnull): Lessen the distance from glibc by using the
2702         glibc definition inside an ‘#ifndef __nonnull’.
2703         (__attribute_nonstring__): New macro, copied from
2704         current glibc.
2705         * lib/libc-config.h (__attribute_nonstring__): New undef.
2706         (__restrict): Remove; workaround no longer needed.
2707         Keep the __inline workaround, though, as it uses HAVE___INLINE to
2708         support more compilers than the glibc __inline can.
2710 2018-06-24  Bruno Haible  <bruno@clisp.org>
2712         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
2713         * lib/mbrtowc.c (enc_t): New enum type.
2714         (locale_enc, locale_enc_cached): New functions.
2715         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
2716         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
2717         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
2718         instead.
2719         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
2720         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
2721         * modules/wcwidth (configure.ac): Invoke it.
2723 2018-06-24  Bruno Haible  <bruno@clisp.org>
2725         wchar-single: Fix test failure in wcwidth tests.
2726         * tests/test-wcwidth.c (main): If the wchar-single module is present,
2727         skip the tests in the C locale.
2729 2018-06-23  Pádraig Brady  <P@draigBrady.com>
2731         crypto: mention --without-linux-crypto in --with-openssl --help
2732         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
2733         routines take precedence in --with-openssl help output.
2735 2018-06-23  Pádraig Brady  <P@draigBrady.com>
2737         wchar-single: a new module to enable optimizations in wchar replacements
2738         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
2739         GNULIB_WCHAR_SINGLE is enabled.
2740         * lib/wcwidth.c (wcwidth): Likewise.
2742 2018-06-23  Bruno Haible  <bruno@clisp.org>
2744         libc-config: Fix conflict with FreeBSD include files.
2745         * lib/cdefs.h (__nonnull): Remove definition.
2746         * lib/libc-config.h (__nonnull): Remove undefinition.
2748 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2750         random_r: do not crash if state is unaligned
2751         Problem reported by Bruce Korb in:
2752         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
2753         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
2754         with 'cc -O2 -xmemalign=8s'.
2755         * lib/random_r.c: Include string.h, for memcpy.
2756         (get_int32, set_int32): New functions.
2757         (__srandom_r, __initstate_r, __setstate_r, __random_r):
2758         Use them to avoid assumption that state pointer is aligned.
2759         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
2760         * tests/test-random_r.c (test_failed): New function.
2761         (main): Use it, to test for alignment bugs.
2763         random_r: omit unnecessary include
2764         * lib/random_r.c: Do not include limits.h.
2766         random, random_r: merge from glibc
2767         * lib/random.c, lib/random_r.c:
2768         Include libc-config.h if !_LIBC, not config.h unilaterally.
2769         * lib/random.c:
2770         Do not include stdint.h or time.h; not needed.
2771         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
2772         (unsafe_state): Rename from generator.  All uses changed.
2773         Use C99-style initializers.
2774         (__random, __srandom, __initstate, __setstate): Rename from
2775         non-underscored version, but define it to non-underscored version
2776         on Gnulib.  Add a lock.
2777         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
2778         Likewise.
2779         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
2780         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
2781         (__srandom_r): Use int32_t instead of long int where int32_t will do.
2782         (__random_r): Use uint32 to fix glibc bug 17343.
2783         * modules/random, modules/random_r (Depends-on): Add libc-config.
2784         Depend on stdint only if $HAVE_RANDOM = 0.
2786 2018-06-19  Jim Meyering  <meyering@fb.com>
2788         README-release: also run any check-very-expensive tests
2789         * top/README-release: Adjust instructions so they run the
2790         check-very-expensive tests when there is such a target.
2792 2018-06-18  Bruno Haible  <bruno@clisp.org>
2794         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
2795         * m4/pthread_rwlock_rdlock.m4: Add comment.
2796         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
2797         are reader-preferring in glibc.
2798         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
2799         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
2801 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2803         crypto: use byteswap
2804         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2805         * lib/sm3.c: Include <byteswap.h>.
2806         (SWAP): Use its macros rather than reinventing the wheel.
2807         * modules/crypto/md4, modules/crypto/md5-buffer:
2808         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
2809         * modules/crypto/sha512-buffer, modules/crypto/sm3:
2810         (Depends-on): Add byteswap.
2812 2018-06-17  Pádraig Brady  <P@draigBrady.com>
2814         gendocs.sh: fix support for legacy --texi2html
2815         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
2816         to the default makeinfo invocation.
2817         Reported by Bruce Korb
2819 2018-06-17  Bruno Haible  <bruno@clisp.org>
2821         gettext po infrastructure: Update from current gettext git.
2822         Reported by Akim Demaille <akim@lrde.epita.fr>.
2823         * build-aux/po/Makefile.in.in: Update from current gettext git.
2824         * build-aux/po/remove-potcdate.sin: Likewise.
2825         * config/srclist.txt: Temporarily disable sync for these files.
2827 2018-06-17  Bruno Haible  <bruno@clisp.org>
2829         getloadavg: Return 0 on Windows without Cygwin.
2830         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
2832 2018-06-17  Paul Smith  <psmith@gnu.org>
2834         getloadavg: Allow building on Windows without Cygwin
2835         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
2836         * m4/getloadavg.m4: Check for unistd.h.
2838 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
2840         Port crypto/af_alg to GCC 4.8.4
2841         Problem reported by Peter Simons in:
2842         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
2843         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
2845 2018-05-27  Colin Watson  <cjwatson@debian.org>
2847         bootstrap: document source fetching in --help
2848         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
2850 2018-04-09  Colin Watson  <cjwatson@debian.org>
2852         bootstrap: allow non-submodule control of gnulib
2853         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
2854         bootstrap.conf when fetching gnulib using "git clone" or via
2855         GNULIB_SRCDIR.
2857 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2859         crypto: omit stream ops Emacs doesn’t need
2860         * lib/md5.c (md5_stream):
2861         * lib/sha1.c (sha1_stream):
2862         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
2863         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
2864         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
2865         defined.  Emacs needs this, as it does not use the stream
2866         operations and doesn’t need all the af_alg stuff we’ve recently
2867         added.  Perhaps a similar change is needed to the other crypto
2868         modules, but this patch changes only those needed for Emacs.
2869         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
2870         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
2871         New modules, used by Emacs.
2872         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2873         * modules/crypto/sha512: Rewrite to depend on the new modules.
2875 2018-05-20  Pádraig Brady  <P@draigBrady.com>
2877         fts: avoid a memory leak edge case
2878         * lib/fts.c (fts_open): Set an appropriate fts_level
2879         so that an immediate fts_close() will free the allocation.
2880         * tests/test-fts.c (fts_dealloc): Add a test case which
2881         will trigger under valgrind or address sanitizer.
2882         Fixes https://bugs.gnu.org/31439
2884 2018-05-20  Bruno Haible  <bruno@clisp.org>
2886         wcwidth tests: Fix link error.
2887         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
2888         $(LIBUNISTRING).
2890 2018-05-20  Bruno Haible  <bruno@clisp.org>
2892         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
2893         * modules/regex (Files): Add m4/glibc21.m4.
2895 2018-05-20  Bruno Haible  <bruno@clisp.org>
2897         localcharset: Optimize.
2898         * lib/localcharset.c (alias_table): Comment out no-op mappings for
2899         platforms where these don't matter. This reduces the table size,
2900         which in turn reduces the lookup time.
2902 2018-05-19  Bruno Haible  <bruno@clisp.org>
2904         localcharset: Map the locale encodings found in newer OSes.
2905         * lib/localcharset.c (alias_table): Add mapping for locale encodings
2906         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
2907         IRIX 6.5, Minix 3.3.
2908         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
2910 2018-05-19  Bruno Haible  <bruno@clisp.org>
2912         localcharset: Move mapping tables into the code. Use a binary search.
2913         * lib/localcharset.h: Document the GNU canonical names for character
2914         encodings here.
2915         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
2916         relocatable.h, configmake.h.
2917         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
2918         macros.
2919         (charset_aliases): Remove variable.
2920         (get_charset_aliases): Remove function.
2921         (struct table_entry): New type.
2922         (alias_table, locale_table): New constants.
2923         (locale_charset): Use the alias_table or locale_table to get the
2924         canonicalized encoding name.
2925         * lib/config.charset: Remove file.
2926         * lib/ref-add.sin: Remove file.
2927         * lib/ref-del.sin: Remove file.
2928         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
2929         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
2930         * modules/localcharset (Notice): Remove.
2931         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
2932         glibc21.m4.
2933         (Depends-on): Remove configmake.
2934         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
2935         (Makefile.am): Simplify.
2936         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
2938 2018-05-19  Bruno Haible  <bruno@clisp.org>
2940         localcharset: Add a manual test.
2941         * tests/test-localcharset.c: New file.
2942         * modules/localcharset-tests: New file.
2944 2018-05-19  Bruno Haible  <bruno@clisp.org>
2946         localcharset: Remove support for obsolete platforms.
2947         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
2948         Mac OS X 10.2. Comment out dubious entry for Solaris.
2950 2018-05-19  Jim Meyering  <meyering@fb.com>
2952         gnupload: adjust comment
2953         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
2954         more likely we'll remove the just-added code in a year or two.
2956 2018-05-19  Bruno Haible  <bruno@clisp.org>
2958         gnupload: Fix "gpg-agent is not available in this session" error.
2959         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
2961 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2963         crypto/af_alg: fix --help
2964         * m4/af_alg.m4: Avoid spurious newline in --help output.
2966 2018-05-13  Bruno Haible  <bruno@clisp.org>
2968         nl_langinfo: Fix compilation error on Android.
2969         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
2970         INT_CURR_SYMBOL, etc. only if these items are defined.
2972 2018-05-13  Bruno Haible  <bruno@clisp.org>
2974         truncate: Fix compilation error on Android.
2975         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
2976         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
2977         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
2978         HAVE_TRUNCATE.
2979         * modules/truncate: Likewise.
2980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
2981         not HAVE_TRUNCATE.
2982         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
2983         HAVE_TRUNCATE.
2984         * doc/posix-functions/truncate.texi: Mention the issue.
2986 2018-05-13  Bruno Haible  <bruno@clisp.org>
2988         pthread: Fix compilation error on Android.
2989         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
2990         recursive inclusion of this file.
2992 2018-05-13  Bruno Haible  <bruno@clisp.org>
2994         posix_spawn: Fix compilation error on Android.
2995         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
2996         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
2997         (posix_spawn_file_actions_t): Consider also the case
2998         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
3000 2018-05-13  Bruno Haible  <bruno@clisp.org>
3002         tsearch: Move from K&R C to ANSI C.
3003         * lib/tsearch.c (tfind): Convert definition to ANSI C.
3005 2018-05-13  Bruno Haible  <bruno@clisp.org>
3007         tsearch: Fix compilation error on Android.
3008         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
3009         is 0.
3010         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
3011         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
3012         GNULIB_defined_tsearch is true.
3013         (twalk): Define only if GNULIB_defined_twalk is true.
3014         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
3015         is 0.
3016         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
3017         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
3018         * modules/search (Makefile.am): Substitute HAVE_TWALK.
3020 2018-05-13  Bruno Haible  <bruno@clisp.org>
3022         imaxdiv: Fix compilation error on Android.
3023         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
3024         is not defined.
3025         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
3026         HAVE_DECL_IMAXDIV, is 0.
3027         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
3028         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
3030 2018-05-13  Bruno Haible  <bruno@clisp.org>
3032         Support selective inclusion mechanism of recent mingw.org header files.
3033         Reported by Eli Zaretskii <eliz@gnu.org>.
3034         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
3035         __need_ssize_t, or __need_time_t is defined, just include the system's
3036         <sys/types.h>.
3037         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
3038         include the system's <locale.h>.
3040 2018-05-13  Bruno Haible  <bruno@clisp.org>
3042         Avoid compilation error due to 'mmap' on Android.
3043         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
3044         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
3045         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
3046         Undefine on Android.
3048 2018-05-13  Bruno Haible  <bruno@clisp.org>
3050         Add cross-compilation guesses for Linux systems without glibc.
3051         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
3052         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3053         * m4/link.m4 (gl_FUNC_LINK): Likewise.
3054         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3055         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
3056         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3057         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
3058         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
3059         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3060         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
3061         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3062         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3063         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
3064         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3065         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3066         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
3067         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3068         * m4/utimens.m4 (gl_UTIMENS): Likewise.
3070 2018-05-13  Bruno Haible  <bruno@clisp.org>
3072         getpagesize: Fix compilation error on Android.
3073         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
3074         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
3075         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
3076         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
3077         HAVE_GETPAGESIZE accordingly.
3078         * modules/getcwd (Files): Add m4/getpagesize.m4.
3080 2018-05-13  Bruno Haible  <bruno@clisp.org>
3082         tcgetsid: Fix compilation error on Android.
3083         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
3084         AC_CHECK_FUNC.
3086 2018-05-13  Bruno Haible  <bruno@clisp.org>
3088         getpass: Fix configure test for Android.
3089         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
3090         AC_CHECK_FUNC.
3092 2018-05-13  Bruno Haible  <bruno@clisp.org>
3094         ffs: Fix compilation error on Android.
3095         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
3097 2018-05-13  Bruno Haible  <bruno@clisp.org>
3099         mkfifo: Fix compilation error on Android.
3100         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
3101         AC_CHECK_FUNC.
3103 2018-05-13  Bruno Haible  <bruno@clisp.org>
3105         c-strtod: Fix configure test for Android.
3106         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
3107         AC_CHECK_FUNC.
3109 2018-05-13  Bruno Haible  <bruno@clisp.org>
3111         random: Fix compilation error on Android.
3112         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
3113         AC_CHECK_FUNC.
3115 2018-05-13  Bruno Haible  <bruno@clisp.org>
3117         grantpt: Fix compilation error on Android.
3118         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
3119         AC_CHECK_FUNC.
3121 2018-05-13  Bruno Haible  <bruno@clisp.org>
3123         stdioext: Fix compilation errors with newer Android headers.
3124         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
3125         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
3126         fallbacks for Android.
3127         * lib/fpending.c: Update comments.
3128         * lib/fpurge.c: Likewise.
3129         * lib/freadable.h: Likewise.
3130         * lib/freadable.c: Likewise.
3131         * lib/freadahead.c: Likewise.
3132         * lib/freading.h: Likewise.
3133         * lib/freadptr.c: Likewise.
3134         * lib/fseterr.c: Likewise.
3135         * lib/fwritable.h: Likewise.
3136         * lib/fwritable.c: Likewise.
3137         * lib/fwriting.h: Likewise.
3138         * lib/fwriting.c: Likewise.
3140 2018-05-13  Bruno Haible  <bruno@clisp.org>
3142         doc: Add info about Android versions 2.0 to 8.1.
3143         * doc/**/*.texi: Add info about functions in all released versions of
3144         Bionic.
3146 2018-05-12  Bruno Haible  <bruno@clisp.org>
3148         fseeko: On mingw, don't use the hidden function _fseeki64.
3149         Reported by Eli Zaretskii <eliz@gnu.org>.
3150         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
3151         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
3153 2018-05-12  Bruno Haible  <bruno@clisp.org>
3155         glob: Choose 'dirent_type' in a way that works better on mingw.
3156         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
3157         * lib/glob.c (dirent_type): Define as uint_fast32_t.
3159 2018-05-12  Bruno Haible  <bruno@clisp.org>
3161         execute, spawn-pipe: Avoid warning about redefining 'close'.
3162         Reported by Eli Zaretskii <eliz@gnu.org>.
3163         * lib/execute.c: Undefine 'close' before redefining it.
3164         * lib/spawn-pipe.c: Likewise.
3166 2018-05-12  Bruno Haible  <bruno@clisp.org>
3168         nanosleep: Avoid test failure on mingw when it has nanosleep.
3169         Reported by Eli Zaretskii <eliz@gnu.org>.
3170         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
3171         If it does not exist, use a simpler test program that does not call
3172         alarm().
3174 2018-05-10  Bruno Haible  <bruno@clisp.org>
3176         lock, cond, thread, tls: Use a different symbol as libpthread witness.
3177         Reported by Devin Hussey <husseydevin@gmail.com>.
3178         Based on a patch by Paul Eggert.
3179         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
3180         as witness of libpthread.
3181         * lib/glthread/cond.h (pthread_in_use): Likewise.
3182         * lib/glthread/thread.h (pthread_in_use): Likewise.
3183         * lib/glthread/tls.h (pthread_in_use): Likewise.
3185 2018-05-10  Bruno Haible  <bruno@clisp.org>
3187         cond tests: Fix compilation error on Solaris.
3188         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
3189         macro.
3191 2018-05-10  Bruno Haible  <bruno@clisp.org>
3193         doc: Add partial info about Android 4.3.
3194         * doc/*-functions/*.texi: Add info about functions that were added
3195         to Bionic between Android 4.3 and Android 9.0.
3197 2018-05-10  Bruno Haible  <bruno@clisp.org>
3199         doc: Add info about Android 9.0.
3200         * doc/**/*.texi: Add info about functions and headers in Bionic from
3201         Android 9.0.
3203 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3205         af_alg: fix my typo in afalg_buffer
3206         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
3207         (afalg_stream): Simplify and avoid the need for a runtime test
3208         at the end.
3210         af_alg: recover better from crypto failures
3211         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
3212         input stream is seekable, by repositioning the stream back to
3213         where it was, possibly by just calling sendfile with an offset
3214         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
3215         cases, which lets our callers try again with user-mode code.
3216         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
3217         instead of on fflush and lseek.
3219         af_alg: distiguish I/O errors better
3220         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
3221         not -EIO, if it’s OK for the caller to try again with user-mode code.
3222         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
3223         some other error number) if fflush fails, as the caller should not
3224         try again that case.
3226         af_alg: avoid gotos
3227         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
3228         gotos, as they were a source of unreliability and made the code a
3229         bit harder to follow.
3231         af_alg: don’t leak file descriptors into children
3232         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
3233         This code should be compiled only on recent GNU/Linux platforms
3234         so we shouldn’t have to also depend on the accept4 module.
3236         af_alg: coalesce socket creation
3237         * lib/af_alg.c (alg_socket): New function.
3238         (afalg_buffer, afalg_stream): Use it.  This avoids some
3239         code duplication and gotos.
3241         af_alg: fix file descriptor leak
3242         * lib/af_alg.c (afalg_stream): Close leak.
3244         af_alg: Pacify --enable-gcc-warnings on GCC 8
3245         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
3246         and checking to pacify gcc -Wjump-misses-init on GCC 8.
3248 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3250         af_alg: Pacify --enable-gcc-warnings
3251         Problem reported by Assaf Gordon in:
3252         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
3253         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
3254         gcc -Wjump-misses-init.
3255         * lib/sha512.c (shaxxx_stream): Now static.
3257 2018-05-06  Bruno Haible  <bruno@clisp.org>
3259         af_alg: Add ability to use Linux kernel crypto API on data in memory.
3260         * lib/af_alg.h (afalg_buffer): New declaration.
3261         * lib/af_alg.c (afalg_buffer): New function.
3263 2018-05-06  Bruno Haible  <bruno@clisp.org>
3265         af_alg: Avoid warnings.
3266         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
3267         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
3269 2018-05-06  Bruno Haible  <bruno@clisp.org>
3271         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
3272         * tests/bench-digest.h: New file.
3273         * tests/bench-md5.c: New file.
3274         * tests/bench-sha1.c: New file.
3275         * tests/bench-sha224.c: New file.
3276         * tests/bench-sha256.c: New file.
3277         * tests/bench-sha384.c: New file.
3278         * tests/bench-sha512.c: New file.
3279         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
3280         tests/bench-digest.h.
3281         (Depends-on): Add getrusage, gettimeofday.
3282         (Makefile.am): Add variables to build bench-md5.
3283         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
3284         tests/bench-digest.h.
3285         (Depends-on): Add getrusage, gettimeofday.
3286         (Makefile.am): Add variables to build bench-sha1.
3287         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
3288         tests/bench-sha256.c, tests/bench-digest.h.
3289         (Depends-on): Add getrusage, gettimeofday.
3290         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
3291         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
3292         tests/bench-sha512.c, tests/bench-digest.h.
3293         (Depends-on): Add getrusage, gettimeofday.
3294         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
3296 2018-05-06  Bruno Haible  <bruno@clisp.org>
3298         af_alg: Fix a resource leak.
3299         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
3300         New local variable 'result'.
3302 2018-05-06  Bruno Haible  <bruno@clisp.org>
3304         af_alg: Fix bug with streams that are not at position 0.
3305         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
3306         assume that the stream is positioned at position 0.
3307         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
3308         of the stream.
3309         * lib/md5.h (md5_stream): Likewise.
3310         * lib/sha1.h (sha1_stream): Likewise.
3311         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
3312         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
3313         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
3315         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
3316         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
3317         stream that is not positioned at the beginning.
3319 2018-05-06  Bruno Haible  <bruno@clisp.org>
3321         af_alg: Add configure option to enable/disable use of Linux crypto API.
3322         Suggested by Assaf Gordon <assafgordon@gmail.com>.
3323         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
3324         USE_LINUX_CRYPTO_API.
3325         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
3326         * lib/af_alg.c: Likewise.
3328 2018-05-06  Bruno Haible  <bruno@clisp.org>
3330         Followup to 'af_alg: New module.'.
3331         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
3332         * modules/crypto/sha1 (Depends-on): Likewise.
3333         * modules/crypto/sha256 (Depends-on): Likewise.
3334         * modules/crypto/sha512 (Depends-on): Likewise.
3336 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3338         crypto/{md5,sha1,sha256,sha512}: simplify
3339         * lib/md5.c (md5_stream):
3340         * lib/sha1.c (sha1_stream):
3341         * lib/sha256.c (shaxxx_stream):
3342         Simplify, partly by assuming C99.
3343         * lib/sha256.c (shaxxx_stream):
3344         New function, which implements both sha256 and sha224.
3345         Simplify, partly by assuming C99.
3346         (sha256_stream, sha224_stream):
3347         Use it to avoid code duplication, removing a FIXME.
3348         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
3349         Likewise.
3351         af_alg: Improve comments.
3352         * lib/af_alg.h: Use imperatives and tighten up wording.
3354 2018-05-05  Bruno Haible  <bruno@clisp.org>
3356         af_alg: Improve comments.
3357         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
3359 2018-05-05  Bruno Haible  <bruno@clisp.org>
3361         af_alg: New module.
3362         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
3363         * lib/af_alg.c: Include "af_alg.h" before the other header files.
3364         * lib/md5.c: Include "af_alg.h" unconditionally.
3365         (md5_stream): Invoke afalg_stream unconditionally.
3366         * lib/sha1.c: Include "af_alg.h" unconditionally.
3367         (sha1_stream): Invoke afalg_stream unconditionally.
3368         * lib/sha256.c: Include "af_alg.h" unconditionally.
3369         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
3370         * lib/sha512.c: Include "af_alg.h" unconditionally.
3371         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
3372         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
3373         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
3374         * modules/crypto/af_alg: New file.
3375         * modules/crypto/md5 (Files): Remove files that are now in the
3376         'crypto/af_alg' module.
3377         (Depends-on): Add crypto/af_alg.
3378         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3379         (Makefile.am): Don't mention af_alg.c here.
3380         * modules/crypto/sha1 (Files): Remove files that are now in the
3381         'crypto/af_alg' module.
3382         (Depends-on): Add crypto/af_alg.
3383         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3384         (Makefile.am): Don't mention af_alg.c here.
3385         * modules/crypto/sha256 (Files): Remove files that are now in the
3386         'crypto/af_alg' module.
3387         (Depends-on): Add crypto/af_alg.
3388         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3389         (Makefile.am): Don't mention af_alg.c here.
3390         * modules/crypto/sha512 (Files): Remove files that are now in the
3391         'crypto/af_alg' module.
3392         (Depends-on): Add crypto/af_alg.
3393         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3394         (Makefile.am): Don't mention af_alg.c here.
3396 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3398         crypto tests: pacify GCC
3399         * tests/test-digest.h (test_digest_on_files):
3400         Don’t assume digest size fits in int (!).
3402         af_alg: minor style improvements
3403         * lib/af_alg.c (afalg_stream): Prefer C99 style
3404         decl-after-statement, since we’re already assuming C99.  Clarify
3405         by strengthening the bind test and omit unnecessary assignment.
3407 2018-05-05  Bruno Haible  <bruno@clisp.org>
3409         af_alg: Fix bug on empty files.
3410         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
3411         stream is empty.
3413 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3415         sys-limits.h: new file for crypto and safe I/O
3416         * lib/af_alg.c: Include sys-limits.h.
3417         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
3418         (afalg_stream): Also reject negative sizes for sendfile; they
3419         should not happen and the code is a bit cleaner and faster this way.
3420         * lib/safe-read.c: Include sys-limits.h.
3421         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
3422         * lib/sys-limits.h: New file, with values and commentary derived
3423         from the old safe-read.c and from GNU Emacs sysdep.c.
3424         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3425         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
3426         Add lib/sys-limits.h to Files section.
3428 2018-05-05  Bruno Haible  <bruno@clisp.org>
3430         af_alg: Improve function signature.
3431         * lib/af_alg.h (afalg_stream): Swap second and third argument.
3432         * lib/af_alg.c (afalg_stream): Likewise.
3433         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
3435 2018-05-05  Bruno Haible  <bruno@clisp.org>
3437         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
3438         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
3439         * modules/crypto/sha1 (Depends-on): Likewise.
3440         * modules/crypto/sha256 (Depends-on): Likewise.
3441         * modules/crypto/sha512 (Depends-on): Likewise.
3443 2018-05-05  Bruno Haible  <bruno@clisp.org>
3445         crypto/{md5,sha1,sha256,sha512}: Fix module description.
3446         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
3447         * modules/crypto/sha1 (Depends-on): Likewise.
3448         * modules/crypto/sha256 (Depends-on): Likewise.
3449         * modules/crypto/sha512 (Depends-on): Likewise.
3451 2018-05-05  Bruno Haible  <bruno@clisp.org>
3453         af_alg: Add documentation.
3454         * lib/af_alg.h: Add comments.
3456 2018-05-05  Bruno Haible  <bruno@clisp.org>
3458         sha512: Add tests.
3459         * tests/test-sha512.c: New file.
3460         * modules/crypto/sha512-tests: New file.
3462 2018-05-05  Bruno Haible  <bruno@clisp.org>
3464         sha256: Add tests.
3465         * tests/test-sha256.c: New file.
3466         * modules/crypto/sha256-tests: New file.
3468 2018-05-05  Bruno Haible  <bruno@clisp.org>
3470         sha1 tests: Add test for sha1_stream.
3471         * tests/test-sha1.c: Include test-digest.h.
3472         (main): Invoke test_digest_on_files on 'sha1_stream'.
3473         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
3475 2018-05-05  Bruno Haible  <bruno@clisp.org>
3477         md5 tests: Add test for md5_stream.
3478         * tests/test-digest.h: New file.
3479         * tests/test-md5.c: Include test-digest.h.
3480         (main): Invoke test_digest_on_files on 'md5_stream'.
3481         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
3483 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3485         md5sum: Use AF_ALG when available.
3486         * lib/md5.c: Include af_alg.h.
3487         (md5_stream): Use afalg_stream when available.
3488         * modules/crypto/md5 (Files): Add the af_alg files.
3489         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3490         (Makefile.am): Add af_alg.c.
3492 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3494         sha512sum: Use AF_ALG when available.
3495         * lib/sha512.c: Include af_alg.h.
3496         (sha512_stream, sha384_stream): Use afalg_stream when available.
3497         * modules/crypto/sha512 (Files): Add the af_alg files.
3498         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3499         (Makefile.am): Add af_alg.c.
3501 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3503         sha256sum: Use AF_ALG when available.
3504         * lib/sha256.c: Include af_alg.h.
3505         (sha256_stream, sha224_stream): Use afalg_stream when available.
3506         * modules/crypto/sha256 (Files): Add the af_alg files.
3507         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3508         (Makefile.am): Add af_alg.c.
3510 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3512         sha1sum: Use AF_ALG when available.
3513         * lib/af_alg.h: New file.
3514         * lib/af_alg.c: New file.
3515         * lib/sha1.c: Include af_alg.h.
3516         (sha1_stream): Use afalg_stream when available.
3517         * m4/linux-if-alg.m4: New file.
3518         * modules/crypto/sha1 (Files): Add the new files.
3519         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3520         (Makefile.am): Add af_alg.c.
3522 2018-05-05  Bruno Haible  <bruno@clisp.org>
3524         all: Replace more http URLs by https URLs.
3525         * lib/localename.c: Use https: URL.
3526         * lib/timespec.h: Likewise.
3528 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3530         maint: port more modules to GCC 8
3531         * lib/dirname.h (base_name):
3532         * lib/exclude.h (new_exclude):
3533         * lib/xstrndup.h (xstrndup):
3534         Add malloc attribute.
3535         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
3536         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
3537         This pacifies GCC 8.
3538         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3539         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
3541 2018-05-03  Bruno Haible  <bruno@clisp.org>
3543         Simplify code. Drop support for Borland C++ on Windows.
3544         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
3545         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
3546         'defined _WIN32'.
3547         * lib/canonicalize-lgpl.c: Likewise.
3548         * lib/classpath.c: Likewise.
3549         * lib/clean-temp.c: Likewise.
3550         * lib/csharpexec.c: Likewise.
3551         * lib/ctime.c: Likewise.
3552         * lib/dosname.h: Likewise.
3553         * lib/dup2.c: Likewise.
3554         * lib/errno.in.h: Likewise.
3555         * lib/error.c: Likewise.
3556         * lib/euidaccess.c: Likewise.
3557         * lib/execute.c: Likewise.
3558         * lib/fcntl.in.h: Likewise.
3559         * lib/fcntl.c: Likewise.
3560         * lib/filename.h: Likewise.
3561         * lib/findprog.c: Likewise.
3562         * lib/flock.c: Likewise.
3563         * lib/fopen.c: Likewise.
3564         * lib/freopen.c: Likewise.
3565         * lib/fstat.c: Likewise.
3566         * lib/fsync.c: Likewise.
3567         * lib/gc-gnulib.c: Likewise.
3568         * lib/get-rusage-data.c: Likewise.
3569         * lib/getaddrinfo.c: Likewise.
3570         * lib/getdelim.c: Likewise.
3571         * lib/getdtablesize.c: Likewise.
3572         * lib/gethostname.c: Likewise.
3573         * lib/getlogin.c: Likewise.
3574         * lib/getlogin_r.c: Likewise.
3575         * lib/getopt.c: Likewise.
3576         * lib/getpagesize.c: Likewise.
3577         * lib/getpass.c: Likewise.
3578         * lib/getrusage.c: Likewise.
3579         * lib/gettimeofday.c: Likewise.
3580         * lib/glob.c: Likewise.
3581         * lib/inttypes.in.h: Likewise.
3582         * lib/isapipe.c: Likewise.
3583         * lib/javaexec.c: Likewise.
3584         * lib/link.c: Likewise.
3585         * lib/localcharset.c: Likewise.
3586         * lib/localename.h: Likewise.
3587         * lib/localename.c: Likewise.
3588         * lib/localtime.c: Likewise.
3589         * lib/lseek.c: Likewise.
3590         * lib/mbsinit.c: Likewise.
3591         * lib/mkdir.c: Likewise.
3592         * lib/msvc-nothrow.h: Likewise.
3593         * lib/nanosleep.c: Likewise.
3594         * lib/nl_langinfo.c: Likewise.
3595         * lib/nonblocking.c: Likewise.
3596         * lib/nproc.c: Likewise.
3597         * lib/open.c: Likewise.
3598         * lib/openpty.c: Likewise.
3599         * lib/pathmax.h: Likewise.
3600         * lib/pipe-filter-aux.c: Likewise.
3601         * lib/pipe-filter-gi.c: Likewise.
3602         * lib/pipe-filter-ii.c: Likewise.
3603         * lib/pipe.c: Likewise.
3604         * lib/pipe2.c: Likewise.
3605         * lib/poll.c: Likewise.
3606         * lib/popen.c: Likewise.
3607         * lib/posix_openpt.c: Likewise.
3608         * lib/printf-parse.c: Likewise.
3609         * lib/progreloc.c: Likewise.
3610         * lib/putenv.c: Likewise.
3611         * lib/read.c: Likewise.
3612         * lib/relocatable.c: Likewise.
3613         * lib/rename.c: Likewise.
3614         * lib/same-inode.h: Likewise.
3615         * lib/secure_getenv.c: Likewise.
3616         * lib/select.c: Likewise.
3617         * lib/sethostname.c: Likewise.
3618         * lib/setlocale.c: Likewise.
3619         * lib/sigaction.c: Likewise.
3620         * lib/sigprocmask.c: Likewise.
3621         * lib/sleep.c: Likewise.
3622         * lib/spawn-pipe.h: Likewise.
3623         * lib/spawn-pipe.c: Likewise.
3624         * lib/spawni.c: Likewise.
3625         * lib/stat-time.h: Likewise.
3626         * lib/stat-w32.c: Likewise.
3627         * lib/stat.c: Likewise.
3628         * lib/stdio.in.h: Likewise.
3629         * lib/stdio-impl.h: Likewise.
3630         * lib/stdio-read.c: Likewise.
3631         * lib/stdio-write.c: Likewise.
3632         * lib/stdlib.in.h: Likewise.
3633         * lib/strerror_r.c: Likewise.
3634         * lib/strftime-fixes.c: Likewise.
3635         * lib/sys_stat.in.h: Likewise.
3636         * lib/sys_types.in.h: Likewise.
3637         * lib/sys_wait.in.h : Likewise.
3638         * lib/system-quote.h: Likewise.
3639         * lib/system-quote.c: Likewise.
3640         * lib/tmpdir.c: Likewise.
3641         * lib/tzset.c: Likewise.
3642         * lib/uname.c: Likewise.
3643         * lib/unistd.in.h: Likewise.
3644         * lib/utime.in.h: Likewise.
3645         * lib/utime.c: Likewise.
3646         * lib/utimecmp.c: Likewise.
3647         * lib/utimens.c: Likewise.
3648         * lib/vasnprintf.c: Likewise.
3649         * lib/vma-iter.h: Likewise.
3650         * lib/vma-iter.c: Likewise.
3651         * lib/wait-process.c: Likewise.
3652         * lib/wcsftime.c: Likewise.
3653         * lib/wctype.in.h: Likewise.
3654         * lib/write.c: Likewise.
3655         * tests/nap.h: Likewise.
3656         * tests/test-cloexec.c: Likewise.
3657         * tests/test-dup-safer.c: Likewise.
3658         * tests/test-dup2.c: Likewise.
3659         * tests/test-dup3.c: Likewise.
3660         * tests/test-fcntl.c: Likewise.
3661         * tests/test-get-rusage-data.c: Likewise.
3662         * tests/test-getaddrinfo.c: Likewise.
3663         * tests/test-getlogin.h: Likewise.
3664         * tests/test-isatty.c: Likewise.
3665         * tests/test-localename.c: Likewise.
3666         * tests/test-mbrtowc-w32.c: Likewise.
3667         * tests/test-nonblocking.c: Likewise.
3668         * tests/test-nonblocking-pipe-main.c: Likewise.
3669         * tests/test-nonblocking-socket-main.c: Likewise.
3670         * tests/test-nonblocking-socket.h: Likewise.
3671         * tests/test-pipe.c: Likewise.
3672         * tests/test-pipe2.c: Likewise.
3673         * tests/test-poll.c: Likewise.
3674         * tests/test-pthread_sigmask1.c: Likewise.
3675         * tests/test-select.h: Likewise.
3676         * tests/test-sethostname2.c: Likewise.
3677         * tests/test-sigprocmask.c: Likewise.
3678         * tests/test-spawn-pipe-child.c: Likewise.
3679         * tests/test-stat-time.c: Likewise.
3680         * tests/test-system-quote-main.c: Likewise.
3681         * tests/test-utimens-common.h: Likewise.
3682         * tests/test-wcrtomb-w32.c: Likewise.
3683         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
3684         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
3685         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
3686         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
3687         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
3688         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3689         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3690         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3691         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3692         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
3693         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
3694         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
3695         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3696         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3697         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
3698         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3700 2018-05-02  Bruno Haible  <bruno@clisp.org>
3702         localename: Fix test failures on mingw.
3703         * lib/localename.c (gl_locale_name_thread): Remove code specific to
3704         native Windows.
3705         (gl_locale_name_posix): Move code specific to native Windows here.
3706         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
3707         Accept result without charset suffix, as it appears on mingw.
3709 2018-04-28  Paul Smith  <psmith@gnu.org>
3711         bootstrap: Avoid gnulib operations if not needed
3712         * build-aux/bootstrap: Remove unused variable gnulib_mk.
3713         Set $gnulib_extra_files early so it can be overridden in .conf.
3714         Remove redundant --import flag from $gnulib_tool_options.
3715         Set $use_gnulib to false if no gnulib modules or files are needed.
3716         If $use_gnulib is false, don't do anything related to gnulib.
3717         A lot of this is just whitespace (indentation) changes.
3719 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
3721         manywarnings: port to GCC 8.0
3722         * build-aux/gcc-warning.spec: Add -Wcatch-value,
3723         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
3724         fact that the GCC help message now mentions operands for
3725         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
3726         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
3727         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
3728         and -Wunused-const-variable.
3729         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
3730         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
3731         -Wmissing-attributes, -Wmultistatement-macros,
3732         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
3733         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
3735 2018-04-24  Bruno Haible  <bruno@clisp.org>
3737         sys_socket: Make SO_REUSEPORT available across platforms.
3738         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3739         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
3740         * doc/posix-headers/sys_socket.texi: Mention the issue.
3741         * tests/test-poll.c (SO_REUSEPORT): Remove.
3742         * tests/test-select.h: Include <sys/socket.h>.
3743         (SO_REUSEPORT): Remove.
3744         * modules/select-tests (Depends-on): Add 'sys_socket'.
3746 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
3748         localcharset: short-circuit the search for an alias on a Mac
3749         * lib/localcharset.c (get_charset_aliases): Add a tautological
3750         UTF-8 entry to speed up the search for this case.
3751         Most machines default to a UTF-8 locale nowadays, so begin the
3752         list of aliases with a dummy UTF-8 entry so it will be found
3753         immediately and a time-consuming search through the rest of
3754         the list is avoided.
3756 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
3758         fts: add comment
3759         * lib/fts.c (fts_build): Explain why ==, not >.
3760         See remark by Bernhard Voelker in:
3761         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
3763         fts: fix bug in find across filesystems
3764         This fixes a bug I introduced last summer.
3765         Problem reported by Kamil Dudka in:
3766         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
3767         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
3768         (leaf_optimization):
3769         New arg for file descriptor.  All callers changed.
3770         (fts_build): Check for whether inodes should be sorted
3771         before closing the directory.
3773 2018-04-07  Bruno Haible  <bruno@clisp.org>
3775         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
3776         Reported by Genki Sky <sky@genki.is>.
3777         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
3778         version 0.9.10 or newer.
3779         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
3780         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
3781         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
3782         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
3783         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
3785 2018-04-07  Bruno Haible  <bruno@clisp.org>
3787         execute: Update comment.
3788         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
3790 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3792         fts: treat CIFS like NFS
3793         Problem reported by Kamil Dudka in:
3794         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
3795         * lib/fts.c (S_MAGIC_CIFS): New macro.
3796         (dirent_inode_sort_may_be_useful, leaf_optimization):
3797         Treat CIFS like NFS.
3799 2018-03-28  Bruno Haible  <bruno@clisp.org>
3801         c-stack: Fix possible build failure on some platforms.
3802         * lib/c-stack.c (die): Define whenever this function is referenced.
3804 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
3806         time_rz: fix workaround for Mac OS X 10.6 infloop
3807         Problems reported by Charles A. Roelli (Bug#27736#117).
3808         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
3809         Also, discard output, which clutters the 'configure' log.
3811 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
3813         havelib: port to Solaris 10 /bin/sh
3814         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
3815         instead of '! test EXPR'.
3817 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
3819         time_rz: work around Mac OS X 10.6 infloop
3820         * doc/posix-functions/localtime.texi:
3821         * doc/posix-functions/localtime_r.texi: Mention the bug.
3822         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
3823         better to fix localtime and localtime_r instead, but that would be
3824         more work and is not needed to fix the Emacs problem.
3825         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
3827 2018-03-24  Jim Meyering  <meyering@fb.com>
3829         test-version-etc.sh: don't use diff directly: use init.sh's compare
3830         We'd rather not sacrifice readable "diff -u" output even for
3831         "diff -c" output (not supported by busybox) or for even less
3832         readable ed-style "diff" output.  So use init.sh's compare function
3833         * tests/test-version-etc.sh: Source init.sh and add "." to path.
3834         Remove "./" from invocation of test-version-etc, so we use path.
3835         And s/diff/compare/.
3836         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
3837         to get init.sh.
3838         Prompted by Eric Blake's comments in
3839         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
3841 2018-03-24  Bruno Haible  <bruno@clisp.org>
3843         javacomp-script, javacomp: Add support for Java 10.
3844         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
3845         target-version 10.
3846         * lib/javaversion.h: Update comments.
3847         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
3848         source_version_index, get_goodcode_snippet, get_failcode_snippet,
3849         TARGET_VERSION_BOUND, target_version_index,
3850         corresponding_classfile_version): Accept source_version 10 and
3851         target_version 10.
3852         * lib/javacomp.h: Update comments accordingly.
3854 2018-03-24  Bruno Haible  <bruno@clisp.org>
3856         javacomp-script, javacomp: Update comments.
3857         * m4/javacomp.m4: Update comments regarding gcj.
3858         * lib/javacomp.h: Likewise.
3860 2018-03-24  Bruno Haible  <bruno@clisp.org>
3862         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
3863         * lib/javaversion.h: Update comments.
3864         * lib/javacomp.h: Likewise.
3865         * lib/javacomp.c (default_target_version, source_version_index,
3866         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
3867         "1.9".
3868         (TARGET_VERSION_BOUND): Bump to 9.
3869         (target_version_index, corresponding_classfile_version): Recognize "9"
3870         instead of "1.9".
3871         (get_source_version_for_javac): New function.
3872         (is_envjavac_nongcj_usable, is_javac_usable): Add
3873         source_version_for_javac argument.
3874         (compile_java_class): Determine and pass source_version_for_javac.
3875         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
3876         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
3877         appropriate.
3879 2018-03-23  Jim Meyering  <meyering@fb.com>
3881         test-version-etc.sh: port to diff without -c
3882         * tests/test-version-etc.sh: Don't use diff's -c option.
3883         This caused spurious test failure on Alpine Linux, which
3884         uses busybox's diff. Reported by Assaf Gordon in
3885         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
3887 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
3889         c-stack: port to recent GCC build
3890         Problem reported by The Fireplace (Bug#30913).
3891         * lib/c-stack.c (die): Define only if used.
3893 2018-03-20  Bruno Haible  <bruno@clisp.org>
3895         euidaccess: Port to native Windows.
3896         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
3897         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
3899 2018-03-19  Bruno Haible  <bruno@clisp.org>
3901         javacomp: Add support for Java 7, 8, 9.
3902         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
3903         source_version_index, get_goodcode_snippet, get_failcode_snippet,
3904         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
3905         and target_version 1,7, 1.8, 1.9.
3906         * lib/javacomp.h: Update comments accordingly.
3908 2018-03-19  Bruno Haible  <bruno@clisp.org>
3910         javacomp-script: Add support for Java 9.
3911         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
3912         target-version 1.9.
3914 2018-03-16  Bruno Haible  <bruno@clisp.org>
3916         glob: Don't compile replacements on recent glibc systems.
3917         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
3918         REPLACE_GLOB is 0, include the system's <glob.h> and use
3919         _GL_CXXALIAS_SYS.
3920         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
3921         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
3922         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
3923         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
3924         Remove snippet/warn-on-use.
3925         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
3926         (Makefile.am): Create glob.h always. Update list of substitutions in
3927         glob.h. Don't depend on $(WARN_ON_USE_H).
3929 2018-03-16  Bruno Haible  <bruno@clisp.org>
3931         glob: Fix link error on native Windows.
3932         * modules/glob (Depends-on): Add 'lstat'.
3934 2018-03-15  Bruno Haible  <bruno@clisp.org>
3936         glob: Fix compilation error in C++ mode.
3937         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
3939 2018-03-15  Bruno Haible  <bruno@clisp.org>
3941         host-cpu-c-abi: Support for RISC-V CPU.
3942         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
3943         riscv32 and riscv64 ABIs.
3944         References:
3945         https://github.com/riscv/riscv-toolchain-conventions
3946         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
3947         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
3949 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3951         fflush: be more paranoid about libio.h change
3952         Suggested by Eli Zaretskii in:
3953         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
3954         * lib/fbufmode.c (fbufmode):
3955         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
3956         (disable_seek_optimization, rpl_fflush):
3957         * lib/fpending.c (__fpending):
3958         * lib/fpurge.c (fpurge):
3959         * lib/freadable.c (freadable):
3960         * lib/freadahead.c (freadahead):
3961         * lib/freading.c (freading):
3962         * lib/freadptr.c (freadptr):
3963         * lib/freadseek.c (freadptrinc):
3964         * lib/fseeko.c (fseeko):
3965         * lib/fseterr.c (fseterr):
3966         * lib/fwritable.c (fwritable):
3967         * lib/fwriting.c (fwriting):
3968         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
3970 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
3972         maint: write-file-hooks -> before-save-hook
3973         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
3974         it's time to use the recommended replacement.
3975         Problem reported by Glenn Morris in:
3976         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
3977         * build-aux/announce-gen, build-aux/bootstrap:
3978         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
3979         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
3980         * build-aux/gnu-web-doc-update, build-aux/gnupload:
3981         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
3982         * build-aux/update-copyright, build-aux/useless-if-before-free:
3983         * build-aux/vc-list-files:
3984         Update hook usage for files where Gnulib is the canonical source.
3986 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
3988         binary-io: pacify gcc -Wunused-parameter
3989         Problem reported by Reuben Thomas in:
3990         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
3991         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
3992         Use _GL_UNUSED where appropriate.
3994         fflush: adjust to glibc 2.28 libio.h removal
3995         Problem reported by Daniel P. Berrangé in:
3996         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
3997         * lib/fbufmode.c (fbufmode):
3998         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
3999         (disable_seek_optimization, rpl_fflush):
4000         * lib/fpending.c (__fpending):
4001         * lib/fpurge.c (fpurge):
4002         * lib/freadable.c (freadable):
4003         * lib/freadahead.c (freadahead):
4004         * lib/freading.c (freading):
4005         * lib/freadptr.c (freadptr):
4006         * lib/freadseek.c (freadptrinc):
4007         * lib/fseeko.c (fseeko):
4008         * lib/fseterr.c (fseterr):
4009         * lib/fwritable.c (fwritable):
4010         * lib/fwriting.c (fwriting):
4011         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
4012         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
4013         Define if not already defined.
4015 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
4017         environ: fix link error on 32-bit Cygwin
4018         Problem reported for GNU Emacs by Ken Brown in:
4019         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
4020         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
4022 2018-02-24  Bruno Haible  <bruno@clisp.org>
4024         mbrtowc tests: Fix regression on glibc.
4025         Reported by Bernhard Voelker.
4026         * tests/test-mbrtowc.c (main): Fix expected value of wc.
4028 2018-02-24  Bruno Haible  <bruno@clisp.org>
4030         striconveha, uniconv/*: Avoid test failures on musl libc.
4031         * tests/iconvsupport.c: New file.
4032         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
4033         does not support the ISO-2022-JP-2 encoding.
4034         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
4035         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
4036         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
4037         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
4038         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
4039         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
4040         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
4041         (Makefile.am): Link test-striconveha with iconvsupport.o.
4042         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
4043         tests/iconvsupport.c.
4044         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
4045         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
4046         tests/iconvsupport.c.
4047         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
4048         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
4049         tests/iconvsupport.c.
4050         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
4051         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
4052         tests/iconvsupport.c.
4053         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
4054         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
4055         tests/iconvsupport.c.
4056         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
4057         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
4058         tests/iconvsupport.c.
4059         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
4061 2018-02-24  Bruno Haible  <bruno@clisp.org>
4063         localename: Add support for musl libc.
4064         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
4065         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
4066         on Linux platforms which define NL_LOCALE_NAME.
4068 2018-02-24  Bruno Haible  <bruno@clisp.org>
4070         mbrtowc tests: Don't make assumptions about the charset the C locale.
4071         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
4072         particular mapping in the C locale.
4074 2018-02-24  Bruno Haible  <bruno@clisp.org>
4076         ptsname_r: Don't expect that this function sets errno.
4077         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
4078         from ptsname_r().
4079         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
4081 2018-02-23  Bruno Haible  <bruno@clisp.org>
4083         xmalloca: pacify gcc -Wbad-function-cast
4084         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
4086 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
4088         nl_langinfo: pacify gcc -Wunused-function
4089         * lib/nl_langinfo.c (ctype_codeset): Do not define if
4090         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
4091         this case.  Without this change, I got a diagnostic when building
4092         coreutils on Fedora 27 with gcc 7.3.1 20180130.
4094         same: pacify gcc -Wunused-variable
4095         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
4096         Omit unused variable.
4098         malloca: pacify gcc -Wbad-function-cast
4099         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
4100         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
4101         To pacify GCC, I had to cast alloca’s result to some type other
4102         than void * before casting that to uintptr_t.
4104 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4106         utimecmp: new function utimecmpat
4107         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
4108         Do not include utimens.h.
4109         (utimecmpat): New function, generalizing utimecmp.
4110         (utimecmp): Now a thin layer around utimecmpat.
4111         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
4112         utimensat instead of on lstat and utimens.
4114         same: new function same_nameat
4115         * lib/same.c: Include fcntl.h.
4116         * lib/same.c (same_nameat): New function, generalizing same_name.
4117         (same_name): Now a thin layer around same_nameat.
4118         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
4119         * modules/same (Depends-on): Depend on fstatat, openat.
4121 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
4123         warnings: Add support for Objective C.
4124         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
4125         macro.
4127 2018-02-17  Bruno Haible  <bruno@clisp.org>
4129         lock: Fix test-once1 crash on FreeBSD11.
4130         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
4131         'pthread_create', not 'pthread_cancel'.
4133 2018-02-17  Bruno Haible  <bruno@clisp.org>
4135         lock: Add test of gl_once.
4136         * tests/test-once.c: New file.
4137         * modules/lock-tests (Files): Add it.
4138         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
4140 2018-02-17  Bruno Haible  <bruno@clisp.org>
4142         thread: Fix compilation error on IRIX.
4143         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
4144         needed; include it outside the C++ extern "C" {} block.
4145         * doc/posix-headers/pthread.texi: Mention the problem with
4146         pthread_atfork on IRIX.
4148 2018-02-04  Bruno Haible  <bruno@clisp.org>
4150         nl_langinfo: Override the system's nl_langinfo() when needed.
4151         Reported by Jim Meyering.
4152         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
4153         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
4155 2018-02-04  Bruno Haible  <bruno@clisp.org>
4157         signal-h, monetary, strings: Fix build failure in some cases.
4158         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4159         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
4160         as delimiter in sed command, not '|'.
4161         * modules/monetary (Makefile.am): Likewise.
4162         * modules/strings (Makefile.am): Likewise.
4164 2018-02-03  Jim Meyering  <meyering@fb.com>
4166         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
4167         * top/maint.mk (sc_file_system): Don't complain about
4168         "/proc/filesystems".
4170 2018-02-03  Bruno Haible  <bruno@clisp.org>
4172         stdlib: Fix compilation error on OpenIndiana.
4173         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
4174         <sys/time.h>.
4175         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4176         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4178 2018-02-03  Bruno Haible  <bruno@clisp.org>
4180         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
4181         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
4182         and use $EGREP instead of 'grep -E'.
4183         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
4184         'grep -E'.
4186 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
4188         malloca: Add a compile-time verification.
4189         * lib/malloca.c (small_t): Verify that it is wide enough.
4190         * modules/malloca (Depends-on): Add verify.
4192 2018-02-02  Bruno Haible  <bruno@clisp.org>
4194         malloca: Add an argument check.
4195         Suggested by Paul Eggert.
4196         * lib/malloca.c (freea): Check against an invalid argument.
4198 2018-02-02  Bruno Haible  <bruno@clisp.org>
4200         localename: Add support for OpenIndiana.
4201         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
4202         Solaris 11 variants with uselocale() but without getlocalename_l().
4204 2018-02-02  Bruno Haible  <bruno@clisp.org>
4206         malloca, xmalloca: Make multithread-safe.
4207         Reported by Florian Weimer <fweimer@redhat.com>.
4208         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
4209         * lib/malloca.h (malloca): In the stack allocation case, return a
4210         pointer that is a multiple of 2 * sa_alignment_max.
4211         (sa_increment): Remove enum item.
4212         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
4213         a pointer that is a multiple of 2 * sa_alignment_max.
4214         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
4215         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
4216         HASH_TABLE_SIZE, mmalloca_results): Remove.
4217         (small_t): New type.
4218         (mmalloca, free): Rewritten.
4219         * lib/malloca.valgrind: Remove file.
4220         * modules/malloca (Files): Remove it.
4221         (Depends-on): Remove verify.
4223 2018-01-31  Bruno Haible  <bruno@clisp.org>
4225         environ: Fix link error on 64-bit Cygwin.
4226         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
4227         __declspec(dllimport) attribute.
4228         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
4230 2018-01-30  Bruno Haible  <bruno@clisp.org>
4232         get-rusage-data: Add support for Minix 3.
4233         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
4235 2018-01-30  Bruno Haible  <bruno@clisp.org>
4237         vma-iter: Add support for Minix 3.
4238         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
4239         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
4241 2018-01-27  Bruno Haible  <bruno@clisp.org>
4243         Fix malfunction of socket functions on HP-UX in 64-bit mode.
4244         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
4245         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
4246         _HPUX_ALT_XOPEN_SOCKET_API.
4247         * modules/accept (Depends-on): Add 'extensions'.
4248         * modules/getpeername (Depends-on): Likewise.
4249         * modules/getsockname (Depends-on): Likewise.
4250         * modules/getsockopt (Depends-on): Likewise.
4251         * modules/recvfrom (Depends-on): Likewise.
4252         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
4253         * doc/posix-functions/getpeername.texi: Likewise.
4254         * doc/posix-functions/getsockname.texi: Likewise.
4255         * doc/posix-functions/getsockopt.texi: Likewise.
4256         * doc/posix-functions/recvfrom.texi: Likewise.
4258 2018-01-27  Bruno Haible  <bruno@clisp.org>
4260         getsockname tests: More tests.
4261         * tests/test-getsockname.c (open_server_socket): New function, mostly
4262         copied from test-poll.c.
4263         (main): Check that getsockname fills in addr.
4264         * modules/getsockname-tests (Depends-on): Add the necessary
4265         dependencies.
4266         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
4268 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
4270         manywarnings: fix maintainer comment
4271         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
4272         it does not mistakenly think that ‘-1)’ is an option.
4274 2018-01-26  Bruno Haible  <bruno@clisp.org>
4276         langinfo: Fix last commit.
4277         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4278         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
4280 2018-01-24  Bruno Haible  <bruno@clisp.org>
4282         langinfo, nl_langinfo: Add support for alternative month names.
4283         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
4284         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
4285         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
4286         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
4287         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
4288         * doc/posix-functions/nl_langinfo.texi: Likewise.
4290 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4292         Merge strftime.c changes from glibc
4293         This incorporates:
4294         2017-11-14 [BZ #10871] Implement alternative month names
4295         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
4296         2017-06-20 Use locale_t, not __locale_t, throughout glibc
4297         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
4298         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
4299         Use locale_t, not __locale_t.
4300         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
4301         (__strftime_internal): Add support for alternate months.
4303 2018-01-23  Bruno Haible  <bruno@clisp.org>
4305         doc: Mention another prerequisite for using Gnulib.
4306         Reported at <https://stackoverflow.com/questions/48378214/>.
4307         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
4308         AC_CONFIG_HEADERS.
4310 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
4312         build: GuixSD doesn't have /bin/bash
4313         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
4315 2018-01-21  Bruno Haible  <bruno@clisp.org>
4317         Avoid test failures on Microsoft Windows Subsystem for Linux.
4318         * tests/test-fcntl.c (main): Allow a different errno.
4319         * tests/test-rename.h (test_rename): Likewise.
4320         * tests/test-renameat.c (main): Likewise.
4321         * tests/test-renameat2.c (main): Likewise.
4323 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
4325         filenamecat: make base a suffix of result
4326         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
4327         (mfile_name_concat): Always make BASE a suffix of the result, as
4328         cp expects this.  To implement this, separate with '.' instead of
4329         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
4330         * tests/test-filenamecat.c (main): Adjust tests to match
4331         current behavior.  Check that BASE_IN_RESULT points to
4332         a copy of BASE and is a suffix of the resultk, and that DIR
4333         is a prefix of the result that is no longer than the prefix
4334         indicated by BASE_IN_RESULT.
4336 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
4338         update-copyright: Handle use of ©
4339         * build-aux/update-copyright ($circle_c_re): Update regex to
4340         handle use of © in headers.
4342 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
4344         Fix -Wundef warning in user-included header lib/cdefs.h.
4345         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
4347 2018-01-04  Bruno Haible  <bruno@clisp.org>
4349         pthread_sigmask: Avoid compilation error on mingw.
4350         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4351         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
4352         macro.
4354 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
4356         test-framework-sh: ‘ps -ef’, not ‘ps ef’
4357         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
4358         Suggested by Bob Proulx (Bug#29968).
4359         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
4361 2018-01-02  Eric Blake  <eblake@redhat.com>
4363         stat-time: silence -Wunused-parameter regression
4364         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
4365         Prefer attribute over cast-to-void.
4366         (stat_time_normalize): Mark st as potentially unused.
4368 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
4370         test-framework-sh: avoid netstat
4371         Problem reported by Kristýna Streitová (Bug#29947).
4372         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
4373         deprecated on SuSE and it's not that important anyway.
4375 2018-01-01  Jim Meyering  <meyering@fb.com>
4377         update-copyright: add code to handle more special cases
4378         After running "make update-copyright" this year, five files
4379         required additional manual changes.  Automate those adjustments
4380         for next year.
4381         * Makefile (_year_and_prev): Define.
4382         (update-copyright): Add perl commands to induce this year's post-
4383         update-copyright adjustments.
4385 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
4387         version-etc: new year
4388         * build-aux/gendocs.sh (version):
4389         * doc/gendocs_template:
4390         * doc/gendocs_template_min:
4391         * doc/gnulib.texi:
4392         * lib/version-etc.c (COPYRIGHT_YEAR):
4393         Update copyright dates by hand in templates and the like.
4395         maint: fix 'make update-copyright'
4396         * Makefile (update-copyright): Adjust to 2016-11-23 change
4397         to config/srclist-update, which changed the format of srclist.txt.
4399 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
4401         chdir-safer: remove this module
4402         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
4403         * NEWS: Document removal.
4404         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
4405         * modules/chdir-safer: Remove these files.
4407 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
4409         Add cross-compilation results for GNU/Hurd.
4410         * m4/calloc.m4: Add GNU/Hurd guess.
4411         * m4/cbrtl.m4: Likewise.
4412         * m4/ceil.m4: Likewise.
4413         * m4/ceilf.m4: Likewise.
4414         * m4/ceill.m4: Likewise.
4415         * m4/chown.m4: Likewise.
4416         * m4/duplocale.m4: Likewise.
4417         * m4/exp2l.m4: Likewise.
4418         * m4/expm1.m4: Likewise.
4419         * m4/fchdir.m4: Likewise.
4420         * m4/floor.m4: Likewise.
4421         * m4/floorf.m4: Likewise.
4422         * m4/fmod.m4: Likewise.
4423         * m4/fmodf.m4: Likewise.
4424         * m4/fmodl.m4: Likewise.
4425         * m4/getcwd.m4: Likewise.
4426         * m4/getgroups.m4: Likewise.
4427         * m4/gettimeofday.m4: Likewise.
4428         * m4/hypot.m4: Likewise.
4429         * m4/hypotf.m4: Likewise.
4430         * m4/hypotl.m4: Likewise.
4431         * m4/link-follow.m4: Likewise.
4432         * m4/link.m4: Likewise.
4433         * m4/linkat.m4: Likewise.
4434         * m4/log.m4: Likewise.
4435         * m4/log10.m4: Likewise.
4436         * m4/log10f.m4: Likewise.
4437         * m4/log1p.m4: Likewise.
4438         * m4/log1pf.m4: Likewise.
4439         * m4/log1pl.m4: Likewise.
4440         * m4/log2.m4: Likewise.
4441         * m4/log2f.m4: Likewise.
4442         * m4/logf.m4: Likewise.
4443         * m4/lstat.m4: Likewise.
4444         * m4/malloc.m4: Likewise.
4445         * m4/mbrlen.m4: Likewise.
4446         * m4/mbrtowc.m4: Likewise.
4447         * m4/mkdir.m4: Likewise.
4448         * m4/mkfifo.m4: Likewise.
4449         * m4/mknod.m4: Likewise.
4450         * m4/mkstemp.m4: Likewise.
4451         * m4/modf.m4: Likewise.
4452         * m4/modff.m4: Likewise.
4453         * m4/modfl.m4: Likewise.
4454         * m4/printf.m4: Likewise.
4455         * m4/pselect.m4: Likewise.
4456         * m4/ptsname.m4: Likewise.
4457         * m4/putenv.m4: Likewise.
4458         * m4/readlink.m4: Likewise.
4459         * m4/realloc.m4: Likewise.
4460         * m4/remainder.m4: Likewise.
4461         * m4/remainderf.m4: Likewise.
4462         * m4/remainderl.m4: Likewise.
4463         * m4/rmdir.m4: Likewise.
4464         * m4/round.m4: Likewise.
4465         * m4/roundf.m4: Likewise.
4466         * m4/roundl.m4: Likewise.
4467         * m4/select.m4: Likewise.
4468         * m4/setenv.m4: Likewise.
4469         * m4/signbit.m4: Likewise.
4470         * m4/sleep.m4: Likewise.
4471         * m4/stat.m4: Likewise.
4472         * m4/strerror.m4: Likewise.
4473         * m4/strtok_r.m4: Likewise.
4474         * m4/symlink.m4: Likewise.
4475         * m4/symlinkat.m4: Likewise.
4476         * m4/trunc.m4: Likewise.
4477         * m4/truncf.m4: Likewise.
4478         * m4/truncl.m4: Likewise.
4479         * m4/tzset.m4: Likewise.
4480         * m4/ungetc.m4: Likewise.
4481         * m4/usleep.m4: Likewise.
4482         * m4/wcwidth.m4: Likewise.
4484 2017-12-28  Bruno Haible  <bruno@clisp.org>
4486         gnulib-tool: Make --conditional-dependencies work better.
4487         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
4488         * gnulib-tool (Options): Don't reject the combination of
4489         --conditional-dependencies with --with-tests.
4490         (func_emit_autoconf_snippets): Add argument referenceable_modules.
4491         Don't reference $modules.
4492         (func_import, func_create_testdir): Pass it.
4494 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
4496         regex: use re_malloc etc. consistently
4497         Problem and original patch reported by Arnold Robbins in:
4498         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
4499         * lib/regcomp.c (re_comp):
4500         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
4501         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
4503 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
4504             Paul Eggert  <eggert@cs.ucla.edu>
4506         glob: Silence warning about void pointer arithmetic.
4507         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
4508         arithmetic.
4510 2017-12-15  Bruno Haible  <bruno@clisp.org>
4512         spawn-pipe: Silence a clang warning.
4513         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4514         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
4515         in this file.
4517 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4519         explicit_bzero: port to macOS + Clang 9.0.0
4520         Problem reported by Marcus Johnson (Bug#29658).
4521         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
4522         Don’t use asm.
4524 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
4526         doc: Improve explanation of supporting relocatable libraries.
4527         * doc/relocatable-maint.texi (Supporting Relocation): Explain
4528         properly how to build the relocatable module for
4529         libraries. (Method and example code from Bruno Haible.)
4531 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
4533         doc: Use better texinfo tags in a few cases.
4534         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
4535         instead of @samp in a few places.
4537 2017-12-11  Bruno Haible  <bruno@clisp.org>
4539         unistr/base: Update comment.
4540         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
4542 2017-12-10  Pádraig Brady  <P@draigBrady.com>
4544         test-faccessat.c: unlink temp file to avoid subsequent test failure
4545         * tests/test-faccessat.c: Remove the file to avoid failure
4546         to open the file on subsequent runs due to being created
4547         with no permissions.
4549 2017-12-10  Bruno Haible  <bruno@clisp.org>
4551         doc: New sect. "Modifying the build rules of a Gnulib import directory".
4552         * doc/gnulib-tool.texi (Modified build rules): New node.
4554 2017-12-10  Bruno Haible  <bruno@clisp.org>
4556         doc: Tweak wording.
4557         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
4558         "binaries".
4560 2017-12-05  Sam Steingold  <sds@gnu.org>
4561             Bruno Haible  <bruno@clisp.org>
4563         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
4564         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
4565         AC_EGREP_CPP pattern.
4567 2017-12-03  Bruno Haible  <bruno@clisp.org>
4569         all: Replace more http URLs by https URLs.
4570         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
4571         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
4572         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
4573         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
4575 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
4577         Port better to CentOS 5
4578         Problems reported by Tom G. Christensen in:
4579         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
4580         * doc/glibc-functions/strverscmp.texi (strverscmp):
4581         Document strverscmp bug with glibc 2.9 and earlier.
4582         * doc/posix-functions/tzset.texi (tzset):
4583         Document that TZ with angle brackets is POSIX-2001 and later.
4584         * tests/test-nstrftime.c: Include unistd.h.
4585         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
4586         (TZ): Use it to skip tests with angle brackets in TZ,
4587         for older systems.
4589         stat: add missing module dependencies
4590         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
4591         Add stat-time.
4593 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
4595         stat: fix compilation failure on macOS Sierra
4596         Reported by Marius Schamschula <mschamschula@gmail.com> in:
4597         https://savannah.gnu.org/bugs/?52546
4598         * lib/stat.c: Add missing include of stat-time.h.
4600 2017-11-28  Jim Meyering  <meyering@fb.com>
4602         test-faccessat.c: correct BASE definition to avoid parallel test failure
4603         * tests/test-faccessat.c (BASE): Define using this file's name, not
4604         that of test-lstat.c.  Using the latter caused this test to fail
4605         sometimes when run concurrently with test-lstat.
4607 2017-11-27  Daiki Ueno  <ueno@gnu.org>
4609         unicase: fix VPATH build
4610         * modules/unicase/special-casing (Makefile.am): Ensure that the
4611         base directory is created when generating
4612         unicase/special-casing.h.
4614 2017-11-27  Daiki Ueno  <ueno@gnu.org>
4616         libunistring: update to Unicode 9.0.0
4617         * lib/gen-uni-tables.c (fill_properties): Recognize
4618         Sentence_Terminal and Prepended_Concatenation_Mark.
4619         (is_property_default_ignorable_code_point): Exclude U+08E2.
4620         (fill_arabicshaping): Allow missing whitespace when parsing;
4621         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
4622         (output_blocks): Increase the element size of the level1 table to
4623         accommodate more blocks.
4624         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
4625         Update each class according to the standard.
4626         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
4627         E_Base_GAZ characters.
4628         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
4629         Glue_After_Zwj, and E_Base_GAZ characters.
4630         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
4631         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
4632         enum value.
4633         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
4634         value.
4635         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
4636         LBP_ZWJ, LBP_EB, and LBP_EM.
4637         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
4638         enum value.
4639         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
4640         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
4641         declaration.
4642         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
4643         (uniwbrk_table): Implement WB14.
4644         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
4645         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
4646         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
4647         uc-is-grapheme-break.
4648         * modules/unigbrk/uc-grapheme-breaks: New module.
4649         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
4650         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
4651         enum value.
4652         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
4653         * lib/unigbrk/u-grapheme-breaks.h: New file.
4654         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
4655         u-grapheme-breaks.h instead of uc_is_grapheme_break.
4656         * lib/unigbrk/uc-grapheme-breaks.c: New file.
4657         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
4658         29.
4659         * tests/unigbrk/test-uc-gbrk-prop.c
4660         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
4661         GBP_GAZ, and GBP_EBG.
4662         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
4663         * tests/unigbrk/test-uc-is-grapheme-break.c
4664         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
4665         GBP_GAZ, and GBP_EBG.
4666         (main): Skip unsupported rules involving 3 or more characters,
4667         namely GB10, GB12, and GB13.
4668         * lib/uniwidth/width.c (nonspacing_table_data): Update.
4669         * all generated files under lib/uni* and tests/uni*: Regenerate.
4670         * all the affected modules: Bump version.
4672 2017-11-26  Bruno Haible  <bruno@clisp.org>
4674         strfmon_l: Fix compilation error with glibc 2.5.
4675         Reported by Tom G. Christensen <tgc@jupiterrise.com>
4676         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
4677         * lib/monetary.in.h: Include also <locale.h>.
4679 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
4681         posixtm: remove PDS_LEADING_YEAR
4682         This changes the API slightly, in a hopefully-innocuous way.
4683         Without this change the code had undefined behavior when a
4684         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
4685         Problem reported by Pádraig Brady in:
4686         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
4687         * NEWS: Mention this.
4688         * lib/posixtm.c (posix_time_parse): Treat the absence of
4689         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
4690         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
4691         present, but define it as zero, for compatibility with existing
4692         source code).  All other PDS_* values moved up.
4693         * tests/test-posixtm.c (LY): New macro.
4694         (T): Use it.  Do not expect a particular numeric encoding
4695         for PDS_CENTURY etc.
4697 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
4699         stat: work around Solaris bug with tv_nsec < 0
4700         * doc/posix-functions/fstat.texi (fstat):
4701         * doc/posix-functions/fstatat.texi (fstatat):
4702         * doc/posix-functions/lstat.texi (lstat):
4703         * doc/posix-functions/stat.texi (stat):
4704         Mention Solaris 11 bug.
4705         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
4706         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
4707         * lib/lstat.c (rpl_lstat):
4708         * lib/stat.c (rpl_stat):
4709         Normalize resulting timestamps.
4710         * lib/fstatat.c (normal_fstatat): New function.
4711         (rpl_fstatat): Use it.
4712         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
4713         (stat_time_normalize): New function.
4714         * m4/fstat.m4 (gl_FUNC_FSTAT):
4715         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
4716         * m4/lstat.m4 (gl_FUNC_LSTAT):
4717         * m4/stat.m4 (gl_FUNC_STAT):
4718         Replace on Solaris.
4719         * modules/fstat (Depends-on):
4720         * modules/fstatat (Depends-on):
4721         Add stat-time.
4722         * modules/stat-time (Depends-on): Add errno, intprops.
4724 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
4726         regex: merge from glibc
4727         * lib/regcomp.c (init_word_char): Add comments.
4729 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
4731         regex: merge from glibc
4732         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
4733         * lib/regex_internal.h (internal_function): Remove.
4734         All uses removed.
4736 2017-11-20  Bruno Haible  <bruno@clisp.org>
4738         crypto/gc-sm3: Fix buffer overrun.
4739         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
4740         Reported by Coverity.
4742 2017-11-12  Jim Meyering  <meyering@fb.com>
4744         maint: shorten https://lists.gnu.org/archive/html/... links
4745         Each /archive/html/ part can be replace with /r/.
4746         Run this to induce the change:
4747         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
4748         * ChangeLog: Perform that substitution.
4749         * Makefile: Likewise.
4750         * STATUS-libposix: Likewise.
4751         * build-aux/bootstrap: Likewise.
4752         * doc/maintain.texi: Likewise.
4753         * gnulib-tool: Likewise.
4754         * lib/allocator.h: Likewise.
4755         * lib/argp-ba.c: Likewise.
4756         * lib/argp-pv.c: Likewise.
4757         * lib/canon-host.c: Likewise.
4758         * lib/canonicalize-lgpl.c: Likewise.
4759         * lib/float.in.h: Likewise.
4760         * lib/fstat.c: Likewise.
4761         * lib/getdelim.c: Likewise.
4762         * lib/getprogname.c: Likewise.
4763         * lib/glthread/thread.h: Likewise.
4764         * lib/intprops.h: Likewise.
4765         * lib/mbsrtowcs-state.c: Likewise.
4766         * lib/safe-read.c: Likewise.
4767         * lib/signal.in.h: Likewise.
4768         * lib/stat.c: Likewise.
4769         * lib/stdbool.in.h: Likewise.
4770         * lib/stdio-impl.h: Likewise.
4771         * lib/stdio.in.h: Likewise.
4772         * lib/sysexits.in.h: Likewise.
4773         * lib/timespec.h: Likewise.
4774         * lib/wcsrtombs-state.c: Likewise.
4775         * m4/alloca.m4: Likewise.
4776         * m4/extern-inline.m4: Likewise.
4777         * m4/fstatat.m4: Likewise.
4778         * m4/gnulib-common.m4: Likewise.
4779         * m4/lib-ignore.m4: Likewise.
4780         * m4/printf.m4: Likewise.
4781         * m4/regex.m4: Likewise.
4782         * m4/stat-size.m4: Likewise.
4783         * m4/std-gnu11.m4: Likewise.
4784         * m4/stdbool.m4: Likewise.
4785         * m4/sys_types_h.m4: Likewise.
4786         * m4/threadlib.m4: Likewise.
4787         * m4/vararrays.m4: Likewise.
4788         * pygnulib/GLImport.py: Likewise.
4789         * tests/test-exp.h: Likewise.
4790         * tests/test-exp2.h: Likewise.
4791         * tests/test-expm1.h: Likewise.
4792         * tests/test-fflush2.c: Likewise.
4793         * tests/test-getopt_long.h: Likewise.
4794         * tests/test-intprops.c: Likewise.
4795         * tests/test-log.h: Likewise.
4796         * tests/test-log10.h: Likewise.
4797         * tests/test-log1p.h: Likewise.
4798         * tests/test-log2.h: Likewise.
4799         * tests/test-printf-posix.h: Likewise.
4800         * tests/test-regex.c: Likewise.
4801         * tests/test-snprintf-posix.h: Likewise.
4802         * tests/test-sprintf-posix.h: Likewise.
4803         * tests/test-stdalign.c: Likewise.
4804         * tests/test-stdbool.c: Likewise.
4805         * tests/test-vasnprintf-posix.c: Likewise.
4806         * tests/test-vasprintf-posix.c: Likewise.
4807         * top/maint.mk: Likewise.
4809 2017-11-12  Bruno Haible  <bruno@clisp.org>
4811         faccessat: Make the last change more robust.
4812         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
4813         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
4815 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
4817         faccessat: port to macOS (Bug#29231)
4818         macOS faccessat has the same bug that lstat does: if the file
4819         name ends in '/' it ignores the trailing slash.
4820         Problem reported for Emacs by Vincent Zhang.
4821         * doc/posix-functions/faccessat.texi (faccessat): Document this.
4822         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
4823         around the initial includes.  Include errno.h, string.h, sys/stat.h.
4824         (orig_faccessat) [HAVE_FACCESSAT]: New function.
4825         Include "unistd.h" after defining it.
4826         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
4827         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
4828         Handle in the usual way.
4829         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
4830         lstat dereferences symlinks, since faccessat is likely to
4831         have the same problem.
4832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
4833         * modules/faccessat (Depends-on): Add fstatat.
4834         Depend if REPLACE_FACCESSAT is 1, too.
4835         (configure.ac): Link if REPLACE_FACCESSAT is 1.
4836         * modules/faccessat-tests (Depends-on): Add symlink.
4837         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
4838         * tests/test-faccessat.c (main): Test for the bug.
4840 2017-11-11  Bruno Haible  <bruno@clisp.org>
4842         getprogname: Fix compilation error on IRIX.
4843         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
4844         'namesize'.
4846 2017-11-11  Bruno Haible  <bruno@clisp.org>
4848         year2038: Tweak last patch.
4849         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
4851 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
4853         year2038: be more insistent about 64-bit time_t
4854         Applications requiring access to arbitrary files should not be
4855         built with 32-bit time_t on hosts that have 64-bit timestamps,
4856         as this can lead to real trouble at runtime.
4857         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
4858         Check on all systems, not just MinGW.  Use a heuristic involving
4859         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
4860         output a failure or just a warning, to make it more likely that
4861         builders will select 64-bit time_t.
4863 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
4865         havelib: fix typo in previous change
4866         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
4868         Don’t use AC_EGREP_CPP if affected by CFLAGS
4869         * m4/float_h.m4 (gl_FLOAT_H):
4870         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
4871         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
4872         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
4873         * m4/year2038.m4 (gl_YEAR2038):
4874         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
4875         likely to be affected by the choice of CFLAGS, since CFLAGS are
4876         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
4877         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
4879         fstatat: pacify GCC on unusual platform
4880         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
4881         Omit, as it’s unused in this case.
4883 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
4885         timespec: prefer ‘assume’ to ‘assure’
4886         This avoids some runtime tests.  The rest of the module makes
4887         similar assumptions and there is little point to testing here.
4888         * lib/timespec.h: Include verify.h instead of assure.h.
4889         (timespec_cmp): Use ‘assume’, not ‘assure’.
4890         Also, remove an unnecessary cast to ‘int’, as lots of other
4891         code in this module now causes -Wconversion to complain, and
4892         this is a problem with -Wconversion not with the code.
4894         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
4896         Port recent gnulib-tool change to Dash
4897         * gnulib-tool (func_create_testdir): Don't assume that the shell
4898         retokenizes after expanding "$@" inside the call to
4899         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
4901 2017-10-27  Jim Meyering  <meyering@fb.com>
4903         timespec.h: use "assure" to avoid a spurious warning
4904         * lib/timespec.h: Include "assure.h" and use it to help
4905         gcc7's -Wstrict-overflow avoid a false positive warning
4906         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
4907         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
4908         * modules/timespec (Depends-on): Add assure.
4910 2017-10-29  Bruno Haible  <bruno@clisp.org>
4912         Avoid several test failures with traditional locales on Haiku.
4913         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
4914         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
4915         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
4916         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
4917         LOCALE_ZH_CN=none.
4919 2017-10-29  Bruno Haible  <bruno@clisp.org>
4921         strerror_r-posix: Fix behaviour and test failure on Haiku.
4922         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
4923         are positive. Work around return value 0 instead of ERANGE on Haiku.
4924         For unknown error numbers, use a format string consistent with perror().
4925         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
4926         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
4927         are positive.
4929 2017-10-29  Bruno Haible  <bruno@clisp.org>
4931         get-rusage-data: Avoid crash on Haiku.
4932         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
4934 2017-10-29  Bruno Haible  <bruno@clisp.org>
4936         get-rusage-as: Avoid crash on Haiku.
4937         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
4939 2017-10-29  Bruno Haible  <bruno@clisp.org>
4941         ilogbl: Ensure replacement on Haiku.
4942         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
4943         REPLACE_ILOGBL if ilogbl does not work.
4944         (gl_FUNC_ILOGBL_WORKS): New macro.
4945         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
4946         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
4947         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
4948         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
4949         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
4951 2017-10-29  Bruno Haible  <bruno@clisp.org>
4953         expl: Ensure replacement on Haiku.
4954         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
4955         zero.
4956         * doc/posix-functions/expl.texi: Mention the Haiku problem.
4958 2017-10-29  Bruno Haible  <bruno@clisp.org>
4960         math: Fix test failure on Haiku.
4961         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
4962         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
4963         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
4964         * doc/posix-headers/math.texi: Mention the Haiku problem.
4966 2017-10-29  Bruno Haible  <bruno@clisp.org>
4968         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
4969         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
4970         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
4972 2017-10-29  Bruno Haible  <bruno@clisp.org>
4974         crypto/*: Verify that the header file is self-contained.
4975         * tests/test-gc-*.c: Include the module's header file immediately after
4976         <config.h>.
4977         * tests/test-hmac-*.c: Likewise.
4978         * tests/test-arcfour.c: Likewise.
4979         * tests/test-arctwo.c: Likewise.
4980         * tests/test-des.c: Likewise.
4981         * tests/test-md2.c: Likewise.
4982         * tests/test-md4.c: Likewise.
4983         * tests/test-md5.c: Likewise.
4984         * tests/test-rijndael.c: Likewise.
4985         * tests/test-sha1.c: Likewise.
4986         * tests/test-sm3.c: Likewise.
4988 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
4989             Bruno Haible  <bruno@clisp.org>
4991         crypto/gc: fix build failure with -Werror=suggest-attribute=const
4992         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
4994 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
4996         New module: crypto/gc-sm3
4997         * lib/gc.h: Declare SM3-related stuffs.
4998         * lib/gc-gnulib.c: Support sm3 in internal functions.
4999         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
5000         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
5001         * modules/crypto/gc-sm3: Define gc-sm3 module.
5002         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
5003         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
5004         * MODULES.html.sh: List gc-sm3 module.
5006 2017-10-29  Bruno Haible  <bruno@clisp.org>
5008         random, random_r: Mention different prototypes on Haiku.
5009         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
5010         * doc/glibc-functions/random_r.texi: Likewise.
5011         * doc/glibc-functions/initstate_r.texi: Likewise.
5012         * doc/glibc-functions/setstate_r.texi: Likewise.
5014 2017-10-28  Bruno Haible  <bruno@clisp.org>
5016         posix_spawn: Avoid spurious message in configure output.
5017         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
5018         'cmp' command.
5020 2017-10-28  Bruno Haible  <bruno@clisp.org>
5022         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
5023         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
5024         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5026 2017-10-28  Bruno Haible  <bruno@clisp.org>
5028         ioctl: Override non-POSIX declaration on Haiku.
5029         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
5030         * lib/sys_ioctl.in.h: Add comment about Haiku.
5031         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
5032         * doc/glibc-headers/sys_ioctl.texi: Likewise.
5034 2017-10-28  Bruno Haible  <bruno@clisp.org>
5036         crypto/sm3: Add overview documentation to the .h file.
5037         * lib/sm3.h: Add comments.
5039 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5041         New module: crypto/sm3
5042         This new module can be used to compute SM3 message digest of files or
5043         memory blocks according to the specification GM/T 004-2012
5044         Cryptographic Hash Algorithm SM3, published by State Cryptography
5045         Administration, China.
5046         The official SM3 cryptographic hash algorithm specification is
5047         available at
5048         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
5049         * lib/sm3.h: Declare the APIs of sm3 module.
5050         * lib/sm3.c: Implement SM3 hash algorithm.
5051         * m4/sm3.m4: m4 file for sm3 module.
5052         * modules/crypto/sm3: Define sm3 module.
5053         * tests/test-sm3.c: Implement SM3 test case.
5054         * modules/crypto/sm3-tests: Define sm3 test module.
5055         * MODULES.html.sh: List sm3 module.
5057 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5059         gc-libgcrypt: fix undefined enum type in switch statement
5060         Resolve the following build failure:
5061         lib/gc-libgcrypt.c: In function 'gc_hash_open':
5062         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
5063         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
5064              case 0:
5065              ^~~~
5066         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
5067         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
5069 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5071         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
5072         Resolve the following build failure:
5073         lib/gc-libgcrypt.c: In function 'gc_hash_read':
5074         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
5075         in signedness [-Werror=pointer-sign]
5076             digest = gcry_md_read (ctx->gch, 0);
5077                    ^
5078         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
5080 2017-10-26  Bruno Haible  <bruno@clisp.org>
5082         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
5083         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
5084         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
5086 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
5088         glob: fix another heap buffer overflow
5089         Problem reported by Tim Rühsen in:
5090         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
5091         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
5093 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
5095         quotearg: pacify compiler re unsigned
5096         * lib/quotearg.c (quotearg_n_options):
5097         Rewrite to avoid diagnostic from overly-picky compiler.
5098         Problem reported by Sami Kerola in:
5099         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
5101         glob: fix heap buffer overflow
5102         * lib/glob.c (glob): Fix off-by-one error introduced into
5103         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
5104         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
5105         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
5106         Fix suggested by Bruno Haible.
5108 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
5110         glob: pacify fuzzer for mempcpy
5111         Problem reported by Tim Rühsen in:
5112         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
5113         * lib/glob.c (glob): Do not pass NULL to mempcpy.
5115 2017-10-12  Bruno Haible  <bruno@clisp.org>
5117         doc: Fix syntax error (regression from 2017-10-03).
5118         * doc/posix-functions/strncpy.texi: Fix syntax error.
5120 2017-10-12  Bruno Haible  <bruno@clisp.org>
5122         doc: Update for Solaris 11.3.
5123         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
5124         mention Solaris 11.3.
5125         * m4/log2.m4: Fix comments.
5126         * m4/log2f.m4: Likewise.
5127         * m4/printf.m4: Update comments.
5128         * m4/rename.m4: Likewise.
5129         * m4/strncat.m4: Likewise.
5131         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
5133 2017-10-10  Bruno Haible  <bruno@clisp.org>
5135         doc: Improve doc about ioctl.
5136         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
5137         prototype.
5139 2017-10-09  Bruno Haible  <bruno@clisp.org>
5141         wcwidth: Don't use obsolete syntax of 'test'.
5142         Reported by Eric Blake.
5143         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
5144         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
5146 2017-10-09  Bruno Haible  <bruno@clisp.org>
5148         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
5149         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
5150         and Daniel P. Berrange <berrange@redhat.com>.
5151         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
5152         on glibc systems. The getopt-pfx-core.h file declares exactly what
5153         unistd.h needs, nothing more.
5155 2017-10-08  Bruno Haible  <bruno@clisp.org>
5157         vma-iter: Improve support for FreeBSD.
5158         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
5159         vma_iterate.
5160         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
5162 2017-10-08  Bruno Haible  <bruno@clisp.org>
5164         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
5165         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
5167 2017-10-07  KO Myung-Hun  <komh@chollian.net>
5169         test-framework-sh: Fix 'invalid path dir' error.
5170         On OS/2, a path separator is ';' not ':'. And ':' is used as a
5171         separator between a drive letter and directory parts.
5172         As a result, an absolute path such as x:/path/to/dir on OS/2 is
5173         treated as an invalid path dir.
5174         * tests/init.sh (PATH_SEPARATOR): Set at startup.
5175         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
5176         instead of hard coded ':'.
5178 2017-10-07  Bruno Haible  <bruno@clisp.org>
5180         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
5181         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
5182         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
5183         (rof_open): On Linux, do multiple read() calls and make sure
5184         MIN_LEFTOVER bytes are left when read() returns.
5186 2017-10-07  Bruno Haible  <bruno@clisp.org>
5188         vma-iter: Improve support for GNU/Hurd.
5189         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
5190         API, not the /proc file system.
5192 2017-10-07  Bruno Haible  <bruno@clisp.org>
5194         test-framework-sh: Don't require bash on Windows and OS/2.
5195         Reported by KO Myung-Hun.
5196         * tests/test-init.sh: Use 'shopt' only when running in bash.
5198 2017-10-06  KO Myung-Hun  <komh@chollian.net>
5200         wcwidth: check a macro version of wcwidth () as well
5201         * lib/wchar.in.h: Revert commit from 2016-01-14.
5202         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
5204 2017-10-06  Bruno Haible  <bruno@clisp.org>
5206         getopt-posix: Clarify copyright header.
5207         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
5208         * lib/getopt-pfx-core.h: Likewise.
5209         * lib/getopt-pfx-ext.h: Likewise.
5210         * lib/getopt-cdefs.in.h: Likewise.
5212 2017-10-03  Bruno Haible  <bruno@clisp.org>
5214         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
5215         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
5216         gl_HOST_CPU_C_ABI.
5218 2017-10-03  Bruno Haible  <bruno@clisp.org>
5220         doc: warn about misuse of strncpy and wcsncpy.
5221         * doc/posix-functions/strcpy.texi: Describe requirements on prior
5222         memory allocation.
5223         * doc/posix-functions/wcscpy.texi: Likewise.
5224         * doc/posix-functions/strncpy.texi: Describe what this function is not
5225         useful for.
5226         * doc/posix-functions/wcsncpy.texi: Likewise.
5228 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
5230         fsuage: fix typo in previous change
5231         * lib/fsusage.c: Remove stray include of full-read.h.
5232         Problem reported by Sam Steingold for macOS (Bug#28669).
5234 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
5236         fsusage: remove SVR2 support
5237         SVR2 was obsolete by 1986 and is no longer supported by anybody,
5238         and its code was getting in the way of use of this module by
5239         Emacs, which has its own ‘read’ function anyway.
5240         * lib/fsusage.c: Do not include sys/filsys.h.
5241         (get_fs_usage): Remove SVR2-specific code.
5242         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
5243         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
5244         * modules/fsusage (Depends-on): Do not depend on full-read.
5246         Simplify autoupdate of licenses
5247         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
5248         place.
5250 2017-10-01  Bruno Haible  <bruno@clisp.org>
5252         vma-iter: Add support for GNU/Hurd.
5253         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
5254         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5256 2017-09-30  Bruno Haible  <bruno@clisp.org>
5258         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
5259         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
5260         fail when module 'largefile' is in use.
5261         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
5262         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
5263         Don't test HAVE_SYS_PROCFS_H.
5265 2017-09-30  Bruno Haible  <bruno@clisp.org>
5267         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
5268         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
5269         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
5270         * modules/havelib (Depends-on): Add host-cpu-c-abi.
5272 2017-09-30  Bruno Haible  <bruno@clisp.org>
5274         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
5275         * lib/uniname/uniname.c (unicode_name_character): Add braces around
5276         scope of local variables.
5278 2017-09-28  Bruno Haible  <bruno@clisp.org>
5280         string: code style
5281         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
5282         substitutable variables.
5283         * modules/string (Makefile.am): Likewise.
5285 2017-09-26  Bruno Haible  <bruno@clisp.org>
5287         uniname/uniname-tests: Tighten code.
5288         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
5289         local variables into one.
5291 2017-09-26  Bruno Haible  <bruno@clisp.org>
5293         vma-iter: Improvements for Linux and BSD platforms.
5294         - Add support for DragonFly BSD.
5295         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
5296         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
5297         Read the entire file into memory in a single system call.
5298         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
5299         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
5301 2017-09-26  Bruno Haible  <bruno@clisp.org>
5303         vma-iter: Provide the protection flags on FreeBSD.
5304         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
5305         skip three fields between the addresses and the protection flags.
5307 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5309         glob: remove bogus extern decl
5310         * lib/glob.c (__glob_pattern_type): Remove now-spurious
5311         extern declaration.  Problem reported by Adhemerval Zanella in:
5312         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
5314 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
5316         uniname/uniname-tests: integer overflow fix
5317         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
5318         Check for integer overflow.
5320         duplocale-tests: fix unlikely crash
5321         * tests/test-duplocale.c (get_locale_dependent_values):
5322         Don’t crash with absurdly long month names.
5324         maint: fix overflow checking in nap.h
5325         * modules/chown-tests:
5326         * modules/fchownat-tests, modules/fdutimensat-tests:
5327         * modules/futimens-tests, modules/lchown-tests:
5328         * modules/stat-time-tests, modules/utime-tests:
5329         * modules/utimens-tests, modules/utimensat-tests:
5330         Depend on intprops.
5331         * tests/nap.h: Include intprops.h.
5332         (diff_timespec): Handle overflow properly.
5334         sys_types: update URL
5335         * m4/sys_types_h.m4: Use https: URL.
5337         parse-datetime: fix dependency
5338         * modules/parse-datetime (Depends-on): Depend
5339         on nstrftime, not strftime.
5341         parse-datetime, posixtm: avoid uninit access
5342         * lib/parse-datetime.y (parse_datetime2):
5343         * lib/posixtm.c (posixtime):
5344         Do not access uninitialized storage, even though the resulting
5345         value is never used.
5347 2017-09-25  Bruno Haible  <bruno@clisp.org>
5349         vma-iter: Improvements for BSD platforms.
5350         - Add support for GNU/kFreeBSD.
5351         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
5352         - Speed up on OpenBSD.
5353         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
5354         (vma_iterate_bsd): New function.
5355         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
5356         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
5357         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5358         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
5360 2017-09-23  Bruno Haible  <bruno@clisp.org>
5362         strfmon_l: New module.
5363         * modules/strfmon_l: New file.
5364         * lib/strfmon_l.c: New file.
5365         * m4/strfmon_l.m4: New file.
5366         * doc/posix-functions/strfmon_l.texi: Mention the new module.
5367         * modules/strfmon_l-tests: New file.
5368         * tests/test-strfmon_l.c: New file.
5370         monetary: New module.
5371         * modules/monetary: New file.
5372         * lib/monetary.in.h: New file.
5373         * m4/monetary_h.m4: New file.
5374         * doc/posix-headers/monetary.texi: Mention the new module.
5375         * modules/monetary-tests: New file.
5376         * tests/test-monetary.c: New file.
5377         * modules/monetary-c++-tests: New file.
5378         * tests/test-monetary-c++.cc: New file.
5379         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
5381 2017-09-23  Bruno Haible  <bruno@clisp.org>
5383         duplocale tests: Fix test crash on Linux/x86.
5384         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
5385         locale from the current thread before freeing it.
5387 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
5389         mktime: port to OpenVMS
5390         Problem reported by John E. Malmberg in:
5391         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
5392         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
5394 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
5396         manywarnings: port to GCC on 64-bit MS-Windows
5397         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
5398         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
5399         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
5401 2017-09-13  Bruno Haible  <bruno@clisp.org>
5403         all: Replace many more http URLs by https URLs. Update stale URLs.
5404         * users.txt: Remove mention of 'newts'.
5405         * lib/localename.c: Update comment about LANG_SOTHO.
5407 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5409         all: Replace many http URLs by https URLs.
5411 2017-09-12  Bruno Haible  <bruno@clisp.org>
5413         doc: Prefer https URLs where possible.
5414         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
5415         * doc/ld-output-def.texi: Remove unavailable URL.
5417 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5419         maintainer-makefile: FTP -> HTTPS
5420         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
5421         of FTP, which is planned to be decommissioned on 2017-11-01.
5423 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
5425         libc-config: Fix __GNUC_PREREQ macro.
5426         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
5427         __GNUC_MINOR.
5429 2017-09-09  Bruno Haible  <bruno@clisp.org>
5431         gnulib-tool: Simplify commit from 2015-08-20.
5432         * gnulib-tool (func_add_or_update): Remove local variable
5433         is_binary_file.
5435 2017-09-08  Bruno Haible  <bruno@clisp.org>
5437         stddef: Avoid conflict with system-defined max_align_t.
5438         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
5439         Reported by Werner Lemberg <wl@gnu.org> in
5440         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
5441         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
5442         (max_align_t): Define as a macro.
5443         (GNULIB_defined_max_align_t): New macro. Guards against multiple
5444         definitions of rpl_max_align_t in different copies of gnulib-generated
5445         <stddef.h>.
5447 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5449         libc-config: port to MSVC
5450         Problems reported by Gisle Vanem in:
5451         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
5452         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
5453         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
5454         * m4/__inline.m4: New file.
5455         * modules/libc-config (Files): Add it.
5456         (Depends-on): Use it.
5458         glob: Use enum for __glob_pattern_type result
5459         From a patch proposed by Adhemerval Zanella in:
5460         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
5461         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
5462         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
5463         * lib/glob_internal.h (__glob_pattern_type):
5464         * lib/glob.c (glob):
5465         * lib/glob_pattern_p.c (__glob_pattern_p):
5466         Use them.
5468         glob: fix for use in glibc
5469         Problem reported by Adhemerval Zanella in:
5470         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
5471         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
5472         Do not redefine if _LIBC.
5474 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5476         glob: fix bugs with long login names
5477         Problem reported by Adhemerval Zanella in:
5478         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
5479         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
5480         (glob): Use the same scratch buffer for both getlogin_r and
5481         getpwnam_r.  Don’t require preallocation of the login name.  This
5482         simplifies storage allocation, and corrects the handling of
5483         long login names.
5485 2017-09-02  Bruno Haible  <bruno@clisp.org>
5487         dirent: Update doc.
5488         * doc/posix-headers/dirent.texi: More concrete list of platforms.
5490 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5492         glob: fix getpwnam_r errno typo
5493         * lib/glob.c (glob): Fix longstanding misuse of errno after
5494         getpwnam_r, which returns an error number rather than setting
5495         errno.
5497         glob: fix typo in recent change
5498         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
5499         Fix recently-introduced typo.
5501 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5503         glob: don't save and restore errno unnecessarily
5504         * lib/glob.c (glob): Don't save and restore errno
5505         merely because we have getpwnam_r.
5507         glob: don't assume getpwnam_r
5508         * lib/glob.c (glob): Port recent patches to platforms
5509         lacking getpwnam_r.
5511         scratch_buffer: don’t use private glibc API
5512         Suggested by Florian Weimer in:
5513         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
5514         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
5515         * lib/scratch_buffer_grow.c: Rename to
5516         lib/malloc/scratch_buffer_grow.c.
5517         * lib/scratch_buffer_grow_preserve.c: Rename to
5518         lib/malloc/scratch_buffer_grow_preserve.c.
5519         * lib/scratch_buffer_set_array_size.c: Rename to
5520         lib/malloc/scratch_buffer_set_array_size.c.
5521         * lib/scratch_buffer.h: New file.
5522         * modules/scratch_buffer (Files, Makefile.am):
5523         Adjust to source-file renaming.
5525 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5527         glob: use scratch_buffer instead of extend_alloca
5528         Much of the lib/glob.c part of this patch comes from a glibc patch
5529         proposed by Adhemerval Zanella in:
5530         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
5531         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
5532         included via glob.h, does this for us now.
5533         (__set_errno): Remove, as libc-config does this for us now.
5534         Include <scratch_buffer.h>.
5535         (GETPW_R_SIZE_MAX): Remove.
5536         (glob): Use struct scratch_buffer instead of extend_alloca.
5537         * lib/glob.in.h: Include libc-config.h rather than
5538         including <sys/cdefs.h> conditionally.
5539         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
5540         (__glibc_unlikely, __restrict, weak_alias):
5541         Remove, as libc-config does this for us now.
5542         * m4/glob.m4 (gl_PREREQ_GLOB):
5543         Remove sys/cdefs.h tests; no longer needed.
5544         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
5545         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
5547         scratch_buffer: new module
5548         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
5549         * lib/scratch_buffer_grow_preserve.c:
5550         * lib/scratch_buffer_set_array_size.c:
5551         New files, copied from glibc with very minor changes that can be
5552         copied back.
5553         * modules/scratch_buffer: New file.
5555         libc-config: new module
5556         * MODULES.html.sh: Add libc-config.
5557         * lib/cdefs.h: New file, copied from the GNU C Library with very
5558         minor changes that can be copied back.
5559         * lib/libc-config.h, modules/libc-config: New files.
5561 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5563         glob: match dangling symlinks
5564         This fixes a bug I inadvertently introduced to Gnulib when I
5565         merged glibc glob back into gnulib on 2007-10-16.  This fix is
5566         inspired by a patch proposed for glibc by Adhemerval Zanella in:
5567         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
5568         * doc/posix-functions/glob.texi: Update list of affected platforms.
5569         * lib/glob.c (__lstat64): New macro.
5570         (is_dir): New function.
5571         (glob, glob_in_dir): Match symlinks even if they are dangling.
5572         (link_stat, link_exists_p): Remove.  All uses removed.
5573         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
5574         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
5575         * modules/glob-tests (Depends-on): Add symlink.
5576         * tests/test-glob.c: Include errno.h, unistd.h.
5577         (BASE): New macro.
5578         (main): Test dangling symlinks, if symlinks are supported.
5580         glob, backupfile: inode 0 is a valid inode number
5581         * doc/posix-functions/readdir.texi (readdir):
5582         * doc/posix-headers/dirent.texi (dirent.h):
5583         Document more readdir portability issues.
5584         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
5585         (numbered_backup): Don’t treat inode 0 any differently from
5586         other inode values.
5587         * lib/glob.c (struct readdir_result): Remove skip_entry member.
5588         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
5589         All uses removed.
5590         * modules/glob (Depends-on): Remove d-ino.
5592         glob: simplify symlink detection
5593         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
5594         uint8_t, as C99 does not require uint8_t.
5595         (struct readdir_result): Use it.  Do not define skip_entry unless
5596         it is needed; this saves a byte on platforms lacking d_ino.
5597         (readdir_result_type, readdir_result_skip_entry):
5598         New functions, replacing ...
5599         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
5600         ... these functions, which were removed.  This makes the callers
5601         easier to read.  All callers changed.
5602         (D_INO_TO_RESULT): Now empty if there is no d_ino.
5604 2017-08-30  Pádraig Brady  <P@draigBrady.com>
5606         fts-tests: tag as a longrunning-test so not included by default
5607         * modules/fts-tests: This test takes about 20s on current systems,
5608         and uses about 285M of space on ext4.
5610 2017-08-30  Pádraig Brady  <P@draigBrady.com>
5612         renameat2: fix compilation on alpine linux
5613         * m4/renameat.m4: Check for <linux/fs.h> presence.
5614         * lib/renameat2.h: Only include <linux/fs.h> if present.
5615         Reported by Assaf Gordon on Alpine Linux.
5617 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5619         glob: try to port recent changes to MS-Windows
5620         Problem reported by Bruno Haible in:
5621         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
5622         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
5623         * lib/glob.in.h (__glob_pattern_p): ... to here.
5625 2017-08-24  Eric Blake  <eblake@redhat.com>
5627         warnings: fix compilation with old autoconf
5628         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
5629         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
5630         AC_DEFUN.
5631         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
5632         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
5634 2017-08-24  Bruno Haible  <bruno@clisp.org>
5636         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
5637         * modules/glob (Depends-on): Add c99.
5639 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5641         glob: fix typo that broke platforms lacking d_ino
5642         This typo also hurt performance on GNU/Linux and similar hosts.
5643         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
5644         in previous change.
5646 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5648         glob: merge from glibc with Zanella glob changes
5649         Merge glob from glibc, with changes for glob proposed
5650         by Adhemerval Zanella in the thread starting here:
5651         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
5652         plus some fixes for this merge.
5653         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
5654         New files, ported from glibc.
5655         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
5656         with __restrict.
5657         (__size_t): Remove.  All uses replaced by size_t.
5658         (size_t): Define by defining __need_size_t and including <stddef.h>.
5659         This should work even in non-glibc platforms, where any name
5660         pollution is OK.
5661         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
5662         (struct stat64): Don’t worry about __GLOB_GNULIB.
5663         (glob, globfree, glob_pattern_p): Remove macros for
5664         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
5665         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
5666         but set errno.
5667         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
5668         removed since the glibc behavior works on null pointers.
5669         Do not include stdio.h; old SunOS is irrelevant now.
5670         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
5671         Include glob_internal.h.
5672         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
5673         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
5674         worked only coincidentally.
5675         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
5676         Remove macros; now done in glob.in.h.
5677         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
5678         (glob): Properly initialize glob structure with
5679         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
5680         Remove old code using SHELL since Bash no longer
5681         uses this.
5682         (glob, prefix_array): Separate MS code better.
5683         (glob, glob_in_dir): Use C99 decls before statements when glibc
5684         does.
5685         (glob_in_dir): Remove old Amiga and VMS code.
5686         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
5687         separate files.
5688         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
5689         (__glibc_unlikely):
5690         Move here from glob.c.
5691         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
5692         (weak_alias): New macro.
5693         (__size_t): Remove.  All uses replaced by size_t.
5694         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
5695         * modules/glob (Files): Add +lib/glob_internal.h,
5696         lib/glob_pattern_p.c, lib/globfree.c.
5697         (Depends-on): Remove snippet/arg-nonnull.
5699 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5701         glob: port to clang's Undefined Sanitizer
5702         Problem reported by Tim Rühsen in:
5703         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
5704         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
5705         (glob_in_dir): Do not rely on undefined behavior in accessing
5706         struct members beyond their bounds.  Use a flexible array member
5707         instead.
5709 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5711         vc-list-files: port to Solaris 10
5712         * build-aux/vc-list-files: Don't assume test -e works.
5714 2017-08-21  Karl Berry  <karl@freefriends.org>
5716         * doc/posix-functions/srandom.texi (srandom): typo }.
5718 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5720         git-version-gen: port to Solaris 10
5721         Problem reported by Dagobert Michelsen in:
5722         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
5723         * build-aux/git-version-gen (v_from_git):
5724         Use expr instead of shell substitution.
5726 2017-08-19  Bruno Haible  <bruno@clisp.org>
5728         host-cpu-c-abi: Improve detection of MIPS ABI.
5729         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
5730         _MIPS_SIM.
5732 2017-08-17  Bruno Haible  <bruno@clisp.org>
5734         hypot tests: Fix test failure on FreeBSD 11.0/x86.
5735         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
5737 2017-08-17  Bruno Haible  <bruno@clisp.org>
5739         float: Fix LDBL_MIN value on FreeBSD/x86.
5740         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
5742 2017-08-17  Bruno Haible  <bruno@clisp.org>
5744         random: Fix test compilation failure on Cygwin 1.5.25.
5745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
5746         HAVE_DECL_SETSTATE.
5747         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
5748         declared.
5749         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
5750         HAVE_DECL_SETSTATE.
5751         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
5752         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
5753         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
5754         * doc/posix-functions/random.texi: Likewise.
5755         * doc/posix-functions/setstate.texi: Likewise.
5756         * doc/posix-functions/srandom.texi: Likewise.
5758 2017-08-16  Bruno Haible  <bruno@clisp.org>
5760         stdnoreturn: Fix test compilation failure on Cygwin.
5761         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
5762         <stdnoreturn.h> replacement.
5763         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
5764         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
5766 2017-08-16  Bruno Haible  <bruno@clisp.org>
5768         thread: Fix conflict with pthread_sigmask module.
5769         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
5770         it's defined as a macro.
5771         * modules/thread (Depends-on): Add pthread_sigmask.
5773 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
5775         rename: port better to NetBSD
5776         * doc/posix-functions/rename.texi (rename): NetBSD 7
5777         does not have the link-count bug.
5778         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
5779         broken merely because rename ("a", "b") removes "a" when the two
5780         names are hard links to the same file.
5782 2017-08-16  Bruno Haible  <bruno@clisp.org>
5784         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
5785         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
5786         the target file names with '$(srcdir)/'.
5787         * modules/unicase/locale-language (Makefile.am): Likewise.
5788         * modules/unicase/special-casing (Makefile.am): Likewise.
5789         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
5790         * modules/unictype/category-byname (Makefile.am): Likewise.
5791         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
5792         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
5793         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
5794         * modules/unictype/property-byname (Makefile.am): Likewise.
5795         * modules/unictype/scripts (Makefile.am): Likewise.
5796         * modules/uninorm/composition (Makefile.am): Likewise.
5798 2017-08-16  Bruno Haible  <bruno@clisp.org>
5800         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
5801         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
5802         value for OpenBSD.
5804 2017-08-16  Bruno Haible  <bruno@clisp.org>
5806         rename, renameat: Update doc regarding NetBSD.
5807         * doc/posix-functions/rename.texi: Clarify that when using
5808         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
5809         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
5810         version.
5812 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5814         renameat2: port better to macOS
5815         * lib/renameat2.c (renameat2): Use renameatx_np if available.
5817         futimens: don’t assume struct timespec layout
5818         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
5819         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
5820         * tests/test-fdutimensat.c (main):
5821         * tests/test-futimens.h (test_futimens):
5822         * tests/test-lutimens.h (test_lutimens):
5823         * tests/test-utimens.h (test_utimens):
5824         * tests/test-utimensat.c (main):
5825         Don’t assume that struct timespec is a two-member structure in
5826         tv_sec, tv_nsec order.  Although this is true on all platforms we
5827         know about, POSIX does not guarantee it.
5829         rename: document+test NetBSD rename
5830         Test failure reported by Bruno Haible in:
5831         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
5832         This is an area where NetBSD is better-behaved than POSIX,
5833         so allow the NetBSD behavior in tests.
5834         * doc/posix-functions/rename.texi:
5835         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
5836         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
5838 2017-08-15  Bruno Haible  <bruno@clisp.org>
5840         renameat: Ensure declaration in <stdio.h> on NetBSD.
5841         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
5842         * doc/posix-functions/renameat.texi: Mention this problem.
5844 2017-08-15  Bruno Haible  <bruno@clisp.org>
5846         duplocale: Work around NetBSD 7.0 bug.
5847         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
5848         * lib/duplocale.c: Add comment about NetBSD problem.
5849         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
5851 2017-08-15  Bruno Haible  <bruno@clisp.org>
5853         duplocale tests: Verify use with *_l functions.
5854         * modules/duplocale-tests (configure.ac): Test for uselocale and
5855         some *_l functions.
5856         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
5857         from main.
5858         (get_locale_dependent_values_from, test_with_locale_parameter): New
5859         functions.
5860         (main): Test both test_with_uselocale and test_with_locale_parameter.
5862 2017-08-15  Bruno Haible  <bruno@clisp.org>
5864         extensions: Enable NetBSD specific extensions.
5865         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
5867 2017-08-14  Bruno Haible  <bruno@clisp.org>
5869         open, openat: Update doc about O_CLOEXEC.
5870         * doc/posix-functions/open.texi: More concrete list of platforms.
5871         * doc/posix-functions/openat.texi: Likewise.
5873 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5875         open: support O_CLOEXEC
5876         * NEWS, doc/posix-functions/open.texi:
5877         * doc/posix-functions/openat.texi: Document this.
5878         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
5879         (GNULIB_defined_O_CLOEXEC): New symbol.
5880         * lib/open.c: Include cloexec.h.
5881         (open): Support O_CLOEXEC.
5882         * lib/openat.c: Include cloexec.h.
5883         (rpl_openat): Support O_CLOEXEC.
5884         * lib/popen-safer.c: Do not include cloexec.h.
5885         (open_noinherit): Remove.
5886         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
5887         * lib/save-cwd.c: Do not include cloexec.h.
5888         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
5889         * m4/open-cloexec.m4: New file.
5890         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
5891         Replace 'open' if O_CLOEXEC is not present.
5892         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
5893         Replace 'openat' if O_CLOEXEC is not present.
5894         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
5895         * modules/open (Files): Add m4/open-cloexec.m4.
5896         (Depends-on): Depend on cloexec if replacing 'open'.
5897         * modules/openat (Files): Add m4/open-cloexec.m4.
5898         (Depends-on): Depend on cloexec if replacing openat.
5899         * modules/popen-safer (Depends-on): Remove cloexec.
5900         * modules/save-cwd (Depends-on): Remove cloexec, and add
5901         fd-safer-flag and 'open'.
5903 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
5905         reallocarray: minor fixes
5906         * doc/glibc-functions/reallocarray.texi: Update version numbers.
5907         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
5908         * modules/reallocarray (License): Change from GPL to LGPL.
5909         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
5910         Indent properly and don't use tabs.
5912 2017-08-13  Darshit Shah  <darnir@gnu.org>
5914         reallocarray: New module
5915         reallocarray is a new function in glibc 2.26 to safely allocate an array
5916         of memory locations with integer overflow protection.
5917         * MODULES.html.sh: Add reallocarray.
5918         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
5919         * lib/reallocarray.c: New file to implement module reallocarray.
5920         * lib/stdlib.in.h: Add function declarations for reallocarray.
5921         * m4/reallocarray.m4: New file.
5922         * m4/stdlib_h.m4: Declare reallocarray.
5923         * modules/reallocarray: New file.
5924         * modules/reallocarray-test: New file.
5925         * modules/stdlib: Coerce stdlib.h to export reallocarray.
5926         * tests/test-reallocarray.c: New test.
5928 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5930         dirent-safer: fix cloexec race
5931         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
5932         (opendir_safer): Use F_DUPFD_CLOEXEC.
5933         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
5934         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
5935         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
5936         instead of dup_safer.
5938         fts: fix cloexec races
5939         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
5940         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
5941         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
5942         (fd_ring_check): Set cloexec flag on new file descriptors.
5943         (fts_build, fd_ring_check): While we’re at it, make sure the
5944         resulting file descriptor is not 0, 1, or 2, since that is easy.
5946 2017-08-11  Bruno Haible  <bruno@clisp.org>
5948         fts tests: Fix link error.
5949         Reported by Tom G. Christensen in
5950         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
5951         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
5953 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5955         fts: port recent changes to CentOS 6
5956         Problem reported by Tom G. Christensen in:
5957         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
5958         * lib/fts.c (fsword): New type.
5959         (struct dev_type, filesystem_type): Use it.
5960         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
5961         Also, check for f_type only if fstatfs and sys/vfs.h work.
5963 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
5965         tempname: do not depend on secure_getenv
5966         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
5967         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
5968         * modules/tempname (Depends-on): Remove secure_getenv.
5970 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
5972         extensions: add _OPENBSD_SOURCE
5973         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
5975 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
5976             Bruno Haible  <bruno@clisp.org>
5978         manywarnings: Add support for C++.
5979         * build-aux/g++-warning.spec: New file.
5980         * m4/manywarnings-c++.m4: New file.
5981         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
5982         redirects to manywarnings-c++.m4.
5983         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
5985 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
5987         git-version-gen: another fix for tags with "-"
5988         * build-aux/git-version-gen: Improve fix for tags containing "-".
5989         Suggested by Markus Armbruster in:
5990         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
5992 2017-08-06  Bruno Haible  <bruno@clisp.org>
5994         warnings, manywarnings: Add support for multiple languages, not just C.
5995         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
5996         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
5997         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
5998         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
5999         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
6000         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
6001         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
6002         of the current language. If C++ is the current language, modify
6003         WARN_CXXFLAGS instead of WARN_CFLAGS.
6004         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
6005         gl_MANYWARN_ALL_GCC.
6006         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
6008 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
6010         git-version-gen: Fix for tags containing '-'
6012         Really old versions of git-describe (before v1.5.0, Feb 2007)
6013         don't have the number of commits in their long format output,
6014         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
6015         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
6016         recognizes both patterns, and normalizes the old format to the new one.
6018         Unfortunately, this normalization code gets confused when the tag
6019         contains '-'.  Reproducer:
6021             $ git-tag -m test v0.2-rc1
6022             $ build-aux/git-version-gen .tarball-version; echo
6023             build-aux/git-version-gen: WARNING: git rev-list failed
6024             UNKNOWN
6026         We take exact tag "v0.2-rc1" for the old format, extract the presumed
6027         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
6028         commits since tha tag.  Fails, because tag "v0.2" does not exist.
6030         * git-version-gen: We could perhaps drop support for versions from
6031         more than a decade ago.  But tightening the pattern match is easy
6032         enough, so do that.  Still breaks when you use version tags ending in
6033         something matching -g????, but you arguably get what you deserve then.
6035 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
6037         valgrind-tests: use ls, and cache
6038         * m4/valgrind-tests.m4: Test ls, not bash.
6039         Problem reported by Reuben Thomas.
6040         Also, cache the result so that it can be overridden.
6042 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
6044         manywarnings: port to 64-bit GCC builds of Emacs
6045         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
6046         object size rather than hardwiring 2147483647.  This is needed to
6047         build GNU Emacs, which has one conditional (and used
6048         only-in-theory) call to malloc with a literal greater than
6049         2147483647.
6051 2017-08-04  Bruno Haible  <bruno@clisp.org>
6053         Relax the license of some modules with no runtime code.
6054         * modules/std-gnu11 (License): Set to 'unlimited'.
6055         * modules/c99 (License): Likewise.
6056         Reported by Reuben Thomas <rrt@sc3d.org>.
6057         * modules/d-ino (License): Set to 'LGPL'.
6058         * modules/host-os (License): Likewise.
6059         * modules/longlong (License): Likewise.
6061 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
6063         renameat2: port to RHEL 7 + NFS
6064         * lib/renameat2.c (renameat2) [SYS_renameat2]:
6065         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
6066         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
6068 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
6070         renameat2: port to non-renameat platforms
6071         Problem reported for MSVC-2015 by Gisle Vanem in:
6072         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
6073         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
6074         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
6076 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
6078         manywarnings: port to 32-bit GCC bug
6079         Problem reported by Pino Toscano in:
6080         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
6081         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
6082         not 2**63 - 1, to work around the following GCC bug:
6083         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
6085 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
6087         backupfile: new function to validate backup suffix
6088         * lib/backupfile.c (set_simple_backup_suffix): New function.
6089         (backupfile_internal): Use it.
6091         canonicalize: fix EOVERFLOW commentary
6092         Problem reported by Bruno Haible in:
6093         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
6094         * lib/canonicalize.c (canonicalize_filename_mode):
6095         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
6097         Don't interpret EOVERFLOW to mean nonexistence
6098         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
6099         may be EOVERFLOW; this is likely more useful than reporting the
6100         stat errno.
6101         * lib/glob.c (link_stat): Rename from link_exists2_p and
6102         return -1/0 instead of 0/1.  Caller changed.
6103         * lib/glob.c (link_exists_p):
6104         * lib/renameat2.c (rename_noreplace, renameat2):
6105         * lib/tempname.c (try_nocreate):
6106         If errno == EOVERFLOW then the directory entry exists, so do not
6107         act as if it does not exist.
6109         backup-rename: new module
6110         It is like backupfile, except it avoids some race conditions,
6111         and it does not output to stderr or exit.
6112         * MODULES.html.sh: Add backup-rename.
6113         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
6114         * modules/backup-rename: New files.
6115         * lib/backupfile.c: Turn this into an internals file, which
6116         contains code common to backupfile and backup_rename.  Include
6117         backupfile-internal.h instead of backupfile.h.  Do not include
6118         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
6119         renameat2.h and fcntl.h.
6120         (BACKUP_NOMEM): New constant.
6121         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
6122         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
6123         (backupfile_internal): Rename from find_backup_file_name.
6124         Support new arg RENAME.
6125         (backup_args, backup_types, get_version, xget_version):
6126         Move to lib/backup-find.c.
6127         * lib/backupfile.h (backup_file_rename): New decl.
6128         * modules/backupfile (Files): Add lib/backup-internal.h,
6129         lib/backup-find.c.
6130         (Depends-on): Add dirfd, fcntl, renameat2.
6131         (lib_SOURCES): Add backup-find.c.
6133         renameat2: port better to older Solaris
6134         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
6135         Add goto to use a label, to silence picky compilers.
6137         fts-tests: port to gcc -Wwrite-strings
6138         * tests/test-fts.c (base, base_d): New static vars.
6139         (argv, remove_tree, main): Use them.
6141 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
6143         relocatable-lib{,-lgpl}: improve documentation
6144         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
6145         Various other updates.
6147 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
6148             Bruno Haible  <bruno@clisp.org>
6150         relocatable-lib{,-lgpl}: add Valgrind suppressions
6151         * lib/relocatable.valgrind: New file.
6152         * modules/relocatable-lib (Files): Add relocatable.valgrind.
6153         * modules/relocatable-lib-lgpl: Likewise.
6155 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
6157         relocatable: Make the license on the sources the GPL.
6158         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
6159         LGPL, which was a special case so that the relocatable source files
6160         could be used without gnulib-tool, to GPL. They can still be used under
6161         the LGPL, using the --lgpl option to gnulib-tool.
6163 2017-07-30  Bruno Haible  <bruno@clisp.org>
6165         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
6166         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
6167         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
6168         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
6169         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
6171 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
6173         faccessat: document AT_SYMLINK_NOFOLLOW issue
6174         * doc/posix-functions/faccessat.texi: Modernize platform list.
6175         Document AT_SYMLINK_NOFOLLOW limitation.
6177         renameat2: port to Solaris 10
6178         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
6179         with AT_SYMLINK_NOFOLLOW (which is not portable).
6180         (renameat): Undef before using, to avoid endless recursion when
6181         the replacement renameat calls renameat2 which calls the
6182         replacement renameat.
6183         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
6184         * modules/renameat2 (Depends-on): Remove faccessat.
6185         * modules/renameat-tests (test_renameat_LDADD):
6186         * modules/renameat2-tests (test_renameat2_LDADD):
6187         Remove $(LIB_EACCESS).
6189         renameat2: new module
6190         Although the Linux syscall renameat2 is not in glibc (yet?), it is
6191         useful to have access to its RENAME_NOREPLACE flag.
6192         * MODULES.html.sh (func_all_modules): Add renameat2.
6193         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
6194         * modules/renameat2-tests, tests/test-renameat2.c: New files.
6195         * lib/renameat.c (renameat): Move most of the implementation
6196         to renameat2, and just call renameat2.
6197         * modules/renameat (Files): Remove lib/at-func2.c.
6198         (Depends-on): Depend only on renameat2.
6199         (Include): Remove <fcntl.h>.
6200         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
6201         since renameat (via renameat2) might use faccessat.
6203 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
6205         vc-list-files: Adjust the script to support git worktrees
6206         * build-aux/vc-list-files: Require existence, not directory.
6208 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6210         doc: bring MODULES.html.sh up to date
6211         Somehow a few months ago we stopped updating MODULES.html.sh.
6212         I don’t recall explicitly deciding this, so I updated it now.
6213         Alternatively I suppose we could remove it.
6214         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
6215         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
6216         truncate, utime, utime-h, windows-stat-inodes,
6217         windows-stat-override, windows-stat-timespec, year2038.  Sort.
6219 2017-07-26  Jim Meyering  <meyering@fb.com>
6221         fprintftime: fix build-break caused by recent renaming
6222         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
6223         "strftime.c".
6224         * modules/fprintftime: Depend directly on nstrftime.
6226 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6228         regex: work with GCC7's -Werror=implicit-fallthrough=
6229         * lib/regex_internal.h (FALLTHROUGH): New macro.
6230         * lib/regcomp.c (peek_token_bracket, parse_expression):
6231         * lib/regexec.c (check_node_accept): Use it.
6233 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6235         fts: simplify fts_build
6236         * lib/fts.c (fts_build): Simplify, and be lazier about
6237         calling leaf_optimization.
6239         fts: three levels of leaf optimization
6240         * lib/fts.c (enum leaf_optimization): New type with three values.
6241         (S_MAGIC_AFS): New macro.  Sort them.
6242         (leaf_optimization): Rename from leaf_optimization_applies, and
6243         return enum leaf_optimization instead of bool.  All uses changed.
6244         Add cases for unknown type and for AFS.
6245         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
6247         fts: cache dirent_inode_sort_may_be_useful too
6248         * lib/fts.c (struct dev_type): New struct.
6249         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
6250         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
6251         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
6252         Now takes FTSENT const *, not int.  All uses changed.  Use
6253         filesystem_type to cache.
6254         (link_count_optimize_ok): Remove.  Caller changed to use
6255         leaf_optimization_applies, which now uses shared cache.
6257         fts: introduce MIN_DIR_NLINK
6258         * lib/fts.c (MIN_DIR_NLINK): New constant.
6259         Use it instead of 2, whenever we are talking about link counts.
6261         fts: nlink_t signedness fixups
6262         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
6263         so that root need not be a special case later.
6264         (fts_read): Remove now-redundant test for fts_level.
6265         Do not assume that nlink_t is signed.
6266         (fts_build): Remove useless decrement of nlinks.
6267         (fts_stat): Avoid unlikely signed integer overflow later, if
6268         nlink_t is signed.
6270         fts-tests: new module
6271         * modules/fts-tests, tests/test-fts.c: New files.
6273 2017-07-23  Bruno Haible  <bruno@clisp.org>
6275         Rename module 'strftime' to 'nstrftime'.
6276         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
6277         * lib/nstrftime.c: Renamed from lib/strftime.c.
6278         * modules/nstrftime: Renamed from modules/strftime.
6279         (Files, Makefile.am): Update.
6280         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
6281         Fix comment.
6282         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
6283         (Files, Makefile.am): Update.
6284         * modules/strftime: New file, an obsolete indirection.
6285         * doc/posix-functions/strftime.texi: Update reference.
6286         * config/srclist.txt: Update info.
6287         * NEWS: Mention the change.
6289 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
6291         malloca: Silence a warning from clang's memory sanitizer.
6292         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
6293         (freea): Use it.
6295 2017-07-18  Bruno Haible  <bruno@clisp.org>
6297         host-cpu-c-abi: Fix detection of MIPS ABI.
6298         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
6299         ABI, not the CPU instruction set.
6301 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6303         explicit_bzero: new module
6304         The explicit_bzero function has been added to glibc.
6305         This module is intended to supports its use in GNU programs.
6306         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
6307         * m4/explicit_bzero.m4, modules/explicit_bzero:
6308         New files.
6309         * doc/gnulib.texi (Glibc string.h): Link to new doc.
6310         * lib/string.in.h (explicit_bzero): Declare.
6311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
6312         * modules/string (string.h): Substitute its vars.
6314 2017-07-16  Bruno Haible  <bruno@clisp.org>
6316         threadlib: Support static linking.
6317         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
6318         set gl_cv_have_weak to 'no'.
6320 2017-07-16  Bruno Haible  <bruno@clisp.org>
6322         unicase/locale-language: Fix link dependencies.
6323         * modules/unicase/locale-language (Link): New section.
6324         * modules/unicase/locale-language-tests (Makefile.am): Link
6325         test-locale-language program with $(LIBTHREAD).
6327 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6329         sys_socket: Add support for OpenVMS.
6330         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
6331         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
6333 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6335         sys_resource: Add support for OpenVMS.
6336         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
6337         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
6339 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6340             Bruno Haible  <bruno@clisp.org>
6342         math: Add support for OpenVMS.
6343         * lib/math.in.h [__VMS]: Include <fp.h>.
6344         * doc/posix-headers/math.texi: Mention OpenVMS issues.
6346 2017-07-15  Bruno Haible  <bruno@clisp.org>
6348         getdtablesize: Add minimal support for OpenVMS.
6349         Reported by John E. Malmberg <wb8tyw@qsl.net>.
6350         * modules/getdtablesize (Description): Fix.
6351         * lib/getdtablesize.c: Fix comment.
6352         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
6353         getdtablesize() function, even though the test fails.
6354         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
6355         limitation on OpenVMS.
6357 2017-07-13  Bruno Haible  <bruno@clisp.org>
6359         Revisit cross-compilation guesses.
6360         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
6362 2017-07-13  Bruno Haible  <bruno@clisp.org>
6364         Improve cross-compilation guesses for native Windows.
6365         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
6366         Windows.
6367         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
6368         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
6369         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6370         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
6371         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
6372         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6373         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6374         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6375         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6376         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
6377         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6378         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
6379         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
6380         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
6381         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
6382         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
6383         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
6384         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
6385         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6386         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
6387         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6388         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6389         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
6390         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
6391         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
6392         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
6393         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6394         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6395         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6396         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
6397         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6398         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
6399         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6400         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
6401         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
6402         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
6403         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
6404         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6405         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
6406         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6407         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6408         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6409         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
6410         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
6411         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
6412         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
6413         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
6414         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
6415         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
6416         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
6417         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
6418         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
6419         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
6420         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
6421         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
6422         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
6423         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
6424         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
6425         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
6426         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
6427         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6428         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
6429         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
6430         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6431         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6432         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6433         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
6434         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6435         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
6436         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
6437         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
6438         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
6439         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6440         * m4/regex.m4 (gl_REGEX): Likewise.
6441         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6442         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
6443         gl_FUNC_REMAINDERF_WORKS): Likewise.
6444         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
6445         gl_FUNC_REMAINDERL_WORKS): Likewise.
6446         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6447         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6448         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6449         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6450         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6451         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6452         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6453         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6454         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
6455         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6456         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
6457         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
6458         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6459         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6460         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6461         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6462         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6463         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6464         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6465         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6466         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
6467         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6468         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6469         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6470         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6471         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6472         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6473         Likewise.
6474         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6475         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
6476         Windows. Enable also on Autoconf 2.70.
6477         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6478         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6479         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
6480         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
6481         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6482         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
6483         for native Windows.
6484         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
6485         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
6487 2017-07-13  Bruno Haible  <bruno@clisp.org>
6489         Improve cross-compilation guesses for native Windows.
6490         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
6491         Windows.
6492         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
6493         memchr.m4.
6494         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6496 2017-07-13  Bruno Haible  <bruno@clisp.org>
6498         Improve cross-compilation guesses for native Windows.
6499         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
6500         native Windows.
6501         (gl_FUNC_FFLUSH): Update accordingly.
6502         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
6503         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
6505 2017-07-11  Bruno Haible  <bruno@clisp.org>
6507         More systematic m4 quoting and indentation.
6508         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
6509         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6510         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
6511         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6512         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6513         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
6514         gl_WINSIZE_IN_PTEM): Likewise.
6515         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
6516         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
6517         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
6518         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
6519         Correct indentation.
6520         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6521         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6522         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
6523         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6524         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6525         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6527 2017-07-10  Bruno Haible  <bruno@clisp.org>
6529         round, roundf: Avoid compiler warning in configure test.
6530         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
6531         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6533 2017-07-10  Bruno Haible  <bruno@clisp.org>
6535         getlogin tests: Avoid #ifdefs when sharing code between modules.
6536         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
6537         * modules/getlogin-tests (Files): Likewise. Remove
6538         tests/test-getlogin_r.c.
6539         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
6540         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
6541         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
6542         getlogin().
6544 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6546         getlogin: don’t assume one name per uid
6547         Problem reported by Wolfgang F. Muthmann (Bug#27640).
6548         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
6549         (ttyname): Remove test.
6550         * modules/getlogin_r-tests (ttyname): Remove test.
6551         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
6552         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
6553         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
6554         getlogin rather than getlogin_r.  This avoids code duplication.
6555         (main): Use isatty and fstat rather than ttyname and stat.
6556         Use getpwnam instead of getpwuid, to be portable to test platforms
6557         that have multiple login names for the same uid.
6559 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
6560             Bruno Haible  <bruno@clisp.org>
6562         glob: Fix more memory leaks.
6563         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
6564         returning.
6565         Reported by Tim Rühsen.
6567 2017-07-10  Bruno Haible  <bruno@clisp.org>
6569         Make sure $host and $host_os are defined when used.
6570         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
6571         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
6572         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
6573         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6574         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6575         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
6576         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
6577         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
6578         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6579         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
6580         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
6581         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
6582         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
6583         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
6584         m4_ifdef block.
6586 2017-07-09  Bruno Haible  <bruno@clisp.org>
6588         *printf: Fix cross-compilation guess for Solaris.
6589         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
6590         2010-12-21.
6592 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
6593             Bruno Haible  <bruno@clisp.org>
6595         vasnprintf: port to macOS 10.13
6596         Problem reported by comex in:
6597         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
6598         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
6600 2017-07-06  Bruno Haible  <bruno@clisp.org>
6602         imaxdiv tests: Fix logic.
6603         * tests/test-imaxdiv.c (main): Use == instead of =.
6604         Reported by Coverity.
6606 2017-07-06  Bruno Haible  <bruno@clisp.org>
6608         uninorm/filter: Fix use-after-free bug.
6609         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
6610         sortbuf == filter->sortbuf invariant.
6611         Reported by Coverity.
6613 2017-07-06  Bruno Haible  <bruno@clisp.org>
6615         glob: Fix more memory leaks.
6616         * lib/glob.c (glob): Free dirname before returning.
6617         Reported by Coverity and Tim Rühsen.
6619 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6621         parse-datetime: fix uninit var bug
6622         Reported by Bruno Haible in:
6623         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
6624         * lib/parse-datetime.y (parse_datetime2): Do not use
6625         uninitialized.
6627 2017-07-05  Bruno Haible  <bruno@clisp.org>
6629         doc: Update for MSVC 14.
6630         * doc/posix-headers/*.texi: Add info about MSVC 14.
6631         * doc/posix-functions/*.texi: Likewise.
6632         * doc/pastposix-functions/*.texi: Likewise.
6633         * doc/glibc-headers/*.texi: Likewise.
6634         * doc/glibc-functions/*.texi: Likewise.
6636 2017-07-05  Bruno Haible  <bruno@clisp.org>
6638         sched: Fix build failure on native Windows (regression from 2017-06-19).
6639         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
6641 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
6643         stdioext: Port to OpenVMS.
6644         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
6645         * lib/fpending.c (fpending): Remove non-working VMS specific code.
6646         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
6647         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
6648         * lib/fpurge.c (fpurge): Likewise.
6649         * lib/freadable.c (freadable): Likewise.
6650         * lib/freadahead.c (freadahead): Likewise.
6651         * lib/freading.c (freading): Likewise.
6652         * lib/freadptr.c (freadptr): Likewise.
6653         * lib/freadseek.c (freadseek): Likewise.
6654         * lib/fseeko.c (fseeko): Likewise.
6655         * lib/fseterr.c (fseterr): Likewise.
6656         * lib/fwritable.c (fwriteable): Likewise.
6657         * lib/fwriting.c (fwriting): Likewise.
6659 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
6661         glob: Declare variables at the very start of their scope.
6662         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
6663         its separate scope, so the functions will compile on Haiku.
6665 2017-07-01  Bruno Haible  <bruno@clisp.org>
6667         logbl: Work around a glibc bug on PowerPC64LE.
6668         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
6669         numbers.
6670         * doc/posix-functions/logbl.texi: Update.
6672 2017-06-29  Bruno Haible  <bruno@clisp.org>
6674         stat, fstat: Compile stat-w32.c only on platforms that need it.
6675         Suggested by Paul Eggert.
6676         * modules/stat (configure.ac): Request stat-w32.o only on native
6677         Windows.
6678         * modules/fstat (configure.ac): Likewise.
6680 2017-06-25  Bruno Haible  <bruno@clisp.org>
6682         stat: Improve last change.
6683         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
6685 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6687         stat: port to xlc 12.01
6688         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
6689         12.01 complains "Compilation unit is empty."
6691 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
6693         xalloc-oversized: port to icc
6694         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
6695         __builtin_mul_overflow if ICC is defined, as this results in
6696         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
6697         20170213.
6699 2017-06-19  Bruno Haible  <bruno@clisp.org>
6701         classpath: Avoid including config.h twice, as it produces warnings.
6702         Reported by John E. Malmberg <wb8tyw@gmail.com>.
6703         * lib/classpath.h: Conditionalize the include of config.h.
6705 2017-06-19  Bruno Haible  <bruno@clisp.org>
6706             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
6708         sched: Fix compilation failure on OpenVMS.
6709         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
6710         test whether <pthread.h> exists and defines struct sched_param.
6711         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
6713 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
6715         diffseq: port to GCC 7 with --enable-gcc-warnings
6716         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
6717         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
6718         not complain about big_snake being defined but not used.
6720 2017-06-15  Bruno Haible  <bruno@clisp.org>
6722         gettext-h: Update theoretical condition for use of variable size arrays.
6723         Reported by Paul Eggert.
6724         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
6725         to include the theoretical condition for availability of variable size
6726         arrays, if we could trust the value of __STDC_VERSION__.
6728 2017-06-12  Bruno Haible  <bruno@clisp.org>
6730         Relicense some modules under LGPLv2+.
6731         Daiki Ueno's approval is in
6732         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
6733         * modules/uniwidth/base (License): Change to LGPLv2+.
6734         * modules/uniwidth/width (License): Likewise.
6736 2017-06-11  Bruno Haible  <bruno@clisp.org>
6738         localename: Fix test failure on DragonFly BSD.
6739         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
6740         like FreeBSD.
6742 2017-06-11  Bruno Haible  <bruno@clisp.org>
6744         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
6745         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
6746         * lib/float.in.h: Likewise.
6747         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
6749 2017-06-11  Bruno Haible  <bruno@clisp.org>
6751         gnulib-tool: Clean up after autotools.
6752         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
6753         useless directory left over by the Autotools.
6755 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
6757         getopt-posix: port to glibc 2.25.90
6758         Problem reported by Daniel P. Berrange in:
6759         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
6760         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
6761         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
6762         #undef if __GETOPT_PREFIX is defined.
6764 2017-06-11  Bruno Haible  <bruno@clisp.org>
6766         strtod-obsolete: Fix license.
6767         * modules/strtod-obsolete (License): Change to LGPL.
6769 2017-06-10  Jim Meyering  <meyering@fb.com>
6771         maint: update to work with GCC7's -Werror=implicit-fallthrough=
6772         * lib/savewd.c (FALLTHROUGH): Define.
6773         (savewd_save, savewd_restore): Use this, rather than a comment,
6774         whenever one switch case falls through into the next.
6776 2017-06-08  Bruno Haible  <bruno@clisp.org>
6778         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
6779         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
6780         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
6781         case.
6783 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
6785         doc: remove robots, add prereqs
6786         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
6787         builds.  Simon's robot site does not seem to be up, so remove
6788         mentions of it for now.
6790 2017-06-08  Bruno Haible  <bruno@clisp.org>
6792         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
6793         * gnulib-tool (func_symlink_target): New function, extracted from
6794         func_symlink.
6795         (func_symlink, func_symlink_if_changed): Use it.
6797 2017-06-08  Bruno Haible  <bruno@clisp.org>
6799         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
6800         * gnulib-tool (func_ln_s): Determine cp_src correctly.
6802 2017-06-07  Bruno Haible  <bruno@clisp.org>
6804         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
6805         Reported by John E. Malmberg <wb8tyw@gmail.com> in
6806         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
6807         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
6808         override, pass 2 arguments to getcwd, not 3.
6810 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
6812         same-inode: port better to VMS 8.2 and later
6813         Problem reported by John E. Malmberg in:
6814         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
6815         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
6816         Use the usual POSIX definition.
6817         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
6819 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6821         error: fix POSIX violation for va_end
6822         Problem reported by Bruno Haible in:
6823         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
6824         * lib/error.c (error_tail): Do not call va_end here.
6825         (error, error_at_line): Call it here instead.
6827 2017-05-28  Bruno Haible  <bruno@clisp.org>
6829         c-strtod: Make it usable in C++ mode.
6830         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
6832 2017-05-25  Jim Meyering  <meyering@fb.com>
6834         quotearg: fix compilation failure due to FALLTHROUGH misuse
6835         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
6836         macro back to /* fall through */ comment.  The macro can apply only
6837         to a following case statement.  Reported by Assaf Gordon.
6839 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
6841         intprops: port to recent icc
6842         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
6843         but does not support __builtin_add_overflow etc.
6844         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
6845         Define to 0.
6847 2017-05-23  Karl Berry  <karl@freefriends.org>
6849         * config/srclist.txt (iconv.m4): sync broken, comment out
6850         until (hopefully) the next gettext release.
6852 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
6854         Remove repeated words in comments.
6856 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
6858         fallthrough: reinstate a FALLTHROUGH instance in quotearg
6859         quotearg.c: Reinstate this instance which is significant
6860         when the if branch is not taken.
6862 2017-05-21  Bruno Haible  <bruno@clisp.org>
6864         gnulib-tool: Add options to create hard links.
6865         * gnulib-tool (func_usage): Document options --hardlink,
6866         --local-hardlink, --more-hardlinks.
6867         (func_symlink): Renamed from func_ln.
6868         (func_symlink_if_changed): Renamed from func_ln_if_changed.
6869         (func_hardlink): New function.
6870         (copymode, lcopymode): New variables.
6871         (symbolic, lsymbolic): Remove variables.
6872         (Options): Implement options --hardlink, --local-hardlink,
6873         --more-hardlinks.
6874         (func_should_link): Renamed from func_should_symlink. Set copyaction.
6875         (func_add_file, func_update_file): Update invocation of
6876         func_should_link. Invoke func_hardlink when appropriate.
6877         (func_import): Update comments.
6878         (func_create_testdir): Update invocation of func_should_link. Invoke
6879         func_hardlink when appropriate.
6880         Finally, invoke 'git update-index --refresh' to mitigate the effects of
6881         the hard links on git.
6883 2017-05-20  Bruno Haible  <bruno@clisp.org>
6885         argp: Simplify bit manipulation.
6886         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
6887         on a signed integer type.
6889 2017-05-20  Bruno Haible  <bruno@clisp.org>
6891         Avoid wrong configure results with gcc -fsanitize=address.
6892         This completes the work done on 2016-02-06 on this topic.
6893         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
6894         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
6895         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6896         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6897         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
6898         returning.
6899         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
6900         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
6901         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6902         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6903         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
6904         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
6905         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
6906         free allocated memory before returning.
6907         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6908         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
6909         objects before returning.
6910         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
6911         returning.
6913 2017-05-20  Bruno Haible  <bruno@clisp.org>
6915         gnulib-tool: Don't create hard links between gnulib and its testdirs.
6916         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
6918 2017-05-20  Bruno Haible  <bruno@clisp.org>
6920         argp, tsearch tests: Fix file list.
6921         * modules/argp-tests (Files): Add tests/macros.h.
6922         * modules/tsearch-tests (Files): Likewise.
6924 2017-05-20  Bruno Haible  <bruno@clisp.org>
6926         getopt-posix tests: Remove redundant include.
6927         * tests/test-getopt.h: Don't include "macros.h". It's already included
6928         by tests/test-getopt-main.h.
6930 2017-05-19  Jim Meyering  <meyering@fb.com>
6932         dfa: two small simplifications
6933         * lib/dfa.c (build_state): Avoid repeating longer expressions.
6935 2017-05-18  Jim Meyering  <meyering@fb.com>
6937         fallthrough: update for GCC 7/8
6938         * lib/quotearg.c (FALLTHROUGH): New macro.
6939         Use it whenever one switch case falls through into the next,
6940         replacing "/* Fall through */" comments.  This exposed one
6941         instance of an unwarranted "fall through" comment: unwarranted
6942         because it preceded a "goto" label not a case statement.
6943         * lib/freopen-safer.c (freopen_safer): Likewise.
6944         * lib/fts.c (leaf_optimization_applies): Likewise.
6945         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
6946         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
6947         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
6948         tests/macros.h for the definition.
6949         * tests/test-argp.c (group1_parser): Likewise.
6950         * tests/test-getopt.h (getopt_loop): Likewise.
6952 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6954         argp: fix shift bug
6955         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
6956         behavior on shift overflow, caught by gcc -fsanitize=undefined.
6958         argp: fix pointer-subtraction bug
6959         * lib/argp-help.c (hol_append): Don’t subtract pointers to
6960         different arrays, as this can run afoul of -fcheck-pointer-bounds.
6961         See the thread containing Bruno Haible’s report in:
6962         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
6964 2017-05-19  Bruno Haible  <bruno@clisp.org>
6966         printf-posix tests: Avoid test failure with "gcc --coverage".
6967         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
6968         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
6969         than 5000000.
6970         * tests/test-fprintf-posix2.c (main): Likewise.
6972 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6974         closeout: don’t close stderr when sanitizing
6975         * NEWS: Document this.
6976         * lib/closeout.c (__has_feature): New macro, if not already defined.
6977         (SANITIZE_ADDRESS): New constant.
6978         (close_stdout): Don’t close stderr if sanitizing addresses.
6980 2017-05-19  Bruno Haible  <bruno@clisp.org>
6982         get-rusage-data tests: Avoid failure on Linux/glibc.
6983         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
6984         on glibc systems.
6986 2017-05-18  Bruno Haible  <bruno@clisp.org>
6988         localename: Include necessary header files on Cygwin.
6989         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
6990         where NL_LOCALE_NAME is defined.
6992 2017-05-18  Bruno Haible  <bruno@clisp.org>
6994         gettext: Update macros from gettext git.
6995         * m4/intldir.m4: Require Autoconf >= 2.60.
6996         * m4/progtest.m4: Fix typos in copyright notice.
6998 2017-05-18  Bruno Haible  <bruno@clisp.org>
7000         copy-file tests: Fix link error (regression from 2017-05-01).
7001         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7002         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
7003         $(LIB_CLOCK_GETTIME).
7005 2017-05-18  Bruno Haible  <bruno@clisp.org>
7007         unicase/special-casing: Fix incompatibility with gperf-3.0.4
7008         (regression from 2017-02-13).
7009         * lib/unicase/special-casing.in.h: Renamed from
7010         lib/unicase/special-casing.h.
7011         * modules/unicase/special-casing (Files): Add
7012         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
7013         (Makefile.am): Add rule for generating unicase/special-casing.h.
7014         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
7015         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
7016         not "special-casing.h".
7017         * lib/unicase/u*.c: Likewise.
7019 2017-05-17  Bruno Haible  <bruno@clisp.org>
7021         README: Don't ask people to read a TeXinfo file.
7022         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
7023         * README: Tell people how to read the HTML formatted manual.
7025 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
7027         parse-datetime: Fix memleak
7028         * lib/parse-datetime.y (parse_datetime2): Cleanup on
7029         localtime_rz() failure.
7031 2017-05-16  Bruno Haible  <bruno@clisp.org>
7033         javacomp: Fix handle leak.
7034         Found by Coverity.
7035         * lib/javacomp.c (get_classfile_version): Close fd before returning.
7037 2017-05-16  Bruno Haible  <bruno@clisp.org>
7039         relocate: Make it easier to reclaim allocated memory.
7040         * lib/relocatable.h (relocate2): New declaration/macro.
7041         * lib/relocatable.c (relocate2): New function.
7042         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
7043         relocate2 function.
7044         * lib/localcharset.c (relocate2): Define fallback.
7045         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
7046         allocated memory.
7047         * lib/javaversion.c (relocate2): Define fallback.
7048         (javaexec_version): Invoke relocate2 instead of relocate. Free the
7049         allocated memory.
7051 2017-05-16  Bruno Haible  <bruno@clisp.org>
7053         relocate: Simplify EMX specific code.
7054         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
7055         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
7057 2017-05-16  Bruno Haible  <bruno@clisp.org>
7059         sigpipe tests: Fix file list.
7060         * modules/sigpipe-tests (Files): Add tests/macros.h.
7062 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7064         manywarnings: update for GCC 7
7065         * build-aux/gcc-warning.spec:
7066         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
7067         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
7068         requires a non-comment fallthrough attribute.  This is a bit
7069         cleaner than the comment versions.
7070         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
7071         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
7072         Use it whenever one switch case falls through into the next.
7073         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
7074         Use FALLTHROUGH macro.
7076 2017-05-15  Bruno Haible  <bruno@clisp.org>
7078         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
7079         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
7080         @ALLOCA@, not @LTALLOCA@.
7082 2017-05-15  Bruno Haible  <bruno@clisp.org>
7084         sys_select: Avoid "was expanded before it was required" warning.
7085         * modules/sys_select (configure.ac): Require, not invoke,
7086         gl_HEADER_SYS_SELECT.
7088 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
7090         gnulib-tool: improve GNU Make debugging
7091         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
7092         Report autoconf diagnostics when it fails, in the output makefile.
7094 2017-05-14  Bruno Haible  <bruno@clisp.org>
7096         stat-time tests: Improve comment.
7097         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
7099 2017-05-14  Bruno Haible  <bruno@clisp.org>
7101         same-inode: Adapt for windows-stat-inodes.
7102         * lib/same-inode.h: Include <sys/types.h>.
7103         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
7104         * modules/same-inode (Depends-on): Add sys_types.
7106 2017-05-14  Bruno Haible  <bruno@clisp.org>
7108         windows-stat-inodes: New module.
7109         * m4/windows-stat-inodes.m4: New file.
7110         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
7111         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
7112         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
7113         (_GL_WINDOWS_STAT_INODES): New macro.
7114         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
7115         (GetFileInformationByHandleExFunc): New variable.
7116         (initialize): Initialize it.
7117         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
7118         st_ino appropriately.
7119         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
7120         a fallback, because it does not provide st_dev and st_ino values.
7121         * modules/fstat (Depends-on): Add 'verify'.
7122         * modules/windows-stat-inodes: New file.
7123         * doc/windows-stat-inodes.texi: New file.
7124         * doc/gnulib.texi: Include it.
7125         * doc/posix-headers/sys_stat.texi: Mention the new module.
7127 2017-05-14  Bruno Haible  <bruno@clisp.org>
7129         stat-time tests: Workaround for native Windows.
7130         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
7131         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
7132         New variables.
7133         (initialize_filenames): New function.
7134         (main): Invoke it.
7135         (cleanup, prepare_test): Update.
7137 2017-05-14  Bruno Haible  <bruno@clisp.org>
7139         stat-time: Adapt for windows-stat-timespec.
7140         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
7141         entire st_ctim field.
7143 2017-05-13  Jim Meyering  <meyering@fb.com>
7145         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
7146         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
7147         file that uses the assume macro, claiming that verify.h is unused.
7149 2017-05-13  Bruno Haible  <bruno@clisp.org>
7151         Use symbolic values for _WIN32_WINNT.
7152         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
7153         * lib/sethostname.c (_WIN32_WINNT): Likewise.
7155 2017-05-13  Bruno Haible  <bruno@clisp.org>
7157         year2038: New module.
7158         * m4/year2038.m4: New file.
7159         * modules/year2038: New file.
7160         * doc/year2038.texi: New file.
7161         * doc/gnulib.texi: Include it.
7163 2017-05-13  Bruno Haible  <bruno@clisp.org>
7165         largefile: Simplify.
7166         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
7167         of _GL_WINDOWS_64_BIT_ST_SIZE.
7169 2017-05-13  Bruno Haible  <bruno@clisp.org>
7171         largefile: Improve and document.
7172         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
7173         the mingw headers already define 'stat' appropriately.
7174         * modules/largefile (Description): Clarify.
7175         * doc/largefile.texi: New file.
7176         * doc/gnulib.texi: Include it.
7177         * doc/posix-headers/sys_types.texi: Update.
7179 2017-05-13  Bruno Haible  <bruno@clisp.org>
7181         truncate: New module.
7182         * lib/unistd.in.h (truncate): New declaration.
7183         * lib/truncate.c: New file.
7184         * m4/truncate.m4: New file.
7185         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
7186         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
7187         REPLACE_TRUNCATE.
7188         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
7189         HAVE_TRUNCATE, REPLACE_TRUNCATE.
7190         * modules/truncate: New file.
7191         * tests/test-unistd-c++.cc (truncate): Test signature.
7192         * doc/posix-functions/truncate.texi: Mention the new module.
7194         * tests/test-truncate.c: New file.
7195         * modules/truncate-tests: New file.
7197 2017-05-13  Bruno Haible  <bruno@clisp.org>
7199         windows-stat-timespec: New module.
7200         * modules/windows-stat-timespec: New file.
7201         * m4/windows-stat-timespec.m4: New file.
7202         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
7203         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
7204         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
7205         fields st_atim, st_mtim, st_ctim.
7206         (st_atime, st_mtime, st_ctime): Define as macros.
7207         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
7208         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
7209         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
7210         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
7211         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
7212         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
7213         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7214         FILETIME to 'struct timespec', not 'time_t'.
7215         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7216         FILETIME to 'struct timespec', not 'time_t'.
7217         * lib/stat-time.h (STAT_TIMESPEC): Define also if
7218         _GL_WINDOWS_STAT_TIMESPEC.
7219         * doc/windows-stat-timespec.texi: New file.
7220         * doc/gnulib.texi: Include it.
7222 2017-05-13  Bruno Haible  <bruno@clisp.org>
7224         windows-stat-override: New module.
7225         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
7226         definition. Define GNULIB_defined_struct_stat.
7227         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
7228         link error if this symbol is used and the corresponding module is not
7229         in use.
7230         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
7231         GNULIB_OVERRIDES_STRUCT_STAT.
7232         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
7233         GNULIB_OVERRIDES_STRUCT_STAT.
7234         * modules/sys_stat (Makefile.am): Substitute
7235         GNULIB_OVERRIDES_STRUCT_STAT.
7236         * modules/windows-stat-override: New file.
7238 2017-05-13  Bruno Haible  <bruno@clisp.org>
7240         fstat: Fix module dependency conditions.
7241         * modules/fstat (Depends-on): Fix typo.
7243 2017-05-13  Bruno Haible  <bruno@clisp.org>
7245         stat, fstat: Complete removal of old native Windows code.
7246         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
7247         * lib/fstat.c: Likewise.
7248         * lib/stat-w32.c: Likewise.
7250 2017-05-13  Bruno Haible  <bruno@clisp.org>
7252         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
7253         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
7255 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
7257         getopt-posix: port to mingw
7258         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
7259         Problem reported by Daniel P. Berrage in:
7260         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
7262 2017-05-11  Bruno Haible  <bruno@clisp.org>
7264         gettimeofday: Increase precision on mingw.
7265         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
7266         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
7267         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
7268         GetSystemTimePreciseAsFileTime based implementation always.
7269         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
7270         mingw.
7272 2017-05-11  Bruno Haible  <bruno@clisp.org>
7274         poll: Fix confusion between SOCKETs and FDs on native Windows.
7275         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
7276         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
7278 2017-05-11  Bruno Haible  <bruno@clisp.org>
7280         doc: Clarify doc about socket functions on native Windows.
7281         This reworks doc that was added on 2008-09-29.
7282         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
7283         clearer wording.
7284         * doc/posix-functions/accept.texi: Use clearer wording.
7285         * doc/posix-functions/bind.texi: Likewise.
7286         * doc/posix-functions/connect.texi: Likewise.
7287         * doc/posix-functions/getpeername.texi: Likewise.
7288         * doc/posix-functions/getsockname.texi: Likewise.
7289         * doc/posix-functions/getsockopt.texi: Likewise.
7290         * doc/posix-functions/ioctl.texi: Likewise.
7291         * doc/posix-functions/listen.texi: Likewise.
7292         * doc/posix-functions/recv.texi: Likewise.
7293         * doc/posix-functions/recvfrom.texi: Likewise.
7294         * doc/posix-functions/send.texi: Likewise.
7295         * doc/posix-functions/sendto.texi: Likewise.
7296         * doc/posix-functions/setsockopt.texi: Likewise.
7297         * doc/posix-functions/shutdown.texi: Likewise.
7298         * doc/posix-functions/socket.texi: Likewise.
7300 2017-05-10  Bruno Haible  <bruno@clisp.org>
7302         poll: Fix link error on native Windows.
7303         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
7305 2017-05-10  Bruno Haible  <bruno@clisp.org>
7307         time: Fix missing initialization of HAVE_TIMEZONE_T.
7308         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
7309         here...
7310         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
7311         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
7312         gl_HEADER_SYS_TIME_H_DEFAULTS.
7313         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
7314         (configure.ac): Remove useless quoting.
7316 2017-05-10  Bruno Haible  <bruno@clisp.org>
7318         Implement a way to opt out from MSVC support, part 2.
7319         * modules/msvc-inval (Include): Document recommended idiom.
7320         * modules/msvc-nothrow (Include): Likewise.
7322         Implement a way to opt out from MSVC support.
7323         This is useful for Emacs.
7324         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
7325         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
7326         * lib/error.c: Likewise.
7327         * lib/fcntl.c: Likewise.
7328         * lib/flock.c: Likewise.
7329         * lib/fstat.c: Likewise.
7330         * lib/fsync.c: Likewise.
7331         * lib/ioctl.c: Likewise.
7332         * lib/isapipe.c: Likewise.
7333         * lib/lseek.c: Likewise.
7334         * lib/nonblocking.c: Likewise.
7335         * lib/poll.c: Likewise.
7336         * lib/select.c: Likewise.
7337         * lib/sockets.h: Likewise.
7338         * lib/sockets.c: Likewise.
7339         * lib/stdio-read.c: Likewise.
7340         * lib/stdio-write.c: Likewise.
7341         * lib/utimens.c: Likewise.
7342         * lib/w32sock.h: Likewise.
7343         * lib/w32spawn.h: Likewise.
7344         * tests/test-cloexec.c: Likewise.
7345         * tests/test-dup-safer.c: Likewise.
7346         * tests/test-dup2.c: Likewise.
7347         * tests/test-dup3.c: Likewise.
7348         * tests/test-fcntl.c: Likewise.
7349         * tests/test-pipe.c: Likewise.
7350         * tests/test-pipe2.c: Likewise.
7351         * lib/ftruncate.c: Likewise.
7352         (chsize_nothrow): Renamed from chsize.
7353         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
7354         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7355         * lib/close.c: Likewise.
7356         * lib/dup.c: Likewise.
7357         * lib/fclose.c: Likewise.
7358         * lib/raise.c: Likewise.
7359         * tests/test-fgetc.c: Likewise.
7360         * tests/test-fputc.c: Likewise.
7361         * tests/test-fread.c: Likewise.
7362         * tests/test-fwrite.c: Likewise.
7363         * lib/getdtablesize.c: Likewise.
7364         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
7365         * lib/isatty.c: Don't include msvc-inval.h if
7366         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7367         Include <io.h> as an alternative to msvc-nothrow.h.
7368         * lib/read.c: Likewise.
7369         * lib/write.c: Likewise.
7370         * lib/dup2.c: Likewise.
7371         (dup2_nothrow): New function.
7372         (ms_windows_dup2): Use it.
7373         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
7374         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
7375         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
7376         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
7377         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
7378         * m4/read.m4 (gl_FUNC_READ): Likewise.
7379         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
7380         * doc/windows-without-msvc.texi: New file.
7381         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
7382         section.
7384 2017-05-10  Bruno Haible  <bruno@clisp.org>
7386         wait-process: Adjust native Windows support.
7387         * lib/wait-process.c: Use the usual condition for recognizing a native
7388         Windows platform.
7390 2017-05-10  Bruno Haible  <bruno@clisp.org>
7392         doc: New chapter "Native Windows Support".
7393         * doc/gnulib.texi (Native Windows Support): New chapter.
7394         * doc/windows-libtool.texi: Small wording changes.
7395         * doc/windows-sockets.texi: Small wording and formatting changes.
7397 2017-05-10  Bruno Haible  <bruno@clisp.org>
7399         doc: Move section "Library version handling".
7400         * doc/gnulib.texi: Move section "Library version handling"
7401         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
7403 2017-05-10  Bruno Haible  <bruno@clisp.org>
7405         doc: Move section "Running self-tests under valgrind".
7406         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
7407         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
7409 2017-05-10  Bruno Haible  <bruno@clisp.org>
7411         doc: New chapter "Build Infrastructure Modules".
7412         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
7414 2017-05-10  Bruno Haible  <bruno@clisp.org>
7416         Prepare for reordering sections in the manual.
7417         * doc/gnulib.texi: Move several sections to separate files. Include
7418         these files.
7419         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
7420         * doc/obsolete.texi: Likewise.
7421         * doc/extra-tests.texi: Likewise.
7422         * doc/transversal.texi: Likewise.
7423         * doc/namespace.texi: Likewise.
7424         * doc/check-version.texi: Likewise.
7425         * doc/windows-sockets.texi: Likewise.
7426         * doc/windows-libtool.texi: Likewise.
7427         * doc/licenses-texi.texi: Likewise.
7428         * doc/build-automation.texi: Likewise.
7429         * doc/c-locale.texi: Likewise.
7431 2017-05-10  Bruno Haible  <bruno@clisp.org>
7433         Fix instructions how to update manual on www.gnu.org.
7434         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
7436 2017-05-09  Bruno Haible  <bruno@clisp.org>
7438         tzset: Expand comment about TZ problem on native Windows.
7439         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
7440         Paul Eggert.
7441         * lib/ctime.c (rpl_ctime): Likewise.
7442         * lib/localtime.c (rpl_localtime): Likewise.
7443         * lib/mktime.c (mktime): Likewise.
7444         * lib/strftime-fixes.c (rpl_strftime): Likewise.
7445         * lib/wcsftime.c (rpl_wcsftime): Likewise.
7447 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7449         intprops: don’t depend on ‘verify’
7450         Problem reported by Ævar Arnfjörð Bjarmason in:
7451         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
7452         * lib/intprops.h: Do not include verify.h, and move compile-time
7453         checks from here ...
7454         * tests/test-intprops.c (main): ... to here, if they’re not here
7455         already.  Check widths of other standard integer types.
7456         * modules/intprops (Depends-on): Remove ‘verify’.
7458 2017-05-07  Bruno Haible  <bruno@clisp.org>
7460         utimens: On native Windows, support 100ns resolution also if fd < 0.
7461         * lib/utime.in.h: Include <time.h>.
7462         (_gl_utimens_windows): New declaration.
7463         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
7464         (utime): Invoke it.
7465         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
7466         instead of utime.
7467         * modules/utime (Depends-on): Add 'time'.
7469 2017-05-07  Bruno Haible  <bruno@clisp.org>
7471         utimens: Improve error code on native Windows.
7472         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
7473         error code EACCES, not EINVAL.
7475 2017-05-07  Bruno Haible  <bruno@clisp.org>
7477         utime: Handle more Windows error codes.
7478         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
7479         Based on explanations by Billy O'Neal.
7481 2017-05-05  Bruno Haible  <bruno@clisp.org>
7483         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
7484         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
7485         union.
7486         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
7487         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
7488         value of cipher->IV.
7490 2017-05-05  Bruno Haible  <bruno@clisp.org>
7492         wctype-h-c++-tests: Update.
7493         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
7495 2017-05-05  Bruno Haible  <bruno@clisp.org>
7497         wchar-c++-tests: Update.
7498         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
7500 2017-05-05  Bruno Haible  <bruno@clisp.org>
7502         utime-h-c++-tests: New module.
7503         * tests/test-utime-h-c++.cc: New file.
7504         (utime): Declare, missing since 2017-04-30.
7505         * modules/utime-h-c++-tests: New file.
7507 2017-05-05  Bruno Haible  <bruno@clisp.org>
7509         unistd-c++-tests: Update.
7510         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
7511         (read): Declare, missing since 2011-04-15.
7512         (sethostname): Declare, missing since 2011-12-03.
7514 2017-05-05  Bruno Haible  <bruno@clisp.org>
7516         time-c++-tests: Update.
7517         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
7518         (localtime, gmtime): Declare, missing since 2017-04-30.
7519         (ctime): Declare, missing since 2017-04-30.
7520         (strftime): Declare, missing since 2017-04-30.
7521         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
7522         2015-07-24.
7524 2017-05-05  Bruno Haible  <bruno@clisp.org>
7526         sys_resource-c++-tests: New module.
7527         * tests/test-sys_resource-c++.cc: New file.
7528         (getrusage): Declare, missing since 2012-04-13.
7529         * modules/sys_resource-c++-tests: New file.
7531 2017-05-05  Bruno Haible  <bruno@clisp.org>
7533         strings-c++-tests: New module.
7534         * tests/test-strings-c++.cc: New file.
7535         (ffs): Declare, missing since 2011-07-12.
7536         * modules/strings-c++-tests: New file.
7538 2017-05-05  Bruno Haible  <bruno@clisp.org>
7540         string-c++-tests: Update.
7541         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
7542         (ffsll): Declare, missing since 2011-07-15.
7544 2017-05-05  Bruno Haible  <bruno@clisp.org>
7546         stdlib-c++-tests: Update.
7547         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
7548         2011-10-18.
7549         (ptsname_r): Declare, missing since 2011-11-07.
7550         (qsort_r): Declare, missing since 2014-08-29.
7551         (random, srandom, initstate, setstate): Declare, missing since
7552         2012-01-14.
7553         (secure_getenv): Declare, missing since 2013-02-05.
7555 2017-05-05  Bruno Haible  <bruno@clisp.org>
7557         stdio-c++-tests: Update.
7558         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
7560 2017-05-05  Bruno Haible  <bruno@clisp.org>
7562         signal-h-c++-tests: Update.
7563         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
7565 2017-05-05  Bruno Haible  <bruno@clisp.org>
7567         math-c++-tests: Update.
7568         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
7569         (fma): Declare, missing since 2011-10-17.
7570         (fmal): Declare, missing since 2011-10-17.
7572 2017-05-05  Bruno Haible  <bruno@clisp.org>
7574         locale-c++-tests: Update.
7575         * tests/test-locale-c++.cc (localeconv): Declare, missing since
7576         2012-03-25.
7578 2017-05-05  Bruno Haible  <bruno@clisp.org>
7580         inttypes-c++-tests: New module.
7581         * tests/test-inttypes-c++.cc: New file.
7582         (strtoimax): Declare, missing since 2012-01-05.
7583         (strtoumax): Declare, missing since 2012-01-05.
7584         * modules/inttypes-c++-tests: New file.
7586 2017-05-05  Bruno Haible  <bruno@clisp.org>
7588         dirent-c++-tests: Update.
7589         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
7590         (rewinddir): Declare, missing since 2011-09-13.
7591         (dirfd): Declare, missing since 2010-03-08.
7593 2017-05-04  Bruno Haible  <bruno@clisp.org>
7595         argp: Fix mistake in 2017-04-23 commit.
7596         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
7597         assume that strerror_r returns 'int', not 'char *'.
7599 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
7601         argp: Fix typo.
7602         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
7604 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7606         utimens: port to Emacs + MS-Windows
7607         Skip the new MS-Windows-specific code if Emacs.
7608         * lib/utimens.c [EMACS_CONFIGUATION]:
7609         Avoid new MS-Windows-specific code.
7610         (USE_SETFILETIME): New macro.
7611         (fdutimens): Use it.
7613 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
7615         tzset: update doc for TZ problems on MS-Windows
7616         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
7617         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
7618         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
7619         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
7620         * doc/posix-functions/wcsftime.texi:
7621         Mention some issues with TZ under MS-Windows.
7623 2017-05-01  Bruno Haible  <bruno@clisp.org>
7625         copy-file: Fix build error on mingw.
7626         * modules/copy-file (Depends-on): Add 'close'.
7628 2017-05-01  Bruno Haible  <bruno@clisp.org>
7630         tzset: Work around TZ problem on native Windows.
7631         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
7632         Windows, set REPLACE_TZSET to 1.
7633         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
7634         invoke '_tzset' instead of 'tzset'.
7635         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
7637         * modules/time_rz (Depends-on): Add tzset.
7638         * lib/time_rz.c (tzset): Remove fallback definition.
7639         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
7641 2017-05-01  Bruno Haible  <bruno@clisp.org>
7643         mktime: Fix dependencies.
7644         * modules/mktime (Depends-on): Add 'time'.
7646 2017-05-01  Bruno Haible  <bruno@clisp.org>
7648         New module 'localtime-buffer', split off from module 'gettimeofday'.
7649         * lib/localtime-buffer.h: New file.
7650         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
7651         * lib/time.in.h (tzset): New declaration.
7652         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
7653         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
7654         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
7655         moved to lib/localtime-buffer.c or lib/tzset.c.
7656         * m4/localtime-buffer.m4: New file.
7657         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
7658         HAVE_TZSET, REPLACE_TZSET.
7659         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
7660         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
7661         gl_LOCALTIME_BUFFER_NEEDED.
7662         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
7663         since 2007-01-18.
7664         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
7665         tzset.
7666         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
7667         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
7668         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
7669         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
7670         * modules/localtime-buffer: New file.
7671         * modules/time (Depends-on): Remove 'gettimeofday'.
7672         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
7673         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
7674         * modules/tzset (Description): Enable hyperlink to POSIX spec.
7675         (Files): Add lib/tzset.c.
7676         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
7677         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
7678         gl_TIME_MODULE_INDICATOR.
7679         * modules/gettimeofday (Depends-on): Add localtime-buffer.
7681 2017-05-01  Bruno Haible  <bruno@clisp.org>
7683         copy-file: Preserve sub-second time stamps.
7684         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
7685         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
7686         transport the time stamps from the original file to the destination
7687         file.
7688         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
7689         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
7690         utime-h.
7692 2017-05-01  Bruno Haible  <bruno@clisp.org>
7694         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
7695         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
7696         also on MSVC.
7697         Reported by Eli Zaretskii <eliz@gnu.org>.
7699 2017-05-01  Bruno Haible  <bruno@clisp.org>
7701         wchar: Fix compilation error with the original mingw.org mingw.
7702         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
7703         <stddef.h> instead.
7704         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
7705         gl_WCTYPE_H.
7706         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
7707         gl_TYPE_WINT_T_PREREQ instead.
7708         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
7709         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
7710         Reported by Eli Zaretskii <eliz@gnu.org>.
7712 2017-04-30  Bruno Haible  <bruno@clisp.org>
7714         utimecmp: Add support for native Windows.
7715         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
7717 2017-04-30  Bruno Haible  <bruno@clisp.org>
7719         utimens: Add support for native Windows.
7720         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
7721         (fdutimens): Provide a native Windows implementation, like utime.c with
7722         added tv_nsec support.
7723         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
7724         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
7726 2017-04-30  Bruno Haible  <bruno@clisp.org>
7728         wcsftime: New module.
7729         * lib/wchar.in.h (wcsftime): New declaration.
7730         * lib/wcsftime.c: New file.
7731         * m4/wcsftime.m4: New file.
7732         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
7733         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
7734         HAVE_WCSFTIME, REPLACE_WCSFTIME.
7735         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
7736         HAVE_WCSFTIME, REPLACE_WCSFTIME.
7737         * modules/wcsftime: New file.
7738         * doc/posix-functions/wcsftime.texi: Mention the new module.
7740 2017-04-30  Bruno Haible  <bruno@clisp.org>
7742         strftime-fixes: New module.
7743         * lib/time.in.h (strftime): New declaration.
7744         * lib/strftime-fixes.c: New file.
7745         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
7746         (gl_FUNC_STRFTIME): Remove macro.
7747         * m4/strftime-fixes.m4: New file.
7748         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
7749         REPLACE_STRFTIME.
7750         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
7751         REPLACE_STRFTIME.
7752         * modules/strftime-fixes: New file.
7753         * doc/posix-functions/strftime.texi: Mention the new module.
7755 2017-04-30  Bruno Haible  <bruno@clisp.org>
7757         mktime: Work around TZ problem on native Windows.
7758         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
7759         from the native Windows workaround.
7760         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
7761         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
7762         'guessing no'.
7763         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
7764         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
7765         NEED_MKTIME_WINDOWS.
7766         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
7767         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
7768         NEED_MKTIME_INTERNAL.
7769         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
7770         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
7771         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
7772         not REPLACE_MKTIME.
7773         * doc/posix-functions/mktime.texi: Mention the native Windows
7774         workaround.
7776 2017-04-30  Bruno Haible  <bruno@clisp.org>
7778         localtime: New module.
7779         * lib/time.in.h (localtime): Declare also if requested by module
7780         'localtime'.
7781         * lib/localtime.c: New file.
7782         * m4/localtime.m4: New file.
7783         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
7784         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
7785         * modules/localtime: New file.
7786         * doc/posix-functions/localtime.texi: Mention the new module.
7788 2017-04-30  Bruno Haible  <bruno@clisp.org>
7790         ctime: New module.
7791         * lib/time.in.h (ctime): New declaration.
7792         * lib/ctime.c: New file.
7793         * m4/ctime.m4: New file.
7794         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
7795         REPLACE_CTIME.
7796         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
7797         * modules/ctime: New file.
7798         * doc/posix-functions/ctime.texi: Mention the new module.
7800 2017-04-30  Bruno Haible  <bruno@clisp.org>
7802         gettimeofday: Provide higher resolution on native Windows.
7803         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
7804         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
7805         (initialize): Initialize it.
7806         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
7807         'struct timeval'. Don't use _ftime().
7808         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
7809         <sys/timeb.h> and _ftime.
7811 2017-04-30  Bruno Haible  <bruno@clisp.org>
7813         Document the problem with the Cygwin environment variable TZ.
7814         * doc/posix-functions/tzset.texi: Add note about TZ.
7815         * doc/posix-functions/ctime.texi: Likewise.
7816         * doc/posix-functions/localtime.texi: Likewise.
7817         * doc/posix-functions/mktime.texi: Likewise.
7818         * doc/posix-functions/strftime.texi: Likewise.
7819         * doc/posix-functions/wcsftime.texi: Likewise.
7820         * doc/pastposix-functions/ftime.texi: Likewise.
7822 2017-04-30  Bruno Haible  <bruno@clisp.org>
7824         utime-tests: New module.
7825         * tests/test-utime.c: New file, based on tests/test-utimens.h.
7826         * tests/test-utimens-common.h: Include <sys/stat.h>.
7827         * modules/utime-tests: New file.
7829 2017-04-29  Bruno Haible  <bruno@clisp.org>
7831         utime: New module.
7832         * lib/utime.in.h: Add comment for snippets.
7833         (utime): New declaration.
7834         * lib/utime.c: New file.
7835         * m4/utime.m4: New file.
7836         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
7837         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
7838         REPLACE_UTIME.
7839         * modules/utime-h (Depends-on): Add snippets.
7840         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
7841         Insert snippets.
7842         * modules/utime: New file.
7843         * doc/posix-functions/utime.texi: Mention the new module.
7845 2017-04-29  Bruno Haible  <bruno@clisp.org>
7847         utime-h: Modernize handling of 'struct utimbuf'.
7848         * lib/utime.in.h: Include next <utime.h> if it exists.
7849         (utimbuf): Define to _utimbuf on native Windows.
7850         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
7851         Set UTIME_H on native Windows.
7852         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
7853         * modules/utime-h (Depends-on): Add include_next.
7854         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
7855         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
7857         * lib/utimens.c (utimbuf): Remove fallback definition.
7858         * m4/utimens.m4 (gl_UTIMENS): Don't require
7859         gl_CHECK_TYPE_STRUCT_UTIMBUF.
7860         * m4/utimbuf.m4: Remove file.
7861         * modules/utimens (Files): Remove m4/utimbuf.m4.
7863 2017-04-29  Bruno Haible  <bruno@clisp.org>
7865         Make use of module 'utime-h'.
7866         * modules/copy-file (Depends-on): Add utime-h.
7867         * lib/copy-file.c: Assume that <utime.h> exists.
7868         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
7870         * modules/utimens (Depends-on): Add utime-h.
7871         * lib/utimens.c: Assume that <utime.h> exists.
7873 2017-04-29  Bruno Haible  <bruno@clisp.org>
7875         utime-h: New module.
7876         * m4/utime_h.m4: New file.
7877         * lib/utime.in.h: New file.
7878         * modules/utime-h: New file.
7879         * doc/posix-headers/utime.texi: Mention the new module.
7881         * tests/test-utime-h.c: New file.
7882         * modules/utime-h-tests: New file.
7884 2017-04-30  Bruno Haible  <bruno@clisp.org>
7886         Fix a few typos.
7887         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
7888         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
7889         * doc/posix-functions/fstat.texi: Fix a plural typo.
7890         * doc/posix-functions/stat.texi: Likewise.
7891         * m4/include_next.m4: Update comments.
7893 2017-04-29  Bruno Haible  <bruno@clisp.org>
7895         error: Fix mistake in 2017-04-23 commit.
7896         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
7897         assume that strerror_r returns 'int', not 'char *'.
7899 2017-04-29  Bruno Haible  <bruno@clisp.org>
7901         stat: Fix time_t values and other problems on native Windows platforms.
7902         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
7903         implementations of stat().
7904         * lib/stat.c: Include filename.h instead of dosname.h. Include
7905         malloca.h, stat-w32.h.
7906         (is_unc_root): New function.
7907         (rpl_stat): New implementation for native Windows. Remove
7908         REPLACE_FUNC_STAT_DIR code.
7909         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
7910         Don't define REPLACE_FUNC_STAT_DIR.
7911         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
7912         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
7913         (Depends-on): Remove dosname. Add filename, malloca.
7914         (configure.ac): Also compile lib/stat-w32.c.
7916 2017-04-29  Bruno Haible  <bruno@clisp.org>
7918         fstat: Fix time_t values on native Windows platforms.
7919         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
7920         * lib/stat-w32.h: New file.
7921         * lib/stat-w32.c: New file.
7922         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
7923         stat-w32.h instead.
7924         (fstat_nothrow): Remove function.
7925         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
7926         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
7927         always.
7928         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
7929         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
7930         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
7931         (configure.ac): Also compile lib/stat-w32.c.
7933 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
7935         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
7936         Problem reported by Assaf Gordon and Gavin Smith in:
7937         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
7938         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
7939         #define this, too.
7941 2017-04-29  Bruno Haible  <bruno@clisp.org>
7943         strerror_r-posix: Fixes for MSVC 14.
7944         * lib/strerror_r.c: Include <stdarg.h>.
7945         (strerror_r): Provide error messages for errno values 100...140.
7946         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
7948 2017-04-28  Bruno Haible  <bruno@clisp.org>
7950         noreturn: New module.
7951         * lib/noreturn.h: New file.
7952         * modules/noreturn: New file.
7953         * tests/test-noreturn.c: New file.
7954         * modules/noreturn-tests: New file.
7955         * tests/test-noreturn-c++.cc: New file.
7956         * modules/noreturn-c++-tests: New file.
7958 2017-04-27  Bruno Haible  <bruno@clisp.org>
7960         wctype-h: Fix compilation error with the original mingw.org mingw.
7961         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
7962         HAVE_CRTDEFS_H.
7963         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
7964         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
7965         <stddef.h> instead.
7966         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
7968 2017-04-26  Pádraig Brady  <P@draigBrady.com>
7970         nap.h: Fix compilation on non windows platforms
7971         * tests/nap.h: Move misplaced endif.
7973 2017-04-26  Pádraig Brady  <P@draigBrady.com>
7974         and Paul Eggert  <eggert@cs.ucla.edu>
7976         time_rz: fix heap buffer overflow vulnerability
7977         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
7978         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
7979         whether there is enough buffer space available, thus avoiding
7980         the problematic promotion of signed to unsigned causing an invalid
7981         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
7982         the start of the buffer.
7983         * tests/test-parse-datetime.c (main): Add a test case written by
7984         Paul Eggert, which overwrites enough of the heap so that
7985         standard glibc will fail with "free(): invalid pointer"
7986         without the patch applied.
7988 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7990         xalloc: add missing integer overflow check
7991         * lib/xalloc.h (x2nrealloc): Also check for multiplication
7992         overflow when P is null.
7994 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7996         parse-datetime: make it standalone
7997         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
7998         (_GL_ATTRIBUTE_FORMAT): New macro.
7999         These are needed to get './gnulib-tool --test parse-datetime' to work.
8001 2017-04-23  Bruno Haible  <bruno@clisp.org>
8003         nap.h: Port to native Windows.
8004         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
8005         use nap_fd instead. On native Windows, close and reopen nap_fd.
8006         (nap_works): Don't compare the ctimes, because on native Windows, these
8007         are the creation times.
8008         (nap): Update.
8010 2017-04-23  Bruno Haible  <bruno@clisp.org>
8012         nap.h: Fix logic.
8013         * tests/nap.h (nap): Avoid signed integer overflow in loop.
8015 2017-04-23  Bruno Haible  <bruno@clisp.org>
8017         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
8018         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
8019         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
8020         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
8021         * lib/argp-help.c (__argp_failure): Likewise.
8023 2017-04-23  Bruno Haible  <bruno@clisp.org>
8025         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
8026         * m4/strerror_r.m4: Revert changes since 2016-10-16.
8027         * lib/strerror_r.c: Likewise.
8029 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8031         Target a C99 subset, not a C89 subset
8032         For many years Gnulib has targeted C89 and has resisted using C99
8033         features, as some Gnulib-using programs still wanted to target
8034         C89.  As this no longer seems to be the case, relax the porting
8035         requirements to allow some C99 features.  This is merely a change
8036         to the documentation, to give other Gnulib developers a chance to
8037         weigh in on the topic.
8038         * doc/extern-inline.texi (extern inline):
8039         * doc/gnulib-readme.texi (Portability guidelines):
8040         * doc/gnulib-tool.texi (Initial import):
8041         * doc/gnulib.texi (Header files):
8042         Modernize to talk about C99 and C11 instead of C89 and C99.
8043         * doc/gnulib-readme.texi (Portability guidelines):
8044         Now a section, not merely a subsection, so that it
8045         can be split up.  Modernize a bit.
8046         (C language versions, C99 features assumed)
8047         (C99 features avoided):
8048         New sections.
8050 2017-04-23  Bruno Haible  <bruno@clisp.org>
8052         doc: New section "Modules that modify the way other modules work".
8053         * doc/gnulib.texi (Modules that modify the way other modules work): New
8054         section.
8056 2017-04-23  Bruno Haible  <bruno@clisp.org>
8058         stat-time: Update comments.
8059         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
8060         * tests/test-utimens-common.h: Add reference regarding st_ctime on
8061         Windows.
8063 2017-04-01  Bruno Haible  <bruno@clisp.org>
8065         glob: Fix more memory leaks.
8066         * lib/glob.c (glob): Free allocated memory before returning.
8067         Reported by Coverity via Tim Rühsen.
8069 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8071         poll: improve fast check for out-of-range NFD
8072         * lib/poll.c: Do not include intprops.h.
8073         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
8074         * modules/poll (Depends-on): Remove intprops.
8076         ftoastr: cite a newer paper
8077         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
8078         instead of Loitsch 2010.
8080 2017-04-22  Bruno Haible  <bruno@clisp.org>
8082         poll: Enable argument check also in the Windows implementation.
8083         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
8084         Reported by Paul Eggert.
8086 2017-04-22  Bruno Haible  <bruno@clisp.org>
8088         getlogin_r: Work around bug in Mac OS X 10.12.
8089         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
8090         bug.
8091         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
8092         given size minus 1, call getlogin_r a second time, on a larger buffer.
8093         * modules/getlogin_r (Depends-on): Add malloca.
8094         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
8096 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8098         parse-datetime: fix %z and prefer signed int
8099         %z problem reported by Pádraig Brady in:
8100         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
8101         While fixing it, I decided to prefer signed ints to size_t, as
8102         they are less error-prone (e.g., ubsan catches overflow).
8103         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
8104         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
8105         counts, since signed integers make for better debugging.
8106         (date): Don’t assume %z works in printf formats.
8107         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
8108         sizes of buffers known to be small, e.g., because we’re using snprintf.
8109         (parse_datetime2): Simplify call to debug_mktime_not_ok.
8111 2017-04-22  Bruno Haible  <bruno@clisp.org>
8113         *printf: Work around rounding bug on Mac OS X.
8114         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
8115         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
8116         Mac OS X and FreeBSD.
8117         * doc/glibc-functions/*printf.texi: Likewise.
8119 2017-04-22  Bruno Haible  <bruno@clisp.org>
8121         vasnprintf tests: Avoid warnings.
8122         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
8123         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
8124         test.
8126 2017-04-22  Bruno Haible  <bruno@clisp.org>
8128         sys_file tests: Avoid warning.
8129         * tests/test-sys_file.c (main): Add a default clause to the switch
8130         statement.
8132 2017-04-22  Bruno Haible  <bruno@clisp.org>
8134         sethostname: Update doc.
8135         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
8136         Mac OS X.
8138 2017-04-22  Bruno Haible  <bruno@clisp.org>
8140         quotearg tests: Avoid warnings.
8141         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
8142         false.
8144 2017-04-22  Bruno Haible  <bruno@clisp.org>
8146         poll: Enable argument check.
8147         * lib/poll.c: Include intprops.h.
8148         (poll): Check value of nfd correctly.
8149         * modules/poll (Depends-on): Add intprops.
8151 2017-04-22  Bruno Haible  <bruno@clisp.org>
8153         get-rusage-data: Avoid warnings on Mac OS X.
8154         * lib/get-rusage-data.c: On Mac OS X, don't define
8155         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
8156         (get_rusage_data) [Mac OS X]: Just return 0.
8158 2017-04-22  Bruno Haible  <bruno@clisp.org>
8160         xbinary-io: Fix build error.
8161         * modules/xbinary-io (Depends-on): Add gettext-h.
8162         * lib/xbinary-io.c: Include gettext.h and define _().
8163         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
8164         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
8166 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8168         parse-datetime: overflow and debug cleanups
8169         This long patch was triggered by this bug report from Ruediger Meier:
8170         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
8171         I fixed the bug he noted, then found some others nearby, and then
8172         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
8173         up some of the code to follow GNU standards while I was at it.
8174         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
8175         use c_isdigit.
8176         (EPOCH_YEAR): Remove; unused.
8177         (TM_YEAR_BASE): Now an enum rather than a macro.
8178         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
8179         time zone offset, since timezones now are in terms of seconds and
8180         not minutes.
8181         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
8182         appropriate.  Verify that intmax_t is wide enough.
8183         (time_overflow, time_zone_str): New functions, used to deal
8184         more reliably with overflow.
8185         (dbg_printf): Add printf attribute, to help catch integer width errors.
8186         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
8187         (%union, to_hour, yylex, parse_datetime2):
8188         Use intmax_t instead of long int and/or long_time_t.
8189         All uses changed.
8190         (DBGBUFSIZE): Move earlier.
8191         (relative_time, set_hhmmss, parser_control):
8192         Just use int for nanoseconds and for time zones; that’s wide enough.
8193         (parser_control): Use bool for members like year_seen that can
8194         be booleans instead of counters.  All uses changed.
8195         Remove debug_default_input_timezone; no longer needed.
8196         All uses removed.
8197         (apply_relative_time): Return a bool overflow flag.
8198         All uses changed to check for overflow.
8199         (apply_relative_time, zone, date, relunit, relunit_snumber)
8200         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
8201         Check for integer overflow portably.
8202         (str_days): Use just int for N, as it’s wide enough.
8203         Prefer 2D char arrays to arrays of char * when it looks like
8204         2D is a win on typical platforms.
8205         Prefer snprintf to strncpy/strncat, for simplicity;
8206         all buffers are smaller than INT_MAX so this is safe.
8207         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
8208         (debug_print_current_time): Don’t assume tv_nsec is of type long,
8209         as this is not true on x32.  Output "." before any nanoseconds.
8210         (debug_print_current_time, parse_datetime2):
8211         Output local zones using a more-consistent format.
8212         (debug_print_current_time, date, parse_datetime2):
8213         (main) [TEST]:
8214         Don’t assume time_t is the same width as long.
8215         (print_rel_part): New function, replacing ...
8216         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
8217         (debug_print_relative_time): Use bool for boolean.
8218         (local_zone): dsts_seen now counts only tDST instances.
8219         (date): Fix printf of size_t to use %z.  Do not assume numeric
8220         tokens have negative values merely because the context suggests
8221         a syntax with "-" separating tokens.
8222         (time_zone_hhmm): Return bool success indicator, which checks for
8223         overflow.  Store result into PC->time_zone instead.  All callers
8224         changed.
8225         (tm_year_str): New function.  Return a bool success indicator and
8226         store the result into a buffer.  All callers changed.  Output the
8227         numerically correct string even if adding 1900 to the year would
8228         overflow.
8229         (to_tm_year): New function, replacing the old to_year.  All
8230         callers changed.
8231         (tm_diff): Sync with glibc.
8232         (lookup_word): Use to_uchar instead of doing it by hand.
8233         (TZBUFSIZE): Now local to the only function that needs it.
8234         (debug_strfdatetime): Simplify now that time zones are int seconds.
8235         (debug_strfdate): Work even if tm_year + 1900 would overflow.
8236         (get_effective_timezone): Remove.  All uses removed.
8237         (parse_datetime2): Use fprintf in pieces instead of snprintfing
8238         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
8239         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
8240         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
8241         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
8242         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
8243         * modules/parse-datetime (Depends-on): Add inttypes.
8245 2017-04-21  Bruno Haible  <bruno@clisp.org>
8247         gettext-h: Avoid -Wundef warning.
8248         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
8249         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8250         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
8252 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
8254         error: Avoid "function declaration isn't a prototype" warning.
8255         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
8257 2017-04-21  Bruno Haible  <bruno@clisp.org>
8259         vasnprintf: Fix for MSVC 14.
8260         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
8261         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
8262         of !HAVE_SNPRINTF_RETVAL_C99.
8264 2017-04-21  Bruno Haible  <bruno@clisp.org>
8266         mbrtowc tests: Fix test failures on MSVC 14.
8267         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
8268         behaviour for invalid input.
8270 2017-04-21  Bruno Haible  <bruno@clisp.org>
8272         mbsinit: Fix for MSVC 14.
8273         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
8274         implementation that is in sync with mbrtowc.c. On other platforms, use
8275         an adequate ad-hoc implementation.
8277 2017-04-21  Bruno Haible  <bruno@clisp.org>
8279         Fix test-mbrtowc5.sh failure on native Windows.
8280         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
8281         "C".
8283 2017-04-21  Bruno Haible  <bruno@clisp.org>
8285         Avoid accidental use of native Windows APIs on Cygwin.
8286         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
8287         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
8288         * lib/localename.c (WINDOWS_NATIVE): Likewise.
8290 2017-04-20  Bruno Haible  <bruno@clisp.org>
8292         Remove red warnings from the generated MODULES.html.
8293         * modules/fcntl (Description): Disambiguate function references.
8294         * modules/getcwd-lgpl (Description): Likewise.
8295         * modules/hostent (Description): Likewise.
8296         * modules/servent (Description): Likewise.
8297         * modules/tempname (Description): Likewise.
8299 2017-04-20  Bruno Haible  <bruno@clisp.org>
8301         verify tests: Fix spurious failure with parallel make.
8302         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
8303         EXTRA_PROGRAMS.
8304         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
8305         * tests/test-verify-try.c: New file.
8306         * modules/verify-tests (Files): Add it.
8307         (EXTRA_PROGRAMS): Add test-verify-try.
8308         (MOSTLYCLEANFILES): Update accordingly.
8309         Reported by Adam James Stewart <ajstewart@anl.gov>.
8311 2017-04-18  Bruno Haible  <bruno@clisp.org>
8313         vma-iter: Fix compilation error on Solaris 7.
8314         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
8315         like on IRIX, OSF/1.
8316         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8318 2017-04-18  Bruno Haible  <bruno@clisp.org>
8320         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
8321         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
8322         included.
8323         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
8324         <sys/procfs.h>.
8325         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
8326         <sys/procfs.h> cannot be included.
8327         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8329 2017-04-18  Bruno Haible  <bruno@clisp.org>
8331         getopt-gnu: Add comments.
8332         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
8333         * modules/getopt-gnu (configure.ac): Likewise.
8335 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
8337         regex: port better to Solaris 10
8338         Solaris 10 <locale.h> includes <libintl.h>, which #defines
8339         gettext, and this causes a double #define.
8340         Problem reported by Gavin Smith in:
8341         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
8342         * lib/regex_internal.h (gettext): #undef before #defining.
8344 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8346         intprops: improve comments
8347         * lib/intprops.h: Improve and shorten commentary.
8348         For the record, if we ever run into a pedantic compiler that
8349         behaves differently from GCC when converting an out-of-range value
8350         to a signed integer, we can work around the problem with something
8351         like the following code, where UCT is the signed counterpart of T
8352         (UCT is sometimes narrower than UT) and all callers are changed
8353         accordingly:
8354         #if __SUNPRO_C <= 0x5120
8355         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8356            ((t) ((ut) (a) op (ut) (b)))
8357         #else
8358         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8359            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
8360             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
8361                + TYPE_MINIMUM (t)) \
8362             : (t) (uct) ((ut) (a) op (ut) (b)))
8363         #endif
8365 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8367         intprops: try to avoid tickling similar bugs
8368         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
8369         needs to be the same width as T; it can be wider.
8370         Change callers so that UT is at least as wide as unsigned int,
8371         as I suspect that this is less likely to run into compiler bugs.
8373         intprops: port to Oracle Studio 12.3 x86
8374         Problem reported by Gavin Smith in:
8375         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
8376         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
8377         Convert unsigned to signed via the usual rather than the standard way,
8378         to avoid a compiler bug in Oracle Studio 12.3 x86.
8380 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8382         getopt: prefer - to _ in new file names
8383         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
8384         * lib/getopt-core.h: Rename from lib/getopt_core.h.
8385         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
8386         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
8387         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
8388         All uses changed.
8390         getopt: port recent getopt changes to macOS
8391         Problem reported by Harald Maier (Bug#26398).
8392         The macOS C compiler uses __nonnull for its own purposes and that
8393         clashes with glibc's __nonnull.
8394         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
8395         * lib/getopt_cdefs.in.h (__nonnull): Remove.
8396         * lib/getopt_core.h (getopt):
8397         * lib/getopt_ext.h (getopt_long, getopt_long_only):
8398         Use _GL_ARG_NONNULL, not __nonnull.
8399         * lib/unistd.in.h: Move snippet hooks to before where the getopt
8400         .h files are included, so that _GL_ARG_NONNULL is defined in time.
8401         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
8402         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
8404 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8406         getopt-gnu: omit some duplicate code
8407         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
8408         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
8409         gnulib-tool already does this.
8410         * modules/getopt-gnu (configure.ac): Omit code duplicated from
8411         getopt-posix, which we depend on.
8413         getopt-posix: use angle-bracket include
8414         * lib/getopt1.c: Include <config.h>, not "config.h".
8416 2017-04-06  Zack Weinberg  <zackw@panix.com>
8418         getopt: annotate files with relationship to glibc
8420         As the final act in this patchset, adjust the message at the top of
8421         each file to indicate which files are synced with glibc.  (This has
8422         already been done for most of the headers.)
8424         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
8425         Mention in top-of-file boilerplate that these files are shared
8426         between glibc and gnulib.
8429         getopt: split up getopt.in.h and eliminate __need_getopt
8431         Over in glibc, all of the __need macros are being phased out in favor
8432         of small headers that declare only the necessary components, as this
8433         is much simpler and less prone to bugs.  As getopt is shared with
8434         glibc, gnulib needs to do the same for __need_getopt.
8436         __need_getopt is misnamed; what it really means is "we want only the
8437         getopt features specified in POSIX, not the GNU extensions".  glibc
8438         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
8439         these files can be shared verbatim with gnulib.  The portability
8440         wrapper, on the other hand, they have renounced altogether; glibc's
8441         getopt.h will no longer be shared with gnulib at all.  In exchange,
8442         certain glibc-specific quirks (having to do with __posix_getopt) no
8443         longer need appear in gnulib's headers at all.
8445         This patch merges getopt_core.h and getopt_ext.h from glibc, and
8446         splits up the current gnulib-side portability wrapper into three
8447         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
8448         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
8449         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
8450         unistd.in.h just use them.  All new files are clearly marked with
8451         whether they are shared with glibc.
8453         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
8454         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
8455         with glibc, and ...
8456         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
8457         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
8458         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
8459         instead of defining __need_getopt and including the full getopt.h.
8461         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
8462         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
8463         * modules/getopt-posix (Files): Add new headers and sort list.
8464         (Depends-on): No longer need snippet/arg-nonnull.
8465         (Makefile.am): Generate getopt_cdefs.h.
8468         getopt: better handling of ambiguous options
8470         glibc's getopt uses alloca to construct a linked list of possibilities
8471         for an "ambiguous" long option.  In gnulib, malloc should be used
8472         instead.  Providing for both cases complicates things a fair bit.
8474         This patch rewrites ambiguous-option handling to use a boolean vector
8475         instead of a linked list.  There is then only one allocation that
8476         might need freeing; in glibc it can honor __libc_use_alloca as usual,
8477         and in gnulib we define __libc_use_alloca to always be false, so we
8478         don't need ifdefs in the middle of the function.  This should also be
8479         slightly more efficient in the normal case of long options being fully
8480         spelled out -- I think most people aren't even aware they _can_
8481         sometimes abbreviate long options.
8483         One interesting consequence is that the list of possibilities is now
8484         printed in exactly the order they appear in the list of long options,
8485         instead of the first possibility being shuffled to the end.
8487         (The patch looks bigger than it really is because there's a fair bit
8488         of reindentation and code rearrangement.)
8490         * lib/getopt.c: When used standalone, define __libc_use_alloca
8491         as always false and alloca to abort if called.
8492         (process_long_option): Rewrite handling of ambiguous long options
8493         to use a single boolean vector, not a linked list; use
8494         __libc_use_alloca to decide whether to allocate this using alloca.
8497         getopt: refactor long-option handling
8499         There were two copies of the bulk of the code to handle long options.
8500         Now there is only one.
8502         This change temporarily removes the logic to avoid using alloca when
8503         standalone; the next patch in the series will restore it.
8505         * lib/getopt.c (process_long_option): New function split out
8506         from _getopt_internal_r.
8507         (_getopt_internal_r): Replace both copies of the long-option
8508         processing code with calls to process_long_option.
8511         getopt: tidy up _getopt_initialize a bit
8513         _getopt_data.__posixly_correct is completely redundant to
8514         _getopt_data.__ordering, and some work that logically belongs in
8515         _getopt_initialize was being done by _getopt_internal_r, making the
8516         code harder to understand.
8518         As a side effect, getenv will no longer be called if the first
8519         character of the options string is '+' or '-', which is probably a
8520         Good Thing.  (Perhaps we should have a flag character that
8521         specifically asks for the permutation behavior?)
8523         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
8524         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
8525         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
8528         getopt: merge from glibc: repetition reduction
8530         The definitions of the entry point functions 'getopt' and
8531         '__posix_getopt' can be made substantially less repetitive with a
8532         helper macro.
8534         While I was merging the const-correctness changes from gnulib into
8535         glibc I noticed there are still some unnecessary casts in
8536         _getopt_internal_r.
8538         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
8539         a macro.  Consistently cast 'argv' to 'char **' when calling
8540         _getopt_internal.
8541         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
8544         getopt: clean up error reporting
8546         getopt can print a whole bunch of error messages, and when used
8547         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
8548         cancellation point and getopt isn't, and also applying fprintf to a
8549         stream in wide-character mode is not allowed.  So every single error
8550         reporting case has an #ifdef _LIBC block in which it calls internal
8551         libc functions instead.  The counterpart patch series in glibc makes
8552         it possible to simplify all of that down to a set of #defines at the
8553         top of the file; core code is written as if it is safe to just call
8554         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
8555         call any *other* stdio functions.)
8557         * lib/getopt.c: When _LIBC is defined, define fprintf to
8558         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
8559         to _IO_funlockfile.  When neither _LIBC nor
8560         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
8561         funlockfile as no-ops.
8562         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
8563         standalone error-printing code can now be used for libc as well.
8564         Add an flockfile/funlockfile pair around one case where the error
8565         message is printed in several chunks.  Don't use fputc.
8568         getopt: fix fencepost error in ambiguous-W-option handling
8570         getopt_long contains an undocumented (AFAICT) feature in which, if you
8571         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
8572         treated as equivalent to '--foo'.  This is implemented with a partial
8573         second copy of the code for handling long options, and that code
8574         increments optind one too many times when recovering from an ambiguous
8575         abbreviated option, which can cause the main loop to walk past the end
8576         of argv and crash.
8578         I discovered this while writing a test case that tries to exercise all
8579         of getopt's error reporting paths; I wouldn't be surprised to learn
8580         that this feature is never used by real applications.
8582         * lib/getopt.c (_getopt_internal_r): Don't increment
8583         d->optind a second time when reporting ambiguous -W options.
8586         getopt: clean up getopt.c and getopt1.c file headers
8588         In getopt.c, there is no need to include wchar.h at all, and it is
8589         safe nowadays to assume that stdlib.h does declare getenv (several
8590         other gnulib modules make this assumption).
8592         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
8593         by using "" inclusions consistently, and there is no actual need to
8594         include stdlib.h (except in the #ifdef TEST block, where it should be
8595         unconditional), nor to provide a backup definition of NULL at all.
8597         * lib/getopt1.c: Simplify #ifdeffage at top of file.
8598         Move inclusion of stdlib.h to #ifdef TEST block and make
8599         unconditional.  Do not define NULL.
8600         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
8601         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
8602         * modules/getopt-gnu, modules/getopt-posix: Don't call
8603         gl_PREREQ_GETENV.
8606         getopt: harmonize comments with glibc
8608         The comments explaining how the behavior of 'getopt' varies depending
8609         on whether it's the standalone version and whether there are special
8610         characters at the beginning of the options string were inconsistent
8611         between gnulib and glibc, and also out of sync with the code.
8613         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
8616         getopt: remove USE_NONOPTION_FLAGS
8618         getopt includes code to parse an environment variable named
8619         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
8620         in decimal); but all of it has been #ifdefed out since 2001, with no
8621         official way to turn it back on.
8623         According to commentary in glibc's config.h.in, bash version 2.0
8624         set this environment variable to indicate argv elements that were
8625         the result of glob expansion and therefore should not be treated
8626         as options, but the feature was "disabled later" because "it
8627         caused problems".  According to bash's CHANGES file, "later" was
8628         release 2.01; it gives no more detail about what the problems
8629         were.
8631         Version 2.0 of bash was released on the last day of 1996, and version
8632         2.01 in June of 1997.  Twenty years later, I think it is safe to
8633         assume that this environment variable isn't coming back.
8635         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
8636         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
8637         __libc_argc and __libc_argv externs, which were only used by
8638         #ifdef USE_NONOPTION_FLAGS blocks.
8641         getopt: tabify, in preparation for merge with glibc
8643         glibc sticks to the GNU default of indenting with a mix of
8644         8-column tabs and spaces; make the gnulib copy match.
8646         getopt.h is not included because it is *not* going to be merged in its
8647         present form.
8649         * getopt.c, getopt1.c, getopt_int.h: Tabify.
8651 2017-04-02  Bruno Haible  <bruno@clisp.org>
8653         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
8654         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
8655         like it was done in modules/relocatable-lib on 2011-05-21 and in
8656         modules/relocatable-prog on 2011-08-15.
8657         Reported by Reuben Thomas <rrt@sc3d.org>.
8659 2017-03-31  Bruno Haible  <bruno@clisp.org>
8661         glob: Fix invalid free() call.
8662         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
8663         static storage to home_dir.
8664         Reported by Coverity via Tim Rühsen.
8666 2017-03-31  Bruno Haible  <bruno@clisp.org>
8668         glob: Fix memory leaks.
8669         * lib/glob.c (glob): Free allocated memory before returning.
8670         Reported by Coverity via Tim Rühsen.
8672 2017-03-31  Bruno Haible  <bruno@clisp.org>
8674         md5, sha1, sha256, sha512: Add comments regarding correctness.
8675         * lib/md5.h (buflen): Add comments regarding range.
8676         * lib/sha1.h (buflen): Likewise.
8677         * lib/sha256.h (buflen): Likewise.
8678         * lib/sha512.h (buflen): Likewise.
8679         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
8680         * lib/sha1.c (sha1_process_bytes): Likewise.
8681         * lib/sha256.c (sha256_process_bytes): Likewise.
8682         * lib/sha512.c (sha512_process_bytes): Likewise.
8683         Reported by Coverity via Tim Rühsen.
8685 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
8687         getopt: merge from glibc
8688         This does not change anything substantial; it merely simplifies
8689         hypothetical merges back to glibc.
8690         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
8691         Change copyright notice to match what is in glibc.
8692         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
8693         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
8694         __open_memstream rather than open_memstream and __glibc_likely
8695         instead of __builtin_expect.
8696         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
8698 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
8700         dfa: make [0-9] faster in non-C locales
8701         Problem reported by John P. Linderman (Bug#26193).
8702         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
8703         If both ends of the range are ASCII digits, do not worry about
8704         multi-character collating sequences and the like.  Be consistent
8705         about using isalpha as a precondition for setbit_case_fold_c.
8707 2017-03-19  Bruno Haible  <bruno@clisp.org>
8709         lock: Fix compilation error with HP-UX IA64 cc.
8710         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
8711         weak on non-glibc platforms.
8713 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8715         stdalign: tweak version# and test for HP-UX IA64
8716         Problems reported by Bruno Haible in:
8717         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
8718         * lib/stdalign.in.h (_Alignas):
8719         * m4/stdalign.m4 (gl_STDALIGN_H):
8720         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
8721         used octal (as that is how they document it), but it is decimal in
8722         practice now and the ancient implementations no longer matter.
8723         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
8725 2017-03-19  Bruno Haible  <bruno@clisp.org>
8727         vma-iter: Add support for Solaris.
8728         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
8729         approach.
8730         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
8731         * lib/get-rusage-as.c: Update comment about Solaris.
8732         * lib/get-rusage-data.c: Likewise.
8734 2017-03-19  Bruno Haible  <bruno@clisp.org>
8736         vma-iter: Prefer HP-UX specific API on HP-UX.
8737         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
8738         * lib/vma-iter.h: Update.
8739         Just in case HP-UX ever implements mquery().
8741 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
8743         stdalign: restore previous behavior for HP-UX IA64
8744         See Bruno Haible's email in:
8745         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
8746         which cites p 150 of a manual saying that 'aligned' works on Itanium.
8747         * lib/stdalign.in.h (_Alignas):
8748         Assume the '061200' applies to Itanium, not to PA-RISC.
8749         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
8751 2017-03-17  Bruno Haible  <bruno@clisp.org>
8753         stat-time, timespec: Support use of the header files in C++ mode.
8754         * lib/stat-time.h: Add "C" linkage declaration.
8755         * lib/timespec.h: Likewise.
8757 2017-03-17  Bruno Haible  <bruno@clisp.org>
8759         stdalign: Make it work with HP-UX cc.
8760         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
8761         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
8762         for HP-UX cc.
8764 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
8766         flexmember: try to detect HP-UX 11.31 cc bug
8767         Problem reported by Bruno Haible in:
8768         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
8769         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8770         Attempt to detect bug in HP-UX 11.31 cc.
8772 2017-03-16  Bruno Haible  <bruno@clisp.org>
8774         stdint: Fix test compilation failure with HP-UX 11 cc.
8775         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
8776         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
8777         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
8778         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
8780 2017-03-14  Bruno Haible  <bruno@clisp.org>
8782         gnulib-tool: Don't produce a tests directory with only snippet .h files.
8783         * gnulib-tool (func_modules_transitive_closure_separately): If
8784         testsrelated_modules ends up with no "real" modules, aside from
8785         modules with applicability 'all', set it to empty.
8787 2017-03-14  Bruno Haible  <bruno@clisp.org>
8789         vma-iter: Add support for HP-UX.
8790         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
8791         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
8792         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
8793         * lib/get-rusage-as.c: Update comment about HP-UX.
8794         * lib/get-rusage-data.c: Likewise.
8795         (get_rusage_data): Use get_rusage_data_via_setrlimit.
8797 2017-03-14  Bruno Haible  <bruno@clisp.org>
8799         limits-h: Make it work with HP-UX cc.
8800         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
8801         defined.
8803 2017-03-14  Bruno Haible  <bruno@clisp.org>
8805         Fix test failures on DragonFlyBSD.
8806         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
8807         * tests/test-select.h (test_bad_fd): Likewise.
8808         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
8810 2017-03-14  Bruno Haible  <bruno@clisp.org>
8812         freadahead: Silence warning on DragonFlyBSD.
8813         * lib/freadahead.c (__sreadahead): Declare ourselves.
8815 2017-03-14  Bruno Haible  <bruno@clisp.org>
8817         vma-iter: Add comment about AIX.
8818         * lib/vma-iter.c: Add comment about why this module is not implemented
8819         on AIX.
8821 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
8823         snippets: move unadjusted snippet sources to lib
8824         Problem reported by Michal Privoznik in:
8825         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
8826         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
8827         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
8828         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
8829         * lib/unused-parameter.h: Rename from
8830         build-aux/snippet/unused-parameter.h.
8831         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
8832         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
8833         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
8834         * modules/snippet/c++defs (Files:, CXXDEFS_H):
8835         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
8836         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
8837         Adjust to file renamings.
8839 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
8841         gnulib-tool: don't automatically distribute files from top/
8842         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
8843         not distribute top/README-release by default, don't distribute files
8844         from top/ unconditionally.
8845         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
8846         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
8848 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
8850         gnulib-tool: fix typo in comment output
8851         * gnulib-tool (func_import): Fix typo with previous change.
8853         snippets: work around GNU Make 3.82 VPATH
8854         When using 'gnulib-tool --gnu-make' on Emacs, and building
8855         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
8856         an out-of-source (VPATH) build failed because the sans-copyright
8857         snippet file was not built before the file that used it.
8858         Presumably this is some sort of VPATH thing.  Work around the
8859         problem by using the original snippet, i.e., don’t bother to
8860         remove its copyright notice.
8861         * modules/snippet/_Noreturn, modules/snippet/link-warning:
8862         Don’t assume Automake in comments.  Omit long-incorrect comment.
8863         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
8864         (MOSTLYCLEANFILES):
8865         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
8866         (MOSTLYCLEANFILES):
8867         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
8868         (MOSTLYCLEANFILES):
8869         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
8870         (MOSTLYCLEANFILES):
8871         Remove.
8872         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
8873         * modules/snippet/c++defs (CXXDEFS_H):
8874         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
8875         * modules/snippet/warn-on-use (WARN_ON_USE_H):
8876         Don’t bother to remove the copyright notice; just use the
8877         original snippet as-is.
8879 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
8881         gnulib-tool: minor --gnu-make fixups
8882         * gnulib-tool (func_emit_lib_Makefile_am):
8883         Remove useless code that was a blind alley during implementation.
8884         Problem reported by Thien-Thi Nguyen in:
8885         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
8886         (func_import): Note the "--gnu-make" option in the output comment.
8888 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
8890         gnulib-tool: new option --gnu-make
8891         This is for applications like GNU Emacs that use GNU Make
8892         features instead of Automake.
8893         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
8894         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
8895         Do not assume Automake.
8896         * gnulib-tool (func_determine_path_separator)
8897         (func_modules_transitive_closure, func_update_file)
8898         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
8899         (func_import): Add support for --gnu-make.
8901 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
8903         gnulib-common.m4: avoid aclocal.m4 bloat
8904         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
8905         Hide AM_PROG_AR from aclocal, so that aclocal does not
8906         install irrelevant macro definitions into aclocal.m4.
8908 2017-03-10  Bruno Haible  <bruno@clisp.org>
8910         vma-iter: Let callers know about error.
8911         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
8912         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
8914 2017-03-05  Bruno Haible  <bruno@clisp.org>
8916         Fix value of LD for 64-bit compilers on AIX.
8917         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
8918         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
8920 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
8922         dtotimespec: simplify
8923         * lib/dtotimespec.c (dtotimespec): Simplify.
8925 2017-03-04  Bruno Haible  <bruno@clisp.org>
8927         test-calloc-gnu: Reenable test also for GCC 7.
8928         * tests/test-calloc-gnu.c (eight): New function.
8929         (main): Don't skip test; use eight() instead.
8931 2017-03-04  Jim Meyering  <meyering@fb.com>
8933         test-calloc-gnu: port to GCC7
8934         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
8935         that attempts to calloc more than SIZE_MAX bytes, because GCC7
8936         and newer would detect that at compilation time.
8938 2017-03-04  Bruno Haible  <bruno@clisp.org>
8940         tests: Avoid compiler warning about uses of null_ptr.
8941         * tests/null-ptr.h: New file.
8942         * tests/test-canonicalize.c: Include null-ptr.h.
8943         (null_ptr): Remove function.
8944         * tests/test-canonicalize-lgpl.c: Likewise.
8945         * tests/test-memmem.c: Likewise.
8946         * tests/test-ptsname_r.c: Likewise.
8947         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
8948         * modules/canonicalize-lgpl-tests: Likewise.
8949         * modules/memmem-tests: Likewise.
8950         * modules/ptsname_r-tests: Likewise.
8951         Reported by Jim Meyering.
8953 2017-03-03  Bruno Haible  <bruno@clisp.org>
8955         doc: Mention Mac OS X deficiencies regarding semaphores.
8956         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
8957         * doc/posix-functions/sem_destroy.texi: Likewise.
8958         * doc/posix-functions/sem_getvalue.texi: Likewise.
8960 2017-03-03  Bruno Haible  <bruno@clisp.org>
8962         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
8963         Reported by Assaf Gordon <assafgordon@gmail.com> via
8964         Pádraig Brady <P@draigBrady.com>.
8965         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
8966         semaphores.
8967         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
8968         (atomic_int_semaphore): New macro.
8970 2017-02-28  Bruno Haible  <bruno@clisp.org>
8972         perror tests: Tweak for z/OS.
8973         Reported by Daniel Richard G. <skunk@iskunk.org>.
8974         * tests/test-perror.sh: Don't fail z/OS style perror output.
8976 2017-02-26  Bruno Haible  <bruno@clisp.org>
8978         nproc: Refactor large function.
8979         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
8980         from num_processors.
8981         (num_processors): In this function, only deal with OMP.
8983 2017-02-26  Pádraig Brady  <P@draigBrady.com>
8985         nproc: adjust handling of OpenMP environment variables
8986         to match the return value from omp_get_num_threads(), i.e.:
8987          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
8988          - Treat 0 as an invalid value and ignore
8989         Also remove the call to omp_get_num_threads() because
8990         it's ineffective without the omp pragmas in place.
8991         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
8992         so that it can be ignored.
8993         (num_processors): Honor OMP_THREAD_LIMIT even without
8994         OMP_NUM_THREADS being set.  Also fix a typo in the environment
8995         variable being checked, from the previous recent commit.
8997 2017-02-26  Pádraig Brady  <P@draigBrady.com>
8999         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
9000         * lib/nproc.c (parse_omp_threads): A new function refactored
9001         from num_processors() to support parsing both of the
9002         above environment variables.
9003         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
9004         to accurately reflect the current OpenMP nesting level.
9005         Also support the OMP_THREAD_LIMIT environment variable
9006         to limit the max value determined from OMP_NUM_THREADS.
9007         * modules/nproc: Depend on minmax header.
9008         Suggested by Oliver Heimlich.
9010 2017-02-25  Bruno Haible  <bruno@clisp.org>
9012         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
9013         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
9015 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9017         ftoastr: port to -Wdouble-promotion
9018         Work around -Wdouble-promotion false alarm in recent GCCs.
9019         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
9020         (ftoastr_snprintf, FTOASTR): Use it.
9022 2017-02-21  Bruno Haible  <bruno@clisp.org>
9024         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
9025         Reported by Rene Saavedra <rennes@openmailbox.org> in
9026         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
9027         * lib/glthread/lock.h: On glibc systems without
9028         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
9029         implementation of rwlocks.
9030         * lib/glthread/lock.c: Likewise.
9032 2017-02-20  Bruno Haible  <bruno@clisp.org>
9034         lock tests: Fix build failure on z/OS.
9035         Reported by Daniel Richard G. <skunk@iskunk.org>.
9036         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
9037         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
9038         exist.
9040 2017-02-19  Bruno Haible  <bruno@clisp.org>
9042         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
9043         This helps when CC=clang.
9044         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
9045         of /usr/bin/gcc.
9047         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
9048         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
9050 2017-02-19  Bruno Haible  <bruno@clisp.org>
9052         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
9053         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
9054         --with-tests --single-configure is specified.
9056 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
9058         users.txt: Update links, use HTTPS where possible
9059         * users.txt: Updated to HTTPS where possible,
9060         fixed some links to new locations.
9062 2017-02-16  Bruno Haible  <bruno@clisp.org>
9064         xbinary-io: Fix inlining.
9065         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
9067 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9069         xbinary-io: rename from xsetmode
9070         This patch is taken from suggestions by Bruno Haible in:
9071         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
9072         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
9073         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
9074         not ENOTTY, when it is an inappropriate device.
9075         * lib/binary-io.h (SET_BINARY): Resurrect.
9076         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
9077         (xset_binary_mode_error): Rename from xsetmode_error.
9078         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
9079         (xset_binary_mode): Rename from xsetmode.
9080         All uses changed.
9081         * modules/xbinary-io: Rename from modules/xsetmode.
9082         Update file names.
9083         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
9084         * NEWS: Update to match revised behavior.
9086 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9088         tests: Adjust to recent SET_BINARY change
9089         * tests/test-binary-io.c (main):
9090         * tests/test-binary-io.sh: Remove test for SET_BINARY.
9091         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
9092         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
9093         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
9095         xsetmode: new module
9096         This is to fix a problem noted by Eric Blake.
9097         Code was using xfreopen to change files to binary mode, but this
9098         fails for stdout when in append mode.  Such code should use
9099         xsetmode instead.
9100         * NEWS: Document incompatible changes to binary-io module.
9101         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
9102         New function.
9103         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
9104         (set_binary_mode): New function, which also checks for tty.
9105         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
9107 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
9109         headers: fix begin-end typos
9110         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
9111         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
9113         selinux-h: port to PGI 16.10
9114         * lib/se-selinux.in.h: Don't assume that include_next skips over
9115         duplicate -I DIR options.
9117         argp: port to PGI 16.10
9118         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
9120 2017-02-13  Darshit Shah  <darnir@gnu.org>
9122         unicase: Update function protoype to match definition.
9123         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
9124         uses 'size_t' as the datatype for the 'len' parameter in the functions
9125         it generates. Update the prototype specified here to match the newly
9126         generated function.
9128 2017-02-12  Bruno Haible  <bruno@clisp.org>
9130         times test: Avoid gcc warnings on Linux/x32.
9131         * tests/test-times.c (main): Really cast printf arguments from clock_t
9132         to 'long int'.
9134 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9136         glob: port better to emscripten
9137         Problem reported by Bruno Haible in:
9138         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
9139         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
9141 2017-02-11  Bruno Haible  <bruno@clisp.org>
9143         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
9144         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
9145         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
9146         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
9147         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
9148         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
9149         Distinguish hppa64 from hppa.
9151 2017-02-10  Bruno Haible  <bruno@clisp.org>
9153         search: Don't assume that tsearch() exists if 'VISIT' is defined.
9154         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
9155         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
9156         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
9158 2017-02-09  Bruno Haible  <bruno@clisp.org>
9160         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
9161         * doc/gnulib.texi (Libtool and Windows): Recommend
9162         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
9163         Reported by Reuben Thomas <rrt@sc3d.org>.
9165 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9167         stddef-tests: port to SIZE_MAX <= INT_MAX
9168         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
9169         Do not assume that INT_MAX < SIZE_MAX.
9171 2017-02-01  Bruno Haible  <bruno@clisp.org>
9173         lock tests: Fix link error.
9174         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
9175         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9177 2017-01-31  Bruno Haible  <bruno@clisp.org>
9179         lock: Fix link error (regression from 2017-01-05).
9180         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
9181         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
9182         pthread_rwlockattr_destroy weak.
9183         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9185 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9187         Port to PGI 16.10 x86-64
9188         This patch fixes one real bug in gl_anylinked_list2.h, along with
9189         some minor glitches that are not bugs.  It does not silence PGI’s
9190         thousands of bogus warnings when compiling test-intprops.c.
9191         Fortunately, the warnings do not cause a failure.
9192         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
9193         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
9194         My goodness, PGI goes back a long ways - this predates C89!
9195         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
9196         For example, ASYNCSAFE (const void *) should expand to
9197         ‘const void *volatile’, not to ‘volatile const void *’.
9198         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
9199         * lib/verify.h (verify) [!__GNUC__]:
9200         Use shorter albeit meaningless string to bypass silly compiler limits.
9201         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
9202         * tests/nan.h (NaNf, NaNd, NaNl):
9203         Use static functions to avoid misguided compiler diagnostics.
9204         Is there some reason we don’t use static functions on all platforms?
9206 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9208         parse-datetime: handle timezones reentrantly
9209         This API change was prompted by a report by Pádraig Brady in:
9210         https://bug.debian.org/851934#10
9211         To help fix the bug, make parse_datetime2 more reentrant.
9212         * NEWS: Document this incompatible change.
9213         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
9214         Add two arguments, the timezone and the timezone name.
9215         All callers changed.  If TZ="..." is specified, use it for
9216         calculating defaults.
9217         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
9218         this code should be usable in a library.
9219         (mktime_ok, get_effective_timezone):
9220         Accept timezone arg too.  All callers changed.
9221         (get_tz): Remove.
9222         (get_effective_timezone): Check for failures.
9224 2017-01-20  Eric Blake  <eblake@redhat.com>
9226         localename: port to cygwin 2.6
9227         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
9228         Cygwin.
9229         * modules/localename (Depends-on): Add extensions, since
9230         NL_LOCALE_NAME() is not visible without it.
9232 2017-01-17  Pádraig Brady  <P@draigBrady.com>
9234         parse-datetime: fix dependence on AC_PROG_SED
9235         * modules/parse-datetime: Use `sed` directly like all other modules.
9236         Reported by J William Piggott
9238 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9240         intprops: update doc URLs
9241         * doc/intprops.texi (Integer Range Overflow): Update URLs.
9243 2017-01-16  Bruno Haible  <bruno@clisp.org>
9245         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
9246         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
9247         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
9248         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
9249         distinguish s390 and s390x.
9250         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
9251         * NEWS: Mention the change regarding 'armel'.
9253 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9255         localeinfo: case_folded_counterparts and WEOF
9256         * NEWS: Document this.
9257         * lib/localeinfo.c (case_folded_counterparts):
9258         First arg is now wint_t, not wchar_t.  This generalizes the
9259         function to also work on WEOF, where it returns 0.
9261         dfa: port to gcc -fsanitize=undefined
9262         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
9263         as this runs afoul of gcc -fsanitize=undefined.
9265 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
9267         strftime: %z is -00 if unknown
9268         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
9269         the caller's responsibility to set 'negative_number'.  All uses changed.
9270         (__strftime_internal): Put '-' before a zero UTC offset if the time
9271         zone abbreviation starts with "-", which is the recently-introduced
9272         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
9273         * tests/test-strftime.c: Test for this.
9275 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9277         dfa: port to older GCC
9278         Problem reported by Assaf Gordon in:
9279         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
9280         * modules/c99: New module.  This merely attempts to use the latest
9281         C version, which should be enough to solve this particular problem.
9282         The idea is to document which Gnulib modules assume C99 or later.
9283         * modules/dfa (Depends-on): Add it.
9285 2017-01-10  Bruno Haible  <bruno@clisp.org>
9287         Update DEPENDENCIES.
9288         * DEPENDENCIES: List only https URLs. Update recommended version for
9289         autoconf, automake, gperf.
9291 2017-01-10  Jim Meyering  <meyering@fb.com>
9293         maint.mk: enforce spelling of "timestamp" (i.e., no space)
9294         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
9295         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
9297 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9299         dfa: minor simplification with emptyset
9300         * lib/dfa.c (build_state): Simplify by using emptyset.
9302 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9304         dfa: shrink constraints from 4 bits to 3
9305         * lib/dfa.c (newline_constraint, letter_constraint)
9306         (other_constraint, prev_newline_dependent)
9307         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
9308         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
9309         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
9310         Constraints need only 3 bits, not 4.  Using smaller integers
9311         shrinks the code a bit and makes grep a tad faster on x86-64.
9313         dfa: omit unnecessary ptrdiff_t check
9314         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
9315         overflow, since xnmalloc does that now.
9317         dfa: omit unnecessary allocation
9318         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
9319         an all-zero follow set works just fine.
9321         dfa: omit unused local
9322         * lib/dfa.c (build_state): Fix up recent change.
9324         maint: remove stray .texi files
9325         Although these were superseded by other files like
9326         doc/posix-functions/ctime.texi, the old files were not removed.
9327         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
9329 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
9331         getprogname: fix port to IRIX
9332         * lib/getprogname.c (getprogname) [__sgi]:
9333         Don't dump core if malloc returns NULL.
9335         dfa: fix reallocation bug when matching newlines
9336         Problem reported for sed by S. Gilles (Bug#25390).
9337         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
9338         (dfastate): Reallocate before moving any newline transition ...
9339         (build_state): ... instead of reallocating here, where it is too late.
9341 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9343         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
9344         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
9346 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9348         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
9349         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
9351 2017-01-07  Bruno Haible  <bruno@clisp.org>
9353         stdioext: Port to Minix 3.2 and newer.
9354         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
9355         * lib/fseeko.c (fseeko): Likewise.
9356         Reported by Nelson Beebe via Paul Eggert.
9358 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9360         getprogname: port to IRIX
9361         * lib/getprogname.c (getprogname): Port to IRIX.
9362         Based on an idea by Bastien Roucariès at:
9363         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
9364         via code from Bruno Haible at:
9365         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
9367         localename-tests: port to NetBSD 7
9368         Problem reported by Nelson H. F. Beebe.
9369         * tests/test-localename.c:
9370         Test newlocale and uselocale only if both exist.
9372         glob, intprops, xalloc: work around Clang bug
9373         Work around LLVM bug 16404, which is still not fixed.
9374         https://llvm.org/bugs/show_bug.cgi?id=16404
9375         Problem reported by Nelson H. F. Beebe.
9376         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
9377         Remove.
9378         * lib/glob.c (size_add_wrapv):
9379         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
9380         * lib/xalloc-oversized.h (xalloc_oversized):
9381         Do not use overflow builtins if Clang.
9383         dfa: fix 'return' typo
9384         Problem reported by Nelson H. F. Beebe.
9385         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
9387 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9389         parse-datetime: fix generated paths for coverage files
9390         * modules/parse-datetime: Adjust the paths for parse-datetime.y
9391         within parse-datetime.c, so that gcc generates appropriate .gcno
9392         files, allowing lcov to proceed without error.  Previously it
9393         would error trying to find "lib/lib/parse-datetime.y".
9395 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9397         maint.mk: support parallel execution of coverage
9398         * top/maint.mk (coverage): Run dependencies serially,
9399         thus supporting parallel processing of each one,
9400         particularly build-coverage, which builds and runs tests.
9402 2017-01-05  Bruno Haible  <bruno@clisp.org>
9404         lock tests: Prefer semaphore over mutex.
9405         * tests/test-lock.c (USE_SEMAPHORE): New constant.
9406         (struct atomic_int, init_atomic_int, get_atomic_int_value,
9407         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
9408         Suggested by Torvald Riegel <triegel@redhat.com>.
9410 2017-01-05  Bruno Haible  <bruno@clisp.org>
9412         lock: Provide guarantee to avoid writer starvation for rwlocks.
9413         The rationale is: 1) Read-preferring read-write locks are prone to
9414         writer starvation if the number of reader threads multiplied by the
9415         percentage of time they have the lock held is too high. 2) Write-
9416         preferring read-write locks are the only reliable way to avoid this.
9417         3) There have been reports of 'test-lock' hanging on glibc systems
9418         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
9419         and glibc indeed implements read-preferring rwlocks by default, see
9420         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
9421         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
9422         * m4/pthread_rwlock_rdlock.m4: New file.
9423         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9424         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
9425         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9426         of rwlock initialization on glibc systems without
9427         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9428         of rwlocks altogether on non-glibc systems without
9429         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9430         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
9431         * lib/glthread/lock.c [USE_POSIX_THREADS]
9432         (glthread_rwlock_init_for_glibc): New function.
9433         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
9434         comment.
9435         [USE_PTH_THREADS]: New implementation of rwlocks.
9436         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
9437         readers.
9438         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
9439         (Depends-on): Add 'extensions'.
9440         * tests/test-rwlock1.c: New file.
9441         * lock-tests (Files): Add it.
9442         (Depends-on): Add usleep.
9443         (Makefile.am): Add test-rwlock1 to the tests.
9445 2017-01-05  Bruno Haible  <bruno@clisp.org>
9447         thread: Fix pth port.
9448         * lib/glthread/thread.h (pth_init): Declare weak.
9449         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
9450         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
9451         function.
9453 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
9455         parse-datetime: fix debug message on lone year number
9456         Input dates such as
9457           date -d "Apr 11 22:59:00 2011"
9458         are parsed as date (Apr 11, with default year 2016), then time, then a
9459         number (2011). Based on the combination of previously seen tokens,
9460         'digits_to_date_time' determines 2011 to be a year value.
9461         This fixes the debug messages to correctly show the updated year.
9462         Before:
9463             $ date --debug -d 'Apr 11 22:59:00 2011'
9464             date: parsed date part: (Y-M-D) 2016-04-11
9465             date: parsed time part: 22:59:00
9466             date: parsed number part: today/this/now
9467         After:
9468             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
9469             date: parsed date part: (Y-M-D) 2016-04-11
9470             date: parsed time part: 22:59:00
9471             date: parsed number part: year: 2011
9472         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
9473         'debug_year_seen' member fields.
9474         (digits_to_date_time): Update 'year_seen' as needed.
9475         (debug_print_current_time): Inform about year updates.
9476         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
9478         parse-datetime: fix local timezone debug messages
9479         "Local timezones" are strings that affect only DST relative to the
9480         default timezone. The debug messages in parse-datetime.y printed
9481         wrong information when encountering local timezones.
9482         Examples:
9483         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
9484              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
9485              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
9486         When the default timezone relates to the zone strings, EET/EEST are
9487         parsed as local timezones (tLOCAL_ZONE), and only change the DST
9488         value (0/1, respectively):
9489              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
9490              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
9491         * lib/parse-datetime.y (debug_print_current_time): If local timezone
9492         was seen, inform about DST change, don't print actual timezone.
9493         (debug_strfdatetime): If local timezone was seen, use default timezone
9494         (and adjust as needed) instead of using incorrect timezone.
9495         (parse_datetime2): Use correct time-zone source string, and adjust
9496         default timezone as needed.
9498         parse-datetime: add debug warning about DST changes
9499         Incorrect date arithmetic due to daylight saving time (DST) are a
9500         common (false) bug report in coreutils.
9501         Detect two such cases and print a warning:
9502         1. year/month/day adjustments (performed on 'struct tm'),
9503            where 'mktime' returns a different isdst value.
9504         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
9505            where the result of 'localtime(3)' on the value will return a
9506            different isdst value.
9507         Note: DST changes could be harmless or unnoticeable.
9508         Examples (with 'TZ=America/New_York'):
9509         Unnoticeable: result is 2016-Dec-14
9510            $ date -d '2016-06-15 EDT + 6 months' +%b
9511            Dec
9512         Unnoticeable: result is 2016-Dec-15 11:00:00
9513            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
9514            2016-12-15
9515         This is unexpected:
9516            $ date -d '2016-06-01 EDT + 6 months' +%F
9517            2016-11-30
9518         The new debug warnings will show:
9519            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
9520            ...
9521            date: warning: daylight saving time changed after date adjustment
9522            ...
9523         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
9524         print an appropriate warning message.
9526         parse-datetime: add debug warning about date arithmetic
9527         Date arithmetic are done directly on the fields of 'struct tm',
9528         which can result in invalid dates. Normalization with 'mktime(3)'
9529         will then produce a different date - which might cause unexpected
9530         results.
9531         Examples:
9532           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
9533           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
9534         Note that date normalization is not inherently wrong and not rejected,
9535         as it has legitimate uses:
9536           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
9537         If the user asked to adjust months but 'mday' changed,
9538         or user asked to adjust years but 'month' changed - warn about it.
9539             $ ./src/date --debug -d '2016-10-31 - 1 month'
9540             ...
9541             date: warning: when adding relative months/years, \
9542                            it is recommended to specify the 15th of the month
9543             ...
9544             date: warning: month/year adjustment resulted in shifted dates:
9545             date:      adjusted Y M D: 2016 09 31
9546             date:    normalized Y M D: 2010 10 01
9547             ...
9548         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
9549         a warning message. Improve recommendation of when to use 15 of the
9550         month or noon for date arithmetic.
9552         parse-datetime: fix debug message of relative part after timezone
9553         Relative part (e.g '+8 days') after a timezone string was not
9554         reported (was only reported after a timezone number). Due to the
9555         parser's structure, timezone strings with numbers were handled
9556         separately.
9557         before:
9558              # Timezone number + relative part: OK
9559              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
9560              ...
9561              date: parsed relative part: -8 day(s)
9562              # Timezone string + relative part: missing
9563              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
9564              [ missing message ]
9565         After: messages are printed in both cases.
9566         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
9568         parse-datetime: fix incorrect debug message on lone number
9569         A lone number is an absolute value, not a relative time part.
9570         before:
9571            $ date --debug -d '20130101'
9572            date: parsed number part: today/this/now
9573         After:
9574            $ ./src/date --debug -d '20130101'
9575            date: parsed number part: (Y-M-D) 2013-01-01
9576         * lib/parse-datetime.y ('item'/'number' tokens): Call
9577         'debug_print_current_time' instead of 'debug_print_relative_time'.
9579 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9581         doc: modernize for C11 etc.
9582         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
9583         for C11, MinGW, etc.  This responds to Paul Smith's question in:
9584         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
9586         dfa: prefer functions to FETCH_WC macro
9587         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
9588         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
9589         wint_t result into DFA->lex.wctok instead of to a separate arg.
9590         All callers changed.  Move more local decls closer to where
9591         they're used.
9593         dfa: narrow more local var scopes
9594         * lib/dfa.c: Move more local decls to be more local.
9596         dfa: remove duplicate assignment
9597         Problem reported by Bruno Haible in:
9598         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
9599         * lib/dfa.c (parse_bracket_exp): Simplify.
9601 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9603         dfa: simplify constraint-dependency checking
9604         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
9605         (prev_other_constraint): Remove.
9606         (prev_newline_dependent, prev_letter_dependent):
9607         Simplify, to avoid an unnecessary bitwise AND operation.
9609         dfa: prefer functions and constants to macros
9610         * lib/dfa.c: Prefer constants to macros where either will do.
9611         (streq, isasciidigit, newline_constraint)
9612         (letter_constraint, other_constraint, succeeds_in_context)
9613         (prev_newline_constraint, prev_letter_constraint)
9614         (prev_other_constraint, prev_newline_dependent)
9615         (prev_letter_dependent, accepting, accepts_in_context):
9616         Now static functions instead of function-like macros.
9617         Use lower-case names accordingly.  All uses changed.
9619         dfa: narrow more local var scopes
9620         * lib/dfa.c: Move some more local decls down to nearer where
9621         they're needed.
9623 2016-12-31  Jim Meyering  <meyering@fb.com>
9625         dfa: narrow the scope of many local variables
9626         * lib/dfa.c: Now that we are no longer constrained to c89, move
9627         declarations of many variables (often indices) "down" into the
9628         scope(s) where used or to the point of definition.  This is a
9629         no-semantic-change diff.
9631 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9633         version-etc: new year
9634         * build-aux/gendocs.sh (version):
9635         * doc/gendocs_template:
9636         * doc/gendocs_template_min:
9637         * doc/gnulib.texi:
9638         * lib/version-etc.c (COPYRIGHT_YEAR):
9639         Update copyright dates by hand in templates and the like.
9640         * all files: Run 'make update-copyright'.
9642 2016-12-31  Eric Blake  <eblake@redhat.com>
9644         do-release-commit-and-tag: avoid shell syntax error
9645         * build-aux/do-release-commit-and-tag (curr_br): $branch can
9646         contain spaces when rebasing.
9648         maint.mk: hoist gnulib_dir definition earlier
9649         * top/maint.mk (gnulib_dir): Move near top of file.
9651 2016-12-31  Jim Meyering  <meyering@fb.com>
9653         maint.mk: do not always evaluate intprops-related shell
9654         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
9655         using gnulib_dir undefined (gnulib_dir is defined later in the
9656         file, which will be fixed separately), and besides, there is no
9657         need to incur the cost of this shell invocation for every single
9658         use of this .mk file.  Reported by Eric Blake in
9659         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
9661 2016-12-30  Jim Meyering  <meyering@fb.com>
9663         maint.mk: improve sc_prohibit_intprops_without_use
9664         * top/maint.mk (_intprops_names): Don't hard-code the list of
9665         symbol names.  Instead, derive it on the fly.
9667 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9669         dfa: shorten sbit, success
9670         * lib/dfa.c (struct regex_syntax.sbit):
9671         (struct dfa.success): Use char, not int, for array elements, since
9672         they are all in the range 0..7.
9674         dfa: simplify multibyte_prop etc.
9675         This follows up on a change made when dfa.c was in grep, namely grep
9676         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
9677         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
9678         That earlier simplification allows for some more simplification
9679         and trimming down here.
9680         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
9681         (struct lexer_state): New mamber brack.
9682         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
9683         since they must be in the range 0..3 now.
9684         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
9685         the brack member now supersedes them.
9686         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
9687         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
9688         (dfaparse): Remove unnecessary initializations of already-0 storage.
9689         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
9690         (dfassbuild): No need to clear sup->mbcsets.
9692         dfa: minor performance tweak
9693         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
9695         dfa: wrap charclass inside a struct
9696         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
9697         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
9698         about 5% faster, where list.txt is generated by 'aspell dump
9699         master | head -n 100000 >list.txt'.  See Bug#22239.
9700         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
9701         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
9702         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
9703         Adjust to this, e.g., by using charclass * rather than charclass.
9704         All callers changed as needed.
9705         (copyset): Remove.  All uses changed to simple assignment.
9706         (parse_bracket_exp): Use zeroset instead of memset.
9708 2016-12-30  Jim Meyering  <meyering@fb.com>
9710         maint.mk: update list of intprops.h symbol names
9711         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
9712         This avoids a false failure of the sc_prohibit_intprops_without_use
9713         rule in grep.
9715 2016-12-29  Eric Blake  <eblake@redhat.com>
9717         getopt: fix parallel test failure
9718         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
9719         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
9720         * tests/test-getopt-main.h (main): Use different file names
9721         in case test-getopt-gnu and test-getopt-posix run in parallel.
9723 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9725         xalloc: x2nrealloc check for ptrdiff_t overflow
9726         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
9727         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
9729 2016-12-24  Bruno Haible  <bruno@clisp.org>
9731         lock test: Fix performance problem on multi-core machines.
9732         * tests/test-lock.c (USE_VOLATILE): New macro.
9733         (struct atomic_int): New type.
9734         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
9735         functions.
9736         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
9737         as 'struct atomic_int'.
9738         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
9739         reclock_checker_thread, test_recursive_lock): Use the new functions.
9740         Reported by Eric Blake in
9741         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
9742         and by Pádraig Brady in
9743         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
9745 2016-12-19  Bruno Haible  <bruno@clisp.org>
9747         vma-iter: Fix endless loop on 64-bit Windows.
9748         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
9749         'unsigned long'.
9751 2016-12-19  Bruno Haible  <bruno@clisp.org>
9753         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
9754         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
9755         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
9756         Invoke gt_TYPE_WINT_T instead.
9757         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
9758         * modules/stdint (Files): Add m4/wint_t.m4.
9759         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
9760         * modules/wctype-h (Makefile.am): Likewise.
9761         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
9762         not only on MSVC.
9763         * lib/wctype.in.h (wint_t): Likewise.
9765 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9767         getopt-posix-tests: fix Makefile typo
9768         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
9769         Fix typo: the last ‘_’ was missing in the name.
9770         I suspect that the typo explains this build failure:
9771         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
9772         although I can’t reproduce the problem on Solaris 10 sparc.
9774 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9776         dfa: improve worst-case 'replace' performance
9777         See my note in Bug#22357#71.
9778         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
9779         (merge_constrained): New function, which is like
9780         the old 'merge' function, except with a new argument C2.
9781         Simplify the body by avoiding the need for different sections
9782         of code depending on whether one input is exhausted.
9783         (merge): Use the new function.
9784         (delete): Return the constraint of the deleted position,
9785         not the entire position.  Caller changed.
9786         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
9788 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9790         dfa: performance improvement for removal of epsilon closure
9791         See Bug#22357#32.
9792         * lib/dfa.c (delete): Use binary search to find deleted index.
9793         (replace): New function.  It replaces a position with the followed set.
9794         (epsclosure): Replace it with a new algorithm.  Update caller.
9796 2016-12-18  Bruno Haible  <bruno@clisp.org>
9798         Split tests for getopt-posix and getopt-gnu.
9799         * tests/test-getopt-posix.c: New file.
9800         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
9801         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
9802         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
9803         GNULIB_TEST_GETOPT_GNU.
9804         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
9805         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
9806         (Makefile.am): Test test-getopt-posix instead of test-getopt.
9807         * modules/getopt-gnu-tests: New file.
9808         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
9810 2016-12-18  Bruno Haible  <bruno@clisp.org>
9812         posix-modules: Add options for specific platforms.
9813         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
9814         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
9815         Invoke func_tmpdir. Filter out the excludes.
9817 2016-12-18  Bruno Haible  <bruno@clisp.org>
9819         getopt: Fix link error for users of getopt() in <unistd.h>.
9820         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
9821         __need_getopt is defined. Undefine all macros before defining them.
9822         * modules/getopt (Include): Clarify that including <unistd.h> is also
9823         OK.
9824         * tests/test-getopt.c: Add comment.
9826 2016-12-17  Bruno Haible  <bruno@clisp.org>
9828         getaddrinfo tests: Avoid compilation error on MSVC.
9829         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
9830         getaddrinfo on native Windows.
9832 2016-12-17  Bruno Haible  <bruno@clisp.org>
9834         getlogin, getlogin_r: Fix link errors on MSVC.
9835         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
9836         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
9837         (Link): New section.
9838         * modules/getlogin_r (Files): Add m4/getlogin.m4.
9839         (configure.ac): Require gl_LIB_GETLOGIN.
9840         (Link): New section.
9841         * NEWS: Mention the new link requirements.
9842         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
9843         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
9845 2016-12-17  Bruno Haible  <bruno@clisp.org>
9847         Un-deprecate the 'progname' module.
9848         * NEWS: Describe the appropriate use-cases of 'progname' versus
9849         'getprogname'. Based on discussion summary at
9850         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
9852 2016-12-17  Bruno Haible  <bruno@clisp.org>
9854         Reorganize NEWS a bit.
9855         * NEWS: Move some not so important changes away from section
9856         "Important Notes".
9858 2016-12-17  Bruno Haible  <bruno@clisp.org>
9860         tanhf: Avoid redefinition error on MSVC.
9861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
9862         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
9863         may be defined as an inline function.
9864         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
9865         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
9867 2016-12-17  Bruno Haible  <bruno@clisp.org>
9869         tanf: Avoid redefinition error on MSVC.
9870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
9871         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
9872         may be defined as an inline function.
9873         * modules/math (Makefile.am): Substitute REPLACE_TANF.
9874         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
9876 2016-12-17  Bruno Haible  <bruno@clisp.org>
9878         sqrtf: Avoid redefinition error on MSVC.
9879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
9880         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
9881         may be defined as an inline function.
9882         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
9883         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
9885 2016-12-17  Bruno Haible  <bruno@clisp.org>
9887         sinhf: Avoid redefinition error on MSVC.
9888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
9889         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
9890         may be defined as an inline function.
9891         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
9892         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
9894 2016-12-17  Bruno Haible  <bruno@clisp.org>
9896         sinf: Avoid redefinition error on MSVC.
9897         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
9898         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
9899         may be defined as an inline function.
9900         * modules/math (Makefile.am): Substitute REPLACE_SINF.
9901         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
9903 2016-12-17  Bruno Haible  <bruno@clisp.org>
9905         logf: Avoid redefinition error on MSVC.
9906         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
9907         may be defined as an inline function.
9909 2016-12-17  Bruno Haible  <bruno@clisp.org>
9911         log10l: Avoid redefinition error on MSVC.
9912         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
9913         may be defined as an inline function.
9915 2016-12-17  Bruno Haible  <bruno@clisp.org>
9917         log10f: Avoid redefinition error on MSVC.
9918         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
9919         may be defined as an inline function.
9921 2016-12-17  Bruno Haible  <bruno@clisp.org>
9923         hypotl: Avoid redefinition error on MSVC.
9924         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
9925         may be defined as an inline function.
9927 2016-12-17  Bruno Haible  <bruno@clisp.org>
9929         hypotf: Avoid redefinition error on MSVC.
9930         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
9931         may be defined as an inline function.
9933 2016-12-17  Bruno Haible  <bruno@clisp.org>
9935         fmodl: Avoid redefinition error on MSVC.
9936         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
9937         may be defined as an inline function.
9939 2016-12-17  Bruno Haible  <bruno@clisp.org>
9941         fmodf: Avoid redefinition error on MSVC.
9942         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
9943         may be defined as an inline function.
9945 2016-12-17  Bruno Haible  <bruno@clisp.org>
9947         expf: Avoid redefinition error on MSVC.
9948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
9949         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
9950         may be defined as an inline function.
9951         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
9952         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
9954 2016-12-17  Bruno Haible  <bruno@clisp.org>
9956         coshf: Avoid redefinition error on MSVC.
9957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
9958         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
9959         may be defined as an inline function.
9960         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
9961         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
9963 2016-12-17  Bruno Haible  <bruno@clisp.org>
9965         cosf: Avoid redefinition error on MSVC.
9966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
9967         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
9968         may be defined as an inline function.
9969         * modules/math (Makefile.am): Substitute REPLACE_COSF.
9970         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
9972 2016-12-17  Bruno Haible  <bruno@clisp.org>
9974         atan2f: Avoid redefinition error on MSVC.
9975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
9976         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
9977         may be defined as an inline function.
9978         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
9979         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
9981 2016-12-17  Bruno Haible  <bruno@clisp.org>
9983         atanf: Avoid redefinition error on MSVC.
9984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
9985         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
9986         may be defined as an inline function.
9987         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
9988         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
9990 2016-12-17  Bruno Haible  <bruno@clisp.org>
9992         asinf: Avoid redefinition error on MSVC.
9993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
9994         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
9995         may be defined as an inline function.
9996         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
9997         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
9999 2016-12-17  Bruno Haible  <bruno@clisp.org>
10001         acosf: Avoid redefinition error on MSVC.
10002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
10003         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
10004         may be defined as an inline function.
10005         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
10006         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
10008 2016-12-17  Bruno Haible  <bruno@clisp.org>
10010         Avoid redefinition errors on MSVC.
10011         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
10012         the function may be defined as an inline function.
10013         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
10014         the function may be defined as an inline function.
10016 2016-12-17  Bruno Haible  <bruno@clisp.org>
10018         Avoid redefinition errors on MSVC.
10019         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
10020         * lib/unistd.in.h: Include <stdio.h> when necessary.
10022 2016-12-17  Bruno Haible  <bruno@clisp.org>
10024         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
10025         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
10026         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
10027         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
10028         WINT_MAX.
10030 2016-12-17  Bruno Haible  <bruno@clisp.org>
10032         Avoid autoconf warning.
10033         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
10034         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
10036 2016-12-17  Bruno Haible  <bruno@clisp.org>
10038         fpending: Revert workaround against Emacs bug.
10039         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
10040         The Emacs bug is fixed by Eli Zaretskii in
10041         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
10043 2016-12-17  Bruno Haible  <bruno@clisp.org>
10045         getlogin_r tests: Port to mingw.
10046         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
10047         regression introduced on 2014-05-19.
10049 2016-12-17  Bruno Haible  <bruno@clisp.org>
10051         getlogin: Port to newer mingw.
10052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
10053         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
10054         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
10055         HAVE_GETLOGIN.
10056         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
10057         HAVE_GETLOGIN.
10058         * doc/posix-functions/getlogin.texi: Mention the issue.
10059         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
10060         regression introduced on 2014-05-14.
10062 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10064         builtin-expect: improve port to IBM XL C
10065         Problem reported for z/OS by Daniel Richard G. in:
10066         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
10067         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
10068         Test for <builtins.h> directly.
10070         builtin-expect: port to IBM XL C
10071         Problem reported for z/OS by Daniel Richard G. in:
10072         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
10073         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
10074         Also allow __builtin_expect defined via a standard include file.
10076         regex: fix dependency
10077         Problem reported by Bruno Haible in:
10078         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
10079         * modules/regex: Depend on builtin-expect.
10081         builtin-expect: new module
10082         Fix fnmatch to use it.
10083         Problem reported for z/OS by Daniel Richard G.
10084         * lib/fnmatch.c (__builtin_expect):
10085         * lib/glob.c (__builtin_expect):
10086         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
10087         * lib/memmem.c (__builtin_expect) [!_LIBC]:
10088         * lib/scandir.c (__builtin_expect):
10089         * lib/strstr.c (__builtin_expect) [!_LIBC]:
10090         Remove macro; config.h now does this.
10091         * lib/gl_anytreehash_list1.h (add_to_bucket):
10092         * lib/regex_internal.h (BE):
10093         Assume __builtin_expect.
10094         * m4/builtin-expect.m4, modules/builtin-expect: New files.
10095         * modules/avltreehash-list, modules/fnmatch, modules/glob:
10096         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
10097         * modules/scandir, modules/strstr-simple:
10098         Depend on builtin-expect.
10100 2016-12-15  Bruno Haible  <bruno@clisp.org>
10102         init.sh: Add possibility to not delete temporary files.
10103         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
10104         to yes, don't erase the temporary directory.
10106 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10108         regex: fix integer-overflow bug in never-used code
10109         Problem reported by Clément Pit–Claudel in:
10110         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
10111         * lib/regex_internal.h: Include intprops.h.
10112         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
10113         behavior on integer overflow.
10114         * modules/regex (Depends-on): Add intprops.
10116         fpending: fix port to MinGW on Emacs
10117         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
10118         Problem reported by Eli Zaretskii in:
10119         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
10120         Is Plan 9 still a valid porting target, anyway?
10122 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10124         safe-alloc: use xalloc-oversized
10125         * lib/safe-alloc.c: Include xalloc-oversized.h.
10126         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
10127         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
10129         xalloc: do not exceed PTRDIFF_MAX
10130         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
10131         xalloc_oversized check, since objects larger than PTRDIFF_MAX
10132         bytes have pointer-subtraction problems.
10134         malloca: do not exceed PTRDIFF_MAX
10135         * lib/malloca.h: Include xalloc-oversized.
10136         (nmalloca): Use xalloc_oversized instead of rolling our own.
10137         * modules/malloca (Depends-on):
10138         * modules/relocatable-prog-wrapper (Depends-on):
10139         Add xalloc-oversized.
10141         quotearg: pacify GCC better
10142         * modules/quotearg (Depends-on): Add minmax, stdint.
10143         * lib/quotearg.c: Include minmax.h, stdint.h.
10144         (nslots): Now int, as there seems little point to going to extra
10145         work merely to support the INT_MAX slot, which nobody ever uses.
10146         (quotearg_n_options): Redo size-overflow checks to pacify GCC
10147         and to catch (mostly-theoretical) ptrdiff_t problems too.
10148         This can be done via one comparison.
10150 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
10152         xalloc-oversized: check for PTRDIFF_MAX too
10153         This avoids undefined behavior when subtracting pointers to
10154         objects containing more than PTRDIFF_MAX bytes.
10155         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
10156         Also return 1 if the result would exceed PTRDIFF_MAX>
10157         * modules/xalloc-oversized (Depends-on):
10158         Add stdint.
10160         dfa: fix glitches in previous commit
10161         Sorry, I don't know how I managed to commit the wrong version.
10162         * lib/dfa.c (MIN): Move up.
10163         (xpalloc): Now static.
10165         dfa: fix some unlikely integer overflows
10166         I found these while reviewing the recent Coverity-related fix.
10167         This patch changes part of dfa.c to prefer ptrdiff_t instead of
10168         size_t for object counts.  Using ptrdiff_t is the style typically
10169         used in Emacs; although it wastes a sign bit as sizes can never be
10170         negative, it makes -fsanitize=undefined more likely to catch
10171         integer overflows in index calculation, and nowadays the upside is
10172         typically more important than the downside.  Although perhaps the
10173         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
10174         of dfa.c already does, since it uses state_num which is signed),
10175         that is a bigger change and is not needed to fix the bugs I found.
10176         * lib/dfa.c: Include stdint.h and intprops.h.
10177         (TOKEN_MAX): New macro.
10178         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
10179         (charclass_index, parse_bracket_exp, addtok, insert, merge)
10180         (realloc_trans_if_necessary, free_mbdata):
10181         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
10182         This is safe because xpalloc checks that the sizes do not exceed
10183         either SIZE_MAX or PTRDIFF_MAX.
10184         (xpalloc): New function, mostly taken from Emacs.
10185         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
10186         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
10187         (charclass_index): Check for integer overflow in computing
10188         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
10189         added to it later.
10190         (alloc_position_set): Check for integer overflow.  On typical
10191         platforms this check has zero overhead, since the constant
10192         expression is false.
10193         (realloc_trans_if_necessary):
10194         Remove assertion, which I hope Coverity no longer needs.
10196         * modules/dfa (Depends-on): Add intprops, stdint.
10198 2016-12-12  Jim Meyering  <meyering@fb.com>
10200         dfa: add an assertion to avoid coverity false positive
10201         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
10202         warned that "newalloc1 - 2" could overflow.
10204 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
10206         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
10207         * dfa.h (DFA_CASE_FOLD): Remove.
10208         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
10210 2016-12-13  John W. Eaton  <gnu@jweaton.org>
10212         link: fix test to declare use of rename()
10213         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
10214         -Werror=implicit-function-declaration
10216 2016-12-12  Bruno Haible  <bruno@clisp.org>
10218         fpending: Port to native Windows with MSVC.
10219         * lib/fpending.c: Include stdio-impl.h.
10220         (__fpending): Include all known implementations. Err out if it's not
10221         ported.
10222         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
10223         * modules/fpending (Files): Add lib/stdio-impl.h.
10224         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
10226 2016-12-12  Bruno Haible  <bruno@clisp.org>
10228         stdioext: Port to native Windows with MSVC.
10229         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
10230         (struct _gl_real_FILE): New type.
10231         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
10232         Windows.
10233         * lib/fbufmode.c (fbufmode): Add code for native Windows.
10234         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
10235         other SystemV derived implementations.
10236         * lib/fpurge.c (fpurge): Likewise.
10237         * lib/freadable.c (freadable): Likewise.
10238         * lib/freadahead.c (freadahead): Likewise.
10239         * lib/freading.c (freading): Likewise.
10240         * lib/freadptr.c (freadptr): Likewise.
10241         * lib/freadseek.c (freadptrinc): Likewise.
10242         * lib/fseeko.c (fseeko): Likewise.
10243         * lib/fseterr.c (fseterr): Likewise.
10244         * lib/fwritable.c (fwritable): Likewise.
10245         * lib/fwriting.c (fwriting): Likewise.
10246         Reported by Gisle Vanem <gvanem@yahoo.no>.
10248 2016-12-11  Jim Meyering  <meyering@fb.com>
10250         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
10251         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
10252         to work with most shells, but not with the one provided by many
10253         Solaris 10 systems, so running configure with such a /bin/sh evokes
10254         e.g., "./configure: syntax error at line 33602: `(' unexpected".
10255         Reported by Assaf Gordon in
10256         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
10258 2016-12-10  Bruno Haible  <bruno@clisp.org>
10260         threadlib: Optimize out runtime test on Solaris >= 10.
10261         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
10262         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
10263         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
10265 2016-12-10  Bruno Haible  <bruno@clisp.org>
10267         stdint: Update doc about Solaris 9.
10268         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
10270 2016-12-09  Bruno Haible  <bruno@clisp.org>
10272         c-ctype tests: Fix link error on Solaris 9.
10273         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
10274         Reported at <https://savannah.gnu.org/bugs/?46827>.
10276 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
10278         dfa: fix performance bug that recomputes trans
10279         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
10280         25 on-demand changes.  The bug caused build_state to reset all
10281         d->trans elements to -2 even when d->trans was already non-null.
10282         Use C99 style decls after statements in this function.
10284         same-inode: port to MinGW
10285         Here st_ino is always 0, so change the definition of SAME_INODE so
10286         that 1 means the two files are the same, 0 with st_ino != 0 means
10287         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
10288         reported by Bruno Haible (Bug#25146).
10289         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
10290         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
10292 2016-12-04  Bruno Haible  <bruno@clisp.org>
10294         javacomp-script: Support Java 7 and 8.
10295         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
10296         target-version 1.7, 1.8.
10298 2016-12-02  Daiki Ueno  <ueno@gnu.org>
10300         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
10301         GPLv2" rewriting.
10303 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
10305         * gnulib-tool (func_import): Adhere to the license guideline when
10306         rewriting the license text to "LGPLv3+ or GPLv2":
10307         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
10309 2016-12-02  Bruno Haible  <bruno@clisp.org>
10311         localcharset: Avoid theoretical buffer overrun.
10312         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
10313         return value from setlocale if it would lead to a buffer overrun.
10315 2016-12-01  Bruno Haible  <bruno@clisp.org>
10317         Relicense some modules under LGPLv2+.
10318         Kevin Cernekee's approval is in
10319         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
10320         * modules/fseterr (License): Change to LGPLv2+.
10321         * modules/mbchar (License): Likewise.
10322         * modules/mbiter (License): Likewise.
10323         * modules/mbsnlen (License): Likewise.
10324         * modules/wcwidth (License): Likewise.
10326 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10328         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
10329         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
10330         OS/2 kLIBC.
10332 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10334         alphasort, scandir: Port to OS/2 kLIBC
10335         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
10336         declaration.
10337         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
10339 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10341         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
10342         * lib/relocatable.c (relocate): Do not touch pathname if it is started
10343         with '/@unixroot'.
10345 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10347         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
10348         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
10349         OS/2 kLIBC unless TCPV40HDRS is defined.
10351 2016-11-29  Jim Meyering  <meyering@fb.com>
10353         dfa: avoid new infinite loop
10354         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
10355         * lib/dfa.c (dfastate): When constructing a new state table, we could
10356         initially declare that we had found a match, and later find that
10357         constraints eliminate that possibility, yet continue to use the
10358         now stale "matched" indicator.  That would lead to an infinite loop.
10359         The solution is to update "matched" when necessary.
10360         Introduced by commit v0.1-983-g403adf1.
10362 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10364         dfa: avoid match middle in multibyte character
10365         * lib/dfa.c (transit_state): If fails in matching single byte characters
10366         on a state including period expression in non-UTF8 multibyte locales,
10367         skip trailing bytes.
10368         (dfa_supported): Revert previous change.
10370 2016-11-27  Jim Meyering  <meyering@fb.com>
10372         dfa: avoid false match in non-UTF8 multibyte locales
10373         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
10374         as "not supported" so that callers will resort to using regex-based
10375         matcher.  This will surely hurt performance, but correctness trumps
10376         performance here, and the affected locales are less and less relevant,
10377         these days.  See grep's bug report https://bugs.gnu.org/24975.
10379 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
10381         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
10382         * lib/ptsname_r.c: Include the appropriate headers.
10383         [__sun]: Delete sys/sysmacros.h include.
10384         [_AIX || __osf__]: Likewise.
10385         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
10387 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10389         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
10390         * lib/md4.c (md4_process_bytes): The existing define is made internal
10391         in recent versions of glibc, so also use this new public define.
10392         * lib/md5.c (md5_process_bytes): Likewise.
10393         * lib/sha1.c (sha1_process_bytes): Likewise.
10394         * lib/sha256.c (sha256_process_bytes): Likewise.
10395         * lib/sha512.c (sha512_process_bytes): Likewise.
10397 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10399         maint: use a more standard return from mbrtowc test
10400         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
10401         from the test program as this often indicates an
10402         unhandled case in the test program.
10403         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
10404         (gl_MBRTOWC_SANITYCHECK): Likewise.
10405         (gl_MBRTOWC_NULL_ARG2): Likewise.
10406         (gl_MBRTOWC_NUL_RETVAL): Likewise.
10408 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
10410         freopen: work around glibc bug with closed fd
10411         Work around glibc bug#15589, where freopen mishandles the case
10412         where stdin etc. are already closed.
10413         * doc/posix-functions/freopen.texi (freopen): Document the bug.
10414         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
10415         instead of __need_FILE, as the latter does not work with glibc.
10416         Include <fcntl.h>, for open flags.
10417         (rpl_freopen): Work around glibc bug.
10418         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
10419         * modules/freopen (Depends-on): Add fcntl-h.
10420         * tests/test-freopen.c (main): Test for bug.
10422 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10424         fnmatch: fix typo introduced on 2016-08-17
10425         This fixes the port to non-GCC compilers that lack __builtin_expect.
10426         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
10428         dfa: simplify with new function fillset
10429         * lib/dfa.c (fillset): New function.
10430         Use it for clarity when applicable.
10432         dfa: fix glitches with on-demand states
10433         Also, adjust commentary to better match new code.
10434         Some of these glitches predate the recent change.
10435         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
10436         only non-initial states.
10437         (dfastate): Rename locals to better match new roles.
10438         Move them into nested scopes if this is easy.
10439         Omit unnecessary calls to zeroset.
10440         Simplify test for whether to throw in the positions of state 0.
10441         Omit C99-ism (decl after statement) since Gawk still wants C89.
10442         (build_state): Omit unnecessary test and assignment.
10443         Fix some confusion that counted transition tables inaccurately
10444         and could cause a memory leak.
10445         (dfaexec_main): Redo to make it clearer to the compiler that
10446         -1 and -2 are the only negative state numbers here.
10448 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10450         dfa: addition of new state on demand
10451         * src/dfa.c (dfastate): Add argument UC, the current input character.
10452         Fill only a group including the character in transition table.
10453         (realloc_trans_if_necessary): Add the dummy state which means that a
10454         transition table is assigned but the next state is not assigned.
10455         (build_state): Return the next state.  All callers updated.
10456         (transit_state_singlebyte): If we get the dummy state,
10457         fill the transition table.
10458         (dfaexec_main): Handle the dummy state.
10459         (free_mbdata, dfafree): Consider the dummy state.
10461 2016-11-24  Daiki Ueno  <ueno@gnu.org>
10463         srclist: sync with released gettext
10464         * config/srclist.txt: Set "release" option to the files under
10465         $GETTEXT.
10467 2016-11-24  Daiki Ueno  <ueno@gnu.org>
10469         srclist: add "release" option
10470         * config/srclist.txt: Change the format so that the first column
10471         of each line points to the top-level directory of the source
10472         archive.
10473         * config/srclist-update: Accept "release" option that checks files
10474         from the most recently tagged revision in the source archive.
10476 2016-11-21  Bruno Haible  <bruno@clisp.org>
10478         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
10479         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
10480         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
10481         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
10482         Inline and remove member function 'rpl ()' of the wrapper struct.
10484 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
10486         dfa: fix logic typo
10487         Problem reported by Stephane Chazelas (Bug#24973).
10488         * lib/dfa.c (using_simple_locale): Fix typo that caused some
10489         non-simple locales like fr_FR to be treated as simple.
10491 2016-11-20  Jim Meyering  <meyering@fb.com>
10493         fix test driver leaks: exclude, malloc, realloc
10494         * tests/test-exclude.c (main): Fix trivial leak.
10495         * tests/test-malloc-gnu.c (main): Likewise.
10496         * tests/test-realloc-gnu.c (main): Likewise.
10497         With these changes, grep's tests are now leak free.
10498         I.e., running them with ASAN elicits no failure:
10499           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
10500             AM_LDFLAGS='-fsanitize=address -static-libasan' check
10502 2016-11-11  Bruno Haible  <bruno@clisp.org>
10504         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
10505         * modules/libunistring: (License): Change from LGPL to
10506         "LGPLv3+ or GPLv2".
10507         * modules/libunistring-optional: Likewise.
10508         * modules/unicase/*: Likewise.
10509         * modules/uniconv/*: Likewise.
10510         * modules/unictype/*: Likewise.
10511         * modules/unigbrk/*: Likewise.
10512         * modules/unilbrk/*: Likewise.
10513         * modules/uniname/*: Likewise.
10514         * modules/uninorm/*: Likewise.
10515         * modules/unistdio/*: Likewise.
10516         * modules/unistr/*: Likewise.
10517         * modules/uniwbrk/*: Likewise.
10518         * modules/uniwidth/*: Likewise.
10520 2016-11-12  Bruno Haible  <bruno@clisp.org>
10522         Relicense some modules under LGPLv2+.
10523         Paul Eggert's approval is in
10524         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
10525         Eric Blake's approval is in
10526         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
10527         Ludovic Courtès's approval is in
10528         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
10529         * modules/isnand-nolibm (License): Change to LGPLv2+.
10530         * modules/isnanf-nolibm (License): Likewise.
10531         * modules/isnanl-nolibm (License): Likewise.
10533 2016-11-19  Bruno Haible  <bruno@clisp.org>
10535         Relicense some modules under LGPLv2+.
10536         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
10537         modules/vasnprintf.
10538         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
10539         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
10540         All other significant changes to the files in lib/ of these modules
10541         are from me.
10542         * modules/memcmp2 (License): Change to LGPLv2+.
10543         * modules/amemxfrm (License): Likewise.
10544         * modules/fpieee (License): Likewise.
10545         * modules/fpucw (License): Likewise.
10546         * modules/frexp-nolibm (License): Likewise.
10547         * modules/frexpl-nolibm (License): Likewise.
10548         * modules/printf-frexp (License): Likewise.
10549         * modules/printf-frexpl (License): Likewise.
10550         * modules/printf-safe (License): Likewise.
10551         * modules/signbit (License): Likewise.
10553 2016-11-17  Bruno Haible  <bruno@clisp.org>
10555         Enable Unicode decoder safety unconditionally.
10556         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
10557         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
10558         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10559         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10560         * lib/unistr/u8-prev.c (u8_prev): Likewise.
10561         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
10562         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
10563         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
10564         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
10565         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
10566         * lib/unistr/u16-prev.c (u16_prev): Likewise.
10567         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
10568         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
10569         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
10570         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
10571         * lib/unistr/u32-prev.c (u32_prev): Likewise.
10572         * lib/unistr/u32-next.c (u32_next): Likewise.
10573         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
10574         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
10575         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10576         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
10577         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
10578         CONFIG_UNICODE_SAFETY tests unconditionally.
10579         * tests/unistr/test-u32-mblen.c (main): Likewise.
10580         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
10581         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
10582         * tests/unistr/test-u32-next.c (main): Likewise.
10583         * tests/unistr/test-u32-strmblen.c (main): Likewise.
10584         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
10585         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
10586         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
10587         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
10588         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10589         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
10590         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
10591         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
10592         * lib/unistr/u16-check.c (u16_check): Update comment.
10593         * NEWS: Mention the changes that callers should be aware of.
10595 2016-11-19  Bruno Haible  <bruno@clisp.org>
10597         relocatable-prog-wrapper: Fix breakage on Cygwin.
10598         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
10599         (Depends-on): Remove intprops.
10600         * lib/relocwrapper.c: Update dependency tree.
10601         (strerror): Undefine.
10602         * build-aux/install-reloc (func_create_wrapper): Do not compile
10603         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
10605 2016-11-19  Bruno Haible  <bruno@clisp.org>
10607         strerror: Make it compile in C++ mode.
10608         * lib/strerror.c (strerror): Ignore the return value of memcpy().
10610 2016-11-15  Pedro Alves  <palves@redhat.com>
10612         sys_time: add gnulib::timeval for C++
10613         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
10614         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
10615         timeval macro.
10617 2016-11-14  Pedro Alves  <palves@redhat.com>
10619         snippet/c++defs: fix real-floating arg functions in C++ mode
10620         Also, define isfinite, isinf, isnan, signbit in the gnulib
10621         namespace instead of in the global namespace.
10622         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
10623         (_GL_END_NAMESPACE): New.
10624         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
10625         (isfinite, isinf, isnan, signbit) [__cplusplus &&
10626         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
10627         instead of in the global namespace.
10628         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
10629         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
10630         of in the global namespace.
10632 2016-11-13  Jim Meyering  <meyering@fb.com>
10634         strftime: don't use __THROW
10635         Each use of __THROW would provoke this from gcc-7-to-be:
10637           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
10638             on unit local functions [-Wattributes]
10639           static int iso_week_days (int, int) __THROW;
10640           ^~~~~~
10641         * lib/strftime.c (__THROW): Don't define.
10642         Remove each use of __THROW.
10643         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
10644         (tm_diff, iso_week_days, __strftime_internal): Likewise.
10646 2016-11-14  Paul Eggert  <eggert@union>
10648         obstack: port to gcc -fcheck-pointer-bounds
10649         Problem found by 'make check' failure on bleeding-edge coreutils
10650         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
10651         6.2.0-5ubuntu12), configured via "./configure
10652         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
10653         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
10654         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
10655         New macro, copied from fts_.h.
10656         (struct _obstack_chunk.contents): Use it.
10658 2016-11-14  Eric Blake  <eblake@redhat.com>
10660         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
10661         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
10662         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
10664 2016-11-14  Pádraig Brady  <P@draigBrady.com>
10666         strptime: fix compile error in recent change
10667         * lib/strptime.c (__strptime_internal): Fix ported code.
10669 2016-11-11  Bruno Haible  <bruno@clisp.org>
10671         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
10672         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
10673         (func_import): Extend determination of license_incompatibilities.
10674         (func_create_testdir): Extend table of license compatibility. Handle
10675         also the licenses GPLv3+, GPL, LGPLv3+.
10677 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
10679         strftime: tune %q
10680         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
10682         Merge strftime.c changes from glibc
10683         This incorporates:
10684         2007-10-16 [BZ #5184] Add tzset_called argument
10685         2008-06-13 [BZ #6612] pass reference to tzset_called around
10686         2009-10-30 Implement Burmese language locale for Myanmar
10687         2010-01-09 Add support for XPG7 testing
10688         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
10689         2015-10-20 Convert miscellaneous function definitions to prototype style
10690         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
10691         it anyway and this lessens the difference between gnulib and glibc.
10692         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
10693         (__THROW): Define if standard headers do not.
10694         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
10695         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
10696         Declare with __THROW.
10697         (__strftime_internal): Rename from strftime_case_. Add arg for
10698         whether tzset is called.  All uses changed.  Call tzset at most
10699         once.  Allow %OC, for Burmese.
10700         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
10701         Don't assume values are in range.
10703 2016-11-12  Eric Blake  <eblake@redhat.com>
10705         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
10706         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
10707         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
10708         different value.
10710 2006-11-12  Pedro Alves  <palves@redhat.com>
10712         Fix gnulib C++ namespace support and std::frexp
10713         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
10714         _GL_CXXALIASWARN.
10716 2006-11-12  Pedro Alves  <palves@redhat.com>
10718         GNULIB_NAMESPACE::func need not pull in rpl_func
10719         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
10720         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
10721         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
10722         struct instead of a function pointer.
10724 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
10726         manywarnings: fix -Wno-missing-field-initializers detection
10727         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
10728         to be independent of -Wunused-variable.  I.E. ensure the latter
10729         warning doesn't occur so that detection of the former is accurate.
10731 2016-11-05  Pádraig Brady  <pbrady@fb.com>
10733         strftime,strptime: support %q to represent the quarter
10734         * lib/strftime.c (strftime_case_): Add %q case.
10735         * lib/strptime.c (__strptime_internal): Likewise.
10736         * tests/test-strftime.c (quarter_test): A new test case.
10738 2016-11-03  Eric Blake  <eblake@redhat.com>
10740         bootstrap: Fix get_version() for AIX 5.3
10741         * build-aux/bootstrap (get_version): Factor out sed script, since
10742         indented comments choke AIX 5.3 sed.
10743         Reported-by: Michael Felt <aixtools@gmail.com>
10745 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
10747         intprops: port to older XL C
10748         Problem reported by Alexander Samoilov in:
10749         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
10750         http://savannah.nongnu.org/bugs/?49448
10751         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
10752         Define to 1 only for XL C 12.1 or later, since this bug
10753         occurs in XL C for AIX 6.0 but not in 12.1.
10755 2016-11-02  Pádraig Brady  <P@draigBrady.com>
10757         backupfile: initialize default suffix within the implementation
10758         * lib/backupfile.c (find_backup_file_name): Initialize the
10759         global variable here, to simplify usage, and to only call
10760         getenv() when needed.
10762 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10764         futimens: remove FIXME for old Linux kernels
10765         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
10766         this in 2012" FIXME, like that for utimensat.
10768         utimensat: remove FIXME for old Linux kernels
10769         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
10770         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
10771         this in 2012" FIXME, by assuming the file system bug is absent
10772         unless demonstrated to be present.  We no longer need to worry
10773         about Linux kernel 2.6.32 when building with newer kernels.
10775 2016-10-16  Bruno Haible  <bruno@clisp.org>
10777         qsort_r: Fix macrology for platforms that lack the function.
10778         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
10779         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
10780         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
10781         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
10782         not exist.
10783         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
10784         the function exists.
10785         * modules/qsort_r: Add comments.
10787 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10789         sys_types: fix Texinfo typos
10790         * doc/glibc-functions/gnu_dev_major.texi:
10791         * doc/glibc-functions/gnu_dev_makedev.texi:
10792         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
10794 2016-10-26  John David Anglin  <dave.anglin@bell.net>
10796         getprogname: port to HP-UX
10797         See Bug#24805.
10798         * lib/getprogname.c (getprogname) [__hpux]: Port.
10799         * tests/test-getprogname.c (STREQ) [__hpux]:
10800         Special-case for HP-UX limitations on program name length.
10802 2016-10-20  Bruno Haible  <bruno@clisp.org>
10804         Update doc about target platforms.
10805         * doc/gnulib-intro.texi (Target Platforms): Update list.
10807 2016-10-15  Bruno Haible  <bruno@clisp.org>
10809         opendir, readdir, closedir: Relicense under LGPLv2+.
10810         * modules/opendir (License): Change to LGPLv2+.
10811         * modules/readdir (License): Likewise.
10812         * modules/closedir (License): Likewise.
10814 2016-10-16  Bruno Haible  <bruno@clisp.org>
10816         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
10817         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
10818         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
10819         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
10820         HAVE_DECL_STRERROR_R.
10822 2016-10-16  Bruno Haible  <bruno@clisp.org>
10824         Make the 'argp' module work without the 'error' module.
10825         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
10827 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
10829         diffseq: restore TOO_EXPENSIVE heuristic
10830         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
10831         (Bug#24715).  The simplest solution is to restore the
10832         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
10833         using a higher threshold to avoid Bug#16848 on smaller files.
10834         * lib/diffseq.h (struct context): Restore member too_expensive.
10835         (struct partition): Restore members lo_minimal, hi_minimal.
10836         (diag, compareseq): Restore arg find_minimal.  All uses changed.
10837         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
10838         1993 to make 'diff' run faster (but not as well) on large inputs,
10839         but use a threshold of 4096 instead of the old 256.
10840         * lib/fstrcmp.c (strcmp_bounded):
10841         * lib/git-merge-changelog.c (compute_differences):
10842         Adjust to diffseq.h changes.
10844 2016-10-22  Bruno Haible  <bruno@clisp.org>
10846         iconv: Avoid compilation error when bootstrapping GNU libiconv.
10847         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
10848         declaration yet, define ICONV_CONST to empty.
10850 2016-10-15  Bruno Haible  <bruno@clisp.org>
10852         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
10853         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
10854         module.
10856 2016-10-16  Bruno Haible  <bruno@clisp.org>
10858         system-quote tests: Avoid compiler warning on AIX.
10859         * tests/test-system-quote-child.c (fopen): Redefine like the system's
10860         <stdio.h> does.
10862 2016-10-16  Bruno Haible  <bruno@clisp.org>
10864         Fix some "gcc -Wall" warnings.
10865         * tests/test-ffsl.c (main): Use variable x, not i.
10866         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
10867         freopen.
10868         * tests/test-sethostname1.c (main): Explicitly ignore the return value
10869         of sethostname.
10871 2016-10-16  Bruno Haible  <bruno@clisp.org>
10873         gnulib-tool: Make --create-testdir on all modules work again.
10874         * gnulib-tool (func_create_testdir): Don't include the
10875         non-recursive-gnulib-prefix-hack module.
10877 2016-10-21  Daiki Ueno  <ueno@gnu.org>
10879         libunistring: change the maintainer to 'all'
10880         * modules/gen-uni-tables, modules/libunistring:
10881         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
10882         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
10883         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
10884         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
10885         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
10886         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
10887         * modules/uniwidth/*: Change the maintainer to 'all'.
10889 2016-10-16  Bruno Haible  <bruno@clisp.org>
10891         Simplify "configure: checking ..." messages.
10892         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
10893         AC_MSG_NOTICE.
10894         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10896 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
10898         quotearg-tests: pacify gcc -Wall
10899         Problem reported by Bruno Haible in:
10900         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
10901         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
10902         * tests/test-quotearg.h: ... from here.
10904 2016-10-20  Pádraig Brady  <P@draigBrady.com>
10906         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
10907         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
10908         Needed on Centos <= 4.
10910 2016-10-20  Jim Meyering  <meyering@fb.com>
10912         printf.m4: fix a bug in detecting printf %j support
10913         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
10914         uintmax_t is defined in neither stdint.h nor inttypes.h.
10915         Before, this macro might have mistakenly set
10916         gl_cv_func_printf_sizes_c99=yes on such a system.
10917         Spotted by Zev Weiss.
10919 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
10921         sched: substitute HAVE_SYS_CDEFS_H too
10922         Problem reported by Tom G. Christensen in:
10923         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
10924         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
10925         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
10927 2016-10-19  Pádraig Brady  <P@draigBrady.com>
10929         quotearg: never write beyond the returned length
10930         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
10931         scan of the string when we initially encounter a single quote when
10932         shell quoting, so that if we then switch to a more concise quoting method
10933         we will not have written beyond that returned length.
10934         This is significant for sh-quote, which has separate routines
10935         to determine the length and do the actual quoting.
10936         * tests/test-quotearg.h: Reinstate the buffer bounds checking
10937         now that we never write more than the returned length.
10939 2016-10-18  Bruno Haible  <bruno@clisp.org>
10941         getprogname tests: Avoid failure in packages that use libtool.
10942         * tests/test-getprogname.c (main): Strip "lt-" prefix.
10943         Based on a patch by Jim Meyering.
10945 2016-10-16  Bruno Haible  <bruno@clisp.org>
10947         getprogname: Fix test failure on Cygwin. Comments.
10948         * lib/getprogname.h: Add comments.
10949         * lib/getprogname.c: Add comments. Fix #elif indentation.
10950         * tests/test-getprogname.c (main): On Cygwin, expect a result without
10951         ".exe" suffix.
10953 2016-10-16  Bruno Haible  <bruno@clisp.org>
10955         Make sure the libunistring detection rejects older versions with a
10956         known bug.
10957         * modules/unistr/u8-strtok (configure.ac): Bump required version.
10958         * modules/unistr/u16-strtok (configure.ac): Likewise.
10959         * modules/unistr/u32-strtok (configure.ac): Likewise.
10961 2016-10-18  Bruno Haible  <bruno@clisp.org>
10963         sh-quote, system-quote: revert regression of unit test.
10964         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
10965         * tests/test-system-quote-main.c (check_one): Likewise.
10967 2016-10-16  Pádraig Brady  <P@draigBrady.com>
10969         quotearg: fix stale tests
10970         * tests/test-quotearg.c [locale_results]: Add the missing str7
10971         entries to the expected results.
10972         * tests/test-system-quote-main.c (check_one): Don't enforce that we
10973         don't write beyond the returned length, since that's no longer the
10974         case if we switch to a more concise quoting style.
10975         * tests/test-sh-quote.c (check_one): Likewise.
10976         (main): Adjust for the new more concise quoting style.
10977         Reported by Bruno Haible.
10979 2016-10-16  Jim Meyering  <meyering@fb.com>
10981         non-recursive-gnulib-prefix-hack: fix inconsequential typo
10982         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
10983         to "$1".  This macro is always invoked with $1 == lib.
10984         Spotted by Bruno Haible
10986 2016-10-16  Bruno Haible  <bruno@clisp.org>
10988         Fix a test crash.
10989         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
10990         fails.
10992 2016-10-16  Pádraig Brady  <P@draigBrady.com>
10994         test-limits-h: suppress -Woverlength-strings
10995         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
10997 2016-10-15  Bruno Haible  <bruno@clisp.org>
10999         gettime, timespec, utimens: Relicense under LGPL.
11000         * modules/gettime (License): Change to LGPL.
11001         * modules/timespec (License): Likewise.
11002         * modules/utimens (License): Likewise.
11004 2016-10-14  Bruno Haible  <bruno@clisp.org>
11005             Pádraig Brady  <P@draigBrady.com>
11007         canonicalize-lgpl: Support the case path_max > INT_MAX.
11008         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
11009         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
11011 2016-10-13  Jim Meyering  <meyering@fb.com>
11013         getprogname: IBM z/OS: avoid NULL-dereference
11014         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
11015         upon strdup failure.
11017 2016-10-12  Jim Meyering  <meyering@fb.com>
11019         test-stdint: use _GL_VERIFY rather than "verify" for some tests
11020         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
11021         and an abbreviated diagnostic rather than verify with the full one,
11022         because the full-length strings would evoke warnings from gcc with
11023         -Woverlength-strings.
11025 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11027         stdint: port SIZE_MAX to glibc s390
11028         Problem reported by Eric Blake in:
11029         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
11030         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
11031         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
11032         correct type, if possible.
11034 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
11036         getprogname: port to IBM z/OS
11037         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
11039 2016-10-11  Jim Meyering  <meyering@fb.com>
11041         maint: remove stray space after "." in AC_DEFINE comment.
11042         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
11043         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11045 2016-10-05  Jim Meyering  <meyering@fb.com>
11047         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
11048         * lib/long-options.c (parse_long_options): Add a break statement
11049         to avoid this new warning/failure:
11050         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
11051           --create-testdir --dir=/t/x --with-tests --test long-options
11052         ../../gllib/long-options.c: In function 'parse_long_options':
11053         ../../gllib/long-options.c:66:12: error: this statement may \
11054           fall through [-Werror=implicit-fallthrough]
11055                    (*usage_func) (EXIT_SUCCESS);
11056                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
11058 2016-10-05  Jim Meyering  <meyering@fb.com>
11060         utimecmp: avoid new GCC 7 warning from -Wbool-operation
11061         Testing this module would fail when using GCC 7 like this:
11062         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
11063           --dir=/tmp/x --with-tests --test utimecmp
11064         ../../gllib/utimecmp.c: In function ‘utimecmp’:
11065         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
11066           [-Werror=bool-operation]
11067                          time_t s = src_s & ~ (res == 2 * BILLION);
11068                                             ^
11069         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
11070           [-Werror=bool-operation]
11071                src_s &= ~ (res == 2 * BILLION);
11072                         ^
11073         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
11074         Instead, make it explicit that we intend to apply it to 0 or 1.
11076 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
11078         dfa: save memory for states
11079         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
11080         states if dfa has a lot of caches.
11082 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
11084         wchar, wctype-h: fix for MinGW 3.22.2
11085         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
11086         special invocation, to fix issues with MinGW 3.22.2 wchar.h
11087         when included from <string.h>.
11088         * lib/wctype.in.h [__MINGW32__]: Add special invocation
11089         convention for MinGW 3.22.2, to solve issues with their
11090         wctype.h when included from <ctype.h>.
11092 2016-10-05  Jim Meyering  <meyering@fb.com>
11094         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
11095         * lib/long-options.c (parse_long_options): Add a break statement
11096         to avoid this new warning/failure:
11097         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
11098           --create-testdir --dir=/t/x --with-tests --test long-options
11099         ../../gllib/long-options.c: In function ‘parse_long_options’:
11100         ../../gllib/long-options.c:66:12: error: this statement may \
11101           fall through [-Werror=implicit-fallthrough]
11102                    (*usage_func) (EXIT_SUCCESS);
11103                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
11105         utimecmp: avoid new GCC 7 warning from -Wbool-operation
11106         Testing this module would fail when using GCC 7 like this:
11107         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
11108           --dir=/tmp/x --with-tests --test utimecmp
11109         ../../gllib/utimecmp.c: In function ‘utimecmp’:
11110         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
11111           [-Werror=bool-operation]
11112                          time_t s = src_s & ~ (res == 2 * BILLION);
11113                                             ^
11114         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
11115           [-Werror=bool-operation]
11116                src_s &= ~ (res == 2 * BILLION);
11117                         ^
11118         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
11119         Instead, make it explicit that we intend to apply it to 0 or 1.
11121 2016-10-03  Pádraig Brady  <P@draigBrady.com>
11123         quotearg: minimize shell quoting using double quotes
11124         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
11125         quote in encountered then use double quotes (c style quoting)
11126         when possible, as it simplifies the quoting.
11127         * tests/test-quotearg-simple.c: Add test cases.
11128         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
11129         for the fact we now may write beyond the returned length.
11131 2016-10-02  Jim Meyering  <meyering@fb.com>
11133         vasnprintf.c: avoid spurious warning from GCC 7
11134         The presence of cpp directives renders this "FALLTHROUGH" comment
11135         ineffective, so does not suppress the -Wimplicit-fallthrough warning
11136         from GCC 7 built from git on 2016-10-02.
11137         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
11138         directives, so that it takes effect once again.  This is clearly
11139         not a proper change, and I will revert it once this bug is fixed:
11140         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
11142 2016-10-01  Jim Meyering  <meyering@fb.com>
11144         getprogname: correct the test for a __progname variable
11145         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
11146         and AC_LINK_IFELSE to check for a global __progname.  If found,
11147         define HAVE_VAR___PROGNAME.
11148         * lib/getprogname.c (getprogname): Reflect the new name of the
11149         feature- checked preprocessor symbol:
11150         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
11152 2016-09-28  Jim Meyering  <meyering@fb.com>
11154         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
11155         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
11156         fall-through case with a /* fallthrough */ comment.
11158         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
11159         * lib/dfa.c (dfassbuild): Mark the end of this case with a
11160         /* fallthrough */ comment.
11162         getprogname: avoid __progname vs program_invocation_short_name pitfall
11163         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
11164         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
11165         not with Fedora 24's glibc-2.23.1-10.
11166         * lib/getprogname.c (__progname): Move this declaration down...
11167         (getprogname): ... into the #elif block where used, and make it
11168         explicitly "extern".
11170         getprogname: port to OpenBSD 5.1
11171         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
11172         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
11173         * modules/getprogname (configure.ac): Move most of this code...
11174         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
11175         increment serial number, and add a test for __progname.
11176         https://bugs.gnu.org/24562
11177         Reported by Nelson H. F. Beebe.
11179 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11181         sched: port to GCC 6.2.1 on macOS Sierra
11182         Problem reported by Denis Davydov in:
11183         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
11184         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
11185         Include <sys/cdefs.h> before <sched.h>.
11186         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
11187         so that we needn’t worry about the sched.h include bug here.
11188         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
11189         and include it before <sched.h> if it exists, when
11190         checking for <sched.h>.
11192         tests/init.sh: port Alpine fix to AIX 7.1
11193         * tests/init.sh (compare_): When attempting to use diff -U3,
11194         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
11195         diff -u not outputting a space after leading '+', as the users
11196         of 'compare' should not be that picky about its output format.
11197         In the AIX 7.1 case, return with diff exit status (or with 2 if
11198         trouble), instead of some random nonzero exit status.
11199         * tests/test-init.sh (test_compare): Remove space after leading
11200         '+', so that AIX 7.1 'diff' passes the test.
11202 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11204         nl_langinfo: pacify GCC
11205         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
11206         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
11208         stdint: also set GL_GENERATE_LIMITS_H
11209         Problem reported by Jim Meyering in:
11210         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
11211         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
11213         limits-h, stdint: Don't assume extensions, fix typo
11214         * m4/limits-h.m4 (gl_LIMITS_H):
11215         * m4/stdint.m4 (gl_STDINT_H):
11216         Don't assume AC_USE_SYSTEM_EXTENSIONS.
11217         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
11218         reported by Jim Meyering in:
11219         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
11221 2016-09-21  Jim Meyering  <meyering@fb.com>
11223         getprogname: port to AIX
11224         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
11225         and strdup to obtain a short program name string.  Using code from
11226         Bruno Haible and an idea from Bastien ROUCARIÈS, in
11227         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
11228         Assaf Gordon reported that this new file would fail to compile on
11229         AIX-7.1 32bit.
11231 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11233         extensions: fix typo in comment
11234         * m4/extensions.m4: Sync from Autoconf master.
11236         stdint: support new _WIDTH macros
11237         * doc/posix-headers/stdint.texi: Document this.
11238         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
11239         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
11240         support for INTMAX_WIDTH, etc. as well as for support for just C99.
11241         * modules/stdint (Depends-on): Add limits-h.
11242         (Makefile.am): Substitute HAVE_C99_STDINT_H.
11243         * modules/stdint-tests (Depends-on): Add extensions, so that
11244         INTMAX_MAX etc. are defined.
11245         * tests/test-stdint.c: Verify the new macros.
11247         limits-h: new module
11248         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
11249         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
11250         * doc/posix-headers/limits.texi: Document new module.
11251         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
11252         * modules/limit-h-tests, tests/test-limits-h.c: New files.
11254         stdio: don't redefine __USE_MINGW_ANSI_STDIO
11255         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
11256         if it is already defined.  Apparently GNU Emacs relies on this.  See:
11257         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
11259 2016-09-15  Eric Blake  <eblake@redhat.com>
11261         sys_types: avoid glibc 2.25 warnings about major()
11262         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
11263         older autoconf.
11264         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
11265         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
11266         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
11267         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
11269         mountlist: include sysmacros.h for glibc
11270         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
11271         AC_HEADER_MAJOR.
11272         * lib/mountlist.c (includes): Use correct headers.
11274 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11276         extensions: port to more ISO C TSes
11277         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
11278         master, to add support for more recent ISO C TRs and TSes.
11280 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11282         intprops: new macro TYPE_WIDTH
11283         * lib/intprops.h (TYPE_WIDTH): New macro.
11284         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
11285         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
11286         * lib/parse-datetime.y (parse_datetime2):
11287         Use it.
11289         extensions: port to recent ISO C TRs
11290         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
11291         Sync from Autoconf master, to add support for recent ISO C TRs.
11292         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
11293         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
11294         the MinGW option is not an extension.
11296 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
11298         dfa: port to Solaris 9
11299         Problems reported by Tom G. Christensen in:
11300         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
11301         * modules/dfa (Depends-on): Add isblank.
11302         * modules/dfa-tests (dfa_match_aux_LDADD):
11303         Rename from test_stat_LDADD, to fix typo.
11304         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
11306 2016-09-10  Jim Meyering  <meyering@fb.com>
11308         strverscmp: avoid link failure on OS X
11309         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
11310         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
11312 2016-08-16  Jim Meyering  <meyering@fb.com>
11314         dfa: new module, importing grep's DFA matcher
11315         Since grep's DFA matcher is now being used by two gnulib-enabled
11316         projects, grep and sed, it makes sense to version-control its
11317         sources and unit tests in one place: here.
11318         * modules/dfa: New module.
11319         * modules/dfa-tests: New file.
11320         * lib/dfa.c: New file, from grep.
11321         * lib/dfa.h: Likewise.
11322         * lib/localeinfo.c: Likewise.
11323         * lib/localeinfo.h: Likewise.
11324         * tests/dfa-match-aux.c: Likewise.
11325         * tests/dfa-invalid-char-class.sh: Likewise.
11326         * tests/dfa-match.sh: Likewise, with minor changes.
11327         * MODULES.html.sh (Misc): Add "dfa" to this list.
11329 2016-09-09  Jim Meyering  <meyering@fb.com>
11331         getprogname-tests: don't depend on assert-h
11332         * modules/getprogname-tests (Depends-on): Remove assert-h.
11333         It was not needed, and in fact would cause build failure for
11334         coreutils on some systems.  Reported by Assaf Gordon in https:
11335         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
11337 2016-09-07  Jim Meyering  <meyering@fb.com>
11339         getprogname-tests: work also when EXEEXT is nonempty
11340         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
11341         * tests/test-getprogname.c (main): Use it.
11342         Suggested by Gisle Vanem.
11344 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
11346         getprogname: fix errors in previous change
11347         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
11348         s/program_invocation_name/base/
11349         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
11351 2016-09-08  Pádraig Brady  <P@draigBrady.com>
11353         parse-datetime: restrict debug output to input string
11354         * lib/parse-datetime.y (parse_datetime2): If we parse
11355         all of the input but determine it's invalid, ensure
11356         we don't output the now invalid input pointer.
11357         This issue was seen with `date -d 'now +1'`.
11359 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11361         flexmember: new macro FLEXALIGNOF
11362         * lib/flexmember.h: Include <stddef.h>, for offsetof.
11363         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
11364         this macro.  Update comments.
11366 2016-09-07  Jim Meyering  <meyering@fb.com>
11368         getprogname: port to systems with __argv (mingw, msvc)
11369         * lib/getprogname.c (getprogname): Include "dirname.h" and use
11370         last_component: more general than open coding it with hard-coded "/".
11371         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
11372         * modules/getprogname (Depends-on): Add dirname-lgpl.
11373         (configure.ac): Check for __argv in <stdlib.h>.
11374         * modules/getprogname-tests: New file.
11375         * tests/test-getprogname.c: New file.
11376         Suggested by Gisle Vanem in
11377         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
11379 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11381         flexmember: port better to GCC + valgrind
11382         With a char[] flexible array member in a struct with nontrivial
11383         alignment, GCC-generated code can access past the end of the
11384         array, because GCC assumes there are padding bytes to get the
11385         struct aligned.  So the common idiom of malloc (offsetof (struct
11386         s, m), n) does not properly allocate an n-byte trailing member, as
11387         malloc’s argument should be the next multiple of alignof (struct s).
11388         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
11389         Although C11 apparently permits this GCC optimization (i.e., there
11390         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
11391         See the thread containing:
11392         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
11393         * lib/flexmember.h: New file.
11394         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
11395         * lib/localename.c, lib/time_rz.c:
11396         Include flexmember.h.
11397         * lib/fnmatch_loop.c (struct patternlist):
11398         * lib/localename.c (struct hash_node):
11399         Use FLEXIBLE_ARRAY_MEMBER.
11400         * lib/fnmatch_loop.c (EXT):
11401         * lib/fts.c (fts_alloc):
11402         * lib/glob.c (glob_in_dir):
11403         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
11404         * lib/localename.c (gl_lock_define_initialized):
11405         * lib/time_rz.c (tzalloc):
11406         Use FLEXSIZEOF instead of offsetof.
11407         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
11408         Check that the size of the struct can be taken.
11409         * modules/flexmember (Files): Add lib/flexmember.h.
11410         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
11411         Add flexmember.
11413 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11415         getprogname: port to Solaris 10
11416         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
11417         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
11418         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
11420         stdalign: correct mistake in alignof doc
11421         Problem reported by Joseph Myers in:
11422         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
11423         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
11424         alignof(S) where S is a structure containing a flexible array
11425         member.  The Gnulib substitute does not support this, but C11 does.
11427 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11429         main.mk: remove sc_program_name, since there is no more need to
11430         use set_program_name in tools (getprogname is enough for most
11431         of the cases).
11432         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
11433         * top/maint.mk (sc_program_name): Remove.
11435 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11437         Port tests away from progname, since modules that need the
11438         program name already depend on getprogname.
11439         * modules/acl-tests (Depends-on): Remove progname.
11440         * modules/argmatch (Depends-on): Likewise.
11441         * modules/argmatch-tests (Depends-on): Likewise.
11442         * modules/argp-tests (Depends-on): Likewise.
11443         * modules/argp-version-etc-tests (Depends-on): Likewise.
11444         * modules/array-list-tests (Depends-on): Likewise.
11445         * modules/array-oset-tests (Depends-on): Likewise.
11446         * modules/avltree-list-tests (Depends-on): Likewise.
11447         * modules/avltree-oset-tests (Depends-on): Likewise.
11448         * modules/avltreehash-list-tests (Depends-on): Likewise.
11449         * modules/carray-list-tests (Depends-on): Likewise.
11450         * modules/copy-file-tests (Depends-on): Likewise.
11451         * modules/exclude-tests (Depends-on): Likewise.
11452         * modules/fchownat-tests (Depends-on): Likewise.
11453         * modules/fdopendir-tests (Depends-on): Likewise.
11454         * modules/filenamecat-tests (Depends-on): Likewise.
11455         * modules/fstatat-tests (Depends-on): Likewise.
11456         * modules/fstrcmp-tests (Depends-on): Likewise.
11457         * modules/linked-list-tests (Depends-on): Likewise.
11458         * modules/linkedhash-list-tests (Depends-on): Likewise.
11459         * modules/mkdirat-tests (Depends-on): Likewise.
11460         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
11461         * modules/nonblocking-socket-tests (Depends-on): Likewise.
11462         * modules/obstack-printf-tests (Depends-on): Likewise.
11463         * modules/openat-tests (Depends-on): Likewise.
11464         * modules/parse-datetime-tests (Depends-on): Likewise.
11465         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
11466         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
11467         * modules/quotearg-simple-tests (Depends-on): Likewise.
11468         * modules/quotearg-tests (Depends-on): Likewise.
11469         * modules/rbtree-list-tests (Depends-on): Likewise.
11470         * modules/rbtree-oset-tests (Depends-on): Likewise.
11471         * modules/rbtreehash-list-tests (Depends-on): Likewise.
11472         * modules/spawn-pipe-tests (Depends-on): Likewise.
11473         * modules/system-quote-tests (Depends-on): Likewise.
11474         * modules/uniname/uniname-tests (Depends-on): Likewise.
11475         * modules/uninorm/nfc-tests (Depends-on): Likewise.
11476         * modules/uninorm/nfd-tests (Depends-on): Likewise.
11477         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
11478         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
11479         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
11480         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
11481         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
11482         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
11483         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
11484         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
11485         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
11486         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
11487         * modules/unlinkat-tests (Depends-on): Likewise.
11488         * modules/version-etc-tests (Depends-on): Likewise.
11489         * modules/xalloc-die-tests (Depends-on): Likewise.
11490         * modules/xmemdup0-tests (Depends-on): Likewise.
11491         * modules/xprintf-posix-tests (Depends-on): Likewise.
11492         * modules/xvasprintf-tests (Depends-on): Likewise.
11493         * tests/test-argmatch.c: Do not include progname.h.
11494         (main) Stop calling set_program_name.
11495         * tests/test-argp-version-etc.c: Likewise.
11496         * tests/test-argp.c: Likewise.
11497         * tests/test-argv-iter.c: Likewise.
11498         * tests/test-array_list.c: Likewise.
11499         * tests/test-array_oset.c: Likewise.
11500         * tests/test-avltree_list.c: Likewise.
11501         * tests/test-avltree_oset.c: Likewise.
11502         * tests/test-avltreehash_list.c: Likewise.
11503         * tests/test-carray_list.c: Likewise.
11504         * tests/test-copy-acl.c: Likewise.
11505         * tests/test-copy-file.c: Likewise.
11506         * tests/test-exclude.c: Likewise.
11507         * tests/test-fchownat.c: Likewise.
11508         * tests/test-fdopendir.c: Likewise.
11509         * tests/test-filenamecat.c: Likewise.
11510         * tests/test-fstatat.c: Likewise.
11511         * tests/test-fstrcmp.c: Likewise.
11512         * tests/test-linked_list.c: Likewise.
11513         * tests/test-linkedhash_list.c: Likewise.
11514         * tests/test-mkdirat.c: Likewise.
11515         * tests/test-nonblocking-pipe-main.c: Likewise.
11516         * tests/test-nonblocking-socket-main.c: Likewise.
11517         * tests/test-obstack-printf.c: Likewise.
11518         * tests/test-openat.c: Likewise.
11519         * tests/test-parse-datetime.c: Likewise.
11520         * tests/test-pipe-filter-gi1.c: Likewise.
11521         * tests/test-pipe-filter-gi2-main.c: Likewise.
11522         * tests/test-pipe-filter-ii1.c: Likewise.
11523         * tests/test-pipe-filter-ii2-main.c: Likewise.
11524         * tests/test-quotearg-simple.c: Likewise.
11525         * tests/test-quotearg.c: Likewise.
11526         * tests/test-rbtree_list.c: Likewise.
11527         * tests/test-rbtree_oset.c: Likewise.
11528         * tests/test-rbtreehash_list.c: Likewise.
11529         * tests/test-sameacls.c: Likewise.
11530         * tests/test-set-mode-acl.c: Likewise.
11531         * tests/test-spawn-pipe-main.c: Likewise.
11532         * tests/test-system-quote-main.c: Likewise.
11533         * tests/test-unlinkat.c: Likewise.
11534         * tests/test-version-etc.c: Likewise.
11535         * tests/test-xalloc-die.c: Likewise.
11536         * tests/test-xfprintf-posix.c: Likewise.
11537         * tests/test-xmemdup0.c: Likewise.
11538         * tests/test-xprintf-posix.c: Likewise.
11539         * tests/test-xvasprintf.c: Likewise.
11540         * tests/uniname/test-uninames.c: Likewise.
11541         * tests/uninorm/test-u32-nfc-big.c: Likewise.
11542         * tests/uninorm/test-u32-nfd-big.c: Likewise.
11543         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
11544         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
11545         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11546         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11547         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11548         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11549         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11550         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11551         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11552         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11553         * tests/test-c-stack.c: (program_name): Do not define.
11554         (main): Do not set program_name.
11555         * tests/test-closein.c: Likewise.
11556         * tests/test-xstrtol.c: Likewise.
11557         * tests/test-yesno.c: Likewise.
11559 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11561         Port modules to use getprogname explicitly, instead of requiring
11562         progname to be used (or program_name to be provided).
11563         * lib/argmatch.c: Do not include progname.h.
11564         [TEST] (program_name): Do not define.
11565         [TEST] (main): Call getprogname instead of using program_name.
11566         * lib/c-stack.c: Do not include progname.h.
11567         (program_name): Do not define.
11568         (die): Call getprogname instead of using program_name.
11569         * lib/chdir-long.c: Do not include progname.h.
11570         [TEST_CHDIR] (main): Do not set program_name.
11571         * lib/error.c [!_LIBC]: Include progname.h.
11572         [!_LIBC] (program_name): Define using getprogname.
11573         * lib/euidaccess.c: Do not include progname.h.
11574         [TEST] (main): Do not set program_name.
11575         * lib/git-merge-changelog.c: Include getprogname.h instead of
11576         progname.h.
11577         (usage): Call getprogname instead of using program_name.
11578         (main): Likewise.  Stop calling set_program_name.
11579         * lib/group-member.c: Do not include progname.h.
11580         [TEST] (main): Do not set program_name.
11581         * modules/argmatch (Depends-on): Add getprogname.
11582         * modules/c-stack (Depends-on): Likewise.
11583         * modules/error (Depends-on): Likewise.
11584         * modules/git-merge-changelog (Depends-on): Likewise.
11585         Also remove progname.
11587 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
11589         * NEWS: Document the deprecation of the 'progname' module.
11591 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11593         getprogname: new module
11594         This provides a LGPL module for getting the name of the current
11595         program, using the same API found on *BSD systems.
11596         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
11597         * modules/getprogname: New files.
11598         * MODULES.html.sh (Misc): Add getprogname.
11600 2016-09-02  Jim Meyering  <meyering@fb.com>
11602         manywarnings: add -fno-common
11603         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
11604         to the list.  Quoting the manual, "Compiling with -fno-common is
11605         useful on targets for which it provides better performance, or if
11606         you wish to verify that the program will work on other systems that
11607         always treat uninitialized variable declarations this way [putting
11608         it in the data section]."  If diffutils had been using this sooner,
11609         it would have prevented this duplicate declaration issue:
11610         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
11612 2016-08-31  Simon Josefsson  <simon@josefsson.org>
11614         parse-datetime: Fix typo.
11615         * lib/parse-datetime.y (parse_datetime2): Fix typo.
11617 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11619         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
11620         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
11621         GCC 5 and 6 that have __builtin_sub_overflow but not
11622         __builtin_sub_overflow_p.  With the recent changes, these
11623         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
11624         implementation than with INT_SUBTRACT_OVERFLOW implementation,
11625         since the former needs just one runtime comparison whereas the
11626         latter needs two.
11628         strverscmp: sync with glibc
11629         Although this doesn't exactly synchronize with glibc
11630         byte-for-byte, it makes the code behave the same as glibc.
11631         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
11632         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
11633         difference shouldn't matter in practical use.  All uses changed
11634         back to isdigit.
11635         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
11636         (next_state): Now unsigned char array; redo elements.
11637         (result_type): Now signed char array; redo elements.
11638         (__strverscmp): Fix glibc bug 9913 by using new states.
11639         * tests/test-strverscmp.c (main): Test glibc bug 9913.
11641 2016-08-29  Jim Meyering  <meyering@fb.com>
11643         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
11644         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
11645         similarly to how it was done to intprops.h.
11647 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
11649         intprops.h: port recent changes to GCC 6.2.0
11650         * lib/intprops.h (__has_builtin): Move earlier.
11651         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
11652         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
11653         the last argument can be null.  All uses changed.
11654         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
11655         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
11656         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
11657         and it's not clear which GCC versions it works for.
11658         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
11659         its definiens.
11661         intprops.h: use __typeof__ with GCC 7
11662         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
11663         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
11664         This avoids computing the expression's value (which might overflow!).
11666 2016-08-29  Jim Meyering  <meyering@fb.com>
11668         intprops.h, xalloc-oversized.h: work with gcc 7
11669         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
11670         __builtin_mul_overflow each accept a NULL pointer as the third
11671         argument.  However in gcc 7, that is no longer accepted.
11672         Instead, one must use the "_p"-suffixed names, with which, the
11673         third parameter is no longer a pointer.
11674         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
11675         the definition: not true for gcc 7 and subsequent.
11676         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
11677         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
11678         Provide new definitions for gcc 7 and subsequent.
11679         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
11680         that works with gcc-7.
11682         intprops.h: fix missing-backslash problems
11683         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
11684         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
11686 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11688         intprops: fix paren typo on old platforms
11689         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
11690         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
11691         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
11692         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
11693         && !defined LLONG_MAX]:
11694         Remove stray paren.
11696         intprops: port to OpenVMS
11697         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
11698         * doc/posix-headers/limits.texi: Document the problem.
11699         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
11700         Define if not already defined.
11702 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
11704         parse-datetime: improve debug implementation
11705         Follow-up to commit 12ad79069 ("add optional debug printing").
11706         Improve parse-datetime's debug implementation: remove macros,
11707         replace global debug flag variable with a function parameter,
11708         use nstrftime for formatting.
11709         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
11710         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
11711         (parse_datetime2): New function, accepts 'flags' parameter, supporting
11712         debug flag. Existing interface 'parse_datetime' left unmodified.
11713         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
11714         (struct parser_control): add 'parse_datetime_debug' member variable.
11715         (parse_datetime): Call new function 'parse_datetime2' without debug.
11716         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
11717         pc.parse_datetime_debug variable as needed.
11718         (to_year): Accept new flags parameter, instead of using global variable.
11719         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
11720         use struct 'debug' variable instead of global variable.
11721         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
11722         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
11723         correspnding functions directly instead of using macros.
11724         * modules/parse-datetime: Add gnulib's strftime module.
11726 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
11728         c-strcase-tests: port to EBCDIC
11729         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
11730         which assume ASCII encoding semantics to run only in ASCII
11731         mode, as they fail in EBCDIC.
11733         sigpipe-tests: fix typo
11734         * tests/test-sigpipe.sh: C, not B.
11736 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11738         canonicalize-lgpl: fix errno after malloca fails
11739         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
11740         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
11741         * lib/canonicalize-lgpl.c (__realpath):
11742         Don't assume malloca sets errno on failure.
11744 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11746         strtod: port errno handling to z/OS
11747         * lib/strtod.c (strtod): Save and restore errno more reliably.
11749 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
11751         strtod: port to z/OS
11752         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
11753         implementation.
11755 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11757         strtod: port to z/OS
11758         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
11759         implementation.
11761         regex, string: rename to avoid '__string'
11762         * lib/regex.h, lib/string.in.h: Do not use the identifier
11763         '__string', as it is effectively reserved by string.h on z/OS.
11765         c-strcase-tests, wcwidth-tests: depend on c-ctype
11766         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
11767         Add c-ctype.
11769 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
11771         thread: port to z/OS
11772         * lib/glthread/thread.c, lib/glthread/thread.h:
11773         Rudimentary gl_thread support for z/OS.
11775         maint: port tests to z/OS errno behavior
11776         * tests/test-nonblocking-reader.h:
11777         * tests/test-nonblocking-writer.h:
11778         Accommodate z/OS errno code preferences. (I believe this should
11779         still be within spec; IBM is good at following the letter if not
11780         the spirit of such things.)
11782         maint: preprocessor changes to support z/OS
11783         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
11784         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
11785         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
11786         * tests/test-nonblocking-pipe.h:
11788         fclose, strstr-simple, wchar: port to z/OS
11789         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
11790         Changes to the Autoconf M4 code to support z/OS.  Note that
11791         fclose() is broken in a different way on z/OS than it is on other
11792         systems, thus the special-case in fclose.m4.
11794         iconv_open-utf-tests, iconv-tests: port to EBCDIC
11795         * tests/test-iconv-utf.c, tests/test-iconv.c:
11796         Added appropriately conditional #pragmas so that the test strings
11797         in test-iconv-utf.c are correctly interpreted in ASCII instead of
11798         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
11799         addressed in a more portable way by simply rewriting all the ASCII
11800         literal characters as octal escapes, but then you would lose the
11801         partial readability that the strings have now. Also, iconv_open()
11802         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
11804         c-strcase-tests, wcwidth-tests: port to EBCDIC
11805         * tests/test-c-strcasecmp.c: Include c-ctype.h.
11806         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
11807         * tests/test-wcwidth.c: Likewise.
11809 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11811         stdbool: don't require _Bool for C++
11812         Problem reported by David Seifert in:
11813         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
11814         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
11815         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
11816         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
11817         stricter about checking that bool and _Bool are compatible in C.
11819 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
11821         getdelim: remove dependency on realloc-posix
11822         * lib/canonicalize-lgpl.c (alloc_failed)
11823         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
11824         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
11825         Use __set_errno where needed, for consistency.
11826         * lib/getdelim.c (alloc_failed): New function.
11827         (getdelim): Use it.
11829 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
11831         parse-datetime: add optional debug printing
11832         Print parsing information, warnings, and errors to stderr.
11833         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
11834         * lib/parse-datetime.y:
11835         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
11836         (PROGRESS*): Same as DEBUG, for progress reporting.
11837         (dbg_printf): Print message to stderr, with 'date' prefix.
11838         (struct parser_control): Add 'debug_*_seen' variables.
11839         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
11840         (debug_print_current_time, debug_print_relateive_time): Prints the
11841         current/relative date/time value of parser_control.
11842         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
11843         (to_year): Warn about 2-digit year parsing.
11844         (yylex):   Warn about unrecognized words.
11845         (get_effective_timezone): Returns current timezone in minutes.
11846         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
11847         clearly and unambigiously as possible.
11848         (debug_mktime_not_ok): Print detailed information about failed
11849         date/time values.
11850         (parse_datetime): Add DEBUG messages for failures, warnings. Add
11851         PROGRESS messages for status messages.
11852         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
11854 2016-08-06  Jim Meyering  <meyering@fb.com>
11856         tests/init.sh: exclude dash with bad "local" semantics
11857         * tests/init.sh (gl_shell_test_script_): Add a function to
11858         eliminate a shell like "dash" (unlike bash, zsh) that has
11859         surprising/risky "local var='...'" semantics.  Inspired by
11860         the problem and discussion in https://bugs.gnu.org/24116#11.
11862 2016-08-02  Ján Tomko  <jtomko@redhat.com>
11864         maint.mk: expand the prohibit_doubled_word regex
11865         This check has a static list of words that are checked for
11866         repetitions.  Expand it before running the perl script to
11867         avoid using expensive captures.  This decreases the cost
11868         for libvirt from 1.66s to 0.66s.
11869         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
11870         (sc_prohibit_doubled_word): Use it.
11872 2016-07-26  Ján Tomko  <jtomko@redhat.com>
11874         useless-if-before-free: skip non-matching lines early
11875         * build-aux/useless-if-before-free: First match each line with the
11876         simple/quick /\bif\b/ and reject if there is no match. This often
11877         saves the cost of the much more involved regular expression.
11878         For libvirt, this decreases the cost from 1.44s to 1.02s.
11880 2016-07-26  Ján Tomko  <jtomko@redhat.com>
11882         maint.mk: speed up sc_po_check
11883         sc_po_check would skip files based on their names, or on the
11884         existence of files with derived names. Rewrite it to use perl
11885         instead of shell to make the check faster.
11886         * top/maint.mk (perl_translatable_files_list_): Define.
11887         (sc_po_check): Use it.
11889 2016-07-30  Ján Tomko  <jtomko@redhat.com>
11891         maint.mk: speed up require_config_h_first
11892         Instead of spawning three processes per file,
11893         rewrite the check in perl and run it once for all the files.
11894         * top/maint.mk (perl_config_h_first_): Define.
11895         (sc_require_config_h_first): Use it in place of shell code.
11897 2016-07-26  Ján Tomko  <jtomko@redhat.com>
11899         maint.mk: speed up sc_po_check
11900         sc_po_check would skip files based on their names, or on the
11901         existence of files with derived names. Rewrite it to use perl
11902         instead of shell to make the check faster.
11903         * top/maint.mk (perl_translatable_files_list_): Define.
11904         (sc_po_check): Use it.
11906 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11908         obstack: pacify GCC 6 with -Wnull-dereference
11909         Problem reported by Assaf Gordon in:
11910         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
11911         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
11912         Declare with __attribute_noreturn__.
11913         * lib/obstack.h (__attribute_noreturn__): New macro.
11915 2016-07-13  Eric Blake  <eblake@redhat.com>
11917         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
11918         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
11919         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
11921 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
11923         doc: mention glibc SSIZE_MAX buglet
11924         * doc/posix-headers/limits.texi (limits.h): Document the bug.
11926 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
11928         printf-posix: Fix mingw build
11929         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
11930         expression for detecting C symbol prefixes but forgot to qoute square
11931         brackets in the command line arguments for grep.  That way when
11932         building with mingw the condition was false although it ought to be
11933         true instead.  In particular scenarios this led to the following
11934         compile error:
11936             Cannot export rpl_printf: symbol not found
11937             Cannot export rpl_scanf: symbol not found
11938             collect2: error: ld returned 1 exit status
11940         Fix this by properly quoting square brackets.
11942 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
11944         mktime: call tzset as per POSIX
11945         Problem reported by Ludovic Courtès in:
11946         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
11947         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
11948         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
11950 2016-06-26  Pádraig Brady  <P@draigBrady.com>
11952         fts: handle readdir() errors
11953         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
11954         but also upon error when it will also set errno.  Therefore
11955         flag the error case from readdir().  We treat the case where
11956         no items are read the same as if the dir can't be accessed,
11957         i.e. by setting fts_errno to FTS_DNR.
11959 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
11961         intprops: port better to GCC 7
11962         GCC 7 __builtin_add_overflow supports a new usage form, where the
11963         last argument is a null pointer, and which merely returns 1 if an
11964         overflow would occur.  This is a constant expression if all
11965         arguments are constants, and should generate faster code when code
11966         needs to be generated.
11967         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
11968         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
11969         Use builtin operations if available.
11970         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
11971         operations are available, as it's almost surely faster.
11973 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11975         intprops-test: port to GCC 6
11976         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
11977         since the bug is not fixed in GCC 6.1.
11979 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
11981         xalloc-oversized: port to GCC 7; fewer warnings
11982         GCC 7 will have a better way to deal with integer overflow.
11983         Plus, fix a warnings problem reported by Tim Ruehsen in:
11984         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
11985         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
11986         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
11987         For GCC 5, use __xalloc_oversized if both args are constants,
11988         or if pedantic.
11990 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
11992         regex: port to Sun C
11993         Reported by Daiki Ueno.
11994         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
11995         __restrict, in prototype.  This fixes a problem I introduced in
11996         the 2016-02-19 merge from glibc.
11998 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
12000         stdbool: Restore __bool_true_false_are_defined check
12001         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
12002         __bool_true_false_are_defined is still defined, even with C++11.
12004 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
12006         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
12007         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
12009 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
12011         Use GCC_LINT, not lint
12012         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
12013         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
12014         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
12015         Document problem with lint and _Noreturn.
12016         * lib/diffseq.h (IF_LINT, IF_LINT2):
12017         * lib/fts.c (sccsid):
12018         * lib/getndelim2.c (IF_LINT):
12019         * lib/gl_anylinked_list2.h (gl_linked_iterator)
12020         (gl_linked_iterator_from_to):
12021         * lib/gl_anytree_list2.h (gl_tree_iterator)
12022         (gl_tree_iterator_from_to):
12023         * lib/gl_anytree_oset.h (gl_tree_iterator):
12024         * lib/gl_array_list.c (gl_array_iterator)
12025         (gl_array_iterator_from_to):
12026         * lib/gl_array_oset.c (gl_array_iterator):
12027         * lib/gl_carray_list.c (gl_carray_iterator)
12028         (gl_carray_iterator_from_to):
12029         * lib/idcache.c:
12030         * lib/inet_ntop.c (IF_LINT):
12031         * lib/regcomp.c (build_charclass_op, create_tree):
12032         * lib/regex_internal.c (re_acquire_state)
12033         (re_acquire_state_context):
12034         * lib/trigl.c (rcsid):
12035         * lib/trim.c (IF_LINT):
12036         * lib/vasnprintf.c (IF_LINT):
12037         * lib/verify.h (assume):
12038         Treat GCC_LINT like lint.
12040 2016-05-29  Bruno Haible  <bruno@clisp.org>
12042         secure_getenv: Port to many more platforms.
12043         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
12044         functions.
12045         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
12046         for non-BSD Unix platforms and for native Windows.
12047         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
12048         Prompted by a request from Nikos Mavrogiannopoulos.
12050 2016-05-27  Eric Blake  <eblake@redhat.com>
12052         canonicalize: Fix broken probe for realpath.
12053         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
12054         in logic introduced in 54615b95.
12056 2016-05-26  Eric Blake  <eblake@redhat.com>
12058         unsetenv: relax to LGPLv2+
12059         * modules/unsetenv (License): Match setenv license.
12061 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
12063         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
12064         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
12065         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
12066         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
12067         (commonarg, dirargs, dirs, infoarg, generate_ascii)
12068         (generate_html, generate_info, generate_tex, outdir)
12069         (source_extra, split, srcfile, texarg): Move above 'version'.
12070         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
12072 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12074         manywarnings: update for GCC 6.1
12075         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
12076         Add GCC 6.1 options that apply to C.
12077         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
12078         do not apply to C, are obsolescent, etc.
12080 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
12082         glob: size_t overflow checks
12083         * lib/glob.c (__has_builtin): New macro.
12084         (size_add_wrapv, glob_use_alloca): New static functions.
12085         (glob, glob_in_dir): Check for size_t overflow in several places,
12086         and fix some size_t checks that were not quite right.
12088         glob: don't assume INT_MAX < SIZE_MAX
12089         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
12090         latter is not portable to (probably theoretical) hosts where
12091         SIZE_MAX <= INT_MAX.
12093 2016-05-09  Bruno Haible  <bruno@clisp.org>
12095         Fix undefined behaviour in gettext.h.
12096         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
12097         pointer's value after the storage it points to has been freed.
12098         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
12099         Spotted by Coverity.
12101 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12103         git-version-gen: avoid undefined shift
12104         Problem reported by Mosè Giordano in:
12105         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
12106         * build-aux/git-version-gen: Avoid undefined behavior if invoked
12107         with --prefix or --fallback but without a later argument.  While
12108         we're at it, omit unnecessary quotes.
12110 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
12112         glob: merge glibc changes into lib/glob.c
12113         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
12114         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
12115         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
12116           struct dirent [BZ #19779]
12117         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
12118           callback gl_readdir
12119         2015-10-20 Convert miscellaneous function definitions to prototype style
12120         2015-10-20 Convert 113 more function definitions to prototype style
12121           (files with assertions)
12122         2015-06-12 Fix getlogin_r namespace (bug 18527).
12123         2014-02-10 Use glibc_likely instead __builtin_expect.
12124         2013-10-20 When glob pattern contains a trailing slash match only
12125           directories. Fixes bug 10278.
12126         2013-09-04 glob: silence -Wattribute warnings
12127         2013-06-07 Avoid use of "register" as optimization hint.
12128         2012-09-25 Use size_t instead of int for internal variables in glob
12129           (bug 14621)
12130         2011-07-20 Check for overflows in expressions
12131         2011-05-28 Remove unused variable
12132         2011-05-22 Add a few more alloca size checks
12133         2010-03-27 Whitespace fixes
12134         2010-03-27 Fix one more issue with the glob patch
12135         2010-03-24 Fix glob with empty pattern
12136         2008-05-27 Remove useless more "if" tests before "free"
12137         * modules/glob (Depends-on): Add stdint.
12139 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12141         mktime: port to stricter signed overflow checking
12142         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
12143         (long_int): Require width for INT_MAX * 3 * (seconds per year),
12144         instead of merely for INT_MAX * 2.  In practice platforms that
12145         do the latter also do the former.
12146         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
12147         (shr): New static function, replacing SHR.  All uses changed.
12148         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
12149         and TIME_T_MAX.  All uses changed.
12150         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12151         Use long_int, not time_t.
12152         (long_int_avg): New static function, replacing time_t_avg.
12153         All uses changed.  Round toward positive infinity, as that
12154         generates slightly better code.
12155         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
12156         by INT_ADD_WRAPV.
12157         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
12158         (convert_time): New static function.
12159         (ranged_convert): Use it
12160         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
12161         Use simpler test for loop exit.
12162         (__mktime_internal): Store negative of guessed offset, to simplify
12163         overflow checking.  Remove no-longer-needed test for small time_t
12164         overflows.
12166         mktime: speed up DEBUG_MKTIME benchmarks
12167         Call tzset just once, at the start, rather than for every test
12168         case.  This lets us measure the CPU cost of mktime as opposed to
12169         that of tzset.  This is relevant when TZ is not set and glibc is
12170         being used.  This speeds up tests by a factor of 40 on my Fedora
12171         23 x86-64 platform.
12172         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
12173         to call tzset and as a sanity check.  Later on, use localtime_r
12174         instead of localtime.
12176         mktime: resurrect DEBUG_MKTIME testing
12177         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
12178         Include <string.h>, for strcmp.
12180         mktime: simplify DEBUG_MKTIME
12181         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
12182         Simplify later usage accordingly.
12184         Port mktime_internal offset to unsigned time_t
12185         This avoids some assumptions about wraparound arithmetic on
12186         signed integer overflow.
12187         * lib/mktime-internal.h (mktime_offset_t): New type.
12188         (mktime_internal): Use it in decl.
12189         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
12191         * lib/mktime.c (__mktime_internal, localtime_offset):
12192         * lib/timegm.c (timegm): Use it.
12193         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
12194         (gl_FUNC_MKTIME): Require it.
12196 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
12198         xstrtol: prohibit monstrosities like "1bB"
12199         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
12200         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
12201         "B" only if the first suffix needs a base.
12202         * tests/test-xstrtol.sh: Test this.
12204 2016-04-21  Pádraig Brady  <P@draigBrady.com>
12206         xstrtod: reinstate setting of *result upon ERANGE
12207         * lib/xstrtod.c (XSTRTOD): The user may decide to use
12208         the returned limits upon ERANGE, so allow and document that.
12210 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
12212         xstrtod: modify *result only if no errors
12213         * lib/xstrtod.c (XSTRTOD).
12215 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
12217         btowc: document problems in C locale
12218         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
12219         with mbrtowc.  See: http://bugs.gnu.org/23269#32
12221 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
12223         mktime: improve integer overflow checking
12224         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
12225         (WRAPV): Remove; no longer needed.
12226         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
12227         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
12228         Remove.  Use intprops.h defns instead.
12229         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
12230         Use bool for Boolean, for clarity.
12231         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
12232         detect integer overflow.
12233         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
12235         intprops: check two's complement assumption
12236         Suggested by Eric Blake in:
12237         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
12238         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
12239         short, int, long, and (if available) long long are two's complement.
12240         * modules/intprops (Depends-on): Add 'verify'.
12242         intprops, mktime, strtol: assume two's complement
12243         These macros were not portable to every conforming C11 ones'
12244         complement platform.  It's not worth the hassle of porting to some
12245         platforms that use ones' complement or signed magnitude, as such
12246         platforms are almost purely theoretical nowadays and porting even
12247         to some of them makes the code harder to review for little
12248         practical benefit.  Problem reported by Florian Weimer in:
12249         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
12250         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12251         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
12252         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
12253         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12254         (TYPE_SIGNED_MAGNITUDE):
12255         Remove.  All uses rewritten to assume two's complement, which is
12256         all we can reasonably test nowadays anyway.
12257         * top/maint.mk (_intprops_names): Remove the removed macros.
12259 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
12261         stdint: port to strict C11 left shift
12262         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
12263         Pacify clang -Wshift-negative-value, which should be an issue only
12264         on clang setups where stdint.h does not conform to C11 or to C++11.
12265         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
12267 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
12269         mbrtowc: work around glibc bug#19932
12270         Fix mbrtowc so that it never returns -1 in the C locale,
12271         as this conflicts with a future version of POSIX
12272         http://austingroupbugs.net/view.php?id=663#c2738
12273         and causes problems with GNU grep: http://bugs.gnu.org/23234
12274         See glibc bug 19932:
12275         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
12276         * doc/posix-functions/mbrlen.texi (mbrlen):
12277         * doc/posix-functions/mbrtowc.texi (mbrtowc):
12278         Document the glibc bug.
12279         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
12280         Include hard-locale.h, locale.h.
12281         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
12282         if the bug is possible.
12283         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
12284         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
12285         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
12286         * modules/mbrtowc (Depends-on): Add hard-locale.
12287         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
12288         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
12289         * tests/test-mbrtowc5.sh: New file.
12291 2016-04-03  Pedro Alves  <palves@redhat.com>
12293         stdint: detect good enough pre-C++11 stdint.h in C++ mode
12294         When gnulib is configured in C++ mode for a system with a working C99
12295         implementation of stdint.h that predates C++11, gnulib ends up
12296         substituting stdint.h anyway.  This works on most targets, but on e.g.,
12297         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
12298         MinGW is LLP64.  Instead of trying to detect the right types, detect
12299         good-enough-pre-C++11 stdint.h and in such case define
12300         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
12301         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
12302         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
12303         conforms to C99.  If it does, check whether it hides symbols
12304         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
12305         does, define those macros in config.h.
12307 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
12309         argp: merge changes from glibc
12310         Among other things, this should fix problems found by a Coverity
12311         scan and reported by Andrei Borzenkov:
12312         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
12313         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
12314         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
12315         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
12316         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
12317         * lib/argp.h:
12318         Merge changes from glibc.
12319         * tests/test-argp-2.sh: Adjust to match new behavior.
12321 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
12323         stddef: support configuring with g++
12324         Problem reported by Ángel González in:
12325         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
12326         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
12327         Do not define if _GCC_MAX_ALIGN_T is defined.
12329 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12331         test-framework-sh: minor cleanups
12332         * tests/init.sh (testdir_prefix_): Output a trailing newline,
12333         since strictly speaking POSIX requires this.
12334         (setup_): Do not use the variable 'fail', as that makes the
12335         trace output harder to read ('fail' is typically used by
12336         tests to mean the test failed).  Treat // portably.
12337         Check that new directory is not merely a sibling of the tmp dir.
12338         Avoid unnecessary invocation of tr.
12340         test-framework-sh: revert port to NetBSD 7.0
12341         It was a false alarm; I misinterpreted Assaf Gordon's report.
12342         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12343         Restore.
12344         (test_dir_): Adjust to mktempd_ change.
12345         (mktempd_): Restore 2nd arg.  Use -t again.
12346         (base_template_, template_, nx_): Resurrect old code.
12348         Port better to Alpine Linux
12349         Its diff implementation does not support -c, but does support -U3.
12350         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12351         * tests/init.sh (diff_opt_): New var.
12352         (compare_): Prefer diff -U3 to diff -c to plain diff.
12354 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12356         test-framework-sh: port to NetBSD 7.0
12357         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12358         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12359         Remove.  All uses removed.
12360         (test_dir_): Adjust to mktempd_ change.
12361         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
12362         (base_template_, template_, nx_): Simplify by hardcoding.
12364 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
12366         gitlog-to-changelog: suppress ignored chatter
12367         * build-aux/gitlog-to-changelog: Do not warn about skipping
12368         an SHA if it would have been ignored anyway.
12370 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
12372         setlocale: add "sv" to Windows language table
12373         * lib/setlocale.c (language_table) [W32]: Add "sv".
12374         Reported in <https://savannah.gnu.org/bugs/?44588>.
12376 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
12378         sys_select: port to new Cygwin
12379         Problem reported by Ken Brown in:
12380         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
12381         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
12382         diagnostics.
12384 2016-03-17  Jim Meyering  <meyering@fb.com>
12386         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
12387         * tests/test-userspec.c (main): Remove unnecessary braces and fix
12388         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
12389           test-userspec.c:176:9: error: statement is indented as if it were \
12390             guarded by... [-Werror=misleading-indentation]
12391                    {
12392                    ^
12393           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
12394                  if (!diag && !T[i].result)
12395                  ^~
12397 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
12399         time_rz: port to clang -Wunused-const-variable
12400         * lib/time_rz.c (TZ): Remove.  All uses removed.
12402         std-gnu11: improve clang support
12403         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
12404         2016-03-15 Also try clang
12405         2016-03-15 Port C11 and C++11 testing to clang
12407         select: port more to Intel 2016.1.150 compiler
12408         Problem reported by Balázs Hajgató in:
12409         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
12410         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
12412 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
12414         select: try to port to 2016.1.150 compiler
12415         Problem reported by Balázs Hajgató in:
12416         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
12417         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
12418         POSIX specifies 'restrict'.
12420 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
12422         localename-tests: memory allocation fixes
12423         * tests/test-localename.c (test_locale_name)
12424         (test_locale_name_thread): Don't call freelocale on a locale
12425         that was the base of a successful newlocale, as that
12426         results in a double free.  Problem reported by Assaf Gordon.
12427         (test_locale_name_thread): Free saved names after use, to pacify
12428         gcc -fsanitize=address.
12430 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
12432         intprops: make .h file license match module
12433         * lib/intprops.h: Change the license wording to match glibc format.
12434         This is what is in modules/intprops anyway.  See:
12435         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
12437 2016-03-08  Eric Blake  <eblake@redhat.com>
12439         acl: fix missing return on Cygwin
12440         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
12441         fall off end of function. Fixes http://bugs.gnu.org/22949
12443 2016-03-05  Bruno Haible  <bruno@clisp.org>
12445         extern-inline: port to PGI CC
12446         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
12447         keyword 'inline'.
12448         Reported by Adam James Stewart in:
12449         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
12451 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12453         signbit: port back to pre-C++11 GCC
12454         * lib/math.in.h (signbit): Do previous change only if
12455         __cplusplus < 201103.  See Jonathan Wakely in:
12456         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
12458 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
12460         mountlist: recognize autofs-mounted remote file systems, too
12461         Originally reported at: https://bugzilla.redhat.com/1309247
12462         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
12463         "-hosts" because it is used by autofs to mount remote file systems.
12465 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
12467         signbit: port to C++ with GCC 6
12468         * lib/math.in.h (signbit) [__cplusplus]:
12469         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
12470         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
12472         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
12474         regex: make it closer to libc
12475         Make Idx a signed type, rather than possibly unsigned.
12476         The unsignedness was not really buying us anything, since the code
12477         overflows for other reasons before getting to PTRDIFF_MAX.  Making
12478         it signed allows us to use -1 and -2 with abandon, like libc does,
12479         thus lessening the number of differences between gnulib and libc.
12480         Also, it should help avoid gratuitous warnings like the one
12481         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
12482         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
12485         regex: merge patches from libc
12487         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
12488         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
12489         Convert miscellaneous function definitions to prototype style.
12490         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
12491         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
12492         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
12493         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
12494         (re_search_internal):
12495         Convert to prototype-style function definition.
12496         Use internal_function for internal functions.
12498 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
12500         stdalign: port to older HP and IBM cc
12501         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
12502         C compilers, by checking their version numbers.  These version
12503         numbers appear in MariaDB and in Qt code that dates way back and
12504         that conditiionally uses the 'aligned' attribute.
12506 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12508         stdalign: port to clang 3.7.0
12509         Problem reported by Herbert J. Skuhra in:
12510         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
12511         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
12512         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
12513         https://llvm.org/bugs/show_bug.cgi?id=26547
12515 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12517         readdir_r: now obsolescent
12518         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
12519         * lib/mountlist.c (read_file_system_list): Add a FIXME.
12521 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12523         misc: port better to gcc -fsanitize=address
12524         Without these patches, ./configure CFLAGS='-fsanitize=address'
12525         would compute incorrect values.  This patch fixes some (but not all)
12526         test failures with recent glibc, with this configuration.
12527         * m4/acl.m4 (gl_ACL_GET_FILE):
12528         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
12529         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
12530         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
12531         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
12532         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
12533         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
12534         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
12535         * m4/getline.m4 (gl_FUNC_GETLINE):
12536         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
12537         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
12538         * m4/regex.m4 (gl_REGEX):
12539         * m4/strndup.m4 (gl_FUNC_STRNDUP):
12540         * tests/test-calloc-gnu.c (main):
12541         * tests/test-duplocale.c (main):
12542         * tests/test-getgroups.c (main):
12543         * tests/test-getline.c (main):
12544         * tests/test-inttostr.c (main):
12545         * tests/test-localename.c (test_locale_name)
12546         (test_locale_name_thread, test_locale_name_environ)
12547         (test_locale_name_default):
12548         * tests/test-regex.c (main):
12549         * tests/test-setlocale1.c (main):
12550         * tests/test-stat.h (test_stat_func):
12551         Free heap-allocated storage before exiting.
12552         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
12553         Don't match *_foo symbols inserted by AddressSanitizer.
12554         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
12556 2016-02-02  Jim Meyering  <meyering@fb.com>
12558         verify-tests: also remove stray test-verify.Tpo
12559         * modules/verify-tests (Makefile.am): Arrange for "make clean"
12560         to remove the test-verify.Tpo file that is left behind by
12561         the automake-generated rule upon compilation failure.
12562         Otherwise, that .Tpo file would cause a failed "make distcheck"
12563         at least for grep.
12565 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
12567         std-gnu11: new module
12568         This makes it easier for applications to prefer C11 and C++11
12569         to older variants, when compiling C and C++ code.
12570         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
12571         a nontrivial chunk of GPLed Autoconf source code.
12572         * COPYING: Mention the m4/*.m4 copyright situation.
12573         * MODULES.html.sh (std-gnu11): New module.
12574         * m4/std-gnu11.m4, modules/std-gnu11: New files.
12576 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
12578         get-permissions, strftime: fix grammar in comments
12579         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
12580         some grammar fixes Alan Mackenzie made to GNU Emacs.
12582 2016-01-25  Daiki Ueno  <ueno@gnu.org>
12584         gettext: mark as obsolete
12585         Suggested by Paul Eggert in:
12586         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
12587         * modules/gettext (Status): Mark as obsolete.
12588         (Notice): Suggest to use 'gettext-h' instead.
12589         * modules/gettext-h (Description): Suggest GNU gettext, instead of
12590         the 'gettext' module.
12592 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
12594         gnulib-tool: don't give up on ln -s so easily
12595         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
12596         because an earlier one failed.  The targets could be on different
12597         file systems.  Problem reported by KO Myung-Hun in:
12598         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
12600         closedir: fix OS/2-related typos
12601         Problem reported by KO Myung-Hun in:
12602         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
12603         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
12604         in the last couple of changes.
12606 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
12608         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
12609         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
12610         copying a directory.
12612 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
12614         regex: treat [x] as x if x is a unibyte encoding error
12615         Problem reported by Aharon Robbins in:
12616         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
12617         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
12618         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
12620         closedir, dirfd, opendir: port to OpenSolaris 5.10
12621         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
12622         * m4/dirfd.m4 (gl_FUNC_DIRFD):
12623         * m4/opendir.m4 (gl_FUNC_OPENDIR):
12624         Don't use ${word##pat} substitution, as it doesn't work in
12625         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
12626         http://bugs.gnu.org/22443#11
12628 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12630         bootstrap: use American spelling
12631         * build-aux/bootstrap: Honor American spelling.
12633 2016-01-22  Karl Berry  <karl@freefriends.org>
12635         * doc/posix-functions/localtime.texi,
12636         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
12638 2016-01-21  Bruno Haible  <bruno@clisp.org>
12640         hash-pjw-bare: fix comment
12641         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
12643         wcwidth: Replace also on OpenBSD 5.8
12644         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
12645         * doc/posix-functions/wcwidth.texi: Update.
12647 2016-01-20  Pádraig Brady  <P@draigBrady.com>
12649         gnu-web-doc-update: fix addition of new files
12650         If there were already added (emnpty) dirs,
12651         then cvs aborts the add with the message:
12652           cvs [add aborted]: there is a version in <./dirname> already
12653         * build-aux/gnu-web-doc-update: Add directories separately
12654         to the addition of files, to avoid the above issue
12655         impacting the addition of files.
12657 2016-01-19  Daiki Ueno  <ueno@gnu.org>
12659         utimens-tests: avoid pulling gettext .m4 files
12660         Although this is not the right fix to the original problem:
12661         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
12662         it makes it possible again for consumer projects to use arbitrary
12663         version of gettext, through the steps described at:
12664         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
12665         See here for details:
12666         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
12667         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
12668         'gettext'.
12669         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
12670         'gettext'.
12672 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12674         regex: pacify static checkers
12675         Problem and draft fix reported by Aharon Robbins in:
12676         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12677         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
12678         Clear memory to pacify static checkers.
12680         regex: fix [ diagnostic
12681         Problem and fix reported by Aharon Robbins in:
12682         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12683         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
12685         regex: fix memory leaks
12686         Problem and draft fix reported by Aharon Robbins in:
12687         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12688         * lib/regcomp.c (build_range_exp, build_charclass_op)
12689         * lib/regex_internal.c (re_dfa_add_node):
12690         Fix memory leak on failure.
12692 2016-01-18  Pádraig Brady  <P@draigBrady.com>
12694         fts: don't unconditionally use leaf optimization for NFS
12695         NFS st_nlink are not accurate on all implementations,
12696         leading to aborts() if that assumption is made.
12697         See <https://bugzilla.redhat.com/1299169>
12698         * lib/fts.c (leaf_optimization_applies): Remove NFS from
12699         the white list, and document the issue.
12701 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12702             KO Myung-Hun  <komh@chollian.net>
12704         gnulib-tool: don't assume ln -s works
12705         * gnulib-tool (func_ln_s): New function.
12706         (func_ln): Use it.
12708 2016-01-15  KO Myung-Hun  <komh@chollian.net>
12710         utimes: detect utimes() correctly on OS/2 kLIBC
12711         utimes() of OS/2 kLIBC has some limitations.
12712         1. OS/2 itself supports a file date since 1980 year in local time.
12713         2. OS/2 itself supports only even seconds for a file time.
12714         3. utimes() of OS/2 kLIBC does not work on an opened file.
12715         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
12716         * doc/posix-functions/utimes.texi: Document the above limitations of
12717         utimes() on OS/2 kLIBC.
12719 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12720             KO Myung-Hun  <komh@chollian.net>
12722         openat_proc_name: port to OS/2 kLIBC
12723         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
12724         instead of /proc/self/fd.
12725         * lib/openat-proc.c (openat_proc_name):
12726         Don't assume file name length is less than INT_MAX.
12727         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
12729 2016-01-14  KO Myung-Hun  <komh@chollian.net>
12731         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
12732         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
12733         definitions of intptr_t and uintptr_t (which use int and unsigned)
12734         to avoid clashes with declarations of system functions like sbrk.
12735         * lib/stdint.in.h (intptr_t, uintptr_t): Check
12736         _INTPTR_T_DECLARED before defining them.
12738         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
12739         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
12740         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
12741         Declare on kLIBC.
12742         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
12743         fd associated with dirp.
12744         (_gl_register_dirp_fd): New. Register fd associated with dirp to
12745         dirp_fd_list.
12746         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
12747         (dirfd): Implemented for kLIBC.
12748         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
12749         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
12750         succeeds.
12751         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
12752         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12753         (REPLACE_DIRFD): Define to 1 if replaced.
12754         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
12755         * modules/closedir (Depends-on): Add dirfd.
12756         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
12757         condition.
12758         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
12759         * modules/opendir (Depends-on): Add dirfd.
12761         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
12762         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
12763         * lib/dup.c (dup_nothrow): New.
12764         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
12765         (klibc_dup2): New.
12766         * lib/fcntl.c (klibc_fcntl): New.
12767         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
12768         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
12769         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
12770         fd.
12772         pipe_filter_ii_execute: port to OS/2 kLIBC
12773         Pipes on kLIBC do not support O_NONBLOCK like Win32.
12774         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
12775         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
12776         Reuse Win32 code on OS/2 kLIBC.
12777         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
12778         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
12780         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
12781         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
12782         static inline function.  The implementation of wcwidth in wcwidth.c
12783         causes a "conflicting types" error.
12784         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
12786         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
12787         spawn() on OS/2 kLIBC is not silly like one on Windows
12788         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
12789         empty string on OS/2 kLIBC.
12791         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
12792         On OS/2 kLIBC, select() works only on sockets.
12793         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
12795         binary-io: don't put fd in binary mode if it is a console on EMX
12796         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
12797         a console on EMX.
12799 2016-01-15  Pádraig Brady  <P@draigBrady.com>
12801         doc: mention unfixed issues with unsupported localtime() values
12802         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
12803         returns nonsense for localtime(2^56).
12804         * doc/posix-functions/localtime_r.texi: Likewise.
12806 2016-01-14  Pádraig Brady  <P@draigBrady.com>
12808         doc: mention setlocale() issues on OpenBSD
12809         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
12810         never fails, and the need to check categories individually.
12812 2016-01-14  Pádraig Brady  <P@draigBrady.com>
12814         sig2str: list all signals on FreeBSD >= 7
12815         FreeBSD >= 7 is contravening POSIX by not defining NSIG
12816         to the maximal statically defined signal value.
12817         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
12818         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
12819         where available, even when NSIG is defined.
12821 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
12823         acl-permissions: port to USE_ACL==0 platforms
12824         I ran into this problem when building bleeding-edge GNU Emacs
12825         with gcc -fsanitize=address on Fedora 23.  On this platform
12826         the ACL library does not pass the 'configure' test and Emacs
12827         then does not build due in part to what appear to be typos in the
12828         ACL part of Gnulib.
12829         * lib/acl-internal.c (free_permission_context):
12830         * lib/acl-internal.h (struct permission_context):
12831         Test whether USE_ACL is nonzero, not whether it is defined.
12833 2016-01-12  Martin Sebor  <msebor@redhat.com>
12835         mktime: rename macro to avoid glibc clash
12836         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
12837         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
12839 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
12841         Port "$@" to OpenIndiana ksh93
12842         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
12843         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
12844         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
12845         bug long-dead shells, so remove the workaround.
12846         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
12847         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
12848         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
12849         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
12850         Use "$@" instead of ${1+"$@"}.
12852         Port Universal Time settings to strict POSIX
12853         * build-aux/announce-gen, build-aux/bootstrap:
12854         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
12855         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
12856         * build-aux/gnupload, build-aux/mkinstalldirs:
12857         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
12858         * build-aux/update-copyright, build-aux/useless-if-before-free:
12859         * build-aux/vc-list-files, tests/test-strftime.c:
12860         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
12861         but POSIX says the behavior of TZ="UTC" is undefined.
12863 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
12865         msvc-inval: fix problem with unset shell var
12866         Problem reported by Karl Berry in:
12867         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
12868         * modules/msvc-inval (Depends-on):
12869         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
12870         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
12872 2016-01-01  Pádraig Brady  <P@draigBrady.com>
12874         tests: for compare_(), use cmp -s where available
12875         * tests/init.sh (compare_): Only fall back to cmp without
12876         the POSIX defined -s option, where this is not available.
12878 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12880         version-etc: new year
12881         * build-aux/gendocs.sh (version):
12882         * doc/gendocs_template:
12883         * doc/gendocs_template_min:
12884         * doc/gnulib.texi:
12885         * lib/version-etc.c (COPYRIGHT_YEAR):
12886         Update copyright dates by hand in templates and the like.
12887         * all files: Run 'make update-copyright'.
12889 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
12891         human: fix output buffer overrun by 1
12892         * lib/human.c (human_readable): Fix off-by-one typo in buffer
12893         calculation that could lead to a one-byte buffer overrun.
12895 2015-12-28  Daiki Ueno  <ueno@gnu.org>
12897         maint: fix operator precedence in mbrtowc test
12898         This is a fix for test breakage introduced by commit 45228d96; the
12899         equality expression must be parenthesized when negated with '!',
12900         otherwise we always get:
12902           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
12904         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
12905         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
12907 2015-12-23  James Youngman  <jay@gnu.org>
12909         regexprops-generic: update from regex.h
12910         * doc/regexprops-generic.texi: update by running the regexprops binary
12911         from findutils (the command line is 'regexprops "Regular Expressions"
12912         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
12913         gnulib with GNU grep had made this document out-of-date.
12915 2015-12-23  Pádraig Brady  <P@draigBrady.com>
12917         strftime-tests: avoid false failure on OS X
12918         * tests/test-strftime.c (struct localtime_rz_test): Add an
12919         ahistorical member which is used to warn rather than fail
12920         when tm_isdst isn't set for such entries.  This is the case for
12921         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
12923 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
12925         fts: ensure leaf optimization is used for NFS
12926         NFS provides usable dirent.d_type but not necessarily for all entries
12927         of large directories.  See <https://bugzilla.redhat.com/1252549>
12928         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
12930 2015-12-20  Pádraig Brady  <P@draigBrady.com>
12932         fts: enable leaf optimization for XFS
12933         XFS provides usable dirent.d_type only for DT_DIR,
12934         but the noleaf optimization still applies.
12935         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
12937 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
12939         intprops: comment fix
12940         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
12941         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
12943         intprops-test: work around GCC bug 68971
12944         Problem reported by Pádraig Brady in:
12945         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
12946         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
12947         (main): Add a case that better tests 64-bit long in this area.
12949 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
12951         gnulib-tool: allow multiple --local-dir usage
12952         * gnulib-tool: Use --local-dir to construct compound
12953         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
12954         PATH_SEPARATOR early.
12955         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
12956         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
12957         func_determine_path_separator because that needs to be detected
12958         earlier now.
12959         (func_determine_path_separator): New function.
12960         (func_path_foreach, func_path_foreach_inner): New functions.
12961         (func_path_prepend, func_path_append): Likewise.
12962         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
12963         (func_lookup_file, func_all_modules): Use new functions to work
12964         with local_gnulib_path.
12965         (func_modules_in_dir, func_exists_module): New callbacks for
12966         func_path_foreach.
12967         (func_exists_module, func_get_tests_module): Likewise.
12968         (func_is_local_file, func_should_symlink): New helper methods.
12969         (func_add_file, func_update_file): Use new func_should_symlink
12970         instead, DRY.
12971         (func_reconstruct_cached_local_gnulib_path): New helper.
12972         (func_reconstruct_cached_dir): New callback.
12973         (func_import): The cached_local_gnulib_dir renamed to
12974         cached_local_gnulib_path similarly to local_gnulib_dir.
12975         Use new func_reconstruct_cached_local_gnulib_path.
12976         (func_count_relative_local_gnulib_path): New sub-method.
12977         (func_create_testdir): Use func_should_symlink, DRY.
12978         (func_create_megatestdir): Use new functions to work with
12979         local_gnulib_path correctly.
12980         (func_append_local_dir): New helper.
12982 2015-12-08  Pádraig Brady  <P@draigBrady.com>
12984         fix freadptr to work with ungetc on all uClibc configs
12985         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
12986         where GNU coreutils cut(1) generates invalid output on uClibc
12987         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
12988         * lib/freadptr.c (freadptr): Return NULL if there are
12989         ungotten chars.  In this case freadseek() will iterate
12990         again to process the ungotten character.
12992 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
12994         xalloc-oversized: improve performance with GCC 5
12995         * lib/xalloc-oversized.h (xalloc_oversized):
12996         Improve performance with GCC 5 by using __builtin_mul_overflow.
12998 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13000         intprops: new public macro EXPR_SIGNED
13001         Emacs can use this macro, so make it public.
13002         * doc/intprops.texi (Arithmetic Type Properties): Rename from
13003         'Integer Type Determination', since some of these macros apply
13004         to non-integer types.  Clarify what kinds of constant expressions
13005         these macros return.  Say when the arguments can be non-integers.
13006         Mention newly published macro EXPR_SIGNED.
13007         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
13008         make it public.  All uses changed.
13010         intprops: fix typo in clang port
13011         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
13012         '__builtin_add_overflow' that is not caught by compiler.
13014 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
13016         test-timespec: fix typo in previous change
13017         * tests/test-timespec.c (main): Fix typo that reduced test quality.
13019         timespec-sub: fix overflow bug; add tests
13020         * lib/timespec-add.c (timespec_add):
13021         * lib/timespec-sub.c (timespec_sub):
13022         Work even if time_t is narrower than int (a theoretical
13023         possibility).  Redo code for a bit more clarity.
13024         * lib/timespec-sub.c (timespec_sub):
13025         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
13026         * modules/timespec-tests, tests/test-timespec.c: New files.
13028         intprops-test: suppress -Woverlength-strings
13029         Problem reported by Pádraig Brady in:
13030         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
13031         It is not worth the hassle to port this test to compilers that
13032         cannot handle long strings in diagnostics.
13033         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
13035 2015-11-03  Pádraig Brady  <P@draigBrady.com>
13037         quotearg: add quotearg_n_style_colon()
13038         This quotes with default options of the specified style,
13039         but with quoting enabled for instances of ':'.
13040         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
13041         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
13043 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
13045         intprops: revise _WRAPV macros, revert _OVERFLOW
13046         The incompatible changes to the _OVERFLOW macros were too much of
13047         a hassle in practice, so revert them.  Instead, change the new
13048         _WRAPV macros to make them closer in behavior to GCC 5's new
13049         builtin_add_overflow etc. functions.  No other software was using
13050         these newly-added macros yet, so this should be OK.
13051         * NEWS: Revert previous change, since the incompatible change
13052         has been reverted, and nobody used the incompatible version.
13053         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
13054         Document revised behavior.
13055         (Integer Range Overflow): Adjust example to match above revisions.
13056         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
13057         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
13058         these can be used in integer constant expressions again.
13059         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
13060         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
13061         needed.
13062         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
13063         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
13064         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
13065         Remove, as they did not seem that useful.
13066         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
13067         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
13068         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
13069         Support new semantics.
13070         (__has_builtin): New macro, if not alreay defined.
13071         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
13072         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
13073         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
13074         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
13075         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
13076         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
13077         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
13078         New macros.
13079         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
13081 2015-11-03  Jim Meyering  <meyering@fb.com>
13083         intprops: add parentheses for when OP has precedence lower than "-"
13084         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
13085         "a OP b" must be parenthesized for when OP is like "<<", which has
13086         lower precedence than the following "-". Reported by Pádraig Brady.
13088 2015-11-03  Pádraig Brady  <P@draigBrady.com>
13090         quotearg: constify get_quoting_style parameters
13091         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
13092         * lib/quotearg.c (get_quoting_style): Likewise.
13094 2015-11-02  Pádraig Brady  <P@draigBrady.com>
13096         quotearg: add support for $'' shell escaping
13097         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
13098         items and descriptions.
13099         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
13100         above types by quoting like "shell", but using $'...' syntax
13101         for non printable characters, which should provide unambiguous
13102         printable output for any input.
13103         * tests/test-quotearg-simple.c: Update accordingly.
13105 2015-11-02  Pádraig Brady  <P@draigBrady.com>
13107         maint: use a more standard return from mbrtowc test
13108         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
13109         from the test program as this is non standard and often
13110         indicates an unhandled case in the test program.
13111         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
13113 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
13115         intprops: add WRAPV and const flavors for GCC 5
13116         If available, use GCC 5's builtin functions for efficient integer
13117         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
13118         and safely compute the low-order bits of the correct answer.
13119         A downside of these efficient functions is that they cannot be
13120         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
13121         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
13122         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
13123         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
13124         Document the changes.
13125         (Wraparound Arithmetic): New section.
13126         (Integer Range Overflow):
13127         Put this subsection last, since it's least useful.
13128         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
13129         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
13130         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
13131         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
13132         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
13133         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
13134         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
13135         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
13136         New macros.
13137         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13138         Generate calls to GCC builtins if available, for speed.
13139         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
13140         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
13141         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
13142         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
13143         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
13144         (CHECK_QUOTIENT, CHECK_REMAINDER):
13145         Test WRAPV and CONST flavors (when available) too.
13147 2015-10-30  Pádraig Brady  <P@draigBrady.com>
13149         doc: use extended timezone format in iso-8601 example
13150         * doc/parse-datetime.texi: The standard states that extended format
13151         is to be used consistently throughout.
13152         Note that lib/parse-datetime.y can handle either tz format.
13154 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
13156         stdalign: port to Sun C 5.9
13157         * doc/posix-headers/stdalign.texi: Document this.
13158         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
13159         __attribute__ ((__aligned__ (...))).
13161 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
13163         time_rz: fix comment about tzalloc
13164         * lib/time_rz.c (tzalloc): Fix comment.
13166 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13168         stdalign: work around pre-4.9 GCC x86 bug
13169         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
13170         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
13171         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
13173 2015-10-18  Pádraig Brady  <P@draigBrady.com>
13175         maint.mk: sc_tight_scope: remove extraneous expressions
13176         * top/maint.mk (tight_scope): This is not really required since
13177         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
13178         that matches all nm entries.  But it does remove extraneous entries
13179         that may be confusing or cause issue in future maintenance.
13181 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13183         time_rz: return NULL if localtime_r fails
13184         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
13185         while still attempting to pacify bleeding-edge GCC.
13187         fts: port to C11 alignof
13188         * doc/posix-headers/stdalign.texi (stdalign.h):
13189         Document the C11 restriction.
13190         * lib/fts.c: Include stddef.h, for max_align_t.
13191         (fts_alloc): Align using max_align_t, not FTSENT.
13192         * modules/fts (Depends-on): Add stddef.
13194 2015-10-18  Jim Meyering  <meyering@fb.com>
13196         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
13197         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
13198         would see this:
13200         lib/time_rz.c: In function 'localtime_rz':
13201         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
13202           [-Werror=nonnull]
13203                    if (tm && !save_abbr (tz, tm))
13204                        ^
13206         That was complaining about "tm" because it is a parameter that was
13207         declared with the __nonnull__ attribute.
13208         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
13209         result of localtime_r.
13211 2015-10-17  Jim Meyering  <meyering@fb.com>
13213         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
13214         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
13215         name-extraction regexp mistakenly used \S+, and would mistakenly
13216         extract "*F" from "extern int *F()" rather than the desired "F".
13217         Use \w+ instead.
13219 2015-10-17  Jim Meyering  <meyering@fb.com>
13221         maint.mk: sc_tight_scope: factor and support OS X
13222         * top/maint.mk (_gl_tight_scope): Address three issues:
13223         - factor out four instances of code that wraps a string in "^...$"
13224         - allow nm-reported symbol names to have an optional leading "_"
13225         - add "main" to the list of ignored variable names, because on os x,
13226         "main" has nm-reported type "S" in the variable-checking section.
13228 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
13230         safe-alloc-tests: fix typo in license header
13231         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
13233 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
13235         copy-file: fix mem leak in error case
13236         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
13237         upon error opening or performing I/O to the src and dest files.
13239 2015-10-15  Mike Frysinger  <vapier@chromium.org>
13241         localename: control langinfo.h inclusion
13242         This header is only used to work around buggy behavior in old
13243         versions of glibc, so do not include it all the time.  Otherwise
13244         we get build failures on systems that do not provide langinfo.h.
13245         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
13246         in the source later on.
13247         The patch was originally submitted to gettext as:
13248         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
13250 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13252         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
13253         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
13254         * lib/u64.c, lib/unistd.c:
13255         Append 'typedef int dummy;', to pacify compilers that are picky
13256         about empty translation units.
13258 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
13260         accept4-tests: fix to avoid non portable flags
13261         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
13262         as they are the only documented ones, and passing others may trigger
13263         EINVAL (seen on FreeBSD 10.1-RELEASE).
13264         * doc/glibc-functions/accept4.texi: Mention that we don't provide
13265         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
13267 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
13269         gnulib-tool: fix tests of 'extensions' module
13270         This complements f8fe25fab60e3c687a124 commit.
13271         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
13272         emitting of initial gl_EARLY macros.
13273         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
13274         replaced with func_emit_pre_early_macros call.
13276 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
13278         unicase/locale-language: fix typo in utf-8 cookie
13279         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
13280         Problem reported by Zbigniew Jędrzejewski-Szmek.
13282 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
13284         xalloc: do not worry about GCC 5 warning on 32 bit
13285         * lib/xalloc.h: Revert previous change.
13286         I found a better way to fix this in coreutils.
13288 2015-10-02  Pádraig Brady  <P@draigBrady.com>
13290         xalloc: avoid GCC 5.1 warning on 32 bit
13291         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
13292         xalloc_oversized(), which was seen to give this warning
13293         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
13294         when simplifying conditional".
13296 2015-10-02  Daiki Ueno  <ueno@gnu.org>
13298         uniname/uniname-tests: avoid compiler warnings
13299         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
13300         unused local variables.
13301         (test_alias_lookup): Fix alias name display in failure cases.
13303 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13305         c-ctype: do not worry about EBCDIC + char signed
13306         Drop support for EBCDIC with char being signed, as this breaks too
13307         many programs.  Problem reported by Ben Pfaff in:
13308         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
13309         * lib/c-ctype.h: Verify that we are not using EBCDIC with
13310         char being signed.
13311         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
13312         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
13313         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
13314         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
13315         * tests/test-c-ctype.c (test_all):
13316         Simplify by assuming standard char values cannot be negative.
13317         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
13319 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13321         c-ctype: port better to z/OS EBCDIC
13322         Problems reported by Daniel Richard G. in:
13323         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
13324         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
13325         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
13326         (_C_CTYPE_OTHER_CNTRL): New macro.
13327         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
13328         from SCHAR_MIN, as the functions are defined only from values
13329         promoted from char or from unsigned char, not necessarily from
13330         signed char.
13332 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
13334         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
13336         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
13337         and ARFLAGS variables.  Doing this unconditionally could break
13338         later Automake's AM_PROG_AR invocation (at least it's
13339         AC_CHECK_TOOLS call to detect correct 'ar' binary).
13341         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
13342         Amsterdam Compiler Kit, so make the previous code to have effects
13343         only on ACK, and rather automatically call the Automake's
13344         AM_PROG_AR as soon as possible to decide other cases.
13346         References:
13347         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
13349         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
13350         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
13351         is possible, keep setting AR/ARFLAGS to reasonable defaults.
13352         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
13353         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
13354         'extensions' module is used.
13355         * modules/extensions (configure.ac-early): Remove as this snippet
13356         is added to gnulib-comp.m4 earlier anyway.
13358 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13360         sockets: MS Windows initalization fixes
13361         Problem reported by Test User in:
13362         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
13363         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
13364         Correct the endianness.
13365         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
13366         number mismatch, not just on <.  Cleanup before any such failure.
13368 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
13370         gc: fix detection of installed libgcrypt version
13371         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
13372         at least as recent as 1.4.4.  The previously used macro is not
13373         available now, since modules were removed in version 1.6.0.
13375 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13377         c-ctype: rewrite to use inline functions
13378         This simplifies maintenance, since it makes for just one
13379         implementation of each function, letting the compiler have the fun
13380         of optimization.  In practice this works well nowadays with GCC.
13381         E.g., c_isascii might need only three instructions even though the
13382         source code lists every ASCII character individually in a large
13383         switch statement.
13384         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
13385         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
13386         * NEWS: Document the API change.
13387         * lib/c-ctype.c: Drastically simplify, since this now just expands
13388         inline functions.
13389         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13390         (C_CTYPE_INLINE): New macro.
13391         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
13392         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
13393         Verify that either ASCII or EBCDIC is being used.
13394         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
13395         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
13396         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
13397         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
13398         New private macros.
13399         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
13400         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
13401         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
13402         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
13403         (c_tolower, c_toupper): When converting, return the unsigned char,
13404         as that is what z/OS does.
13405         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
13406         of some c-ctype.h macros.
13407         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
13408         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
13409         c_tolower promotion to be compatible with z/OS.
13411 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
13413         gitlog-to-changelog: trim only trailing whitespaces
13414         This is fix for --format regression introduced by commit
13415         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
13416         doubled %n string) had no effect anymore.  This format
13417         specification has been used e.g. by GNU paxuitils (commit
13418         edfd8bcc3).
13420         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
13421         newlines in commmit messages.
13423 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13425         Test that c_iscntrl agrees with iscntrl, etc.
13426         Suggested by Daniel Richard G. in:
13427         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
13428         * modules/c-ctype-tests (Depends-on): Add ctype.
13429         * tests/test-c-ctype.c: Include <ctype.h>.
13430         (NCHARS): New constant.
13431         (test_agree_with_C_locale): New function.
13432         (main): Use it.
13433         (test_all): Use named constants.
13435         c-ctype: improve c_isascii testing
13436         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
13437         Add a test to count the number of ASCII characters.
13439 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13441         savewd: remove SAVEWD_CHDIR_READABLE
13442         It was problematic in the light of file systems that ignore umask.
13443         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
13444         * NEWS: Document this.
13445         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
13446         successful, -1 (setting errno) on failure, rather than something
13447         more complicated than that.
13448         * lib/mkdir-p.c (make_dir_parents):
13449         Do not use SAVEWD_CHDIR_READABLE.
13450         * lib/savewd.c (savewd_chdir):
13451         Remove support for SAVEWD_CHDIR_READABLE.
13452         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
13454         c-ctype: port better to EBCDIC
13455         Problems reported by Daniel Richard G. in
13456         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
13457         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
13458         Include "verify.h".
13459         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
13460         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
13461         Define as enum constants with value false, if not defined, so that
13462         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
13463         code more portable, as both branches of the 'if' are compiled on
13464         all platforms.
13465         (C_CTYPE_EBCDIC): New constant.
13466         Verify that the character set is either ASCII or EBCDIC.
13467         (to_char): New static function.
13468         (c_isascii, c_iscntrl):
13469         Assume standard control-character assignments for EBCDIC.
13470         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
13471         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
13472         Rewrite to use 'if' instead of 'ifdef'.
13473         Use to_char if non-ASCII.  Prefer <= to >=.
13474         Prefer true and false to 1 and 0, for booleans.
13475         (c_iscntrl): Use 'if', not 'ifdef'.
13476         * modules/c-ctype (Depends-on): Add verify.
13477         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
13478         (to_char): New function.
13479         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
13481 2015-09-21  Pádraig Brady  <P@draigBrady.com>
13483         nanosleep: fix return code for interrupted replacement
13484         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
13485         that we return -1 in the case the call is interrupted by a signal,
13486         rather than the current value of 1.
13487         Diagnosed and tested by Daniel Richard G.
13489 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
13491         Diagnose ERE '()|\1'
13492         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
13493         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
13494         track of the set of previously-completed subexpressions available
13495         before the first alternative, and restore this set just before
13496         parsing each subsequent alternative.  This lets us diagnose the
13497         invalid back-reference in the ERE '()|\1'.
13499         regex: merge patches from libc
13501         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
13502         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
13503         * lib/regex_internal.h:
13504         Include <libc-lock.h> instead of <bits/libc-lock.h>.
13506         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
13507         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
13508         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
13509         wcscoll.
13510         * lib/regexec.c (check_node_accept_bytes): Likewise.
13512         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
13513         Fix regex wcrtomb namespace (bug 18496).
13514         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
13515         instead of wcrtomb.
13517         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
13518         Fix regex wctype namespace (bug 18495).
13519         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
13520         instead of towlower.
13521         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
13522         instead of iswlower.  Call __towupper instead of towupper.
13523         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
13524         instead of iswalnum.
13526         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
13527         * lib/regcomp.c (parse_bracket_exp): Initialize type to
13528         COLL_SYM in a couple of places to avoid uninitialized variable
13529         wanings on tilegx gcc 4.8.2.
13531         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13532         * lib/regex_internal.h: Remove NOT_IN_libc.
13534         2014-11-17  Andreas Schwab  <schwab@suse.de>
13535         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
13537         2014-09-11  Roland McGrath  <roland@hack.frob.com>
13538         Move findidx nested functions to top-level.
13539         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
13540         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
13541         Pass new arguments to findidx.
13542         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
13543         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
13544         Don't #include it inside the function.  Pass new arguments to findidx.
13545         * lib/regex_internal.h:
13546         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
13547         (re_string_elem_size_at): Don't #include it inside the function.
13548         Pass new arguments to findidx.
13550         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
13551         Check if DEBUG is defined in regex_internal.c
13552         * lib/regex_internal.c: Check if DEBUG is defined and is set.
13554 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
13556         ceill: detect buggy OpenBSD implementation
13557         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
13558         which returns zero for small values.  Discussed here:
13559         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
13561 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
13563         mountlist: add me_mntroot field on Linux machines
13564         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
13565         mount_entry so Linux machines based on /proc/self/mountinfo can
13566         distinguish between bind mounts and original mounts.  In reality bind
13567         mounts aren't treated differently than mountroot=/ mounts by the
13568         kernel, but the user often wants these bind mounts distinguished.
13569         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
13570         More details at https://pad.lv/1432871
13572 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
13574         doc: Describe to use multiple instances of gnulib
13575         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
13576         instances of gnulib with different modules can be used, for example one
13577         for a lib and another one for associated tools.
13579 2015-09-01  Pádraig Brady  <P@draigBrady.com>
13581         base32: mark function as __attribute__ const
13582         * lib/base32.h (isbase32): Mark __attribute__ const as
13583         suggested by GCC, and consistent with the base64 module.
13585 2015-08-20  Daiki Ueno  <ueno@gnu.org>
13587         gnulib-tool: don't transform binary files with sed
13588         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
13589         .mo and .class files.
13590         Reported by Denis Denisov.
13592 2015-08-10  Daiki Ueno  <ueno@gnu.org>
13594         gperf: respect silent rules
13595         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
13596         V_GPERF_0 for silent rules.
13597         * modules/iconv_open (Makefile.am): Use V_GPERF.
13598         * modules/unicase/locale-language (Makefile.am): Likewise.
13599         * modules/unicase/special-casing (Makefile.am): Likewise.
13600         * modules/unictype/category-byname (Makefile.am): Likewise.
13601         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
13602         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
13603         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
13604         * modules/unictype/property-byname (Makefile.am): Likewise.
13605         * modules/unictype/scripts (Makefile.am): Likewise.
13606         * modules/uninorm/composition (Makefile.am): Likewise.
13608 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
13610         Improve port of stdalign to C++11
13611         Problem reported by Sundaram in:
13612         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
13613         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
13614         (__alignas_is_defined): Define if C++11 or newer.
13616 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
13618         pmccabe2html: fix gawk regex escaping
13619         * build-aux/pmccabe2html: Add one more backslash to properly
13620         escape the gsub replacement value.  Fixes this error:
13621         gawk: ./build-aux/pmccabe2html:425: \
13622         warning: escape sequence `\&' treated as plain `&'
13624 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
13626         time_rz: port to pedantic memcpy
13627         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
13628         that reject memcpy (..., NULL, 0).
13630 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
13632         time_rz: port better to MinGW
13633         Don't change tzname, as this makes MinGW dump core (Bug#21020).
13634         Instead, store the tzname copy in the struct tm_zone object.
13635         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
13636         * lib/strftime.c [!_LIBC]:
13637         * lib/time_rz.c: Include time-internal.h.
13638         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
13639         name from *TZ rather than from TZNAME, doable because *TZ now has
13640         a tzname_copy member.
13641         * lib/time-internal.h: New file, with contents taken from
13642         lib/time_rz.c.  It's separate because strftime.c now accesses
13643         struct tm_zone members.
13644         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
13645         New member tzname_copy.
13646         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
13647         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
13648         Initialize tzname_copy member.
13649         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
13650         in tzname_copy member.
13651         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
13652         (restore_tzname): Remove; no longer needed.  All calls removed.
13653         * modules/time_rz (Files): Add lib/time-internal.h.
13655         time: port __need_time_t to MinGW
13656         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
13657         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
13659 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13661         strftime: fix newly-introduced bug on Solaris
13662         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
13663         consistently at the start, rather than doing some of the setup at
13664         the start and some in the %Z format spec.  This is cleaner, and
13665         works better with time_rz on platforms like Solaris where struct
13666         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
13667         mktime_z and localtime_rz can mess up the tzname cache.
13669         test-strftime: test for Solaris bug
13670         * modules/strftime-tests (Depends-on): Add strerror.
13671         * tests/test-strftime.c: Include <errno.h>.
13672         (posixtm_test): New function, containing the old 'main'.
13673         (struct tzalloc_test, struct localtime_rz_test): New types.
13674         (TZ, LT): New static vars.
13675         (tzalloc_test): New function.
13676         (main): Rewrite in terms of posixtm_test and tzalloc_test.
13678         time_rz: port to Solaris etc.
13679         Works around a tzname problem on platforms like Solaris that have
13680         tzname but not tm_zone, by setting tzname at the appropriate time
13681         and restoring it later.
13682         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
13683         New static vars.
13684         (save_abbr) [HAVE_TZNAME]: Set them.
13685         (revert_tz) [HAVE_TZNAME]: Clear or use them.
13686         (restore_tzname): New function.
13687         (localtime_rz, mktime_z): Use it.
13689         time_rz: now LGPL
13690         * modules/time_rz (License): Now LGPL, because strftime depends on it.
13692         time_rz: make a constant 'const'
13693         * lib/time_rz.c (local_tz): Now const.
13695         time_rz: fix off-by-one typo
13696         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
13698 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
13700         fprintftime, strftime: use timezone_t args
13701         * NEWS: Document the change.
13702         * lib/fprintftime.h (fprintftime):
13703         * lib/strftime.c (extra_args) [my_strftime]:
13704         * lib/strftime.h (nstrftime):
13705         Time zone arg is now of type timezone_t, not int.
13706         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
13707         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
13708         (my_strftime) [emacs && !my_strftime]:
13709         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
13710         Remove; Emacs doesn't need this any more.
13711         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
13712         fprintftime and nstrftime to call tzset.
13713         (ut) [!my_strftime]: Remove, replacing with ...
13714         (tz) [!my_stftime]: ... this new macro.  All uses changed.
13715         (strftime_case_): Use localtime_rz and mktime_z instead
13716         of localtime_r and mktime.
13717         * modules/fprintftime (Depends-on): Add time_rz.
13718         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
13719         * tests/test-strftime.c (main): Adjust to new nstrftime API.
13721         time_rz: new module
13722         * MODULES.html.sh: Add time_rz.
13723         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
13724         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
13725         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
13726         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
13727         New var HAVE_TIMEZONE_T (default 0).
13728         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
13729         New var GNULIB_TIME_RZ (default 0).
13730         * modules/time (time.h): Substitute the new vars.
13732         flexmember: license is now unlimited
13733         * modules/flexmember (License): Change to unlimited,
13734         since its only source file gives an unlimited license.
13736 2015-07-15  Eric Blake  <eblake@redhat.com>
13738         maint: update copyright paper procedures
13739         * config/srclist.txt: Drop outdated files.
13740         * doc/Copyright/conditions.txt: Update to latest.
13741         * doc/Copyright/assign.changes.manual: Delete.
13742         * doc/Copyright/assign.future.manual: Likewise.
13743         * doc/Copyright/assign.manual: Likewise.
13744         * doc/Copyright/assign.translation.manual: Likewise.
13745         * doc/Copyright/disclaim.changes.manual: Likewise.
13746         * doc/Copyright/disclaim.manual: Likewise.
13747         * doc/Copyright/disclaim.program: Likewise.
13749 2015-07-07  Daiki Ueno  <ueno@gnu.org>
13751         localename: fix link error on Illumos
13752         Illumos defines __sun, but does not have getlocalename_l nor the
13753         equivalent.  This partially reverts commit 387c214.
13754         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
13755         available, as well as uselocale.
13756         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
13757         use getlocalename_l if it is not available.
13759 2015-07-07  Daiki Ueno  <ueno@gnu.org>
13761         unistr/uN-strtok-tests: avoid a trivial leak
13762         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
13763         input and delim after the multibyte delimiter tests.
13765 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
13767         file-has-acl, acl-permissions: fix HP-UX typos
13768         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
13769         * lib/file-has-acl.c (file_has_acl):
13770         * lib/set-permissions.c (context_acl_from_mode)
13771         (context_aclv_from_mode, set_acls):
13772         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
13773         They were introduced by the recent ACL changes.
13775         regex: match current GNU grep behavior
13776         These symbols have not matched GNU grep behavior for quite some time.
13777         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
13778         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
13779         Change to match current GNU behavior.
13780         Simplify by expressing it as differences from POSIX BREs and EREs.
13781         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
13783 2015-07-03  Jim Meyering  <meyering@fb.com>
13785         set-permissions.c: adjust acl_from_mode's cpp guard
13786         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
13787         directives identical to those guarding the sole use.
13788         Otherwise, on some systems, we'd get a warning about
13789         the function being defined but not used.
13790         Also, filter through cppi to correct misleading indentation
13791         of cpp directives.
13793 2015-07-03  Pádraig Brady  <P@draigBrady.com>
13795         tests: restrict shells to those that support 'local'
13796         The local keyword is very widely supported and used
13797         in tests in coreutils and grep at least.  Therefore
13798         restrict to testing with shells that support it.
13799         This mainly excludes /bin/sh on Solaris.
13800         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
13802 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
13803         and Daiki Ueno  <ueno@gnu.org>
13805         unistr/uN-strtok: handle multibyte delimiters
13806         Previously, uN_strtok moved PTR to the next unit to the token end.
13807         When DELIM contained a multibyte character, the new position could
13808         be a middle of a multibyte character.
13809         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
13810         after the token.
13811         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
13812         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
13813         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
13814         * modules/unistr/u8-strtok (Depends-on): Depend on
13815         unistr/u8-strmblen.
13816         * modules/unistr/u16-strtok (Depends-on): Depend on
13817         unistr/u16-strmblen.
13818         * modules/unistr/u32-strtok (Depends-on): Depend on
13819         unistr/u32-strmblen.
13820         * tests/unistr/test-u-strtok.h: New file.
13821         * tests/unistr/test-u8-strtok.c: New file.
13822         * tests/unistr/test-u16-strtok.c: New file.
13823         * tests/unistr/test-u32-strtok.c: New file.
13824         * modules/unistr/u8-strtok-tests: New file.
13825         * modules/unistr/u32-strtok-tests: New file.
13826         * modules/unistr/u16-strtok-tests: New file.
13828 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
13830         update-copyright: fix test failure with perl >= 5.22 (trivial)
13831         * build-aux/update-copyright: Escape a literal left curly bracket,
13832         required with perl >= 5.22
13834 2015-07-02  Daiki Ueno  <ueno@gnu.org>
13836         u{16,32}-strstr-tests: relax timeout condition
13837         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
13838         tests can take longer than 5 seconds to complete.
13839         Reported by Dagobert Michelsen in:
13840         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
13841         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
13842         seconds to 10 seconds.
13843         * tests/unistr/test-u32-strstr.c (main): Likewise.
13845 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
13847         gnulib-common.m4: change the ARFLAGS default to 'cr'
13848         In some GNU/Linux distributions people started to compile 'ar'
13849         binary with --enable-deterministic-archives (binutils project).
13850         That, however, in combination with previous autotools long time
13851         working default AR{_,}FLAGS=cru causes warnings on such
13852         installations:
13853         ar: `u' modifier ignored since `D' is the default (see `U')
13854         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
13855         set already.
13857 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
13859         selinux-h: avoid double free after *getfilecon()
13860         Originally reported by Ben Shelton on bug-tar:
13861         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
13862         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
13863         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
13864         param should be freed by freecon(3) (regardless the return value).
13866 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
13868         fix pty related tests issues on Windows (trivial)
13869         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
13870         however it's still present in tests/ subdirectory of the final project.
13871         Therefore avoid it to pass `make check`.
13872         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
13873         will just return -ENOSYS, so avoid this non applicable test allowing
13874         the build to proceed.
13876 2015-07-01  Pádraig Brady  <P@draigBrady.com>
13878         acl: fix definition of acl_from_mode on FreeBSD
13879         This was causing basic coreutils copy operations to fail
13880         with ENOTSUP or ENOENT error messages.
13881         * lib/acl-internal.h (acl_from_mode): Only define when
13882         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
13883         of acl_from_mode() defined in lib/set-permissions.c to
13884         be used on FreeBSD at least.
13885         * lib/set-permissions.c: Fix up comment spelling,
13886         and a redundant variable assignment; noticed in passing.
13888 2015-06-30  Pádraig Brady  <P@draigBrady.com>
13890         readutmp: port to FreeBSD >= 9
13891         * lib/readutmp.h: Map utmpxname() to setutxdb().
13892         With that coreutils who(1) and pinky(1) tests pass.
13894 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13896         mgetgroups: port to strict OS X
13897         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
13898         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
13899         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
13900         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
13902 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
13904         mgetgroups: port to strict OS X
13905         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
13906         Document the getgrouplist problem.
13907         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
13908         New macro.
13909         (mgetgroups): Use it.
13910         * m4/mgetgroups.m4 (gl_MGETGROUPS):
13911         Check for OS X signature for getgrouplist.
13913 2015-06-29  Jim Meyering  <meyering@fb.com>
13915         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
13916         It started like this when building coreutils' latest on OS X,
13917         invoking ./configure with a nonempty --cache=.cache:
13919           lib/linkat.c:46:42: error: operator '||' has no right operand
13920           lib/linkat.c: In function 'rpl_linkat':
13921           lib/linkat.c:330:27: error: #if with no expression
13923         Here's linkat.c's line 46:
13925           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
13927         Here's some context:
13929           $ grep linkat_nofoll .cache
13930           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
13931           $ grep LINKAT_SYM lib/config.h
13932           #define LINKAT_SYMLINK_NOTSUP
13934         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
13935         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
13936         but that violates a tenet of AC_CACHE_CHECK: it must
13937         have no side effect other than setting its cache variable.
13939         What happens is that when the cache is set, we'd skip the
13940         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
13941         defined to whatever value it happened to have in configure's
13942         environment.  In my case, it was not defined, so this later code:
13944           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
13945             [Define to 1 if linkat can create hardlinks to symlinks])
13947         would emit code with an empty RHS.
13949         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
13950         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
13952 2015-06-28  Jim Meyering  <meyering@fb.com>
13954         mountlist: avoid an unused-label warning on OS X
13955         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
13956         Building on OS X, I saw a warning about the "free_then_fail" label
13957         being unused.  Give it the _GL_UNUSED_LABEL attribute.
13959         error.c: correct printf-style format: %d -> %u
13960         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
13961         rather than %d, to match the type of "line_number", unsigned int.
13963 2015-06-25  Pádraig Brady  <P@draigBrady.com>
13965         fts: avoid reading beyond the heap allocation
13966         GCC 5.1.1 with -O2 and -fsanitize=address reports
13967         a read of size 4 from a heap object of size 3 is indeed invalid,
13968         though this may be due to incorrect padding assumptions by GCC, see:
13969         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
13970         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
13971         * modules/fts: Depend on stdalign.
13973 2015-06-24  Pádraig Brady  <P@draigBrady.com>
13975         savedir: avoid undefined behavior in qsort call
13976         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
13977         "runtime error: null pointer passed as argument 1,
13978          which is declared to never be null"
13979         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
13981 2015-06-24  Pádraig Brady  <P@draigBrady.com>
13983         userspec: avoid undefined behavior in gettext call
13984         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
13985         "runtime error: null pointer passed as argument 2,
13986          which is declared to never be null"
13987         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
13989 2015-06-20  Glenn Morris  <rgm@gnu.org>
13991         gitlog-to-changelog: improve gitmerge.el commits
13992         Let the Emacs ChangeLog generation process exclude "skipped"
13993         messages from merge commits (Bug#20717).
13994         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
13996 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13998         wchar: fix MinGW compilation warnings
13999         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
14000         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
14001         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
14003 2015-06-20  Daiki Ueno  <ueno@gnu.org>
14005         uniname/uniname-tests: use pristine data files
14006         For copyright and maintenance reasons, use the data files from UCD
14007         without modification.
14008         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
14009         (getfield): Remove.
14010         (aliases_count): New global variable.
14011         (fill_names): Skip comments and empty lines in the input.  Don't
14012         use getfield.
14013         (fill_aliases): Likewise.
14014         (main): Change the expected command line arguments to:
14015         NAMES... ["--" ALIASES...].
14016         * tests/uniname/test-uninames.sh: Adjust to the change in
14017         test-uninames.c.
14018         * tests/uniname/UnicodeDataNames.txt: Remove.
14019         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
14020         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
14021         file from Unicode 8.0.0.
14023 2015-06-19  Pádraig Brady  <P@draigBrady.com>
14025         linked-list, linkedhash-list: avoid compiler warnings
14026         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
14027         -Werror=suggest-attribute=pure (from GCC 5.1.1).
14029 2015-06-19  Daiki Ueno  <ueno@gnu.org>
14031         libunistring: bump minimum version to 0.9.6
14032         * all modules depending on updated Unicode data: Regenerate.
14033         The modules are listed by a script that does:
14034         - for each file listed by: git show --oneline --name-only 705f4efc
14035           - deduce the containing modules, based on "Files:"
14036         - deduce the modules which depend on the containing modules, based
14037           on "Depends-on:"
14039 2015-06-18  Daiki Ueno  <ueno@gnu.org>
14041         uniname/uniname: update to Unicode 8.0.0
14042         * lib/uniname/uninames.h: Regenerate.
14043         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
14044         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
14046 2015-06-18  Daiki Ueno  <ueno@gnu.org>
14048         libunistring: update to Unicode 8.0.0
14049         * lib/gen-uni-tables.c (SIZEOF): New macro.
14050         (output_numeric): Increase the maximum number of fractions from
14051         128 to 160.  Increase the level3 value width from 7 bits to 8
14052         bits.  Use SIZEOF instead of a hard-coded integer.
14053         (output_blocks): Decrease the cut-off threshold from 0x30000 to
14054         0x28000.
14055         (fill_blocks): Increase the maximum number of blocks from 256 to
14056         384.  Use SIZEOF instead of a hard-coded integer.
14057         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
14058         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
14059         value width.
14060         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
14061         a new case added to LBP22.
14062         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
14063         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
14064         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
14065         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
14066         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
14067         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14068         lib/uniwidth/width.c.
14069         * all generated files under lib/uni* and tests/uni*: Regenerate.
14071 2015-06-16  Pádraig Brady  <P@draigBrady.com>
14073         gnu-web-doc-update: add --mirror to remove stale files
14074         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
14075         out of date files from the CVS server.  Since this is usually
14076         appropriate, a prompt is given when the option is not specified,
14077         along with the `cvs remove` command that would be run.
14079 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14081         acl-permissions: pacify -Wsuggest-attribute=const
14082         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
14083         * lib/acl-internal.h (free_permission_context):
14084         Declare with attribute const if ! (defined USE_ACL &&
14085         (HAVE_ACL_GET_FILE || defined GETACL)).
14087         fsync: document AIX misbehavior
14088         * doc/posix-functions/fsync.texi (fsync):
14089         Document failure on AIX with read-only file descriptor.
14091 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
14093         stdio: Don't redefine gets when using C++
14094         * lib/stdio.in.h (gets): Disable warning on C++.
14096 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
14098         acl-permissions: port to AIX, C89 HP-UX
14099         Problems reported by Michael Felt.
14100         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
14101         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
14102         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
14103         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
14104         Add cast for AIX, whose system calls are declared to accept
14105         char * even though the arguments are really char const *.
14106         * lib/get-permissions.c (get_permissions):
14107         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
14108         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
14109         that broke a build.
14110         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
14111         Rework types to pacify xlc.
14113 2015-06-03  Pádraig Brady  <P@draigBrady.com>
14115         vasprintf-posix: avoid compiling vasnprintf where possible
14116         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
14117         module where not required.  For example on a GNU/Linux system
14118         when gnulib-tool is run with the --conditional-dependencies option.
14120 2015-06-02  Pádraig Brady  <P@draigBrady.com>
14122         file-has-acl: fix build on Mac OS X 10
14123         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
14124         which has an incompatible 6 parameter getxattr() call.
14125         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
14126         call on Mac OS X >= 10.4.
14127         * doc/glibc-functions/fgetxattr.texi: Likewise.
14128         * lib/file-has-acl.c: Revert to more complete combined check.
14129         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
14130         Reported by Jack Howarth.
14132 2015-06-02  Pádraig Brady  <P@draigBrady.com>
14134         prefix-gnulib-mk: remove no longer needed special case
14135         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
14136         continued lib_SOURCES lines are no longer present,
14137         so special case handling of such entries is not required.
14139 2015-06-01  Pádraig Brady  <P@draigBrady.com>
14141         acl: don't depend on the deprecated qacl module
14142         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
14144 2015-06-01  Pádraig Brady  <P@draigBrady.com>
14146         gnulib-tool: concatenate lib_SOURCES to a single line
14147         * gnulib-tool: Refactor the line merging sed logic,
14148         and use that to output a single lib_SOURCES line for each module.
14149         gnulib using projects often postprocess this output to prepend
14150         subdir paths to each item, and having a single line simplifies this
14151         processing allowing better decoupling from the gnulib-tool output.
14153 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
14155         pthread_sigmask: discount system version if a simple macro (trivial)
14156         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
14157         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
14158         function to ensure it's available.
14160 2015-05-31  Pádraig Brady  <P@draigBrady.com>
14162         readlinkat: avoid OS X 10.10 trailing slash bug
14163         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
14164         has this bug.
14165         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
14166         that OS X 10.10 has this function.
14167         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
14168         as done for readlink().
14169         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
14170         trailing slash bug, and assume readlinkat() has the same issue.
14171         Also fix a typo where $gl_cv_decl_readlink_works was tested,
14172         rather than the correct $gl_cv_decl_readlinkat_works.
14174 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
14176         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
14177         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
14178         module rewrite.
14180         acl-permissions: Fix build on Solaris and Cygwin
14181         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
14182         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
14183         ace_entries variables have moved into struct permission_context but
14184         they were still accessed as local variables here.
14186 2015-05-29  Pádraig Brady  <P@draigBrady.com>
14188         linkat: avoid OS X 10.10 trailing slash with symlink bug
14189         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
14190         causes the symlink to be dereferenced, and if it points
14191         to a non existent file, that file will be created as
14192         a hard link to "path1".
14193         This fixes a test failure in test-linkat.c.
14194         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
14195         this case.  The existing workaround in linkat.c for
14196         trailing slash issues, suffices for this case.
14197         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
14198         the list of platforms with trailing slash issues.
14200 2015-05-28  Pádraig Brady  <P@draigBrady.com>
14202         unlinkat: handle ignoring of ".." on Darwin 14
14203         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
14204         on Mac OS X 10.10, where it ignores paths with a trailing "..",
14205         so handle in the same manner.
14206         * m4/unlinkat.m4: Comment on this Darwin issue.
14207         * doc/posix-functions/unlink.texi: Update the latest version
14208         where the issue was seen.
14209         * doc/posix-functions/unlinkat.texi: Mention this issue.
14210         Fixes a test failure in test-unlinkat.c.
14212 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
14214         qacl: split into qcopy-acl and qset-acl
14215         Emacs needs the former, but not the latter.
14216         * modules/acl-permissions: New file, containing most of the old qacl.
14217         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
14218         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
14219         * modules/qcopy-acl, modules/qset-acl: New files.
14220         * MODULES.html.sh (File system functions):
14221         Mention the new modules, and mention qacl while we're at it.
14223 2015-05-27  Glenn Morris  <rgm@gnu.org>
14225         gitlog-to-changelog: new option --ignore-line
14226         (This patch is imported from the GNU Emacs master.)
14227         This option ignores individual commit lines matching a pattern.
14228         * build-aux/gitlog-to-changelog: Add --ignore-line option.
14230 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
14232         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
14233         Implement get_permissions and set_permissions primitives for getting all
14234         the permissions of a file, storing them, and later setting them. (In the
14235         minimal case, the permissions consist only of a file mode.) Reimplement
14236         qset_acl and qcopy_acl based on these new primitives: this avoids code
14237         duplication and makes error handling more consistent.
14238         The Solaris and Cygwin code still uses duplicate code paths for setting
14239         a file mode while making sure that no acls exist and setting an explicit
14240         acl; this is no worse than before, but could be cleaned up.  The AIX
14241         code still doesn't read ACLs, it only makes sure that acls don't get in
14242         the way when setting a file mode.
14243         * lib/acl-internal.h (struct permission_context): New data structure.
14244         (get_permissions, set_permissions, free_permission_context): Declare.
14245         * lib/acl-internal.c (free_permission_context): New helper function.
14246         * lib/get-permissions.c (get_permissions): New helper function split off
14247         from qcopy_acl.
14248         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
14249         AIX, set a file's permissions based only on a file mode.
14250         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
14251         other platforms construct a temporary acl from the file mode and set
14252         that acl in the same way as setting an acl read from the source file.
14253         This should help avoid code duplication and inconsistent / buggy
14254         behavior.
14255         (set_acls): New helper function Split off from qcopy_acl.
14256         (chmod_or_fchmod): Moved here from qset-acl.c.
14257         (set_permissions): New helper function.
14258         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
14259         set_permissions.
14260         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
14261         * modules/qacl: Add get-permissions.c and set-permissions.c.
14263         file-has-acl: Split feature tests again (Bug#20667)
14264         * lib/file-has-acl.c: Instead of testing for
14265         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
14266         define them when needed.
14267         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
14268         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
14270 2015-05-27  Pádraig Brady  <P@draigBrady.com>
14272         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
14273         This avoids a conflict with "FORTIFY_SOURCE" variants
14274         of the string functions when they're replaced on NetBSD-6.0.1
14275         and Darwin-14.3.0 at least.
14276         * lib/string.in.h: Avoid including our "lib/string.h" while
14277         including the system <string.h>.
14279 2015-05-26  Eric Blake  <eblake@redhat.com>
14281         stdio: limit __gnu_printf__ witness to gcc 4.4+
14282         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
14283         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
14285         error: use correct printf attributes on mingw
14286         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
14288         inttypes: force correct mingw PRIdMAX even without <stdio.h>
14289         * modules/inttypes (Depends-on): Require extensions, so that mingw
14290         always uses GNU style inttypes.
14291         * lib/inttypes.in.h: On mingw, include <stdio.h>.
14293         stdio: fix probe on mingw under gcc 5.1
14294         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
14295         around new gcc preprocessor rules.
14297 2015-05-07  Glenn Morris  <rgm@gnu.org>
14299         gitlog-to-changelog: parse "Tiny-change"
14300         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
14301         "Copyright-paperwork-exempt".  (Bug#20324)
14303 2015-05-06  Pádraig Brady  <P@draigBrady.com>
14305         doc: document glibc posix_fallocate() issues
14306         * doc/posix-functions/posix_fallocate.texi: Mention the
14307         glibc efficiency problems and issues with NFS.
14309 2015-05-05  Karl Berry  <karl@freefriends.org>
14311         * build-aux/gendocs.sh (usage): document new css default
14312         for HTML (--htmlarg).
14314 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
14316         extern-inline: no need for workaround in GCC 5.1
14317         * doc/extern-inline.texi (extern inline):
14318         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
14319         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
14320         around these bugs in GCC 5.1 and later.  Maybe in a decade or
14321         two we can remove these workarounds.
14323 2015-04-28  Pádraig Brady  <P@draigBrady.com>
14325         eealloc, pagealign_alloc, xalloc: avoid clang warnings
14326         Avoid [-Wunknown-attributes] warnings like:
14327         warning: unknown attribute '__alloc_size__' ignored
14328         * lib/xalloc.h: Don't use the __alloc_size__  attribute
14329         with clang, as support has been fully removed as of clang 3.5:
14330         https://github.com/llvm-mirror/clang/commit/c047507a
14331         * lib/eealloc.h: Likewise.
14332         * lib/pagealign_alloc.h: Likewise.
14334 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
14336         tests: pacify GCC 5.1's stricter printf checking
14337         * tests/test-dirname.c (main):
14338         * tests/test-getaddrinfo.c (simple):
14339         * tests/test-getlogin.c (main):
14340         * tests/test-getndelim2.c (main):
14341         * tests/test-inttostr.c (CK):
14342         * tests/test-md5.c (main):
14343         * tests/test-read-file.c (main):
14344         * tests/test-sha1.c (main):
14345         Fix mismatches between printf format and value signedness.
14346         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
14347         Remove, as CAST_VAL always returned a value of type uintmax_t.
14349         fts: port to GCC 5.1 with --enable-gcc-warnings
14350         Without this fix, GCC 5.1 (correctly) warns about a subscript
14351         error on the fts_name component of FTSENT.  It's actually a
14352         flexible member, so define it that way on C99 or later hosts.
14353         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
14354         structure that now has a flexible array member.
14355         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
14356         (FTSENT): fts_name is now flexible on C99-or-later platforms.
14357         * modules/fts (Depends-on): Add flexmember.
14359 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14361         file-has-acl: port to CentOS 6
14362         Problem reported by Tom G. Christensen in:
14363         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
14364         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
14365         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
14366         HAVE_GETXATTR.
14367         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
14368         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
14369         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
14370         file-has-acl.c actually needs.
14372 2015-04-26  Pádraig Brady  <P@draigBrady.com>
14374         file-has-acl: always return false when ACLs aren't supported
14375         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
14376         change the GNU/Linux getxattr path, to transform "not supported"
14377         errors to a false return rather than an error.  This is handled
14378         within file_has_acl() due to the platform specific tests to
14379         determine if ACLs are not supported.
14381 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14383         gettext: propagate po/Makefile.in.in too
14384         * build-aux/po/Makefile.in.in: Copy from latest gettext.
14385         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
14386         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
14387         between Makefile.in.in and the gettext-runtime m4 files.
14389 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14391         file-has-acl: new module, split from acl
14392         And add a new module file-has-acl-tests to match.
14393         I ran into a problem with the recent changes to the acl module,
14394         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
14395         When using the fixed version with Emacs, I discovered that
14396         file-has-acl wasn't separated out well enough for Emacs (e.g., it
14397         had multiple libraries, but needed only one), so I fixed that too.
14398         * NEWS: Document this incompatible change.
14399         * modules/file-has-acl, modules/file-has-acl-tests: New files.
14400         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
14401         Initialize gl_need_lib_has_acl.
14402         (gl_FUNC_ACL): Require it.
14403         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
14404         Move the file-has-acl.c-relevant stuff to ...
14405         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
14406         use_xattrs = 0' typo, and omit some needless work.  Set
14407         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
14408         when gl_FUNC_ACL is called.
14409         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
14410         (Link): Remove $(LIB_HAS_ACL).
14411         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
14412         (check_PROGRAMS): Move stuff relevant to file-has-acl to
14413         modules/file-has-acl-tests.
14414         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
14416         manywarnings: add GCC 5.1 warnings
14417         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
14418         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
14419         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
14420         -Wsuggest-override, -Wuse-without-only.  Change
14421         -Wnormalized=... operands to match 5.1.
14422         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
14423         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
14424         -Wdiscarded-qualifiers, -Wformat-signedness,
14425         -Wincompatible-pointer-types, -Wint-conversion,
14426         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
14427         -Wshift-count-negative, -Wshift-count-overflow,
14428         -Wsizeof-array-argument, -Wsuggest-final-methods,
14429         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
14430         and add -Warray-bounds=2 as a special case.
14432 2015-04-21  Simon Josefsson  <simon@josefsson.org>
14434         doc: update FDL template to match FDL examples.
14435         * doc/alloca-opt.texi:
14436         * doc/alloca.texi:
14437         * doc/c-ctype.texi:
14438         * doc/c-strcase.texi:
14439         * doc/c-strcaseeq.texi:
14440         * doc/c-strcasestr.texi:
14441         * doc/c-strstr.texi:
14442         * doc/c-strtod.texi:
14443         * doc/c-strtold.texi:
14444         * doc/ctime.texi:
14445         * doc/error.texi:
14446         * doc/gcd.texi:
14447         * doc/gnulib-tool.texi:
14448         * doc/inet_ntoa.texi:
14449         * doc/intprops.texi:
14450         * doc/lib-symbol-visibility.texi:
14451         * doc/maintain.texi:
14452         * doc/parse-datetime.texi:
14453         * doc/quote.texi:
14454         * doc/regexprops-generic.texi:
14455         * doc/standards.texi: Remove spurious 'with' in FDL license
14456         template.
14458 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
14460         lstat: fix cross-compilation 'ln -s' problem
14461         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
14462         Have the test program call 'symlink' rather than a separate
14463         script run 'ln -s'; this is more likely to work in
14464         cross-compilation environments.  Reported by Pavel Fedin in:
14465         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
14467 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
14469         gendocs.sh: default to a common CSS style sheet for HTML output
14470         * build-aux/gendocs.sh (htmlarg): Change default value.
14472 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
14474         gnulib-tool: output bold attribute more portably
14475         * gnulib-tool (func_show_module_list): Change hexadecimal
14476         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
14477         encoded numbers as arguments to `printf' is not portable,
14478         and is not claimed by POSIX.  This is the case with FreeBSD.
14480 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
14482         qacl: Simplify HP-UX acl_nontrivial check
14483         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
14484         acl_nontrivial. Check if the acl has at most three entries instead (it must
14485         have exactly three entries according to the HP-UX documentation). Ignore
14486         uids and gids as long as an entry is either for a user (i.e., the owner),
14487         a group (i.e., the owning group), or others.
14488         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
14489         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
14491 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
14493         acl: On Linux, check for acls without libacl
14494         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
14495         library function to check for the presence of acls, avoiding a library.
14496         * lib/file-has-acl.c: Include xattr headers if we have them.
14497         (file_has_acl): On Linux, use getxattr().
14498         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
14499         file_has_acl(). Check for xattr headers and getxattr().
14501 2015-04-14  Ángel González  <keisial@gmail.com>
14503         tempname: avoid unused parameter warnings (trivial)
14504         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
14505         (try_nocreate): Likewise.
14507 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
14509         fseeko: fix build failure on NetBSD >= 6 (trivial)
14510         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
14511         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
14513 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14515         gitlog-to-changelog: port to MS-Windows
14516         * build-aux/gitlog-to-changelog (git_dir_option):
14517         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
14518         MS-Windows Perl.  Reported by Eli Zaretskii in:
14519         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
14521 2015-04-07  Karl Berry  <karl@gnu.org>
14523         gendocs: new option --tex for passing args to texi2dvi.
14524         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
14525         (TEXI2DVI): cut to just command name.
14526         (usage): mention new option, and update copyright.
14527         <generate_tex>: use it.
14529 2015-04-07  Karl Berry  <karl@gnu.org>
14531         * config/srclistvars.sh (GETTEXT): new definition.
14532         * config/srclist.txt: use it for gettext .m4 files.
14533         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
14534         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
14535         and continuing into April.
14537 2015-04-07  Daiki Ueno  <ueno@gnu.org>
14539         uniname/uniname-tests: fix failure due to alias
14540         Reported by Jack Howarth in:
14541         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
14542         * tests/uniname/test-uninames.c (name_has_alias): New function.
14543         (test_inverse_lookup): Exclude character name with valid alias,
14544         from randomly generated character names.
14545         (main): Fill unicode_aliases before calling test functions.
14547 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
14549         hash: remove deprecated hash_insert0 function
14550         * lib/hash.h (hash_insert0): Remove deprecated function.
14551         * lib/hash.c (hash_insert0): Likewise.
14553 2015-04-02  Pádraig Brady  <P@draigBrady.com>
14555         mountlist: remove dependency on libmount
14556         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
14557         directly, rather than depending on libmount, which has many
14558         dependencies due to its dependence on libselinux, as detailed at:
14559         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
14560         Note we restrict this to __linux__ as that's probably where this
14561         interface will remain.  If ever porting, it would be best
14562         to first pull the makedev() wrapper from coreutils to a gnulib module.
14563         Note also we don't add a getline dependency to the mountlist module,
14564         as all Linux versions are sufficient.
14566 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
14568         stddef: port to pre-C11 GCC on x86
14569         On this platform, max_align_t should have an alignment of 8 even
14570         though the storage alignments of double, long, etc. max out at 4.
14571         Inspired by a comment of Andreas Schwab's here:
14572         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
14573         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
14574         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
14575         * tests/test-stddef.c: Test __alignof__ too, if available.
14577 2015-03-24  Pádraig Brady  <P@draigBrady.com>
14579         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
14580         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
14582 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
14584         yesno: make EOL optional in ENABLE_NLS case also (trival)
14585         * lib/yesno.c (yesno): Check for EOL before replacing.
14586         * tests/test-yesno.sh: Add a test case (test along with gettext).
14588 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
14590         fdopendir-tests: test it does not close its arg
14591         * tests/test-fdopendir.c (main): Test that fdopendir does not
14592         close its argument.  From a suggestion by David Grayson in:
14593         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
14595 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14597         gitlog-to-changelog: trim trailing white space
14598         * build-aux/gitlog-to-changelog (main):
14599         Trim trailing white space from commit message lines.
14600         This is helpful for processing the GNU Emacs repository,
14601         which dates back to 1985 and contains a lot of such lines.
14603         gitlog-to-changelog: new option --ignore-matching
14604         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
14605         Support new option --ignore-matching=PAT, which ignores all
14606         commit messages whose first line matches PAT.
14608 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14610         fdopendir: port better to MinGW
14611         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
14612         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
14613         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
14614         * modules/fdopendir (Depends-on): Add dirfd.
14616 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
14618         fdopendir: fix typo in comment
14619         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
14621 2015-03-09  Eric Blake  <eblake@redhat.com>
14623         error: document all entry points provided
14624         * doc/glibc-functions/error_print_progname.texi
14625         (error_print_progname): Mention the error module.
14626         * doc/glibc-functions/error_at_line.texi (error_at_line):
14627         Likewise.
14628         * doc/glibc-functions/error_message_count.texi
14629         (error_message_count): Likewise.
14630         * doc/glibc-functions/error_one_per_line.texi
14631         (error_one_per_line): Likewise.
14633 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
14635         vasnprintf: pacify clang 3.5.0
14636         Problem reported by Werner Lemberg in:
14637         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
14638         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
14639         The casts aren't needed, since the characters in question are ASCII.
14641 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14643         glob, etc.: port to MSVC v18 on MS-Windows 8.1
14644         * lib/dirent--.h (GNULIB_defined_opendir):
14645         * lib/dirent.in.h (GNULIB_defined_opendir)
14646         (GNULIB_defined_closedir):
14647         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
14648         #undef only if Gnulib defined it.
14650         poll: port to MSVC v18 on MS-Windows 8.1
14651         Problem reported by Gisle Vanem in:
14652         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
14653         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
14654         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
14655         Add sys_socket.
14657 2015-02-24  Pádraig Brady  <P@draigBrady.com>
14659         tests: support stderr verification with returns_()
14660         * tests/init.sh (returns_): Disable tracing for this wrapper
14661         function, so that stderr of the wrapped command is unchanged,
14662         allowing for verification of the contents.
14664 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
14666         passfd: avoid valgrind uninitalised data warning
14667         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
14668         to include just the fd we've initialized, rather than including
14669         the extra space used for alignment.
14671 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14673         uniwbrk/u32-wordbreaks-tests: fix copyright
14674         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
14676         dup2: doc and test for Android bug
14677         Reported by Kevin Cernekee in:
14678         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
14679         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14680         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
14682 2015-02-23  Kevin Cernekee  <cernekee@google.com>
14684         Replace dup2() on Android
14685         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
14686         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
14687         fails.  Using rpl_dup2() fixes this because it has an explicit test
14688         for this condition.
14690 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
14692         Android doesn't define RLIM_SAVED_*
14693         Portability problem reported by Kevin Cernekee in:
14694         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
14695         * doc/posix-headers/sys_resource.texi (sys/resource.h):
14696         Mention the portability problem.
14697         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
14698         Define if not defined.
14699         * m4/dup2.m4 (gl_FUNC_DUP2):
14700         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14701         Likewise.
14703 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14705         vasnprintf-posix-tests: use consistent test
14706         * tests/test-vasnprintf-posix.c (test_function):
14707         Use "<" in assert instead of "<=", for consistency with other tests.
14709 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14711         printf, isinf, etc.: noncanonical != NaN
14712         Do not require that isinf, printf, etc. treat noncanonical
14713         values as NaNs.  Instead, require only that they do not crash.
14714         Problem reported by Joseph Myers in:
14715         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
14716         * doc/posix-functions/dprintf.texi (dprintf):
14717         * doc/posix-functions/fprintf.texi (fprintf):
14718         * doc/posix-functions/isfinite.texi (isfinite):
14719         * doc/posix-functions/isinf.texi (isinf):
14720         * doc/posix-functions/isnan.texi (isnan):
14721         * doc/posix-functions/printf.texi (printf):
14722         * doc/posix-functions/snprintf.texi (snprintf):
14723         * doc/posix-functions/sprintf.texi (sprintf):
14724         * doc/posix-functions/vdprintf.texi (vdprintf):
14725         * doc/posix-functions/vfprintf.texi (vfprintf):
14726         * doc/posix-functions/vprintf.texi (vprintf):
14727         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14728         * doc/posix-functions/vsprintf.texi (vsprintf):
14729         Document this.
14730         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
14731         * m4/isinf.m4 (gl_ISINFL_WORKS):
14732         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
14733         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
14734         * tests/test-isfinite.c (test_isfinitel):
14735         * tests/test-isinf.c (test_isinfl):
14736         * tests/test-isnan.c (test_long_double):
14737         * tests/test-isnanl.h (main):
14738         * tests/test-snprintf-posix.h (test_function):
14739         * tests/test-sprintf-posix.h (test_function):
14740         * tests/test-vasnprintf-posix.c (test_function):
14741         * tests/test-vasprintf-posix.c (test_function):
14742 o       Test only that noncanonical values do not cause crashes, not that
14743         they are treated as NaNs.  In some cases this means a larger
14744         output buffer is needed.
14746 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
14748         fts: remove redundant close() (trivial)
14749         * lib/fts.c (fts_read): Remove redundant call to close().
14750         Spotted by coverity.
14752 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14754         getdtablesize: port better for Android
14755         Problem reported by Kevin Cernekee in:
14756         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
14757         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
14758         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
14759         Instead, just use getrlimit, taking care to avoid Cygwin bug.
14761         poll: fixes for large fds
14762         * lib/poll.c (poll): Don't check directly for NFD too large.
14763         Don't rely on undefined behavior in FD_SET when an arg exceeds
14764         FD_SETSIZE.  Always set revents afterwards, even if to zero.
14765         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
14766         as that makes the test a bit stricter.
14768 2015-02-19  Kevin Cernekee  <cernekee@google.com>
14770         fcntl: Fix cross compiling
14771         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
14772         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
14774 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14776         dup2, fcntl: cross-compile better for Android
14777         Problem reported by Kevin Cernekee in:
14778         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
14779         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
14780         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
14781         there's little need to cross-compile for older kernels nowadays.
14782         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
14783         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
14785 2015-02-18  Pádraig Brady  <P@draigBrady.com>
14787         getopt: don't crash on memory exhaustion
14788         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
14789         memory exhaustion.  In the _LIBC case we use alloca() as is
14790         already done in glibc, so we don't need to consider the separate
14791         error path in that awkward case.  Also fix a memory leak when
14792         ambiguous options are present.
14793         Reported by Tobias Stoeckmann
14795 2015-02-17  Mike Miller  <mtmiller@ieee.org>
14797         tempname: allow compilation with C++ (trivial)
14798         * lib/tempname.h [C++]: Specify extern "C" linkage.
14799         * lib/tempname.h (try_tempname):
14800         * lib/tempname.c (__try_tempname, __gen_tempname):
14801         Rename 'try' to 'tryfunc'.
14803 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14805         dup2, fcntl: port to AIX
14806         * m4/dup2.m4 (gl_FUNC_DUP2):
14807         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14808         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
14809         The former works on AIX 7.1 but the latter does not.
14810         Also, this may work better with Android; see:
14811         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
14813 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14815         getdtablesize, dup2, fcntl: port to Android
14816         Problem reported by Kevin Cernekee in:
14817         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
14818         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
14819         Mention that getdtablesize doesn't work on Android.
14820         * lib/getdtablesize.c: Use getrlimit substitute only if
14821         getdtablesize is declared.  This should suffice for Cygwin
14822         while not breaking Android.
14823         * m4/dup2.m4 (gl_FUNC_DUP2):
14824         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14825         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
14826         standardized but the latter is not, and sysconf works on Android.
14827         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
14828         Also check that getdtablesize is declared.
14829         This removes the need for a special case for Android.
14831 2015-02-16  Kevin Cernekee  <cernekee@google.com>
14833         localename: Implement gl_locale_name_thread_unsafe for Android
14834         * lib/localename.c: Android API level >= 21 supports two hardcoded
14835         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
14836         the internal __locale_t struct.
14838 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
14840         fts: avoid crash when a cycle is added while traversing
14841         This could be triggered by auto-mounting a recursive bind mount.
14842         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
14843         * lib/fts.c (fts_read): Avoid removing the original hash table item
14844         when leaving a directory that caused a cycle, and preserve the FTS_DC
14845         flag.
14847 2015-02-16  Daiki Ueno  <ueno@gnu.org>
14849         uniname/uniname: support character alias
14850         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
14851         Generate one-way mapping from aliases to codepoints in the
14852         generated tables.  Special case variation selectors to reduce
14853         table size.
14854         * lib/uniname/uniname.c (unicode_character_name): Special case
14855         variation selectors.
14856         (unicode_name_character): Special case variation selectors and
14857         their aliases.
14858         * lib/uniname/uninames.h: Regenerate.
14859         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
14860         * modules/uniname/uniname-tests (Files): Add
14861         tests/uniname/NameAliases.txt.
14862         * tests/uniname/test-uninames.c: Mark as static.
14863         (ALIASLEN): Define.
14864         (struct unicode_alias): New struct.
14865         (unicode_aliases): New variable.
14866         (fill_aliases): New function.
14867         (test_alias_lookup): New test function.
14868         (main): Run the 'test_alias_lookup' test if the second argument is
14869         given.
14870         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
14871         second argument.
14873 2015-02-11  Kevin Cernekee  <cernekee@google.com>
14875         Fix FILE struct compatibility with Android API level >= 21
14876         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
14877         __sferror.  Recent versions of Bionic's stdio.h no longer define
14878         __sferror.
14879         * lib/fbufmode.c: Likewise.
14880         * lib/fflush.c: Likewise.
14881         * lib/fpurge.c: Likewise.
14882         * lib/freadable.c: Likewise.
14883         * lib/freadahead.c: Likewise.
14884         * lib/freading.c: Likewise.
14885         * lib/freadptr.c: Likewise.
14886         * lib/freadseek.c: Likewise.
14887         * lib/fseeko.c: Likewise.
14888         * lib/fseterr.c: Likewise.
14889         * lib/fwritable.c: Likewise.
14891         Assume unbroken ungetc() on Android
14892         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
14893         test case passed when running on an Android host, and the code
14894         hasn't really changed since 2009.
14896         getdtablesize: Fix Android build
14897         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
14898         versions have this symbol in the .so library (at least 32-bit
14899         platforms) but are missing the declaration in the header file,
14900         causing the m4 logic to guess incorrectly.
14902         localename: Fix Android build
14903         * modules/localename (Depends-on): Add langinfo.
14905         getugroups: Fix Android build
14906         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
14907         functions.
14909         euidaccess: Fix Android build
14910         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
14911         AT_EACCESS gets declared.
14913         linkat_nofollow: Add fallback case for cross compiling
14914         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
14916         net_if: Handle content-free <net/if.h> system headers
14917         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
14918         struct if_nameindex.  If not, enable the replacement header.
14920         signal_h: Fix Android build
14921         * lib/signal.in.h: Add Android to the list of platforms that declare
14922         pthread_sigmask() in <pthread.h> instead of <signal.h>.
14924         duplocale: Fix Android build of duplocale-tests
14925         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
14926         is included by test-duplocale.c (but not by duplocale.c).
14927         * modules/duplocale-tests (configure.ac): Check for monetary.h.
14928         * tests/test-duplocale.c: Skip test if monetary.h is absent.
14929         * doc/posix-headers/monetary.texi: Add Android to the list of
14930         platforms missing monetary.h.
14932 2015-02-11  Pádraig Brady  <P@draigBrady.com>
14934         tests: avoid recent -Werror=unused-variable regression in test-locale
14935         * tests/test-locale.c (main): Reference the variable to avoid the
14936         "unused variable" warning.
14938 2015-02-11  Pádraig Brady  <P@draigBrady.com>
14940         maint: various whitespace cleanups in tempname
14941         * lib/tempname.c: Normalize spacing and line length.
14942         * lib/tempname.h: Likewise.
14943         * modules/tempname: Likewise.
14945 2015-02-11  Pádraig Brady  <P@draigBrady.com>
14947         tests: provide returns_() to simplify exit status checking
14948         * tests/init.sh (returns_): A new function for use in tests,
14949         to allow for easier checking of return values, where you expect
14950         a command to exit with failure status.  By checking for a particular
14951         exit code, you don't hide any crashes for example.
14953 2015-02-11  Pádraig Brady  <P@draigBrady.com>
14955         mountlist: only use libmount when specified
14956         There are currently many shared libs dependencies introduced by
14957         libmount with associated runtime and virt mem overhead.
14958         Therefore don't enable by default.
14959         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
14961 2015-02-08  Daiki Ueno  <ueno@gnu.org>
14963         uniname/unimame-tests: don't link with -lunistring
14964         * modules/uniname/uniname-tests (Makefile.am): Don't link against
14965         $(LIBUNISTRING).  Document the rationale why we need to
14966         conditionalize the test.
14968 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
14970         fstrcmp: don't assume strlen < INT_MAX
14971         * lib/fstrcmp.c: Include stddef.h and stdint.h.
14972         (uintptr_t): Remove, as we're now assuming stdint.
14973         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
14974         Prefer ptrdiff_t to int when the value could exceed INT_MAX
14975         if the input string is long.
14976         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
14977         uintptr_t to size_t when the underlying value is a pointer casted
14978         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
14979         * modules/fstrcmp (Depends-on): Add stdint.
14981         diffseq: prefer ptrdiff_t to ssize_t
14982         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
14983         ptrdiff_t is the natural type for signed indexes.
14984         On a few older platforms, ssize_t is narrower than size_t.
14986         xalloc: fix typo that suppressed warnings
14987         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
14988         This typo, introduced a couple of years ago, mistakenly suppressed
14989         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
14990         -Wmissing-declarations warnings.
14992         full-read: fix license notice typo
14993         * lib/full-read.h: Remove a stray line in the license notice.
14994         Reported by Sam Ellis in: http://bugs.gnu.org/19808
14996         crypto/gc: fix a -Wswitch warning
14997         Reported by Bruce Korb in:
14998         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
14999         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
15001 2015-02-03  Pádraig Brady  <P@draigBrady.com>
15003         gnulib-tool: fix handling of patch(1) diagnostics
15004         * gnulib-tool: Send diagnostics from patch(1) to stderr,
15005         as otherwise gnulib-tool will reparse that output and attempt
15006         to lookup modules.
15008 2015-02-03  Pádraig Brady  <P@draigBrady.com>
15010         bootstrap: exit immediately upon gnulib-tool failure
15011         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
15012         This was noticed when gnulib-tool exited early due to failure
15013         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
15014         but various confusing errors were then given as the build proceeded.
15016 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
15018         symlinkat: include all required header files
15019         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
15020         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
15021         Reported at https://savannah.gnu.org/bugs/index.php?44151
15022         and by Jack Howarth.
15024 2015-01-29  Pádraig Brady  <P@draigBrady.com>
15026         localename: support Solaris 12 and illumos
15027         * lib/localename.c (gl_locale_name_thread_unsafe): call
15028         getlocalename_l() on newer __sun platforms.
15029         Reported by Alexander Pyhalov.
15030         Fix suggested by Rich Burridge.
15032 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
15034         locale: fix tests on illumos (trivial)
15035         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
15036         so move from global scope to main().
15038 2015-01-24  Daiki Ueno  <ueno@gnu.org>
15040         unictype: avoid undefined left-shift behavior
15041         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
15042         gcc's -fsanitize=shift and running its tests triggered:
15043           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
15044             places cannot be represented in type 'int'
15045         Cast LHS to 'unsigned int' after integer promotion.
15046         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
15047         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
15049 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15051         libunistring: bump version of unitypes dependants
15052         Due to the header file search order, all the headers which depend
15053         on unitypes.h need to be generated, when the preinstalled
15054         libunistring is older.
15055         * modules/unicase/base (configure.ac): Bump minimum version to
15056         0.9.4.
15057         * modules/uniconv/base (configure.ac): Likewise.
15058         * modules/unilbrk/base (configure.ac): Likewise.
15059         * modules/uninorm/base (configure.ac): Likewise.
15060         * modules/unistdio/base (configure.ac): Likewise.
15061         * modules/unistr/base (configure.ac): Likewise.
15062         * modules/uniwbrk/base (configure.ac): Likewise.
15063         * modules/uniwidth/base (configure.ac): Likewise.
15065 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15067         unictype/category-none: fix link with libunistring
15068         Since _UC_CATEGORY_NONE is not a public symbol, it will be
15069         prefixed with "libstring_" when compiled as part of libunistring.
15070         To avoid undefined symbol at link time, increase the minimum
15071         version when the dependant modules are updated.
15072         * modules/unictype/category-none (configure.ac): Bump minimum
15073         version to 0.9.5.
15075 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15077         unitypes: fix build with installed libunistring
15078         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
15079         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
15080         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
15082 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
15084         time: port to MinGW32 3.21
15085         Problem reported by Eli Zaretskii in:
15086         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
15087         * lib/time.in.h:
15088         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
15089         * modules/time (Depends-on):
15090         Fall back on unistd.h if the other include files don't define
15091         struct timespec.
15093         update-copyright: apply to self
15094         * build-aux/update-copyright: Fix copyright date.  How ironic!
15096 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15098         libunistring: update to Unicode 7.0.0
15099         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
15100         Manichaean names.
15101         * lib/unictype/joininggroup_name.h: Likewise.
15102         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
15103         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
15104         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
15105         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
15106         (fill_arabicshaping, joining_group_as_c_identifier): Support those
15107         enum values.
15108         (is_property_alphabetic): Accept newly added characters to
15109         cuneiform numeric signs.
15110         (is_property_default_ignorable_code_point): Reject U+0605.
15111         (FIELDLEN): Increase from 120 to 160.
15112         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
15113         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
15114         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
15115         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
15116         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
15117         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
15118         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
15119         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
15120         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
15121         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
15122         U+1E8D0..U+1E8D6.
15123         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
15124         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15125         lib/uniwidth/width.c.
15126         * all generated files under lib/uni* and tests/uni*: Regenerate.
15128 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15130         libunistring: update to Unicode 6.3.0
15131         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
15132         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
15133         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
15134         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
15135         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
15136         Update WB5, WB9, WB10, WB13a, and WB13b.
15137         * tests/uniwbrk/test-uc-wordbreaks.c
15138         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
15139         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
15140         (UC_BIDI_PDI): New enumeration values.
15141         (bidi_category_byname): Support those enum values.
15142         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
15143         dedicated property assigned.
15144         (is_property_case_ignorable): Check 0x0027.
15145         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
15146         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
15147         (output_wbp): Support those enum values.
15148         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
15149         (UC_BIDI_PDI): New enumeration values.
15150         * lib/unictype/bidi_byname.gperf: Add those property names.
15151         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
15152         U+180E, U+1A1B, and U+2066..U+2069.
15153         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15154         lib/uniwidth/width.c.
15155         * all generated files under lib/uni* and tests/uni*: Regenerate.
15157 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15159         libunistring: update to Unicode 6.2.0
15160         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
15161         (unilbrk_table): Adjust table size.
15162         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
15163         for LBP_RI.
15164         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
15165         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
15166         Normalize table index skipping ignored properties.
15167         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
15168         WBP_EXTEND and WBP_FORMAT, which are now computed without using
15169         the table.
15170         * lib/uniwbrk/wbrktable.h: Adjust table size.
15171         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
15172         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
15173         Support rule GB8a.
15174         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
15175         * tests/unigbrk/test-uc-is-grapheme-break.c
15176         (graphemebreakproperty_to_string): Support GBP_RI.
15177         * tests/uniwbrk/test-uc-wordbreaks.c
15178         (wordbreakproperty_to_string): Support WBP_RI.
15179         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
15180         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
15181         (output_lbp): Support LBP_RI.  Adjust some characters changed from
15182         LBP_AL to LBP_ID.
15183         (output_lbp): Support LBP_RI.
15184         (WBP_RI): New enumeration value.
15185         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
15186         (output_wbp): Support WBP_RI.
15187         (GBP_RI): New enumeration value.
15188         (output_gbp_test, fill_org_gbp): Support GBP_RI.
15189         * all generated files under lib/uni* and tests/uni*: Regenerate.
15191 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15193         libunistring: update to Unicode 6.1.0
15194         * lib/gen-uni-tables.c (output_joining_group): Switch to
15195         3-level table to accommodate joining groups defined with higher
15196         codepoint value.  Since there are only 88 groups defined in
15197         Unicode 7.0.0, use 7-bit packed format for level3 entries.
15198         (get_lbp): Update for Unicode 6.1.0.
15199         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
15200         3-level table.
15201         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
15202         joining group name.
15203         * lib/unictype/joininggroup_name.h: Likewise.
15204         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
15205         (unilbrk_table): Adjust table size.
15206         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
15207         for LBP_HL.
15208         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
15209         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
15210         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
15211         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
15212         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
15213         U+302E..U+302F.
15214         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15215         lib/uniwidth/width.c.
15216         * all generated files under lib/uni* and tests/uni*: Regenerate.
15217         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
15219 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15221         uniwbrk/u32-wordbreaks-tests: add conformance test
15222         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
15223         tests/uniwbrk/test-uc-wordbreaks.c,
15224         tests/uniwbrk/test-uc-wordbreaks.sh, and
15225         tests/uniwbrk/WordBreakTest.txt.
15226         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
15227         test-uc-wordbreaks to $(check_PROGRAMS), and define
15228         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
15229         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
15230         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
15232 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15234         uniwbrk: ignore Extended/Format characters at BOL not BOS
15235         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
15236         characters if the previous character property is one of
15237         WBP_NEWLINE, WBP_CR, and WBP_LF.
15239 2015-01-11  Jim Meyering  <meyering@fb.com>
15241         test-strstr.c: avoid a trivial leak
15242         * tests/test-strstr.c (main): Free haystack.
15244         update-copyright: recognize groff's \(co marker
15245         * build-aux/update-copyright (circle_c_re): Also accept
15246         uses of \(co, as found in gzip.1.
15248 2015-01-08  Pádraig Brady  <P@draigBrady.com>
15250         maint.mk: fix compatibility with OS X nm
15251         * top/maint.mk (_gl_tight_scope): Use the -g option to
15252         show exported items rather than the -e option which is
15253         ignored on all platforms except OS X where it gives an error.
15254         Reported by Assaf Gordon.
15256 2015-01-07  KO Myung-Hun  <komh@chollian.net>
15258         localcharset: improve charset detection on OS/2
15259         Use system codepage when appropriate.  Map OS/2 codepages to
15260         GNU canonical charset names if possible.
15261         * lib/config.charset: Don't output aliases if "$os" is os2*.
15262         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
15263         result for OS/2.
15264         (locale_charset) [OS2]: Use system codepage if codeset is omitted
15265         from the locale name which is neither "C" nor "POSIX".
15267 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
15269         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
15270         This reverts the last patch but one, as it shouldn't be needed now
15271         that the typo is fixed.
15272         * lib/count-leading-zeros.h (count_leading_zeros_ll):
15273         * lib/count-trailing-zeros.h:
15274         * lib/count-one-bits.h:
15275         Go back to using 64-bit intrinsics.
15277         count-leading-zeros: fix pragma typos
15278         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
15279         Fix typos in declaration of intrinsics when _MSC_VER.
15281 2015-01-06  Pádraig Brady  <P@draigBrady.com>
15283         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
15284         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
15285         intrinsics in this case.
15286         * lib/count-trailing-zeros.h: Likewise.
15287         * lib/count-one-bits.h: Likewise.
15289 2015-01-06  Daiki Ueno  <ueno@gnu.org>
15291         uniname/uniname: update to Unicode 7.0.0
15292         To accommodate new characters added since Unicode 5.1.0, this
15293         changes the internal representation of codepoint ranges.
15294         Previously, we grouped codepoint ranges by manually assigned 4-bit
15295         tag, which only allowed 16 groups.  This removes the limitation by
15296         switching to binary search on a table.  For the detail rationale
15297         and the benchmark results, see:
15298         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
15299         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
15300         to INDEX, as it no longer represents a codepoint.
15301         (range): New struct.
15302         (main): Switch to intervals list from a bit-pattern based
15303         classification.
15304         * lib/uniname/uninames.h: Regenerate.
15305         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
15306         * modules/uniname/base (configure.ac): Bump minimum version to
15307         0.9.5.
15308         * modules/uniname/uniname (configure.ac): Bump minimum version to
15309         0.9.5.
15311 2015-01-05  Eric Blake  <eblake@redhat.com>
15313         doc: update INSTALL from autoconf
15314         * doc/install.texi: Resync from autoconf.
15315         * doc/INSTALL: Reflect recent autoconf update.
15316         * doc/INSTALL.ISO: Likewise.
15317         * doc/INSTALL.UTF-8: Likewise.
15319         stdio: fix use of PRIdMAX on modern mingw
15320         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
15321         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
15322         to work with modern mingw.
15324 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
15326         pthread: detect git mingw builds with only partial pollution
15327         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
15328         pollution, as seen temporarily in Fedora 21.
15330 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15332         lib-symbol-versions: cache script check
15333         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
15334         Cache the check for linker version scripts.
15335         From a suggestion by Christophe Curis in:
15336         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
15338 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
15340         maint: fix grammar nits in propername (trivial change)
15341         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
15342         and use an adequate verb and tense.
15344 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
15346         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
15347         * module/gendocs: Add 'doc/gendocs_template_min'.
15349         * build-aux/gendocs.sh: Change email addresses and upstream URLs
15350         from to Gnulib's.
15351         (scripturl, templateurl): Adjust accordingly.
15353 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15355         gendocs: copyright date and version fix
15356         Reported by Karl Berry in:
15357         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
15358         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
15359         Fix copyright date.
15360         * build-aux/gendocs.sh (scriptversion): Update.
15362 2015-01-01  Karl Berry  <karl@gnu.org>
15364         * doc/install.texi,
15365         * build-aux/mdate-sh,
15366         * build-aux/depcomp,
15367         * build-aux/config.guess,
15368         * build-aux/config.sub,
15369         * build-aux/ar-lib,
15370         * build-aux/compile: revert copyright updates (some from last
15371         year) in slaved files.
15373 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15375         version-etc: new year
15376         * doc/gnulib.texi:
15377         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
15378         * all files: Run 'make update-copyright'.
15380 2014-12-30  Pádraig Brady  <P@draigBrady.com>
15382         xstrtol: ensure errno is reset
15383         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
15384         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
15386         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
15388 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15390         utimens: fix dependency typo
15391         * modules/utimens (Depends-on): Remove 'assure'.
15392         This bug was introduced in the recent 'assure' patch.
15394 2014-12-22  Eric Blake  <eblake@redhat.com>
15396         docs: mention why libgen.h is bad
15397         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
15399 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15401         assure: new module
15402         This works better than 'assert' when compiling with -DNDEBUG,
15403         as it avoids some compiler diagnostics in that case.
15404         Reported by Norihiro Tanaka in:
15405         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
15406         * MODULES.html.sh (func_all_modules): Add 'assure'.
15407         * lib/assure.h, modules/assure: New files.
15408         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
15409         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
15410         Prefer 'assure' to 'assert'.
15411         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
15412         * modules/chdir-long, modules/cycle-check, modules/fchdir:
15413         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
15414         Depend on 'assure'.
15416 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
15418         stdalign: port better to HP compilers
15419         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
15420         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
15422         stdalign: work around Apple GCC 4.0 bug
15423         Reported by David Fang in:
15424         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
15425         * lib/stdalign.in.h (_Alignas):
15426         * m4/stdalign.m4 (gl_STDALIGN_H):
15427         Do not use aligned attribute with GCC 4.0 on Apple.
15429 2014-12-16  Pádraig Brady  <P@draigBrady.com>
15431         getcwd: fix test failure on OS X 10.9
15432         * m4/getcwd-path-max.m4: Avoid the replacement if it
15433         won't be effective due to the PATH_MAX limitation of lstat().
15434         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
15435         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
15436         for this case for use in tests, and also exclude this
15437         case when setting REPLACE_GETCWD.
15438         * tests/test-getcwd.c (test_long_name): Restrict the
15439         tested path length so that lstat() will not be passed
15440         a path greater than PATH_MAX.
15441         Also key a test condition on HAVE_OPENAT_SUPPORT rather
15442         than AT_FDCWD, since the latter is set unconditionally
15443         since Sep 2009 in commit 52c658e9.
15445 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
15447         parse-datetime: avoid a compiler warning with byacc (trivial)
15448         * lib/parse-datetime.y (yylex): Use the same prototype in the
15449         function definition as the declaration, to avoid a -Wstrict-prototypes
15450         warning seen when using byacc.
15452 2014-12-12  Daiki Ueno  <ueno@gnu.org>
15454         unicase/locale-language-tests: fix LOCALE_FR test
15455         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
15456         a French locale with traditional encoding.
15457         Reported by umerqayam in:
15458         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
15460 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
15462         stddef: support C11's max_align_t
15463         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
15464         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
15465         Do not undef, as that might cause max_align_t to be defined twice.
15466         Instead, change use to check for _GL_STDDEF_WINT_T too.
15467         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
15468         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
15469         Check for max_align_t.
15470         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
15471         * modules/stddef-tests (Depends-on): Add stdalign.
15472         * tests/test-stddef.c: Test max_align_t.
15474 2014-12-11  Daiki Ueno  <ueno@gnu.org>
15476         unistd: fix iOS check conditional
15477         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
15478         as 0 or 1 in <TargetConditionals.h>, and the previous check always
15479         yielded true on non-iOS environment.
15480         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
15481         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
15482         they are defined.
15484 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
15486         posixtm: avoid compiler warning in a better way
15487         * lib/posixtm.c (IF_LINT): Remove.
15488         (year, posix_time_parse):
15489         Return true (not 0) if successful.  All callers changed.
15490         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
15492 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
15494         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
15495         started with '/' on EMX.
15497 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
15499         freopen: workaround freopen() on OS/2 kLIBC
15500         * lib/freopen.c (rpl_freopen): Workaround.
15501         * m4/freopen.m4: Add os2* case.
15503         get_shared_library_fullname: port to EMX
15504         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
15505         on EMX, respectively.
15506         (_DLL_InitTerm): New on EMX.
15507         (get_shared_library_fullname): Implement on EMX.
15509         find_executable: port to EMX
15510         * lib/progreloc.c (find_executable): Implement on EMX.
15512         sched: check struct sched_param in spawn.h as well
15513         * lib/sched.in.h: Include spawn.h on kLIBC.
15514         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
15516 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
15518         bootstrap: Allow perl modules in $buildreq
15519         * build-aux/bootstrap: Add case for perl modules.
15521 2014-12-08  Pádraig Brady  <P@draigBrady.com>
15523         apply _GL_ATTRIBUTE_PURE to some inline functions
15524         clang 3.4.2 flagged these inline functions as pure
15525         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
15526         * lib/sig-handler.h (get_handler): Likewise.
15527         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
15528         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
15530 2014-12-06  Pádraig Brady  <P@draigBrady.com>
15532         vasnprintf: fix potential use after free
15533         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
15534         flagged by clang-analyzer 3.4.2.
15536 2014-12-05  Pádraig Brady  <P@draigBrady.com>
15538         filevercmp, posixtm: avoid compiler warnings with -O3
15539         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
15540         * lib/posixtm.c: (IF_LINT): Define.
15541         (posix_time_parse): Use it to void a "may be used uninitialized"
15542         warning, seen only with -O3.
15544 2014-12-05  Bruno Haible  <bruno@clisp.org>
15546         Fix LDBL80_WORDS macro on big endian platforms.
15547         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
15548         LDBL80_WORDS macro.
15549         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15550         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15551         * tests/test-isfinite.c (test_isfinitel): Likewise.
15552         * tests/test-isinf.c (test_isinfl): Likewise.
15553         * tests/test-isnan.c (test_long_double): Likewise.
15554         * tests/test-isnanl.h (main): Likewise.
15555         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
15556         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
15557         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
15558         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
15559         Reported by Pádraig Brady.
15561 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
15563         git-version-gen: do not print new line characters
15564         * build-aux/git-version-gen: Use printf instead of echo and tr.
15566         gnulib-tool: recognize x:* as an absolute path
15567         * gnulib-tool (func_gnulib_dir): Add ?:* case.
15568         (func_relconcat): Likewise.
15570 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
15572         argp: avoid extraneous translation and mem leak with empty pre doc
15573         * lib/argp-help.c (argp_doc): Never translate the empty string,
15574         when "\v" is the first or last character of the string, as that
15575         has a reserved meaning to return the header info from a po file.
15576         This also fixes a small memory leak in the !post case.
15577         The issue can be seen with this command for example:
15578         LC_MESSAGES=en_US grub2-mknetdir --help
15580 2014-11-27  Daiki Ueno  <ueno@gnu.org>
15582         uniname/uniname-tests: skip if system's libunistring is used
15583         * modules/uniname/uniname-tests (Makefile.am): Skip test if
15584         uniname/uniname module is not compiled.
15586 2014-11-27  Pádraig Brady  <P@draigBrady.com>
15588         printf: fix configure check on big endian systems
15589         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
15591 2014-11-22  Daiki Ueno  <ueno@gnu.org>
15593         pipe-filter-gi, pipe-filter-ii: port to AIX
15594         On AIX 7.1, 'select' is defined as static and cannot be referred
15595         to from inline function.
15596         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
15597         the definition...
15598         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
15599         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
15601 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15603         gitlog-to-changelog: add --until
15604         * build-aux/gitlog-to-changelog: Support new --until option.
15605         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
15607 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
15609         extern-inline: update commentary about GCC bugs
15610         * m4/extern-inline.m4: Add another GCC bug number to comments.
15612 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15614         gen-uni-tables: untabify
15615         * lib/gen-uni-tables.c: Untabify.
15617 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15619         gen-uni-tables: check out-of-range values added to 3-level tables
15620         * lib/gen-uni-tables.c (output_category, output_bidi_category)
15621         (output_joining_type, output_ident_category): Check out-of-range
15622         values added to 3-level tables.
15624 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15626         gen-uni-tables: utilize 'assert'
15627         * lib/gen-uni-tables.c: Include <assert.h>.
15628         (output_category, output_combclass, output_decimal_digit_test)
15629         (output_decimal_digit, output_digit_test, output_digit)
15630         (output_numeric, get_mirror_value, fill_properties)
15631         (fill_property30, is_property_alphabetic)
15632         (is_property_default_ignorable_code_point)
15633         (is_property_uppercase, is_property_lowercase)
15634         (is_property_cased, is_property_case_ignorable)
15635         (is_property_changes_when_lowercased, is_property_iso_control)
15636         (is_property_math, fill_arabicshaping, output_joining_group)
15637         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
15638         (output_wbp, fill_org_gbp, get_decomposition)
15639         (output_decomposition, fill_composition_exclusions)
15640         (debug_output_composition_tables, output_composition_tables)
15641         (redistribute_casefolding_rules, output_casing_rules): Use
15642         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
15643         reporting.
15645 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15647         gen-uni-tables: cosmetic improvements
15648         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
15649         variables specification.
15650         (is_outdigit): Remove unused function.
15652 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
15654         fcntl-h-tests: port to PA-RISC GNU/Linux
15655         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
15657 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15659         fts: port to C89
15660         Problem reported for MSVC 16 by Gisle Vanem in:
15661         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
15662         * lib/fts.c (fts_build): Avoid declaration before statement.
15664 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15666         unistd: port to iOS
15667         Problem reported by André Klitzing in:
15668         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
15669         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
15671 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
15673         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
15674         Problem reported by Alan Modra in:
15675         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
15676         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
15677         Always cast the function arg, reverting this part of the previous
15678         change.
15680 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
15682         obstack: avoid potentially-nonportable function casts
15683         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
15684         Remove, replacing with ...
15685         (call_chunkfun, call_freefun): New static functions.
15686         All uses changed.  Avoid potentially-nonportable casts.
15687         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
15688         (_obstack_begin_worker): Omit last two args, since they
15689         rely on potentially-nonportable casts.  All callers changed.
15690         * lib/obstack.h (_OBSTACK_CAST): New macro.
15691         Use it everywhere the old API used a potentially-nonportable cast.
15692         The new API doesn't cast.
15693         (struct obstack): Use unions rather than requiring
15694         potentially-nonportable casts.
15695         (obstack_chunkfun, obstack_freefun): Return void.
15697 2014-11-03  Alan Modra  <amodra@gmail.com>
15699         obstack: fix macro return values
15700         * lib/obstack.h (obstack_next_free): Return void *.
15701         (obstack_1grow_fast, obstack_blank_fast): Return void.
15702         For __GNUC__ macros:
15703         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
15704         For !__GNUC__ macros:
15705         (obstack_make_room, obstack_grow, obstack_grow0)
15706         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
15708 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15710         obstack: do not assume system-supplied obstack is size_t safe
15711         * m4/obstack.m4: New file.
15712         * modules/obstack (Files): Add it.
15714         obstack: port to platforms that #define __alignof__
15715         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
15716         not if !_LIBC.  We don't know of any platforms that #define
15717         __alignof__, but it might be useful in tests.  Conversely,
15718         glibc assumes GCC.
15720 2014-11-03  Pádraig Brady  <P@draigBrady.com>
15722         linkat: don't unconditionally replace on GNU/Linux
15723         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
15724         was redundant for a few reasons.  It was present to support compiling
15725         on new systems but running on the old narrow window of Linux 2.6.1[67].
15726         It setup and cleaned up test files which weren't actually used.
15727         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
15728         implicit in the following check.
15730 2014-11-03  Pádraig Brady  <P@draigBrady.com>
15732         linkat: wrap to handle symlinks on OS X 10.10
15733         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
15734         but not usable because it doesn't support creating hardlinks
15735         to symlinks.  Therefore add a generic test for this capability
15736         and fallback to our emulation if linkat() fails with ENOTSUP.
15738 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15740         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
15741         * doc/posix-functions/open.texi (open):
15742         * doc/posix-functions/openat.texi (openat):
15743         Document that these functions do not set errno to ELOOP when
15744         a symlink is opened with O_NOFOLLOW.
15746 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
15748         obstack: add NEWS entry for recent incompatible changes
15749         * NEWS: Describe recent changes.
15751 2014-10-30  Pádraig Brady  <P@draigBrady.com>
15753         mountlist: don't use libmount to decide on dummy/remote
15754         * lib/mountlist.c (read_file_system_list): Don't use the libmount
15755         routines to determine whether a file system is dummy or remote,
15756         as they're not currently compatible.  For example the remoteness
15757         is determined on file system type (for which the list seems incomplete),
15758         rather than simply checking for a ':' in the device name.
15759         Also libmount currently determines that 'tmpfs' is a dummy file system
15760         even though it has associated storage.
15762 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15764         obstack: prefer __alignof__ to alignof
15765         This is for portability to pre-4.7 GCC when compiling glibc.
15766         See Joseph S. Myers in:
15767         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
15768         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
15769         New macro, defined by including and using <alignof.h>.
15770         (MAX): New macro.
15771         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
15772         Do not use enums as they are not portable to some broken compilers.
15773         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
15775         obstack: prefer alignof to calculating alignments by hand
15776         * lib/obstack.c: Include <stdalign.h>.
15777         (struct fooalign): Remove.
15778         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
15779         * modules/obstack (Depends-on): Add stdalign.
15781 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
15783         obstack: use size_t alignments and check for overflow
15784         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
15785         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
15786         * lib/obstack.h (struct obstack.alignment_mask):
15787         Use _OBSTACK_SIZE_T, not int, for alignments.
15788         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
15789         overflows, e.g., when adding the alignment.
15791 2014-10-29  Alan Modra  <amodra@gmail.com>
15793         obstack: 64-bit obstack support, part 3
15794         This finally enables full 64-bit obstack support.  The glibc
15795         shared library specific code is removed from obstack.c too, and
15796         the error handling code conditionally compiled under control of
15797         another macro, _OBSTACK_NO_ERROR_HANDLER.
15798         * lib/obstack.h: Include string.h earlier.
15799         (_OBSTACK_INTERFACE_VERSION): Define.
15800         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
15801         * lib/obstack.c: Don't include shlib-compat.h.
15802         (OBSTACK_INTERFACE_VERSION): Delete.
15803         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
15804         glibc code is compatible with version 2.  Don't include stdio.h for
15805         __GNU_LIBRARY.
15806         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
15807         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
15808         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
15809         glibc shared library specific source.
15811         obstack: 64-bit obstack support, part 2
15812         This gets us 4G obstack support, without changing ABI
15813         compatibility, apart from possibly introducing some
15814         signed/unsigned comparison warnings in code that uses obstack.h.
15815         a) Replace "int" size parameters, return values, and macro local vars
15816            with _OBSTACK_SIZE_T, an "unsigned int" for now.
15817         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
15818         c) Make all obstack macros checking available room use obstack_room.
15819            "next_free + desired > chunk_limit" may wrap the lhs for chunks
15820            allocated near the top of memory.
15821         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
15822         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
15823         in place of "int" size parameters, return values and local vars.
15824         (_CHUNK_SIZE_T): Define.
15825         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
15826         union use an _OBSTACK_SIZE_T integer type.
15827         For __GNUC__ versions of the following macros...
15828         (obstack_room): Rename local var.
15829         (obstack_make_room): Use obstack_room.
15830         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
15831         obstack_int_grow, obstack_blank): Likewise.
15832         (obstack_finish): Use unsigned comparison when comparing aligned
15833         next_free against chunk_limit.
15834         (obstack_free): Cast OBJ to remove possible const qualifier.
15835         For !__GNUC__ versions of the following macros...
15836         (obstack_make_room): Use obstack_room.
15837         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
15838         obstack_int_grow, obstack_blank): Likewise.
15839         (obstack_finish): Use unsigned comparision when comparing aligned
15840         next_free against chunk_limit.
15841         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
15842         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
15843         _OBSTACK_SIZE_T.
15844         (_obstack_begin, _obstack_begin_1): Likewise.
15845         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
15846         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
15848         obstack: 64-bit obstack support, part 1
15849         a) Correct calls to alloc function, to use a size_t arg.  "long" is
15850            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
15851            and "size_t" 64 bits.
15852         b) Consolidate _obstack_begin and _obstack_begin1 code.
15853         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
15854         use "size_t" rather than "long".
15855         (_obstack_begin, _obstack_begin1): Likewise.
15856         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
15857         obstack_chunkfun): Update alloc function casts.
15858         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
15859         (chunkfun_type, freefun_type): New typdefs.
15860         (_obstack_begin_worker): Split out from ..
15861         (_obstack_begin, _obstack_begin_1): ..here.
15863         obstack: tidy part 2
15864         a) Don't be concerned about "not polluting the namespace with stddef.h
15865            symbols" in obstack.h, since gnulib string.h includes stddef.h
15866            anyway, and it seems unlikely that anyone would care.
15867         b) Don't roll our own slow memcpy in _obstack_newchunk.
15868         c) Rename obstack_free to _obstack_free.  This makes the naming
15869            consistent with other obstack functions and obviates the need for
15870            __obstack_free.  Ancient obstack.c defined both obstack_free and
15871            _obstack_free.  We continue to do that for _LIBC via an alias.
15872         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
15873            is clever, but nowadays gcc warns on undefined macros.  You'll get
15874            an undefined macro warning if simulating an old gcc with -U__GNUC__
15875            -U__GNUC_MINOR__ -D__GNUC__=1.
15876         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
15877         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
15878         (__obstack_free): Delete, update refs.
15879         (_obstack_free): Rename from obstack_free.
15880         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
15881         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
15882         * lib/obstack.c: Don't include stddef.h.
15883         (COPYING_UNIT): Delete.
15884         (_obstack_begin): Formatting fix.
15885         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
15886         (_obstack_free): Rename from __obstack_free, update alias.  Move
15887         undef of obstack_free to where it is needed.
15889         obstack: tidy part 1
15890         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
15891            to me, and result in overlong lines after later patches.
15892         b) Move error handling code, to avoid a forward declaration and to
15893            simplify later patches in this series.
15894         * lib/obstack.h (struct obstack <temp>): Rename fields of union
15895         and update all uses.
15896         * lib/obstack.c: Include stdlib.h earlier.
15897         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
15898         in file.
15899         (print_and_abort): Remove now redundant forward declaration.
15901 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15903         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
15904         Without this change, in bleeding-edge fileutils Autoconf complains
15905         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
15906         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
15907         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
15908         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
15910 2014-10-24  Daiki Ueno  <ueno@gnu.org>
15912         iconv: avoid false detection of non-working iconv
15913         The INBUF arguments of iconv can be either 'const char **'
15914         or 'char **'.  If CC is g++, the difference causes a compile error
15915         and thus leads to a false detection of non-working iconv.
15916         Reported by Eli Zaretskii and Werner LEMBERG in:
15917         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
15918         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
15919         iconv.  Bump serial number.
15921 2014-10-23  Pádraig Brady  <P@draigBrady.com>
15923         bootstrap: print more diagnostics for missing programs
15924         * build-aux/bootstrap: only suppress stderr when checking for
15925         alternative program names.  This supports programs issuing non
15926         standard error messages.
15928 2014-10-23  Pádraig Brady  <P@draigBrady.com>
15930         bootstrap: only update the gnulib submodule
15931         * build-aux/bootstrap: Restrict the "submodule update" command
15932         to the gnulib path.
15934 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
15936         symlinkat: port to AIX 7.1
15937         * doc/posix-functions/symlinkat.texi (symlinkat):
15938         Mention AIX porting problem.
15939         * lib/symlinkat.c: Always include errno.h.
15940         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
15941         * lib/unistd.in.h (symlinkat): Add replacement machinery.
15942         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
15943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
15944         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
15945         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
15946         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
15948         readlinkat: port to AIX 7.1
15949         * doc/posix-functions/readlink.texi (readlink):
15950         * doc/posix-functions/readlinkat.texi (readlinkat):
15951         Mention AIX porting problem.
15952         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
15953         New function.
15954         * lib/unistd.in.h (readlinkat): Add replacement machinery.
15955         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
15956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
15957         * modules/readlinkat (configure.ac): Also compile replacement
15958         if REPLACE_READLINKAT.
15959         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
15961 2014-10-12  Karl Berry  <karl@gnu.org>
15963         * doc/posix-functions/dirname.texi: remove spurious {.
15965 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
15967         basename, dirname: Improve documentation.
15968         * doc/posix-functions/basename.texi: Mention dirname module and
15969         base_name() function.
15970         * doc/posix-functions/dirname.texi: Mention dir_name() and
15971         mdir_name() functions.
15972         Suggested by Werner LEMBERG <wl@gnu.org>.
15974 2014-09-24  Jim Meyering  <meyering@fb.com>
15976         exclude: declare exclude_patopts static
15977         * lib/exclude.c (exclude_patopts): Declare static,
15978         to avoid triggering a -Wmissing-prototypes warning.
15979         The alternative (declaring it in the .h file) would
15980         require publicizing the private "struct patopts".
15982 2014-09-21  Werner Lemberg  <wl@gnu.org>
15984         dirname: support compilation with C++
15985         * lib/dirname.h: Add necessary C linkage declarations.
15987 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
15989         qsort_r: include <config.h>
15990         Problem reported by Tom G. Christensen in:
15991         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
15992         * lib/qsort.c [!_LIBC]: Include <config.h> first.
15994 2014-09-16  Dylan Cali  <calid1984@gmail.com>
15996         avltree-list: avoid compiler warnings (trivial)
15997         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
15998         -Werror=suggest-attribute=pure.
15999         * lib/gl_array_list.c: Likewise.
16000         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
16001         declaration to avoid -Werror=missing-prototypes.  This is not added
16002         to a header as only exported for tests.  Add (void) to the
16003         check_invariants() call to indicate we're discarding the result
16004         in this context which avoids -Werror=unused-value.  Note we don't
16005         use ignore_value here to avoid a dependency as we know we'll not
16006         be adding __attribute__((warn_unused_result)) to check_invariants().
16007         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
16009 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16011         qsort_r: new module, for GNU-style qsort_r
16012         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
16014 2014-09-15  Werner LEMBERG  <wl@gnu.org>
16016         strerror_r-posix: support compilation with C++
16017         * lib/strerror_r.c: Add necessary C linkage declarations.
16019 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
16021         fcntl-h: fix compilation with Intel C++ compiler (trivial)
16022         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
16024 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
16026         mountlist: use /proc/self/mountinfo when available
16027         Use libmount to propagate device IDs provided by Linux in
16028         /proc/self/mountinfo.  This will give more accurate output when
16029         using df in chroot'ed environments as the device IDs are not
16030         determined by stat() which may be inaccurate within the chroot.
16031         * lib/mountlist.c (read_file_system_list): Use the libmount routines
16032         from util-linux to parse "/proc/self/mountinfo" or fall back to
16033         standard getmntent() processing.
16034         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
16035         getmntent() is used, as is the case on GNU/Linux.
16037 2014-09-07  Eric Wong  <normalperson@yhbt.net>
16039         users.txt: add cmogstored
16040         cmogstored has used gnulib since the beginning in 2012 to support
16041         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
16043 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
16045         Trivial change.
16046         * gnulib-tool: Use same options as build-aux/bootstrap to download
16047         PO files.
16049 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
16051         Trivial change.
16052         * gnulib-tool: Fallback to wget when rsync of PO files fails.
16054 2014-09-04  Eric Blake  <eblake@redhat.com>
16056         maintainer-makefile: add syntax check for useless ';;'
16057         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
16059 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
16061         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
16062         Problem reported by Assaf Gordon in:
16063         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
16064         Apparently Ubuntu is doing some fancy link-time optimization
16065         that doesn't work with -lpthread but does work with -pthread.
16066         Work around the bug by preferring -pthread to -lpthread.
16067         * m4/pthread.m4 (gl_PTHREAD_CHECK):
16068         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
16069         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16070         Treat -pthread like -lpthread.
16072 2014-09-04  Eric Blake  <eblake@redhat.com>
16074         error: drop spurious semicolon
16075         * lib/error.c (__error_at_line): Fix ';;'.
16077 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16079         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
16080         * m4/gnulib-common.m4 (AC_C_RESTRICT):
16081         Override AC_C_RESTRICT unconditionally.
16082         Update from autoconf, incorporating:
16083         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
16084         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
16086 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16088         manywarnings: add GCC 4.9 warnings
16089         Also, make it easier to maintain this in the future.
16090         * build-aux/gcc-warning.spec: Add -Wabi-tag,
16091         -Wconditionally-supported, -Wdelete-incomplete,
16092         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
16093         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
16094         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
16095         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
16096         only for older GCC versions that need them.  Handle
16097         -Wnormalized=nfc specially, so that the 'comm' command used
16098         for maintenance doesn't get confused.
16100 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16102         vasnprintf: fix bugs in width computation
16103         * lib/vasnprintf.c (VASNPRINTF):
16104         Rework previous change, which introduced a bug,
16105         to avoid the warning in a different way.
16106         Avoid undefined behavior if the width arg is less than -INT_MAX.
16107         Avoid unnecessary use of HAS_WIDTH local.
16109 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
16111         vasnprintf: Avoid signed/unsigned comparison warning.
16112         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
16113         compare end addr of generated string w/ maximum end addr.
16115 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
16117         parse-datetime: Avoid pointer difference.
16118         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
16119         instead of calculating difference of pointers.  This removes an
16120         annoying warning, devoid of any use.
16122 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16124         qsort_r: new module, for GNU-style qsort_r
16125         This works even on FreeBSD, which has an incompatible qsort_r API.
16126         * MODULES.html.sh: Add it.
16127         * doc/glibc-functions/qsort_r.texi: It's now supported.
16128         * lib/qsort.c: New file, taken from glibc with minor changes
16129         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
16130         removed.
16131         * lib/qsort_r.c: New file, compiled only on FreeBSD.
16132         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
16133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
16134         * modules/qsort_r, modules/qsort_r-tests: New files.
16135         * modules/stdlib (Makefile): Set up its defaults.
16136         * tests/test-qsort_r.c: New file.
16138 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
16140         vla: new module
16141         GNU RCS can use this, mostly for documentation I expect.  See:
16142         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
16143         * MODULES.html.sh: Add vla.
16144         * lib/vla.h, modules/vla: New files.
16146 2014-08-07  Daiki Ueno  <ueno@gnu.org>
16148         localename: make gl_locale_name_thread really thread-safe on Windows
16149         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
16150         "glthread/lock.h".
16151         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
16152         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
16154 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
16156         getpass: don't assume struct termios
16157         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
16158         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
16159         * lib/getpass.c (getpass): Port to systems lacking struct termios.
16161         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
16162         Problem reported by Jonas 'Sortie' Termansen in:
16163         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
16164         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
16165         Implement via sysconf for platforms that lack getdtablesize.
16167         vararrays: modernize AC_C_VARARRAYS for C11
16168         This backports a change I recently made to Autoconf.
16169         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
16170         VLAs are not supported, as this is what C11 does.  The old macro
16171         HAVE_C_VARARRAYS is still defined if they are supported, but is
16172         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
16174 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
16176         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
16177         * build-aux/install-reloc (func_create_wrapper): Also wrap
16178         strerror-override, stat, stat.
16180 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16182         sys_select: fix FD_ZERO problem on Solaris 10
16183         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
16184         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
16185         to expand to an expression that invoked memset without necessarily
16186         including <string.h>.  The problem was that the first include
16187         defined _SYS_TIME_H, causing the second include to short-circuit.
16188         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
16189         Also, fix what appears to be a cut-and-paste typo, by replacing
16190         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
16191         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
16193         accept: document Solaris 10 type glitch
16194         * doc/posix-functions/accept.texi (accept): Mention that
16195         Solaris 10 'accept' takes void * last arg, not socklen_t *.
16197 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
16199         extern-inline: port to FreeBSD, DragonFly
16200         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
16201         is present if either __DragonFly__ or __FreeBSD__ is defined.
16202         FreeBSD problem reported by Andrey Borzenkov in:
16203         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
16204         Also, worry about __APPLE__ only if __MACH__ is also defined,
16205         as this is more consistent with the rest of gnulib.
16206         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
16207         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
16209 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
16211         regex: Make #if/#ifdef usage consistent for DEBUG
16212         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
16213         of the inconsistent usage of #if and #ifdef as that works with
16214         both Glibc and Gnulib's style.
16216 2014-07-31  Eric Blake  <eblake@redhat.com>
16218         openat-die: use _Noreturn markup
16219         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
16220         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
16221         _Noreturn.
16223 2014-07-30  Eric Blake  <eblake@redhat.com>
16225         test-open: port to cygwin, which lacks Fortify
16226         * tests/test-open.h (ALWAYS_INLINE): New macro.
16227         (__always_inline): Don't abuse internal symbol on non-glibc.
16229 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
16231         localename: Enforce declarations before statements.
16232         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
16233         first statement.
16235 2014-07-18  Jim Meyering  <meyering@fb.com>
16237         test-userspec: don't look up numeric user names
16238         * tests/test-userspec.c: I found a system for which getpwnam("0")
16239         returned a pointer to a non-root user's entry, and that made the
16240         test fail.
16241         (T): Prefix each numeric input with "+", to inhibit lookup.
16243 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
16245         localcharset, localename: MS-Windows support for non-default locales
16246         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
16247         falling back on the default system codepage, try extracting
16248         the codepage from what 'setlocale' returns.  This allows to
16249         take into account changes of the codeset due to non-default
16250         locale set by a previous call to 'setlocale'.
16251         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
16252         Define if not already defined.
16253         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
16254         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
16255         current locale by calling 'setlocale', then converting the
16256         locale name into LCID by calling 'get_lcid'.  This allows to
16257         take into account changes in the current locale from the
16258         default one, in contrast to GetThreadLocale.
16260 2014-07-14  Daiki Ueno  <ueno@gnu.org>
16262         announce-gen: avoid failure when Digest::SHA is installed
16263         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
16264         Digest::SHA1->new in print_checksums fails.
16265         * build-aux/announce-gen (digest_classes): New associative array
16266         for available message digest implementations.
16267         (print_locations): Use it.
16269 2014-07-13  Pádraig Brady  <P@draigBrady.com>
16271         gettext: revert "update macros to version 0.19"
16272         This reverts commit 9b9370ca, as it currently requires that
16273         developers of any project that explicitly uses the gettext module
16274         or implicitly uses it through the utimens-tests or
16275         futimens-tests modules, use gettext >= 0.19.
16276         However there are some stability and availablity issues with
16277         that version at present.  We can reinstate this soon, when stability
16278         is addressed and packages are more readily available.
16280 2014-07-12  Jim Meyering  <meyering@fb.com>
16282         regex: don't deref NULL upon heap allocation failure
16283         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
16284         failure in one more place.
16285         To trigger the segfault, configure grep -with-included-regex,
16286         build it, and run these commands:
16287         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
16288         I discovered this while replying to a private report from
16289         Jens Schleusener about excessive memory consumption by grep
16290         when using a regular expression like the one above.
16292 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
16294         regex: fix memory leak in compiler
16295         Fix by Andreas Schwab in:
16296         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
16297         * lib/regcomp.c (parse_reg_exp): Deallocate partially
16298         constructed tree before returning error.
16300 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16302         announce-gen: avoid perl warnings
16303         * build-aux/announce-gen: add two minor checks to avoid
16304         "use of uninitialized value" warnings when command-line parameters are
16305         missing.
16307 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16309         localename: avoid -Wsuggest-attribute={const,pure} warnings
16310         * lib/localename.c (string_has): Tag internal function as pure.
16311         * lib/localename.h (gl_locale_name_default): Tag extern declaration
16312         as const when appropriate.
16314 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
16316         nl_langinfo: Fix last change.
16317         * lib/nl_langinfo.c (includes): Drop redundant include.
16319 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16321         error: Fix -Wundef warnings in glibc
16322         * lib/error.c [_LIBC]: Define default macros for
16323         glibc.
16324         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
16325         Check _LIBC before STRERROR_R_CHAR_P.
16327         error: Sync from glibc master
16328         * lib/error.c [_LIBC]: Remove INTUSE usage.
16329         (error_tail): Remove unused macro ALLOCA_LIMIT.
16330         Fix potential buffer overflow.  Fix potential NULL dereference
16331         in strcmp.
16333 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
16335         nl_langinfo: fix build under mingw
16336         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
16338 2014-07-09  Andrew D Warshall  <warshall@99main.com>
16340         mountlist: do not classify a bind-mounted dir entry as "dummy"
16341         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
16342         1-argument getmntent() (instead of assuming absence).
16344 2014-07-08  Eric Blake  <eblake@redhat.com>
16346         maint.mk: less syntax-check noise when SIGPIPE is ignored
16347         * top/maint.mk (_sc_header_without_use)
16348         (sc_require_config_h_first): Parse full list.
16350 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
16351             Paul Eggert  <eggert@cs.ucla.edu>
16353         nl_langinfo: CODESET on MS-Windows and more items from localeconv
16354         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
16355         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
16356         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
16357         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
16358         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
16359         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
16360         Include <stdio.h> if Microsoft Windows.
16361         Include <time.h> if !REPLACE_NL_LANGINFO.
16362         (ctype_codeset): New function, taken from rpl_nl_langinfo,
16363         and with improvements for Microsoft Windows.
16364         (rpl_nl_langinfo): Use it.
16365         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
16366         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
16367         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
16368         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
16369         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
16370         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
16371         corresponding values returned by 'localeconv'.  Compute the values
16372         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
16373         'strftime' with a suitable struct tm value.
16375 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16377         Bruno Haible has stepped down as maintainer.
16378         See Karl Berry in:
16379         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
16380         Daiki Ueno has volunteered to maintain libunistring; see:
16381         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
16382         * modules/gen-uni-tables, modules/libunistring:
16383         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
16384         * modules/unicase/base, modules/unicase/cased:
16385         * modules/unicase/empty-prefix-context:
16386         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
16387         * modules/unicase/locale-language, modules/unicase/special-casing:
16388         * modules/unicase/tocasefold, modules/unicase/tolower:
16389         * modules/unicase/totitle, modules/unicase/toupper:
16390         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
16391         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
16392         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
16393         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
16394         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
16395         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
16396         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
16397         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
16398         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
16399         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
16400         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
16401         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
16402         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
16403         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
16404         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
16405         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
16406         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
16407         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
16408         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
16409         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
16410         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
16411         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
16412         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
16413         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
16414         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
16415         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
16416         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
16417         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
16418         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
16419         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
16420         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
16421         * modules/unicase/ulc-casexfrm, modules/unicodeio:
16422         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
16423         * modules/uniconv/u16-conv-to-enc:
16424         * modules/uniconv/u16-strconv-from-enc:
16425         * modules/uniconv/u16-strconv-from-locale:
16426         * modules/uniconv/u16-strconv-to-enc:
16427         * modules/uniconv/u16-strconv-to-locale:
16428         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
16429         * modules/uniconv/u32-strconv-from-enc:
16430         * modules/uniconv/u32-strconv-from-locale:
16431         * modules/uniconv/u32-strconv-to-enc:
16432         * modules/uniconv/u32-strconv-to-locale:
16433         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
16434         * modules/uniconv/u8-strconv-from-enc:
16435         * modules/uniconv/u8-strconv-from-locale:
16436         * modules/uniconv/u8-strconv-to-enc:
16437         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
16438         * modules/unictype/bidicategory-all:
16439         * modules/unictype/bidicategory-byname:
16440         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
16441         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
16442         * modules/unictype/bidiclass-byname:
16443         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
16444         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
16445         * modules/unictype/block-all, modules/unictype/block-list:
16446         * modules/unictype/block-of, modules/unictype/block-test:
16447         * modules/unictype/category-C, modules/unictype/category-Cc:
16448         * modules/unictype/category-Cf, modules/unictype/category-Cn:
16449         * modules/unictype/category-Co, modules/unictype/category-Cs:
16450         * modules/unictype/category-L, modules/unictype/category-LC:
16451         * modules/unictype/category-Ll, modules/unictype/category-Lm:
16452         * modules/unictype/category-Lo, modules/unictype/category-Lt:
16453         * modules/unictype/category-Lu, modules/unictype/category-M:
16454         * modules/unictype/category-Mc, modules/unictype/category-Me:
16455         * modules/unictype/category-Mn, modules/unictype/category-N:
16456         * modules/unictype/category-Nd, modules/unictype/category-Nl:
16457         * modules/unictype/category-No, modules/unictype/category-P:
16458         * modules/unictype/category-Pc, modules/unictype/category-Pd:
16459         * modules/unictype/category-Pe, modules/unictype/category-Pf:
16460         * modules/unictype/category-Pi, modules/unictype/category-Po:
16461         * modules/unictype/category-Ps, modules/unictype/category-S:
16462         * modules/unictype/category-Sc, modules/unictype/category-Sk:
16463         * modules/unictype/category-Sm, modules/unictype/category-So:
16464         * modules/unictype/category-Z, modules/unictype/category-Zl:
16465         * modules/unictype/category-Zp, modules/unictype/category-Zs:
16466         * modules/unictype/category-all, modules/unictype/category-and:
16467         * modules/unictype/category-and-not, modules/unictype/category-byname:
16468         * modules/unictype/category-longname, modules/unictype/category-name:
16469         * modules/unictype/category-none, modules/unictype/category-of:
16470         * modules/unictype/category-or, modules/unictype/category-test:
16471         * modules/unictype/category-test-withtable:
16472         * modules/unictype/combining-class:
16473         * modules/unictype/combining-class-all:
16474         * modules/unictype/combining-class-byname:
16475         * modules/unictype/combining-class-longname:
16476         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
16477         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
16478         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
16479         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
16480         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
16481         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
16482         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
16483         * modules/unictype/digit, modules/unictype/joininggroup-all:
16484         * modules/unictype/joininggroup-byname:
16485         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
16486         * modules/unictype/joiningtype-all:
16487         * modules/unictype/joiningtype-byname:
16488         * modules/unictype/joiningtype-longname:
16489         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
16490         * modules/unictype/mirror, modules/unictype/numeric:
16491         * modules/unictype/property-all, modules/unictype/property-alphabetic:
16492         * modules/unictype/property-ascii-hex-digit:
16493         * modules/unictype/property-bidi-arabic-digit:
16494         * modules/unictype/property-bidi-arabic-right-to-left:
16495         * modules/unictype/property-bidi-block-separator:
16496         * modules/unictype/property-bidi-boundary-neutral:
16497         * modules/unictype/property-bidi-common-separator:
16498         * modules/unictype/property-bidi-control:
16499         * modules/unictype/property-bidi-embedding-or-override:
16500         * modules/unictype/property-bidi-eur-num-separator:
16501         * modules/unictype/property-bidi-eur-num-terminator:
16502         * modules/unictype/property-bidi-european-digit:
16503         * modules/unictype/property-bidi-hebrew-right-to-left:
16504         * modules/unictype/property-bidi-left-to-right:
16505         * modules/unictype/property-bidi-non-spacing-mark:
16506         * modules/unictype/property-bidi-other-neutral:
16507         * modules/unictype/property-bidi-pdf:
16508         * modules/unictype/property-bidi-segment-separator:
16509         * modules/unictype/property-bidi-whitespace:
16510         * modules/unictype/property-byname:
16511         * modules/unictype/property-case-ignorable:
16512         * modules/unictype/property-cased:
16513         * modules/unictype/property-changes-when-casefolded:
16514         * modules/unictype/property-changes-when-casemapped:
16515         * modules/unictype/property-changes-when-lowercased:
16516         * modules/unictype/property-changes-when-titlecased:
16517         * modules/unictype/property-changes-when-uppercased:
16518         * modules/unictype/property-combining:
16519         * modules/unictype/property-composite:
16520         * modules/unictype/property-currency-symbol:
16521         * modules/unictype/property-dash:
16522         * modules/unictype/property-decimal-digit:
16523         * modules/unictype/property-default-ignorable-code-point:
16524         * modules/unictype/property-deprecated:
16525         * modules/unictype/property-diacritic:
16526         * modules/unictype/property-extender:
16527         * modules/unictype/property-format-control:
16528         * modules/unictype/property-grapheme-base:
16529         * modules/unictype/property-grapheme-extend:
16530         * modules/unictype/property-grapheme-link:
16531         * modules/unictype/property-hex-digit:
16532         * modules/unictype/property-hyphen:
16533         * modules/unictype/property-id-continue:
16534         * modules/unictype/property-id-start:
16535         * modules/unictype/property-ideographic:
16536         * modules/unictype/property-ids-binary-operator:
16537         * modules/unictype/property-ids-trinary-operator:
16538         * modules/unictype/property-ignorable-control:
16539         * modules/unictype/property-iso-control:
16540         * modules/unictype/property-join-control:
16541         * modules/unictype/property-left-of-pair:
16542         * modules/unictype/property-line-separator:
16543         * modules/unictype/property-logical-order-exception:
16544         * modules/unictype/property-lowercase, modules/unictype/property-math:
16545         * modules/unictype/property-non-break:
16546         * modules/unictype/property-not-a-character:
16547         * modules/unictype/property-numeric:
16548         * modules/unictype/property-other-alphabetic:
16549         * modules/unictype/property-other-default-ignorable-code-point:
16550         * modules/unictype/property-other-grapheme-extend:
16551         * modules/unictype/property-other-id-continue:
16552         * modules/unictype/property-other-id-start:
16553         * modules/unictype/property-other-lowercase:
16554         * modules/unictype/property-other-math:
16555         * modules/unictype/property-other-uppercase:
16556         * modules/unictype/property-paired-punctuation:
16557         * modules/unictype/property-paragraph-separator:
16558         * modules/unictype/property-pattern-syntax:
16559         * modules/unictype/property-pattern-white-space:
16560         * modules/unictype/property-private-use:
16561         * modules/unictype/property-punctuation:
16562         * modules/unictype/property-quotation-mark:
16563         * modules/unictype/property-radical:
16564         * modules/unictype/property-sentence-terminal:
16565         * modules/unictype/property-soft-dotted:
16566         * modules/unictype/property-space:
16567         * modules/unictype/property-terminal-punctuation:
16568         * modules/unictype/property-test, modules/unictype/property-titlecase:
16569         * modules/unictype/property-unassigned-code-value:
16570         * modules/unictype/property-unified-ideograph:
16571         * modules/unictype/property-uppercase:
16572         * modules/unictype/property-variation-selector:
16573         * modules/unictype/property-white-space:
16574         * modules/unictype/property-xid-continue:
16575         * modules/unictype/property-xid-start:
16576         * modules/unictype/property-zero-width, modules/unictype/scripts:
16577         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
16578         * modules/unictype/syntax-c-whitespace:
16579         * modules/unictype/syntax-java-ident:
16580         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
16581         * modules/unigbrk/u16-grapheme-breaks:
16582         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
16583         * modules/unigbrk/u32-grapheme-breaks:
16584         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
16585         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
16586         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
16587         * modules/unigbrk/uc-is-grapheme-break:
16588         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
16589         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
16590         * modules/unilbrk/u16-width-linebreaks:
16591         * modules/unilbrk/u32-possible-linebreaks:
16592         * modules/unilbrk/u32-width-linebreaks:
16593         * modules/unilbrk/u8-possible-linebreaks:
16594         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
16595         * modules/unilbrk/ulc-possible-linebreaks:
16596         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
16597         * modules/uniname/uniname, modules/uninorm/base:
16598         * modules/uninorm/canonical-decomposition:
16599         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
16600         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
16601         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
16602         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
16603         * modules/uninorm/nfkc, modules/uninorm/nfkd:
16604         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
16605         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
16606         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
16607         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
16608         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
16609         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
16610         * modules/unistdio/base, modules/unistdio/u-printf-args:
16611         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
16612         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
16613         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
16614         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
16615         * modules/unistdio/u16-u16-sprintf:
16616         * modules/unistdio/u16-u16-vasnprintf:
16617         * modules/unistdio/u16-u16-vasprintf:
16618         * modules/unistdio/u16-u16-vsnprintf:
16619         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
16620         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
16621         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
16622         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
16623         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
16624         * modules/unistdio/u32-u32-asnprintf:
16625         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
16626         * modules/unistdio/u32-u32-sprintf:
16627         * modules/unistdio/u32-u32-vasnprintf:
16628         * modules/unistdio/u32-u32-vasprintf:
16629         * modules/unistdio/u32-u32-vsnprintf:
16630         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
16631         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
16632         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
16633         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
16634         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
16635         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
16636         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
16637         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
16638         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
16639         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
16640         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
16641         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
16642         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
16643         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
16644         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
16645         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
16646         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
16647         * modules/unistr/u16-check, modules/unistr/u16-chr:
16648         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
16649         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
16650         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
16651         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
16652         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
16653         * modules/unistr/u16-move, modules/unistr/u16-next:
16654         * modules/unistr/u16-prev, modules/unistr/u16-set:
16655         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
16656         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
16657         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
16658         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
16659         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
16660         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
16661         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
16662         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
16663         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
16664         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
16665         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
16666         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
16667         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
16668         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
16669         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
16670         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
16671         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
16672         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
16673         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
16674         * modules/unistr/u32-next, modules/unistr/u32-prev:
16675         * modules/unistr/u32-set, modules/unistr/u32-startswith:
16676         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
16677         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
16678         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
16679         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
16680         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
16681         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
16682         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
16683         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
16684         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
16685         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
16686         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
16687         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
16688         * modules/unistr/u8-check, modules/unistr/u8-chr:
16689         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
16690         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
16691         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
16692         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
16693         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
16694         * modules/unistr/u8-next, modules/unistr/u8-prev:
16695         * modules/unistr/u8-set, modules/unistr/u8-startswith:
16696         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
16697         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
16698         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
16699         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
16700         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
16701         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
16702         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
16703         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
16704         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
16705         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
16706         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
16707         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
16708         * modules/uniwbrk/base, modules/uniwbrk/table:
16709         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
16710         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
16711         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
16712         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
16713         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
16714         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
16715         * modules/uniwidth/width, modules/utf16-ucs4:
16716         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
16717         * modules/utf8-ucs4-unsafe:
16718         Change maintainer from Bruno Haible to Daiki Ueno.
16719         This is my guess at the libunistring modules; please feel free
16720         to fix if I guessed incorrectly.
16721         * modules/accept4, modules/acl, modules/acos, modules/acosf:
16722         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
16723         * modules/areadlink, modules/array-list, modules/array-mergesort:
16724         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
16725         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
16726         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
16727         * modules/binary-io, modules/bison-i18n, modules/btowc:
16728         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
16729         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
16730         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
16731         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
16732         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
16733         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
16734         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
16735         * modules/closedir, modules/concat-filename, modules/copy-file:
16736         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
16737         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
16738         * modules/csharpcomp-script, modules/csharpexec:
16739         * modules/csharpexec-script, modules/ctype, modules/diffseq:
16740         * modules/dprintf, modules/dprintf-posix, modules/dup:
16741         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
16742         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
16743         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
16744         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
16745         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
16746         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
16747         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
16748         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
16749         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
16750         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
16751         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
16752         * modules/findprog, modules/findprog-lgpl, modules/floor:
16753         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
16754         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
16755         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
16756         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
16757         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
16758         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
16759         * modules/freadable, modules/freadahead, modules/freadptr:
16760         * modules/freadseek, modules/freopen, modules/frexp:
16761         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
16762         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
16763         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
16764         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
16765         * modules/ftello, modules/full-read, modules/full-write:
16766         * modules/fwritable, modules/fwriteerror, modules/gcd:
16767         * modules/get-rusage-as, modules/get-rusage-data:
16768         * modules/getdtablesize, modules/getrusage, modules/gettext:
16769         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
16770         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
16771         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
16772         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
16773         * modules/iconv, modules/iconv-h, modules/iconv_open:
16774         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
16775         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
16776         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
16777         * modules/integer_length_ll, modules/ioctl, modules/isatty:
16778         * modules/isblank, modules/isnand, modules/isnand-nolibm:
16779         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
16780         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
16781         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
16782         * modules/javaexec, modules/javaexec-script, modules/javaversion:
16783         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
16784         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
16785         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
16786         * modules/lib-symbol-visibility, modules/libsigsegv:
16787         * modules/linked-list, modules/linkedhash-list, modules/list:
16788         * modules/localcharset, modules/locale, modules/localeconv:
16789         * modules/localename, modules/lock, modules/log, modules/log-ieee:
16790         * modules/log10, modules/log10-ieee, modules/log10f:
16791         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
16792         * modules/log1p, modules/log1p-ieee, modules/log1pf:
16793         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
16794         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
16795         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
16796         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
16797         * modules/logf, modules/logf-ieee, modules/login_tty:
16798         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
16799         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
16800         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
16801         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
16802         * modules/mbscspn, modules/mbsinit, modules/mbslen:
16803         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
16804         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
16805         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
16806         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
16807         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
16808         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
16809         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
16810         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
16811         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
16812         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
16813         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
16814         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
16815         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
16816         * modules/posix_spawn, modules/posix_spawn-internal:
16817         * modules/posix_spawn_file_actions_addclose:
16818         * modules/posix_spawn_file_actions_adddup2:
16819         * modules/posix_spawn_file_actions_addopen:
16820         * modules/posix_spawn_file_actions_destroy:
16821         * modules/posix_spawn_file_actions_init:
16822         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
16823         * modules/posix_spawnattr_getpgroup:
16824         * modules/posix_spawnattr_getschedparam:
16825         * modules/posix_spawnattr_getschedpolicy:
16826         * modules/posix_spawnattr_getsigdefault:
16827         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
16828         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
16829         * modules/posix_spawnattr_setschedparam:
16830         * modules/posix_spawnattr_setschedpolicy:
16831         * modules/posix_spawnattr_setsigdefault:
16832         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
16833         * modules/pow, modules/powf, modules/printf-frexp:
16834         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
16835         * modules/progname, modules/propername, modules/pselect:
16836         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
16837         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
16838         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
16839         * modules/read, modules/readdir, modules/readlink:
16840         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
16841         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
16842         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
16843         * modules/relocatable-script, modules/remainder:
16844         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
16845         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
16846         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
16847         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
16848         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
16849         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
16850         * modules/setlocale, modules/sh-quote, modules/shutdown:
16851         * modules/signal, modules/signbit, modules/sigpipe:
16852         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
16853         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
16854         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
16855         * modules/snippet/link-warning, modules/snippet/unused-parameter:
16856         * modules/snprintf, modules/snprintf-posix, modules/spawn:
16857         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
16858         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
16859         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
16860         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
16861         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
16862         * modules/streq, modules/strerror_r-posix, modules/striconv:
16863         * modules/striconveh, modules/striconveha, modules/strncat:
16864         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
16865         * modules/sublist, modules/sys_resource, modules/sys_utsname:
16866         * modules/sys_wait, modules/system-posix, modules/system-quote:
16867         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
16868         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
16869         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
16870         * modules/truncf, modules/truncf-ieee, modules/truncl:
16871         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
16872         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
16873         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
16874         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
16875         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
16876         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
16877         * modules/wait-process, modules/waitpid, modules/wcpcpy:
16878         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
16879         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
16880         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
16881         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
16882         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
16883         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
16884         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
16885         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
16886         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
16887         * modules/write, modules/xconcat-filename, modules/xlist:
16888         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
16889         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
16890         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
16891         * modules/y0, modules/y1, modules/yn:
16892         Remove Bruno Haible as maintainer; if he's the sole maintainer,
16893         change the maintainer to 'all'.  Let's hope someone volunteers.
16895 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
16897         mktime: merge #if/#ifdef usage from glibc
16898         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
16899         as that works with both Glibc's and Gnulib's style.
16900         See thread starting at Siddhesh Poyarekar's bug report at:
16901         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
16903 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
16905         git-version-gen: improve option descriptions
16906         * build-aux/git-version-gen: Mention that --prefix and --fallback
16907         have a mandatory argument.
16909 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
16911         regex: fix memory leak in compiler
16912         Fix by Andreas Schwab in:
16913         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
16914         * lib/regcomp.c (parse_expression): Deallocate partially
16915         constructed tree before returning error.
16917         regex: merge patch from libc
16918         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
16919         Combine __USE_BSD and __USE_SVID into __USE_MISC.
16920         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
16922 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
16924         acl: port to gcc -Wredundant-decls
16925         From a request by Dmitry Antipov in:
16926         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
16927         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
16928         "#ifndef _GL_ACL_H".
16930 2014-06-11  Bruce Korb  <bkorb@gnu.org>
16931         Jim Meyering  <meyering@fb.com>
16933         parse-duration: eliminate 68-year duration limit
16934         * lib/parse-duration.c: Include "intprops.h".
16935         (TIME_MAX): Rename to MAX_DURATION and define to
16936         TYPE_MAXIMUM(time_t).
16937         * modules/parse-duration (Depends-on): Add intprops.
16938         Reported by Jonas 'Sortie' Termansen.
16940 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16942         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
16943         * modules/pthread (Depends-on): Add 'extensions', as it defines
16944         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
16945         (configure.ac-early): New section.
16946         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
16947         it is no longer needed.
16949 2014-06-14  Pádraig Brady  <P@draigBrady.com>
16951         pthread: define thread-safe macros on some platforms
16952         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
16953         for thread-safe operation on some platforms.
16955 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
16957         regex: don't be multithreaded if USE_UNLOCKED_IO.
16958         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
16959         * lib/regex_internal.h: Do not use multithreaded version if
16960         USE_UNLOCKED_IO is defined.  This is a hack, but it works
16961         around a porting bug with coreutils 8.22 on AIX 7.1.
16963 2014-06-11  Daiki Ueno  <ueno@gnu.org>
16965         gettext: update macros to version 0.19
16966         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
16967         depend on gl_EXTERN_INLINE and drop support for older Bison
16968         versions.
16970 2014-06-10  Pádraig Brady  <P@draigBrady.com>
16972         select,poll: fix console handle check on windows 8
16973         lib/poll.c (IsConsoleHandle): Change from testing the lower
16974         2 bits of the handle to the more expensive but accurate syscall.
16975         lib/select.c: Likewise.
16977 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
16979         select: fix waiting on anonymous pipes on MS-Windows
16980         * lib/select.c (rpl_select): Fall back to polling when select()
16981         indicates there is nothing to check, while due to the timeout not
16982         expiring, activity is indicated on one of the handles.
16983         Also clear the TIMEOUT argument if the timer does expire.
16985 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
16987         times: fix to return non constant value on MS-Windows
16988         * lib/times.c (times): Don't use the process creation time,
16989         rather clock() which on windows returns the number of
16990         clock ticks since the process started.
16992 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
16994         isatty: fix to work on windows 8
16995         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
16996         2 bits of the handle to the more expensive but accurate syscall.
16998 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
17000         maint: fix typo in fdl.texi
17001         * doc/fdl.texi: Fix typo (missing '@').
17002         Somehow this was in fdl.texi but not fdl-1.3.texi.
17004 2014-06-06  Ben Walton  <bdwalton@gmail.com>
17006         mountlist: avoid hasmntopt const type warning on solaris
17007         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
17008         with char * instead of const char *.  Passing the constant string
17009         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
17010         to avoid the warning.
17012 2014-06-04  Eric Blake  <eblake@redhat.com>
17014         maintainer-makefile: delete obsolete code
17015         * top/maint.mk (build_aux): Drop old code, as threatened.
17017         maintainer-makefile: avoid spurious error messages
17018         * top/maint.mk (syntax-check): Guard definition and use of
17019         $(shell) by whether Makefile is present.
17021 2014-06-03  Ben Walton  <bdwalton@gmail.com>
17023         rename: avoid unused-but-set-variable compiler warning
17024         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
17025         it is possible that dst_exists may be set but not used.  Mark it with
17026         the unused attribute to avoid compiler warnings.
17028 2014-06-02  Ben Walton  <bdwalton@gmail.com>
17030         rename: mark a label as potentially unused
17031         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
17032         by marking the out label as potentially unused.
17033         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
17035 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
17037         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
17038         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
17040 2014-06-02  Ben Walton  <bdwalton@gmail.com>
17042         acl: apply pure attribute to two functions
17043         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
17044         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
17046 2014-06-01  Pádraig Brady  <P@draigBrady.com>
17048         gnulib-common.m4: add _GL_UNUSED_LABEL
17049         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
17050         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
17052 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
17054         dup2, fcntl, fcntl-h: port to AIX 7.1
17055         This fixes some porting problems discovered when testing the latest
17056         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
17057         in grep but it could be important for other applications.
17058         * doc/posix-functions/dup2.texi:
17059         * doc/posix-functions/fcntl.texi:
17060         * doc/posix-headers/fcntl.texi:
17061         Document AIX bugs.
17062         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
17063         Define to 0 if outside 'int' range.
17064         * m4/dup2.m4 (gl_FUNC_DUP2):
17065         * m4/fcntl.m4 (gl_FUNC_FCNTL):
17066         Check for getdtablesize.  If it's available, test a value just
17067         outside its range instead of testing 1000000.  When cross-compiling,
17068         guess that AIX will fail this improved test.
17070 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
17072         printf, config.rpath: Port to FreeBSD 10.
17073         Problem reported by Tijl Coosemans in:
17074         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
17075         * build-aux/config.rpath (hardcode_libdir_flag_spec)
17076         (hardcode_direct): Simplify FreeBSD configuration.
17077         (library_names_spec): Don't mishandle FreeBSD 10+.
17078         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
17079         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
17080         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
17081         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
17082         Don't mishandle FreeBSD 10+ when cross-compiling.
17084         ftoastr: work around compiler bug in IBM xlc 12.1
17085         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
17086         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
17087         around a compiler bug in IBM xlc 12.1.0.0: it complains
17088         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
17089         _GL_FLT_PREC_BOUND.'
17091 2014-05-30  Kieran Colford  <colfordk@gmail.com>
17093         valgrind-tests: fixed misleading help message
17094         * m4/valgrind-tests.m4: The help message generated by configure
17095         implied that valgrind was disabled by default, which it wasn't.
17096         Adjusted the help message using s/enable/disable/ to clarify.
17098 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
17100         isfinite, isinf, isnan tests: fix for little-endian PowerPC
17101         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
17102         first double of a PowerPC "double double" pair.
17103         * tests/test-isinf.c (test_isinfl): Likewise.
17104         * tests/test-isnan.c (test_long_double): Likewise.
17105         * tests/test-isnanl.h (main): Likewise.
17106         * tests/test-signbit.c (test_signbitl): Likewise.
17108 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17110         exclude-tests: port to AIX 7.1
17111         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
17112         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
17113         the regex code uses locks.
17115 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
17117         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
17118         Without this fix, Emacs would sometimes call sigprocmask instead
17119         of pthread_sigmask, which is a no-no in multithreaded applications.
17120         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
17121         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17122         Suppress check for pthread_sigmask working without -lpthread if
17123         the application always links with -lpthread.  Do not link with
17124         $LIBMULTITHREAD if gl_THREADLIB is not defined.
17125         * m4/timer_time.m4 (gl_TIMER_TIME):
17126         Require gl_THREADLIB only if it is defined.  Do not append
17127         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
17129 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
17131         gnulib-tool: wget translations using --no-verbose rather than --quiet
17132         This allows the user to see error messages if any (--quiet hides them)
17133         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
17135 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
17137         gnulib-tool: adjust translation wget to avoid a https redirection
17138         Context: http://translationproject.org/latest/gnulib redirects to
17139            https://translationproject.org/latest/gnulib/
17140         Rationale: if the user falls back to wget, she doesn't have rsync and
17141         is probably in a minimal build environment, where packages such as
17142         'ca-certificates' are missing as well, resulting in a failed (and
17143         difficult to detect since ignored) translation initial fetch.
17144         Consequently let's avoid https if possible, and add the missing
17145         trailing slash.  This also avoids an unnecessary 302 redirection.
17146         * gnulib-tool: Add trailing slash to gnulib URL.
17148 2014-05-22  Pádraig Brady  <P@draigBrady.com>
17150         getlogin_r-tests: check return value rather than errno
17151         * tests/test-getlogin_r.c (main): As per POSIX we should be
17152         verifying the return value from getlogin_r() rather than errno.
17154 2014-05-22  Pádraig Brady  <P@draigBrady.com>
17156         getlogin_r-tests: fix various issues in recent change
17157         * tests/test-getlogin_r.c: Include required headers that were
17158         missed in recent commit eec20b4e.
17159         Also consistently check the errno rather than the return value from
17160         getlogin_r as POSIX only specifies that non zero is returned on error.
17161         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
17163 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17165         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
17166         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
17167         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
17168         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
17169         * lib/spawn-pipe.c:
17170         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
17171         and then 'int open64(const char *, int, ...);', which means the
17172         declaration for 'open' gets lost if we later '#undef open'.
17173         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
17174         where the compilation reported the non-fatal error "In function
17175         'openat_proc_name' ... warning: implicit declaration of function
17176         'open'".  In this case the error is relatively harmless, but in
17177         other cases it might not be so minor.
17179 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17181         xalloc: don't potentially generate invalid code for xmemdup calls
17182         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
17183         this function can initialize the newly-allocated storage with new
17184         pointers, which means this function is not malloc-like.  See:
17185         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
17187 2014-05-19  Pádraig Brady  <P@draigBrady.com>
17189         getlogin_r-tests: avoid false failure under sudo/ssh etc.
17190         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
17191         changes from commit 97249cf29 to not depend on environment variables.
17193 2014-05-18  Pádraig Brady  <P@draigBrady.com>
17195         getlogin-tests: avoid false failure under cron
17196         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
17197         since that's not what's under test.  Centos 6 was seen to return
17198         EINVAL for ttyname() when run from cron.
17200 2014-05-16  Jim Meyering  <meyering@fb.com>
17202         mbrtowc.m4: fix a comment typo
17203         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
17204         emitted documentation string.
17206 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17208         mbrlen, mbrtowc: fix bug with empty input
17209         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
17210         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
17211         so this is mainly for documentation.
17212         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
17213         (gl_FUNC_MBRTOWC): Use it.
17214         * tests/test-mbrtowc.c (main): Test for the bug.
17216 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
17218         doc: document mbrtowc and mbrlen problem with empty input
17219         * doc/posix-functions/mbrlen.texi (mbrlen):
17220         * doc/posix-functions/mbrtowc.texi (mbrtowc):
17221         Document portability problem when the input string is empty.  See:
17222         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
17224         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
17225         Problem reported by Eli Zaretskii in:
17226         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
17227         * doc/posix-functions/execl.texi (execl):
17228         * doc/posix-functions/execle.texi (execle):
17229         * doc/posix-functions/execlp.texi (execlp):
17230         * doc/posix-functions/execv.texi (execv):
17231         * doc/posix-functions/execve.texi (execve):
17232         * doc/posix-functions/execvp.texi (execvp):
17233         Mention spawn+exit problem on non-Cygwin Windows platforms.
17235 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
17237         getlogin-tests: avoid false failure under sudo/ssh etc.
17238         * modules/getlogin-tests (configure.ac): Check for ttyname().
17239         * tests/test-getlogin.c (main): Don't depend on environment variables
17240         to correlate with getlogin(), since sudo and ssh etc. can tamper
17241         with the LOGNAME and USER env vars.  Instead lookup the name from
17242         the uid associated with the stdin tty.
17244 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17246         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
17247         These were found when building the latest grep snapshot on IRIX 6.5.
17248         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
17249         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
17250         never used later.
17251         * lib/quotearg.c (quoting_options_from_style):
17252         * lib/xstrtol.c (__xstrtol):
17253         Use enum instead of 0, to pacify IRIX 6.5 cc.
17255 2014-04-18  Pádraig Brady  <P@draigBrady.com>
17257         gitlog-to-changelog: revert inclusion of git-log-fix file
17258         * build-aux/git-log-fix: Delete dummy file.
17259         * modules/gitlog-to-changelog: Don't reference (overwrite)
17260         the project specific git-log-fix file.
17262 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
17264         maint.mk: Relax the copyright check to cater for non FSF projects
17265         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
17266         to not require the "Free" suffix after the copyright years.
17268 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
17270         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
17271         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
17272         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
17273         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
17274         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
17276 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
17278         exclude: port to strict C99
17279         Strict C does not allow converting a function pointer to void *
17280         and vice versa.  Pass a pointer to a function pointer instead.
17281         * lib/exclude.c (add_exclude_file):
17282         Pass the address of the function pointer.
17283         (call_addfn): And deference the address here, to match.
17285 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
17287         regex: do not depend on malloc-gnu
17288         * modules/regex (Depends-on): Remove malloc-gnu.
17289         It's no longer needed, because of the 2012-12-29 patch
17290         "regex: port to hosts where malloc (0) == NULL".
17291         Reported by Nathan Kennedy in:
17292         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
17294 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
17296         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
17297         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
17298         * doc/posix-functions/expl.texi: Mention the workaround.
17300 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
17302         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
17303         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
17304         size to be zero even when the pointer is nonnull.  This
17305         accommodates the use case where P is malloc (0) and *PN is 0 on a
17306         host where malloc (0) yields nonnull.
17308 2014-04-09  Eric Blake  <eblake@redhat.com>
17310         fts: avoid unnecessary strlen calls
17311         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
17313 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17315         fts: avoid unnecessary strlen calls
17316         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
17317         when that can be faster than strlen.
17319 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17321         fts: avoid unnecessary strlen calls
17322         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
17323         (fts_build): Store the length of the dp->d_name entry in a local variable
17324         instead of calling strlen() several times via the above, removed macro.
17325         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
17326         run by ~4%, yet this reduces the execution time by about a third if run
17327         via "ltrace -c rm -rf some-dir".
17329 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17331         obstack: Remove ancient NeXTSTEP gcc support conditional
17332         This change will ease merging with glibc.  The "#if ... __NEXT__"
17333         causes a warning with -Wundef which glibc now enables by default.
17334         Problem reported by Will Newton in
17335         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
17336         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
17337         so go with that.
17338         * lib/obstack.h (__extension__):
17340 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17342         obstack: merge with glibc changes
17343         * lib/obstack.c, lib/obstack.h: Merge from glibc.
17344         This is mostly indenting and commentary changes.
17345         Instances of 'register' have been removed.
17347 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17349         strftime: wrap macros in "do {...} while(0)"
17350         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
17351         this macro in "do {...} while(0)" to prevent false use as a
17352         single statement, e.g., in an un-braced "{}" else-block.
17353         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
17354         (strftime_case_): Remove 'else' after 'goto' - which was the
17355         only non-fatal, un-braced use of one of the above macros.
17356         Spotted by coverity (NESTING_INDENT_MISMATCH).
17358 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17360         modechange: avoid memory leaks for invalid octal modes
17361         * lib/modechange.c (mode_compile): During the parsing of
17362         notations like +40, free the 'mc' buffer for invalid mode
17363         strings like +17777 (greater than the maximum octal mode),
17364         =18 (bad octal mode characters) or u=1 ('affected' with
17365         octal modes).
17366         Reproducer, e.g.:
17367             $ valgrind --leak-check=full chmod +17777 file
17368         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
17369         add notations +40, 00440, etc.".
17370         Spotted by coverity (RESOURCE_LEAK).
17372 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17374         gitlog-to-changelog: include a dummy git-log-fix file
17375         Problem reported by Nathan Stratton Treadway in:
17376         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
17377         * build-aux/git-log-fix: New file.
17379 2014-03-13  Jim Meyering  <meyering@fb.com>
17381         gitlog-to-changelog: also include the file, git-log-fix
17382         * modules/gitlog-to-changelog (Files): Add git-log-fix.
17383         Reported by Assaf Gordon.
17385 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
17387         regex: port to OS X 10.8.5 en_US.UTF-8 locale
17388         This fixes a bug when ignoring case and when comparing the
17389         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
17390         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
17391         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
17392         titlecase letter is neither lowercase nor uppercase, but
17393         uppercasing the titlecase letter (via towupper) yields the
17394         uppercase letter, so the two letters should match when ignoring case.
17395         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
17396         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
17397         Don't test whether a character is lowercase before uppercasing it.
17399 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
17401         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
17402         This is basically one of the options Bruno Haible proposed in:
17403         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
17404         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
17405         * lib/stdint.in.h: Use it.
17406         * modules/stdint (Depends-on): Add sys_types.
17408 2014-02-26  Pádraig Brady  <P@draigBrady.com>
17410         parse-datetime: fix crash or infloop in TZ="" parsing
17411         * lib/parse-datetime.y (parse_datetime): Break out of the
17412         TZ="" parsing loop once the second significant " is found.
17413         Also skip over any subsequent whitespace to be consistent
17414         with the non TZ= case.
17415         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
17417 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
17419         savedir: new symbol for fast-read version
17420         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
17421         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
17422         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
17423         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
17425 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
17427         unistd: port readlink to Mac OS X 10.3.9
17428         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
17429         around self-include problem in Mac OS X 10.3.9 when combined with
17430         readlink module.  Problem reported by Klaus Zietler in
17431         <http://bugs.gnu.org/16825>.
17433 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
17435         diffseq: remove TOO_EXPENSIVE heuristic
17436         Problem with diffutils reported by Vincent Lefevre in
17437         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
17438         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
17439         Although appropriate for circa-1993 hardware, these days the heuristic
17440         seems to be more trouble than it's worth.
17441         * lib/diffseq.h: Modernize citations.
17442         (struct context): Remove member too_expensive.
17443         All uses changed.
17444         (struct partition): Remove members lo_minimal, hi_minimal.
17445         All uses changed.
17446         (diag, compareseq): Remove arg find_minimal.  All uses changed.
17447         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
17448         1993 to make 'diff' run faster (but not as well) on large inputs.
17449         These days, computers are fast enough that it's typically better
17450         to run slower but more accurately.
17451         * lib/fstrcmp.c: Remove duplicate comment.
17452         * lib/fstrcmp.c (strcmp_bounded):
17453         * lib/git-merge-changelog.c (compute_differences):
17454         Adjust to diffseq.h changes.
17455         * NEWS: Document the change.
17457         savedir: simplify by using stpcpy
17458         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
17459         (streamsavedir): Use stpcpy instead.
17460         * modules/savedir (Depends-on): Add stpcpy.
17462 2014-02-21  Pádraig Brady  <P@draigBrady.com>
17464         spawn: fix link error on uclibc
17465         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
17466         to incorporate -lrt if needed (on uclibc for example).
17467         * modules/posix_spawn: Reference the substituted LIB.
17469 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
17470         timer: fix uClibc detection of threading
17471         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
17472         enabled in uClibc.
17474 2014-02-21  Eric Blake  <eblake@redhat.com>
17476         maintainer-makefiles: provide AC_PROG_SED for older autoconf
17477         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
17479 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
17481         exclude: add support for posix regexps
17483         This commit adds support for POSIX extended regular expressions
17484         and fixes a long-standing memory leak (pattern buffer was never
17485         freed).  It also implements a new interface function to read
17486         exclude patterns from a FILE, which passes an additional parameter
17487         to its callback function, thereby allowing to preserve its state
17488         between invocations.
17490         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
17491         (pattern_buffer): New struct.
17492         (exclude): New member patbuf.
17493         (exclude_add_pattern_buffer): New function.
17494         (free_exclude_segment): Free regexps.
17495         (free_exclude): Free allocated pattern buffers.
17496         (exclude_patopts): New function.
17497         (file_pattern_matches): Use exclude_patopts.
17498         (add_exclude): support regexps.
17499         (add_exclude_fp): New function.
17500         (add_exclude_file): Rewrite using add_exclude_fp.
17501         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
17502         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
17503         (add_exclude_fp)
17504         (add_exclude_file): Rewrite using add_exclude_fp.
17505         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
17506         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
17507         (add_exclude_fp)
17508         (exclude_add_pattern_buffer): New prototypes.
17509         * modules/exclude: Depends on regex and filename.
17511 2014-02-20  Eric Blake  <eblake@redhat.com>
17513         maintainer-makefiles: use $(SED) for syntax check
17514         * modules/maintainer-makefile (configure.ac): Check for sane sed.
17515         * top/maint.mk: Change sed to $(SED).
17517 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
17518             Paul Eggert  <eggert@cs.ucla.edu>
17520         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
17521         Patch based on an idea by Dick Streefland in
17522         <https://savannah.gnu.org/patch/?7892>.
17523         * NEWS: Document this.
17524         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
17525         (direntry_t, comparison_function): New types.
17526         (direntry_cmp_name): New function.
17527         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
17528         (streamsavedir, savedir): New arg OPTION.
17529         (streamsavedir): Simplify memory allocation.
17530         (fdsavedir): Remove.
17531         * lib/savedir.h (enum savedir_option): New type.
17532         (streamsavedir, savedir): New arg OPTION.
17533         (fdsavedir): Remove.
17535 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
17537         file-type: add support for doors and other less-common file types
17538         Problem with S_ISDOOR reported by Rich Burridge.
17539         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
17540         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
17541         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
17543 2014-01-23  Eric Blake  <eblake@redhat.com>
17545         pthread: work around winpthread header pollution on mingw
17546         * lib/time.in.h: Move pthread workarounds...
17547         * lib/pthread.in.h: ...here.
17548         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
17549         detect macro pollution on mingw.
17550         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
17552 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17554         qacl: check for fchmod
17555         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
17556         and qset-acl.c both use HAVE_FCHMOD.
17558 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
17560         fdopen-tests: port to Tru64
17561         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
17562         descriptor that is not open, as POSIX doesn't specify the
17563         resulting behavior and the test does not work on Tru64.
17564         Problem reported by Steven M. Schweda in:
17565         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
17567         stdalign: port to HP-UX compilers
17568         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
17569         if __HP_cc or __HP_aCC are nonzero.
17571 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
17573         strtoimax: port to platforms lacking 'long long'
17574         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
17575         check whether strtoll is declared, which causes the C file to
17576         wrongly report an error.  Problem reported by Steven M. Schweda in:
17577         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
17578         * lib/strtoimax.c (strtoull):
17579         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
17580         (strtoll): Declare only if HAVE_LONG_LONG_INT.
17582 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
17584         relocatable-perl: fix texi syntax
17585         * doc/relocatable-maint.texi: Escape braces.
17587 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
17589         relocatable-perl: like relocatable-script, but for Perl scripts
17590         * build-aux/relocatable.pl.in: Add.
17591         * doc/relocatable-maint.texi: Add documentation.
17592         * modules/relocatable-perl: Add.
17594 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
17596         tests: fix export bug in previous patch
17597         Problem reported by Jim Meyering.
17598         * tests/init.sh (re_shell): New var, which is exported instead of
17599         re_shell_.
17601         tests: simplify porting to Solaris 10 /bin/sh
17602         Some test cases in 'grep' need a shell that groks '$(';
17603         export re_shell_ for their benefit.  Problem reported for 'grep'
17604         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
17605         * tests/init.sh (re_shell_): Export if it's used.
17607 2014-01-06  Eric Blake  <eblake@redhat.com>
17609         md5, sha1, sha256, sha512: support older autoconf
17610         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
17611         for autoconf < 2.63b.
17613         include_next: port to autoconf 2.63
17614         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
17616 2014-01-04  Jim Meyering  <meyering@fb.com>
17618         maint: add a gnulib-local rule to keep non-ascii out of .texi files
17619         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
17620         so that "make sc_maint" will ding anyone who puts non-ascii
17621         in any of gnulib's .texi files.
17623 2014-01-03  Jim Meyering  <meyering@fb.com>
17625         freadable, fwritable, fwriting: declare with the "pure" attribute
17626         * lib/freadable.h (freadable): Declare with the "pure" attribute.
17627         * lib/fwritable.h (fwritable): Likewise.
17628         * lib/fwriting.h (fwriting): Likewise.
17629         Suggested by Bruno Haible.
17631         maint.mk: adapt openat.h-include-without-use test
17632         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
17633         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
17634         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
17635         With this change, running "make sc_maint" in gnulib's top-level
17636         directory now passes for me.
17638 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17640         doc: use ASCII in .texi files where UTF-8 isn't needed
17641         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
17642         * doc/posix-functions/setkey.texi, doc/regex.texi:
17643         Use ASCII input, not UTF-8.
17645 2014-01-02  Jim Meyering  <meyering@fb.com>
17647         freading: declare with the "pure" attribute
17648         * lib/freading.h (freading): Declare with the "pure" attribute.
17650         manywarnings: remove -Wmudflap
17651         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
17652         it is no longer supported in gcc-4.9-to-be.
17654 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17656         relocatable-script: remove unused code
17657         Problem reported by Reuben Thomas in:
17658         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
17659         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
17661 2014-01-01  Jim Meyering  <meyering@fb.com>
17663         maint: fix public-submodule-commit to work with newer git
17664         * top/maint.mk (public-submodule-commit): Remove excess quoting.
17665         We were over-quoting the test arguments, and somewhere prior to
17666         version 1.8.5.2.229, git stopped removing those excess quotes,
17667         which made the test fail, since the unexpanded strings would
17668         always differ; using GIT_TRACE=1 confirmed that the git merge-base
17669         command wasn't even being run.
17671 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17673         doc: update main copyright year
17674         * doc/gnulib.texi: Update copyright date.
17676 2014-01-01  Eric Blake  <eblake@redhat.com>
17678         version-etc: new year
17679         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
17680         * all files: run 'make update-copyright'
17682 2013-12-24  Eric Blake  <eblake@redhat.com>
17684         passfd: give nicer error for recvfd at eof
17685         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
17686         * tests/test-passfd.c (main): Enhance test to cover this.
17688 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
17690         gettimeofday: port recent C++ fix to Emacs
17691         Without this further patch, Emacs won't build due to
17692         the portcheck failing.  Also, this simplifies the patch a bit.
17693         * lib/time.in.h (localtime, gmtime): Don't replace unless
17694         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
17695         * lib/time.in.h (localtime, gmtime):
17696         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
17697         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
17698         * modules/time (time.h):
17699         Don't worry about the possibility of localtime and gmtime
17700         being absent; they're present in all C libraries we know about.
17701         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
17702         Don't assume sys_time is present and has been initialized.
17703         Instead, use a hack that should work even if it hasn't been.
17704         Don't use a portcheck for gmtime or localtime; this supports
17705         the hack.
17706         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
17708 2013-12-17  John W. Eaton  <jwe@gnu.org>
17710         gettimeofday: fix C++ crosscompilation
17712         Never replace gmtime and localtime by macros when compiling with
17713         C++, this prevents <ctime> from being included.
17715         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
17716         define gmtime and localtime as preprocessor macros.  Instead
17717         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
17718         REPLACE_LOCALTIME substitutions.
17719         * lib/time.in.h: Declare gmtime and localtime when needed.
17720         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
17721         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
17722         * modules/time: Depend on gettimeofday, and substitute the above
17723         variables in time.h.
17725 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
17727         qacl: port to Windows better
17728         See Eli Zaretskii in
17729         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
17730         * lib/file-has-acl.c (acl_access_nontrivial):
17731         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
17732         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
17734 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
17736         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
17737         * lib/gl_openssl.h: Cast void pointers to a specific type.
17739 2013-12-07  Pádraig Brady  <P@draigBrady.com>
17741         open-tests: fix build failure with -Werror=old-style-declaration
17742         * tests/test-open.h: Reorder the inline to avoid the issue.
17744 2013-12-07  Pádraig Brady  <P@draigBrady.com>
17746         md5, sha1, sha256, sha512: fix link error with partial libcrypto
17747         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
17748         init time, so that if early checks find crypto routines,
17749         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
17750         avoiding link failures.
17752 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
17754         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
17755         This provides a new way to specify the default for
17756         gl_CRYPTO_CHECK, one that is reflected in the --help message.
17757         Emacs uses this, as well as the old way.
17758         This attempts to implement a suggestion by Pádraig Brady in
17759         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
17760         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
17761         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
17763         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
17764         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
17765         Add support for a new option, --with-openssl=auto, which causes
17766         the library to be used if available and silently ignored if not.
17767         Add support to allow configure.ac to specify its own
17768         default, by setting with_openssl_default before invoking gl_INIT.
17770 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
17772         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
17773         Problem reported by Daiki Ueno in:
17774         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
17775         * tests/test-open.h (__always_inline):
17776         New macro, if not already defined.
17777         (test_open): Use it.
17779 2013-12-04  Eric Blake  <eblake@redhat.com>
17781         include_next: minimize code duplication
17782         * modules/include_next (Depends-on): Add absolute-header.
17783         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
17784         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
17786 2013-12-04  Pádraig Brady  <P@draigBrady.com>
17788         getcwd: fix compile error in configure check
17789         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
17791 2013-12-04  Pádraig Brady  <P@draigBrady.com>
17793         regex: suppress core dumps from detection code
17794         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
17795         to suppress core dumps that may well occur on glibc systems.
17796         These core dumps might not be cleaned up automatically, or could
17797         trigger some system core dump handling logic.
17799 2013-12-03  Pádraig Brady  <P@draigBrady.com>
17801         md5, sha1, sha256, sha512: support mandating use of openssl
17802         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
17803         description, to list the now 3 separate options.  also don't
17804         mention the default=no, since this is implicit given the option
17805         is described as --with-openssl rather than --without-openssl.
17806         If projects change the default they're free to document that.
17807         with --with-openssl[=yes] we now error out when the specified
17808         hash algorithm is not available in libcrypto.
17810 2013-12-03  Ivailo  <xakepa10@gmail.com>
17812         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
17813         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
17814         -Wformat-nonliteral checks, as these edge cases are part of the test.
17816 2013-12-03  Eric Blake  <eblake@redhat.com>
17818         regex: avoid glibc deadlock during configure
17819         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
17820         glibc bug 15078 in turn triggers bug 16159.
17821         Reported by Michal Privoznik.
17823 2013-12-02  Pádraig Brady  <P@draigBrady.com>
17825         md5, sha1, sha256, sha512: use openssl routines if available.
17826         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
17827         routines will be used if available, requiring apps to link @LIB_CRYPTO@
17828         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
17829         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
17830         in the standard system location.
17831         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
17832         * m4/sha256.m4: Likewise with SHA256.
17833         * m4/sha512.m4: Likewise with SHA512.
17834         * m4/md5.m4: Likewise with MD5.
17835         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
17836         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
17837         * lib/sha256.h: Likewise with SHA256.
17838         * lib/sha512.h: Likewise with SHA512.
17839         * lib/md5.h: Likewise with MD5.
17840         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
17841         * lib/sha256.c: Likewise with SHA256.
17842         * lib/sha512.c: Likewise with SHA512.
17843         * lib/md5.c: Likewise with MD5.
17844         * modules/crypto/sha1 (Link:): Add the new optional lib.
17845         (Depends-on:): Add dependency on extern-inline.
17846         * modules/crypto/sha256: Likewise.
17847         * modules/crypto/sha512: Likewise.
17848         * modules/crypto/md5: Likewise.
17849         * modules/crypto/sha1-tests: Reference the lib here too.
17850         * modules/crypto/md5-tests: Likewise.
17851         * modules/crypto/gc-des-tests: Likewise.
17852         * modules/crypto/gc-hmac-md5-tests: Likewise.
17853         * modules/crypto/gc-hmac-sha1-tests: Likewise.
17854         * modules/crypto/gc-hmac-sha256-tests: Likewise.
17855         * modules/crypto/gc-hmac-sha512-tests: Likewise.
17856         * modules/crypto/gc-md5-tests: Likewise.
17857         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
17858         * modules/crypto/gc-sha1-tests: Likewise.
17859         * modules/crypto/gc-tests: Likewise.
17860         * modules/crypto/hmac-md5-tests: Likewise.
17861         * modules/crypto/hmac-sha1-tests: Likewise.
17862         * modules/crypto/hmac-sha256-tests: Likewise.
17863         * modules/crypto/hmac-sha512-tests: Likewise.
17865 2013-11-29  RV1971  <rv1971@web.de>
17867         base64: (trivial) fix compilation regression on some compilers
17868         * lib/base64.c: Don't return the void function,
17869         instead split to a separate return statement.
17871 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17873         ignore-value: revert previous code change
17874         * lib/ignore-value.h (ignore_value): Use __extension__ and
17875         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
17876         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
17877         Change the comment to try to explain this better.
17879 2013-11-27  Pádraig Brady  <P@draigBrady.com>
17881         selinux-h: improve stub types and add more stub functions
17883         * lib/se-selinux.in.h: Change security_context_t to a typedef
17884         rather than a define, as it's a pointer type and so is better
17885         as a typedef to avoid issues declaring multiple variables
17886         with the comma operator.  Also add stub for string_to_security_class().
17887         * lib/se-context.in.h: Add stub functions for
17888         context_{type,range,role,user}_get().
17890 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
17892         ignore-value: prefer GCC version back through 2.0
17893         The code didn't match the comments, so I did a bit of software
17894         archaeology.  GCC 2.0 seems to support __extension__ and
17895         __typeof__, so fix both code and comments to use 2.0.
17896         * lib/ignore-value.h (ignore_value): Use __extension__ and
17897         __typeof__ for GCC 2.0 through 3.3, too.
17899 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
17901         pty: Activate the signature wrapper of forkpty.
17902         The intended preprocessor macro HAVE_FORKPTY is
17903         never defined, yet `lib/forkpty.c' depends on it.
17905         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
17906         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
17907         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
17909 2013-11-18  Jim Meyering  <meyering@fb.com>
17910         and Paul Eggert  <eggert@cs.ucla.edu>
17912         quotearg: don't attempt to store 1 << 31 into an "int"
17913         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
17914         gcc's new -fsanitize=undefined and running its tests triggered some
17915         new test failures due to undefined behavior, all with this diagnostic:
17916           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
17917             cannot be represented in type int
17918         Rather than shifting "1" left to form a mask, shift the bits right and
17919         simply use "1" as the mask.
17921 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
17923         error: depend on stdio
17924         Problem reported by Nikos Mavrogiannopoulos in
17925         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
17926         * modules/error (Depends-on): Add stdio.
17928 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
17930         * doc/relocatable-maint.texi (Supporting Relocation): Improve
17931         wording.
17932         Reported by Reuben Thomas <rrt@sc3d.org>.
17934 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
17936         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
17937         New function and macro, to work around _DARWIN_C_SOURCE problem.
17938         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
17940 2013-11-11  Pádraig Brady  <P@draigBrady.com>
17942         base64: provide a fast path for encoding well sized buffers
17943         Avoid conditionals in the base64 encoding loop,
17944         which was seen to give 60% better throughput.
17945         * lib/base64.c (base64_encode_fast): A new function to be called
17946         when we don't want to NUL terminate, and we have enough space
17947         in the output to encode the given input.
17948         (base64_encode): Call the _fast() version when appropriate.
17949         Also remove a redundant mask with 0x3F on the first encoded byte.
17951 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
17953         extern-inline: port better to OS X 10.9
17954         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
17955         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
17956         OS X 10.9, except for g++ where the bug is still present.
17957         See <http://trac.macports.org/ticket/41033>.
17959 2013-11-08  Eric Blake  <eblake@redhat.com>
17961         fpending: fix regression on DragonFly BSD
17962         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
17963         * lib/fpending.h (__fpending): Don't declare twice.
17964         Reported by GW in
17965         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
17967 2013-11-05  Jim Meyering  <meyering@fb.com>
17969         hash: relax license to LGPLv2+, for libguestfs
17970         * modules/hash (License): Change from GPL to LGPLv2+.
17972 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
17974         intprops: port to Oracle Studio c99
17975         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
17976         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
17978 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
17980         obstack: pacify HP C
17981         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
17982         warning "conversion from pointer to smaller integer" from HP
17983         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
17984         C89 or later nowadays, so cast to void instead of int.  Privately
17985         reported by H.Merijn Brand.  Also, change header to match glibc's,
17986         to make checking against glibc easier.
17988 2013-10-29  Jim Meyering  <meyering@fb.com>
17990         maint.mk: prefer gpgv2 over gpgv
17991         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
17992         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
17993         Reported by Gary Vaughan.
17995 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17997         isnan: port to VAX
17998         Reported by John Klos for NetBSD-5/VAX in
17999         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
18000         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
18001         (FUNC): Use it.
18003 2013-10-28  Jim Meyering  <meyering@fb.com>
18005         gnulib-tool: protect against CDPATH
18006         * gnulib-tool: Many "cd" built-in functions print a directory name
18007         to stdout when CDPATH is set, e.g.,
18008           $ bash -c 'CDPATH=/; cd tmp'
18009           /tmp
18010         Unset it, when possible.  Prompted by a comment from Bruce Korb.
18012         maint.mk: restore functionality removed by recent change...
18013         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
18014         the context of a shallow-cloned gnulib repository: "git describe"
18015         would fail in such a directory.  However, that change made it so
18016         the reported gnulib revision no longer includes the version number
18017         or a commit count, even when run from a full clone.
18018         * top/maint.mk (gnulib-version): Use the full "git describe"
18019         output when possible, e.g., the form above, rather than the
18020         abbreviated, no-tag, no-commit-count string, and fall back to
18021         using a 10-byte hash, rather than the default minimal-length
18022         hash prefix, since while the minimal-length one may be fine today,
18023         it is likely not to be unique for very long.
18025 2013-10-26  Jim Meyering  <meyering@fb.com>
18027         maint.mk: fix "release" target to build _version
18028         This fixes a bug in README-release whereby following the outlined
18029         steps, one would publish a tarball whose programs would report
18030         --version output not consistent with the package version number.
18031         This bug caused grep-2.15 to produce a grep program whose
18032         --version option made it print 2.14.56-1e3d rather than 2.15.
18033         * top/maint.mk (release): Making this target build "_version"
18034         ensures that the new version number is reflected in configure.
18036 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
18038         install-reloc: Support multi-binary installation.
18039         * build-aux/install-reloc: Support installing multiple programs in
18040         one invocation, as done by Automake starting with commit
18041         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
18042         Haible <bruno@clisp.org>, archived at
18043         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
18044         Reported by Sylvain <beuc@gnu.org>.
18046 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18048         selinux-h: Really build without selinux when library is missing.
18049         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
18050         continue without selinux, as already told in the warning message.
18052 2013-10-21  Jim Meyering  <meyering@fb.com>
18054         regex: also remove dependency on HAVE_WCSCOLL
18055         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
18057 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
18059         xfreopen: Fix typo. s/frepoen/freopen/
18060         * lib/xfreopen.c: Fix description.
18061         * modules/xfreopen: Likewise.
18063 2013-10-21  Jim Meyering  <meyering@fb.com>
18065         regex: don't depend on wcscoll
18066         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
18067         It is no longer used.
18069 2013-10-20  Jim Meyering  <meyering@fb.com>
18071         error: add the printf attribute to a static function
18072         * lib/error.c (error_tail): Add the printf attribute, to placate
18073         gcc's -Werror=suggest-attribute=format option.
18075 2013-09-30  Jim Meyering  <meyering@fb.com>
18077         fpending, obstack, strerror-override: use pure+const function attrs
18078         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
18079         * lib/obstack.c (_obstack_allocated_p): Likewise.
18080         * lib/obstack.h (_obstack_memory_used): Likewise.
18081         (_obstack_memory_used): Likewise.
18082         * lib/strerror-override.h (strerror_override): Declare with
18083         the "const" attribute.
18085 2013-10-18  Eric Blake  <eblake@redhat.com>
18087         extern-inline: make safe for -Wundef usage
18088         Reported by Vladimir 'phcoder' Serbinenko in
18089         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
18090         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
18092 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18094         mkfifo-tests, etc.: allow HP-UX 11.11 bug
18095         Problem reported by Daniel Richard G. in
18096         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
18097         * doc/posix-functions/mkfifo.texi (mkfifo):
18098         * doc/posix-functions/mkfifoat.texi (mkfifoat):
18099         * doc/posix-functions/mknod.texi (mknod):
18100         * doc/posix-functions/mknodat.texi (mknodat):
18101         Document the HP-UX 11.11 bug.
18102         * tests/test-mkfifo.h (test_mkfifo):
18103         Allow the HP-UX 11.11 bug.
18105 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18107         acl: allow cross-compilation to Gentoo
18108         Problem reported by Gabriel Marcano in
18109         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
18110         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
18111         test only whether it links.
18113 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18115         mgetgroups: remove dependency on realloc-gnu
18116         The dependency violates the comment in realloc-gnu, which
18117         says that tests can't depend on realloc-gnu; some tests depend
18118         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
18119         Problem reported by Daniel Richard G. in
18120         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
18121         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
18122         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
18123         not realloc-gnu.
18125 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18127         regex-tests: port to HP-UX 11.11
18128         Problem reported by Daniel Richard G. in
18129         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
18130         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
18132 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18134         verify: document some 'assume' pitfalls
18135         * doc/verify.texi (Compile-time Assertions):
18136         Mention that 'assume (E)' can sometimes slow things down.
18137         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
18139 2013-10-10  Eric Blake  <eblake@redhat.com>
18141         strtoumax: fix typo in previous commit.
18142         * modules/strtoumax (Depends-on): Fix typo.
18143         * modules/strtoimax (Depends-on): Likewise.
18145 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18147         strtoumax: port to Solaris 8
18148         This problem was introduced in the recent HP-UX patch.
18149         Reported by Tom G. Christensen in
18150         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
18151         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
18152         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
18154 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
18156         strtoimax, strtoumax: port to HP-UX 11.11
18157         Problem reported by Daniel Richard G. in
18158         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
18159         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
18160         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
18161         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
18162         REPLACE_STRTOUMAX.
18163         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
18164         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
18165         Replace the function if defined as a macro but not as a function.
18166         * modules/inttypes-incomplete (inttypes.h): Substitute
18167         REPLACE_STRTOUMAX.
18168         * modules/strtoumax (configure.ac): Replace strtoumax if
18169         REPLACE_STRTOUMAX.
18171 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18173         strtoimax: port to HP-UX 11.11
18174         Problem reported by Daniel Richard G.
18175         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
18176         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
18177         they might clash with inttypes.h.
18179 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18181         New module 'count-trailing-zeros'.
18182         * MODULES.html.sh: Mention it.
18183         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
18184         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
18185         * modules/count-trailing-zeros-tests:
18186         * tests/test-count-trailing-zeros.c:
18187         New files.
18189         count-leading-zeros: port to MSC; support types wider than 64 bits
18190         The ideas behind the MSC port are stolen from Emacs.
18191         * lib/count-leading-zeros.h:
18192         Don't include verify.h: it's no longer needed, as types wider than
18193         64 bits are now supported.
18194         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
18195         performance with MSC.  All uses changed.  Do not assume that TYPE
18196         has at most 64 bits.
18197         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
18198         All uses changed.  Fold the subtraction from 31 into the table.
18200         count-one-bits: port to MSC; support types wider than 64 bits
18201         The ideas behind the MSC port are stolen from Emacs.
18202         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
18203         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
18204         Don't include verify.h: it's no longer needed, as types wider than
18205         64 bits are now supported.
18206         (COUNT_ONE_BITS_GENERIC): New macro.
18207         (popcount_supported) [_MSC_VER]: New inline function.
18208         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
18209         performance with MSC.  All uses changed.  Do not assume that TYPE
18210         has at most 64 bits.
18211         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
18213 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
18215         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
18216         * lib/mountlist.c (read_file_system_list): fix leak of directory
18217         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
18219 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18221         tests: improve diagnostic when an assertion fails
18222         * tests/macros.h (ASSERT): Report the assertion that failed.
18224 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18226         verify: new macro 'assume'
18227         This is taken from Emacs, and should be generally useful.
18228         * doc/verify.texi (assume): Document it.
18229         * lib/verify.h (assume): New macro.
18230         (__has_builtin): Expand to 0 if not defined.
18232 2013-09-26  Eric Blake  <eblake@redhat.com>
18234         dup2, dup3: work around another cygwin crasher
18235         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
18236         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
18237         * tests/test-dup2.c (main): Likewise.
18238         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
18239         * lib/dup3.c (dup3): Likewise.
18240         * doc/posix-functions/dup2.texi (dup2): Document it.
18241         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18243         getdtablesize: work around cygwin issue
18244         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
18245         * modules/getdtablesize (configure.ac): Build replacement.
18246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
18247         * modules/unistd (Makefile.am): Expose the witness.
18248         * lib/unistd.in.h (getdtablesize): Declare replacement.
18249         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
18250         * tests/test-getdtablesize.c (main): Test it.
18251         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
18253 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
18255         pmccabe2html: escaping of special characters
18256         Escape all '<', '>', and '&' in HTML output.
18257         * build-aux/pmccabe2html (html_fnc): Call gsub()
18258         instead of sub() to capture all '<', '>', and '&'.
18259         Neither of '<' and '>' is special in a regexp,
18260         so first arguments to gsub() are corrected. Also,
18261         in replacement strings, ampersand must be escaped.
18262         Finally, '&' must be handled first, then '<' and '>'.
18264 2013-09-24  Eric Blake  <eblake@redhat.com>
18266         manywarnings: enable nicer gcc warning messages
18267         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
18268         some -f options for optimal warnings.
18270 2013-09-21  Jim Meyering  <meyering@fb.com>
18272         timespec: use the new TIMESPEC_RESOLUTION in a few more places
18273         * lib/timespec-add.c (timespec_add): Also replace 999999999
18274         with TIMESPEC_RESOLUTION - 1.
18275         * lib/timespec-sub.c (timespec_sub): Likewise.
18277 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
18279         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
18280         Problem reported by Dagobert Michelsen via Eric Blake in
18281         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
18282         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
18283         not AC_COMPILE_IFELSE.
18285 2013-09-23  Eric Blake  <eblake@redhat.com>
18287         configmake: support new --runstatedir option
18288         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
18289         even if autoconf was too old to provide the command line option.
18290         * modules/configmake (Makefile.am): Propagate it to .h file.
18292 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18294         ctype, string: depend on extern-inline
18295         This is needed to complete the recent OS X fixes.
18296         Also, fix related documentation as suggested by Eric Blake.
18297         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18298         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
18299         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
18300         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
18301         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
18302         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
18303         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
18304         * doc/posix-functions/toupper.texi:
18305         List the 'ctype' gnulib module.
18306         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
18307         * doc/posix-functions/strncpy.texi:
18308         List the 'string' gnulib module.
18309         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
18310         Add string.
18311         * modules/ctype, modules/string (Depends-on): Add extern-inline.
18313 2013-09-19  Pádraig Brady  <P@draigBrady.com>
18315         userspec: support optional parameters to parse_user_spec()
18316         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
18317         then avoid group processing and treat the full spec as a user.
18318         (parse_with_separator): Allow the USERNAME and GROUPNAME to
18319         be optional params (NULL), in which case they're ignored.
18321 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
18323         timespec: new function make_timespec, and new constants
18324         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
18325         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
18326         (make_timespec): New function.
18327         * lib/dtotimespec.c (dtotimespec):
18328         * lib/timespec-add.c (timespec_add):
18329         * lib/timespec-sub.c (timespec_sub):
18330         * lib/utimens.c (validate_timespec):
18331         * lib/utimensat.c (rpl_utimensat):
18332         Use these new constants and functions.
18334         stdio: OS X port of putc_unlocked + extern inline
18335         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
18336         * doc/posix-functions/putc_unlocked.texi:
18337         * doc/posix-functions/putchar_unlocked.texi:
18338         Document this portability problem.
18340         signal: OS X port of sigaddset etc. + extern inline
18341         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
18342         (sigismember): #undef on problematic Apple platforms.
18343         * doc/posix-functions/sigaddset.texi:
18344         * doc/posix-functions/sigdelset.texi:
18345         * doc/posix-functions/sigemptyset.texi:
18346         * doc/posix-functions/sigfillset.texi:
18347         * doc/posix-functions/sigismember.texi:
18348         Document this portability problem.
18350         extern-inline: do not always suppress extern inline on OS X
18351         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
18352         extern inline on Apple only if the particular compile-time
18353         configuration is known to have the problem.
18354         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
18355         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
18356         other Gnulib modules.
18358         extern-inline: document fixes for ctype and wctype macros
18359         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18360         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
18361         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
18362         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
18363         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
18364         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
18365         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
18366         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
18367         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
18368         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
18369         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
18370         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
18371         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
18372         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
18373         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
18374         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
18375         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
18376         * doc/posix-functions/strncpy.texi:
18377         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
18378         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
18379         Document that Gnulib fixes portability problems with these
18380         functions on OS X 10.8 and earlier when called from plain inline
18381         or extern inline functions.
18383 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
18385         fflush, freadahead, fseeko: Fix for Android
18386         Suggested by Bruno Haible in:
18387         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
18388         * lib/stdio-impl.h: Use local __sfileext definition.
18390 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
18392         pmccabe2html: Portability to other awk versions.
18393         The functions systime() and strftime() are available
18394         in Gawk only.  Properly close two HTML-tags 'style'
18395         and 'span'.
18396         * build-aux/pmccabe2html (BEGIN): Store timing
18397         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
18398         systime() in HTML_COMMENT.
18399         (html_header): Correctly close tag 'style'.
18400         (END): Replace strftime() by CHRONOS_TIME.  Close
18401         tag 'span' correctly, not as 'div'.
18403 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
18405         getgroups: statement without effect
18406         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
18407         Change equality conditional to expected assignment.
18409 2013-09-09  Eric Blake  <eblake@redhat.com>
18411         glob: fix compilation
18412         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
18414 2013-09-07  Eric Blake  <eblake@redhat.com>
18416         glob: fix build for platforms without __THROW
18417         * lib/glob.in.h (__THROW): Add definition again.
18419 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
18421         regex-quote: fix buffer access out of bounds
18422         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
18423         * lib/regex-quote.c (regex_quote_spec_pcre):
18424         Fix typo that resulted in an out-of-bounds read.
18426 2013-09-04  Eric Blake  <eblake@redhat.com>
18428         glob: avoid -Wattribute warnings on glibc
18429         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
18430         __THROWNL, not __THROW, on static functions.
18431         * lib/glob.in.h (__THROW): Adjust...
18432         (__THROWNL): ...accordingly.
18434 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18436         headers: check that _GL_INLINE_HEADER_BEGIN is defined
18437         Suggested by Bruce Korb in:
18438         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
18439         * doc/extern-inline.texi (extern inline):
18440         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
18441         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
18442         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
18443         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
18444         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
18445         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
18446         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
18447         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
18448         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
18449         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
18450         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
18451         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
18452         * lib/xtime.h:
18453         Check that _GL_INLINE_HEADER_BEGIN is defined.
18455 2013-08-29  Pádraig Brady  <P@draigBrady.com>
18457         bootstrap: remove the --version requirement from ancillary tools
18458         * build-aux/bootstrap (check_exists): A new refactored function to
18459         determine if a command exists.
18460         (find_tool): Use the new function which does not require the
18461         --version option to be supported.
18462         (check_versions): Use the new function.
18464 2013-08-26  Simon Josefsson  <simon@josefsson.org>
18466         gc: support HMAC-SHA256 and HMAC-SHA512.
18467         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
18468         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
18469         functions.
18470         (gc_hmac_md5): Use symbolic constant.
18471         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
18472         (gc_hmac_sha256, gc_hmac_sha512): New functions.
18473         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
18474         * m4/sha256.m4: Protect against empty expansion.
18475         * m4/sha512.m4: Likewise.
18476         * lib/hmac-sha256.c: New file.
18477         * lib/hmac-sha512.c: Likewise.
18478         * m4/gc-hmac-sha256.m4: Likewise.
18479         * m4/gc-hmac-sha512.m4: Likewise.
18480         * m4/gc-sha256.m4: Likewise.
18481         * m4/gc-sha512.m4: Likewise.
18482         * modules/crypto/gc-hmac-sha256: Likewise.
18483         * modules/crypto/gc-hmac-sha256-tests: Likewise.
18484         * modules/crypto/gc-hmac-sha512: Likewise.
18485         * modules/crypto/gc-hmac-sha512-tests: Likewise.
18486         * modules/crypto/hmac-sha256: Likewise.
18487         * modules/crypto/hmac-sha256-tests: Likewise.
18488         * modules/crypto/hmac-sha512: Likewise.
18489         * modules/crypto/hmac-sha512-tests: Likewise.
18490         * tests/test-gc-hmac-sha256.c: Likewise.
18491         * tests/test-gc-hmac-sha512.c: Likewise
18492         * tests/test-hmac-sha256.c: Likewise.
18493         * tests/test-hmac-sha512.c: Likewise
18495 2013-08-24  Daiki Ueno  <ueno@gnu.org>
18497         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
18498         of AC_CHECK_DECLS.
18500 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18502         selinux-at: omit unnecessary include
18503         * lib/selinux-at.c: Don't include dosname.h; not needed, since
18504         this source file doesn't use its macros, and subsidiary files that
18505         use the macros already include it.
18507 2013-08-21  Eric Blake  <eblake@redhat.com>
18509         d-ino: avoid false negative on symlink
18510         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
18511         Reported by Stephane Chazelas.
18513 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
18515         bootstrap: port to OpenBSD sed
18516         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
18517         does not interpret `-' as a file argument to mean stdin.
18519 2013-08-15  Eric Blake  <eblake@redhat.com>
18521         warnings: minor optimization
18522         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
18524         warnings: check -Wfoo rather than -Wno-foo
18525         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
18526         -Wno-, test if the compiler recognizes the positive form instead.
18528 2013-08-15  Karl Berry  <karl@gnu.org>
18530         * config/srclist-update: add option "doclicense" to placate
18531         pulling *.texi files from Emacs.  Write terse usage
18532         documentation at the top.
18534 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
18536         xvasprintf-tests: port to GCC with hardening flags
18537         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
18538         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
18539         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
18541 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
18543         fpending: port to recent Cygwin change to stdio_ext.h
18544         Reported by LRN in
18545         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
18546         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
18547         just declare __fpending unless it's a macro.
18548         A duplicate decl shouldn't hurt.
18549         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
18550         call compiles and links, instead of separately checking for
18551         decl and lib function.
18552         * modules/fpending (configure-ac):
18553         Adjust to fpending.m4's renaming of shell variable.
18555 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18557         sys_time: port to OpenBSD
18558         * lib/sys_time.in.h: Simply delegate to the system's header
18559         in the BSDish cases as well.  Problem reported by Mike Miller in
18560         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
18561         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
18562         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
18563         wider than time_t.
18565 2013-08-09  Pádraig Brady  <P@draigBrady.com>
18567         bootstrap: support checksum utils having -c but not --status
18568         * build-aux/bootstrap: Only look for sha1sum if updating po files.
18569         Add sha1 to the list of supported checksum utils since it's now
18570         supported through adjustments below.
18571         (update_po_files): Remove the use of --status
18572         in a way that will suppress all error messages, but since this is
18573         only used to minimize updates, it shouldn't cause an issue.
18574         Exit early if there is a problem updating the po file checksums.
18575         (find_tool): Remove the check for --version support as this
18576         is optional as per commit 86186b17.  Don't even check for the
18577         presence of the command as if that is needed, it's supported
18578         through configuring prerequisites in bootstrap.conf.
18579         Prompt that when a tool isn't found, one can define an environment
18580         variable to add to the hardcoded search list.
18582 2013-08-05  Jim Meyering  <meyering@fb.com>
18584         regex: port to non-glibc/lock-using systems
18585         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
18586         system with GNULIB_LOCK would fail due to absence of the
18587         included "glthread/lock.h".  This would affect any package
18588         for which the "lock" module is used only by the regex module,
18589         and not explicitly used.
18590         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
18591         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
18592         Add a dependency on the "lock" module.
18594 2013-07-20  Daiki Ueno  <ueno@gnu.org>
18596         localecharset: make locale_charset thread-safe on Mac OS X
18597         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
18598         instead of MB_CUR_MAX.
18600 2013-07-20  Daiki Ueno  <ueno@gnu.org>
18602         gettext: update to version 0.18.3
18603         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
18604         require AC_PROG_SED to allow user to specify custom sed command when
18605         generating en@quot PO file.
18607 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
18609         bootstrap: use correct source when copying build-aux files
18610         * build-aux/bootstrap (gnulib_extra_files): This variable is
18611         relative to upstream gnulib layout, not downstream.
18613 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
18615         tmpdir: fix bug in VMS port
18616         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
18617         See Steven M. Schweda in
18618         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
18620 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
18622         tmpdir: port to VMS, to // != /, and to long dirs
18623         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
18624         __secure_getenv, so that we're more like the glibc version.
18625         All uses changed.
18626         (path_search): Don't put slash after directory if __VMS.
18627         Problem reported by Steven M. Schweda in
18628         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
18629         Simplify code to add slash; no need for a loop.
18630         Do not remove trailing slash from "//".
18631         Do not assume dlen <= INT_MAX.
18633 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18635         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
18636         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
18637         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
18638         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
18640         accept4, dup3, pipe2: port to Cygwin
18641         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
18642         * lib/accept4.c (accept4) [O_BINARY]:
18643         * lib/dup3.c (dup3) [O_BINARY]:
18644         * lib/pipe2.c (pipe2) [O_BINARY]:
18645         Use set_binary_mode, not setmode.
18646         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
18647         * modules/binary-io (Depends-on): Remove module indicator.
18648         These last two bits undo the previous change to pipe2 and binary-io.
18650 2013-07-09  Pádraig Brady  <P@draigBrady.com>
18652         mountlist: add support for deallocating returned list entries
18653         * lib/mountlist.c (free_mount_entry): A new exported function
18654         to deallocate a mount list entry.
18655         (read_file_system_list): Refactor to use the new deallocation function.
18656         Suggested by Anton Ovchinnikov.
18658 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18660         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
18661         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
18662         * lib/stdalign.in.h (_Alignas, _Alignof):
18663         Port to FreeBSD 9.1, and to C11 and C++11.
18664         (_Alignas): Also support ICC.
18665         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
18666         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
18668 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18670         fnmatch: don't goto over declaration
18671         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
18672         undefined behavior for goto over a declaration.
18673         Problem reported by Charlie Brown in
18674         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
18676         pipe2: decouple from binary-io a bit
18677         This is for Emacs, which needs pipe2 but not binary-io.
18678         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
18679         * modules/binary-io (Depends-on): Add module indicator.
18681 2013-07-03  Eric Blake  <eblake@redhat.com>
18683         mgetgroups: relax license to LGPLv2+
18684         * modules/getugroups (License): Change from GPLv3+.
18685         * modules/mgetgroups (License): Likewise.
18686         * modules/getgroups (License): Change from LGPLv3+.
18688         xalloc-oversized: relax license to LGPLv2+
18689         * modules/xalloc-oversized (License): Change from GPLv3+.
18691         nproc: relax license to LGPLv2+
18692         * modules/nproc (License): Change from LGPLv3+.
18694         bootstrap: honor --no-git
18695         * build-aux/bootstrap: Don't even try to use git when user is
18696         pointing to a static checkout.
18698 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18700         ignore-value: port to gcc -pedantic
18701         * lib/ignore-value.h (ignore_value):
18702         Port to gcc -pedantic, by using __extension__.
18703         Reindent as per usual gnulib style nowadays.
18704         Simplify GCC version check.
18706 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18708         extern-inline: port to gcc -std=c89
18709         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
18710         Do not use __gnu_inline__ if pedantic and pre-C99.
18712 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
18714         doc: document extern-inline
18715         * doc/extern-inline.texi: New file.
18716         * doc/gnulib.texi (alloca-opt): Include it.
18717         * m4/extern-inline.m4: Move some comments to documentation,
18718         and others closer to what they describe.
18720         doc: chatter less
18721         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
18722         (updated-stamp): Use it.  This causes 'make' to output just
18723         one file name rather than zillions.
18725         fflush, fseeko: port to musl cross-compiles
18726         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
18727         on some implementation that (1) is not known to be buggy,
18728         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
18729         cross-compiled to so we can't easily check for lack of
18730         conformance.  This is for cross-compiling to musl.
18731         Reported by Rich Felker in
18732         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
18733         * m4/fclose.m4 (gl_FUNC_FCLOSE):
18734         * m4/fflush.m4 (gl_FUNC_FFLUSH):
18735         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
18736         Adjust to above change.
18737         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
18738         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
18739         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
18740         known not to work, or unknown.
18742 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18744         msvc-inval: port to mingw-w64
18745         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
18746         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
18747         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
18749 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
18751         getcwd-lgpl: port to Tru64
18752         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
18753         Problem reported by Steven M. Schweda in
18754         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
18756         tests: port large-fd POSIX spawn tests to OS X
18757         Problem reported by Daiki Ueno in
18758         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
18759         * tests/test-posix_spawn_file_actions_addclose.c:
18760         * tests/test-posix_spawn_file_actions_adddup2.c:
18761         * tests/test-posix_spawn_file_actions_addopen.c:
18762         Include <limits.h>, for OPEN_MAX, if available.
18763         (big_fd): New static function.
18764         (main): Use it.
18766 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
18768         tests/nap.h: use an adaptive delay to avoid ctime update issues
18769         The recent change in nap.h (5191133e) decreased the probability of lost
18770         races to about a third, however such problems could still be observed
18771         in virtual machines and openSUSE's OBS.
18772         Before, nap() detected the needed time once empirically and then used
18773         that delay (together with a small correction multiplier) in further
18774         calls.  This problem has been reported and discussed several times,
18775         including guesses about possible kernel issues:
18776         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
18777         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
18778         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
18779         http://bugs.gnu.org/12820
18780         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
18781         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
18782         Now, nap() avoids the race alltogether by verifying on a reference
18783         file whether a timestamp difference has happened.
18784         * tests/nap.h (nap_fd): Define file descriptor variable for the
18785         witness file.
18786         (nap_works): Change return value to bool.  Change passing
18787         the old file's status by value instead of by reference as this function
18788         does no longer update that timestamp; rename the function argument from
18789         st to old_st.  Remove the local variables cdiff and mdiff because that
18790         function now returns true/false instead of the precise delay.
18791         (guess_delay): Remove function.
18792         (clear_tmp_file): Add new function to close and unlink the witness file.
18793         (nap): Instead of re-using the delay which has been calculated during
18794         the first call, avoid the race by actually verifying that a timestamp
18795         difference can be observed on the current file system.  Use an adaptive
18796         approach for the delay to minimize execution time.  Assert that the
18797         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
18798         = 2^31 - 1 = 2.1s.
18799         Use atexit to call clear_tmp_file when the process terminates.
18801 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18803         sig2str: port to C++
18804         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
18805         Reported by Daniel J Sebald in
18806         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
18808 2013-05-30  Eric Blake  <eblake@redhat.com>
18810         docs: mention cygwin shortcoming in <sys/un.h>
18811         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
18813         vasnprintf: silence mingw compiler warning
18814         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
18816 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18818         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
18819         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
18820         This fixes a porting bug I recently reintroduced in regex, and
18821         some other instances that I discovered while testing the fix.
18822         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
18823         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
18824         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
18825         with an empty argument if this is a pedantic pre-C99 GCC.
18826         * lib/verify.h: Do not use _Static_assert if this is a pedantic
18827         pre-C11 GCC.
18829         regex: adapt to locking regime instead of depending on pthread
18830         Instead of depending on pthread, adapt to whatever thread
18831         modules are in use.  Problem reported by Ludovic Courtès in
18832         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
18833         and by Mats Erik Andersson in
18834         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
18835         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
18836         Support either the 'lock' module, or the 'pthread' module, or
18837         no module.
18838         (lock_lock, lock_unlock): New macros.
18839         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
18840         * modules/lock, modules/pthread (configure.ac): Add module indicator.
18841         * modules/regex (Depends-on): Remove pthread.
18843 2013-05-22  Eric Blake  <eblake@redhat.com>
18845         getgroups: document portability issues
18846         * doc/glibc-functions/initgroups.texi (initgroups): Mention
18847         multithread safety.
18848         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
18849         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
18850         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
18851         getugroups.
18852         * doc/posix-functions/getgroups.texi (getgroups): Mention
18853         multithread safety and mgetgroups.
18855 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
18857         test-lchown, test-chown: also skip test if chown fails with EPERM
18858         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
18859         skip this test, to handle FAT file systems.
18860         * tests/test-chown.h (test_chown): Likewise.
18862 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18864         regex: fix dfa race in multithreaded uses
18865         Problem reported by Ludovic Courtès in
18866         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
18867         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
18868         New macros.  All uses of __libc_lock_define, __libc_lock_init
18869         changed to use the first two of these.
18870         (__libc_lock_lock, __libc_lock_unlock): New macros, for
18871         non-glibc platforms.
18872         (struct re_dfa_t): Define the lock unconditionally.
18873         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
18874         '#ifdef _LIBC"s.
18875         * modules/regex (Depends-on): Add pthread, if we use the
18876         included regex.
18878         * lib/regcomp.c: Do actions that are not needed for glibc,
18879         but may be needed elsewhere.
18880         (regfree, re_compile_internal): Destroy the lock.
18881         (re_compile_internal): Check for lock-initialization failure.
18883         malloca: port to compilers that reject size-zero arrays
18884         This fixes a bug introduced in my previous patch.
18885         * lib/malloca.c (struct preliminary_header): Use an int
18886         rather than a character array of size int; that's simpler.
18887         (struct header): Remove, replacing with ...
18888         (union header): New type.  This avoids the need for declaring a
18889         character array of size zero, which is not allowed on some platforms.
18890         All uses changed.
18892 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
18894         parse-datetime, tests: don't use "string" + int
18895         Recent versions of 'clang' complain about C source code that
18896         uses expressions of the form '"string literal" + integer',
18897         I guess on the theory that it's confusing for readers who are
18898         used to C++.  On those grounds I suppose it's OK to make this
18899         minor style change.
18900         * lib/parse-datetime.y (parse_datetime):
18901         * tests/test-fchdir.c (main):
18902         * tests/test-snprintf-posix.h (test_function):
18903         * tests/test-snprintf.c (main):
18904         * tests/test-vasnprintf-posix.c (test_function):
18905         * tests/test-vasnprintf.c (test_function):
18906         * tests/test-vsnprintf.c (main):
18907         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
18908         Rewrite '"str" + E' to '&"str"[E]'.
18910 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18912         argmatch: port to C++
18913         * lib/argmatch.h [__cplusplus]: Add extern "C".
18915         argp: typo fix
18916         * lib/argp-help.c: Typo in comment.
18918 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
18920         manywarnings: update for GCC 4.8.0
18921         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
18922         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
18923         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
18924         -Wmissing-noreturn, as they are duplicates of other warnings.
18925         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
18926         was documented to be flaky in earlier versions of GCC.
18928         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
18929         * tests/test-spawn.c (main):
18930         * tests/test-sys_socket.c (main):
18931         * tests/test-sys_wait.c (main):
18932         Don't have a switch value that isn't covered by a case.
18934         getaddrinfo-tests: port --enable-gcc-warnings to clang
18935         * tests/test-getaddrinfo.c (simple):
18936         Avoid casts from looser to stricter-aligned pointers.
18938         thread: port --enable-gcc-warnings to clang
18939         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
18940         Include <signal.h>, to pacify a warning about pthread_sigmask.
18942         stdio: use __REDIRECT for fwrite, fwrite_unlocked
18943         * lib/stdio.in.h (fwrite):
18944         When working around bug 11959, use __REDIRECT rather than '#define
18945         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
18946         fix the -Wunused-value issue with clang, and it works with GCC too.
18947         Problem with targeting reported by Eric Blake in
18948         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
18949         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
18950         debugging the fwrite issue.
18952         stdio: port --enable-gcc-warnings to clang
18953         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
18954         since the GCC workaround for fwrite does not pacify clang.
18956         sig2str: port --enable-gcc-warnings to clang
18957         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
18959         obstack: port --enable-gcc-warnings to clang
18960         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
18961         Avoid casts from looser to stricter-aligned pointers.
18963         memchr2: port --enable-gcc-warnings to clang
18964         * lib/memchr2.c (memchr2):
18965         Avoid casts from looser to stricter-aligned pointers.
18967         mbsstr: port --enable-gcc-warnings to clang
18968         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
18969         Avoid casts from looser to stricter-aligned pointers.
18971         malloca: port --enable-gcc-warnings to clang
18972         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
18973         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
18975         inttostr: port --enable-gcc-warnings to clang
18976         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
18978         warnings: port to clang
18979         Problem reported by Daniel P. Berrange via Eric Blake in
18980         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
18981         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
18982         (gl_WARN_ADD): Use it.
18984 2013-05-11  Jim Meyering  <meyering@fb.com>
18986         quotearg: do not read beyond end of buffer
18987         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
18988         end of an ARG for which no length was specified.  With an N-byte
18989         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
18990         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
18991         via coreutils' misc/sort-debug-keys.sh test and detected by running
18992         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
18993         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
18994         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
18995         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
18996         characters correctly."
18998 2013-05-11  Daiki Ueno  <ueno@gnu.org>
19000         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
19001         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
19002         compilation target is Mac OS X 10.6.
19003         Problem reported by parafin and Andoni Morales in
19004         <http://savannah.gnu.org/bugs/?37844> and
19005         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
19007 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19009         mkdir-p: remove assumptions about umask and mode
19010         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
19011         umask is 0, or that MODE is a subset of MODE_BITS.
19013 2013-05-10  Eric Blake  <eblake@redhat.com>
19015         maint.mk: catch more abuse of HAVE_DECL in syntax-check
19016         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
19018 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
19020         deps: require Automake >= 1.9.6 in generated Makefile fragments
19022         That is the same minimal version required in the DEPENDENCIES file.
19023         Moreover, the old code generated a requirement of Automake >= 1.5,
19024         and that is an insanely outdated version.
19026         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
19027         * tests/havelib/rpathlx/Makefile.am: Likewise.
19028         * tests/havelib/rpathly/Makefile.am: Likewise.
19029         * tests/havelib/rpathlyx/Makefile.am: Likewise.
19030         * tests/havelib/rpathlz/Makefile.am: Likewise.
19031         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
19032         * tests/havelib/rpathx/Makefile.am: Likewise.
19033         * tests/havelib/rpathy/Makefile.am: Likewise.
19034         * tests/havelib/rpathz/Makefile.am: Likewise.
19036 2013-05-08  Eric Blake  <eblake@redhat.com>
19038         bootstrap: AC_INIT may have more than four parameters
19039         * build-aux/bootstrap (extract_package_name): Correctly extract
19040         non-empty tarname field.  Avoid range in regex.
19041         Based on a report by Sami Kerola <kerolasa@iki.fi>.
19043 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19045         qacl: port to MS-Windows port of GNU Emacs
19046         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
19047         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
19048         port of GNU Emacs.  Problem reported by Eli Zaretskii in
19049         <http://bugs.gnu.org/14295#14>.
19051 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
19053         acl: include quote.h
19054         * lib/copy-acl.c: Include quote.h.
19055         * lib/set-acl.c: Likewise.
19057 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
19059         fchownat, renameat, unlinkat: update statat dependencies
19060         These modules use statat and lstatat, not fstatat; so depend on
19061         the statat module, which was split out recently from fstatat.
19062         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
19063         * modules/renameat: Likewise.  Also delete fstat.
19064         URL: http://bugs.gentoo.org/468790
19066 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
19068         Assume gnulib is checked out from Git, not CVS
19070         In fact, access to the gnulib repository through CVS has been
19071         disabled, or more precisely, got broken and was never restored; see:
19072         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
19074         Note that support for CVS is not removed completely and unthinkingly
19075         by this change: only support for CVS checkouts of gnulib itself is
19076         removed.  For example, the 'bootstrap' script still cater to .cvsingore
19077         files and CVS directories, for the benefit of those poor gnulib clients
19078         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
19080         * gnulib-tool: Simplify accordingly.
19081         * posix-modules: Likewise.
19082         * MODULES.html.sh: Likewise.
19083         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
19084         repository.
19085         * doc/gnulib-intro.texi: Likewise.
19086         * doc/gnulib-readme.texi: Likewise.
19087         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
19088         sample '.gitignore' file rather than a sample '.cvsignore'.
19089         * NEWS: Update.
19090         * m4/extensions.m4: While at it, remove a comment mistakenly referring
19091         to "CVS Autoconf" rather than "git Autoconf".
19093 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
19095         utimensat-tests, etc.: try to fix some races
19096         Problem reported by Bernhard Voelker in
19097         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
19098         I don't know whether this patch fixes that race condition, but it
19099         fixes *some* race conditions, so it should be a win.
19100         * modules/chown-tests (Depends-on):
19101         * modules/fchownat-tests (Depends-on):
19102         * modules/fdutimensat-tests (Depends-on):
19103         * modules/futimens-tests (Depends-on):
19104         * modules/lchown-tests (Depends-on):
19105         * modules/stat-time-tests (Depends-on):
19106         * modules/utimens-tests (Depends-on):
19107         * modules/utimensat-tests (Depends-on):
19108         Depend on nanosleep, not usleep.
19109         * modules/chown-tests (test_chown_LDADD):
19110         * modules/lchown-tests (test_lchown_LDADD):
19111         * modules/stat-time-tests (test_stat_time_LDADD):
19112         New macro.
19113         * modules/fchownat-tests (test_fchownat_LDADD):
19114         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
19115         * modules/futimens-tests (test_futimens_LDADD):
19116         * modules/utimens-tests (test_utimens_LDADD):
19117         * modules/utimensat-tests (test_utimensat_LDADD):
19118         Add $(LIB_NANOSLEEP).
19119         * modules/stat-time-tests (Files): Add tests/nap.h.
19120         * tests/nap.h: Include <limits.h>, for INT_MAX.
19121         (lt_mtime): Remove.
19122         (diff_timespec): New function.
19123         (get_stat): Rename from get_mtime.  All callers changed.
19124         (nap_works): Determine the needed delay by inspecting the
19125         file system's timestamp jumps; this should be more reliable.
19126         Look at both mtime and ctime, and take the maximum of the two jumps.
19127         (nap_works, guess_delay):
19128         Return a nanosecond count, not a microsecond count.
19129         All callers changed.
19130         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
19131         failure.
19132         (nap): Multiply the guess by 1.125, to accommodate the case where
19133         the file system's clock is a bit slower than nanosleep's clock.
19134         * tests/test-stat-time.c (BASE): New macro.
19135         Include nap.h.
19136         (nap): Remove; nap.h now defines this.  This removes a duplicate
19137         implementation of 'nap'.
19139         utimens, utimensat: work around Solaris UTIME_OMIT bug
19140         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
19141         Linux kernel 2.6.32 does.  Work around it in the same way.
19142         * doc/posix-functions/futimens.texi (futimens):
19143         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
19144         * lib/utimens.c (fdutimens, lutimens):
19145         * lib/utimensat.c (rpl_utimensat): Work around the bug.
19147         gettext: now it's your responsibility to add -I$(top_builddir)/intl
19148         Formerly, it was your responsibility to do this for all Makefile.ams
19149         other than Gnulib's.  Now it's your responsibility to do it for
19150         Gnulib's Makefile.am, too.
19151         * NEWS: Document this.
19152         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
19154         acl: include errno.h to get errno
19155         Reported by Daiki Ueno in
19156         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
19157         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
19159 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
19161         tests: don't assume getdtablesize () <= 10000000
19162         * modules/cloexec-tests:
19163         * modules/dup2-tests:
19164         * modules/dup3-tests:
19165         * modules/nonblocking-tests:
19166         * modules/posix_spawn_file_actions_addclose-tests:
19167         * modules/posix_spawn_file_actions_adddup2-tests:
19168         * modules/posix_spawn_file_actions_addopen-tests:
19169         * modules/unistd-safer-tests:
19170         Depend on the getdtablesize module.
19171         * tests/test-cloexec.c:
19172         * tests/test-dup-safer.c:
19173         * tests/test-dup2.c:
19174         * tests/test-dup3.c:
19175         * tests/test-fcntl.c:
19176         * tests/test-nonblocking.c:
19177         * tests/test-posix_spawn_file_actions_addclose.c:
19178         * tests/test-posix_spawn_file_actions_adddup2.c:
19179         * tests/test-posix_spawn_file_actions_addopen.c:
19180         Don't assume getdtablesize () <= 10000000.
19182 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
19184         extern-inline: work around bug in Sun c99
19185         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
19186         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
19188 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19190         qacl: new module, broken out from the acl module
19191         This is for GNU Emacs, which wants the acl functions but does
19192         not want 'error' invoked when they fail.
19193         * lib/acl-internal.h: Do not include error.h, quote.h.
19194         (ENOSYS, ENOTSUP): Remove; no longer needed.
19195         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
19196         * lib/acl.h: Include <stdbool.h>.
19197         (acl_errno_valid): New function.
19198         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
19199         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
19200         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
19201         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
19202         (ACL_INTERNAL_INLINE): Remove; no longer needed.
19203         * lib/file-has-acl.c (file_has_acl):
19204         * lib/qcopy-acl.c (qcopy_acl):
19205         * lib/qset-acl.c (qset_acl):
19206         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
19207         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
19208         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
19209         lib/file-has-acl.c, m4/acl.m4 to qacl module.
19210         Add lib/set-acl.c.
19211         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
19212         Add qacl.
19213         (configure.ac): Move gl_FUNC_ACL to qacl module.
19214         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
19215         Rename set-mode-acl.c to set-acl.c.
19216         * lib/acl-errno-valid.c: New file.
19217         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
19218         copy_acl function remains in copy-acl.c.
19219         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
19220         (_): Remove; not needed.
19221         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
19222         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
19223         * modules/qacl: New file, moved from the old modules/acl.
19224         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
19225         Remove set-mode-acl.c, copy-acl.c.
19226         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
19228         alignof, intprops, malloca: port better to IBM's C compiler
19229         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
19230         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
19231         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
19233 2013-04-25  Daiki Ueno  <ueno@gnu.org>
19235         wctype-h: fix gettext link error on mingw
19236         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
19237         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
19238         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
19239         rpl_towupper and rpl_towupper.
19241 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
19243         regex-tests, regex: allow glibc re_search behavior
19244         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
19245         re_search input data to make the multi-character collating element
19246         in it clearly visible, and treat re_search return code 0 as valid.
19247         * m4/regex.m4 (gl_REGEX): Likewise.
19249 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
19251         stdalign: doc fix
19252         * doc/posix-headers/stdalign.texi (stdalign.h):
19253         Gnulib doesn't support '_Alignof expr'.
19255 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
19257         stdalign: port to stricter ISO C11
19258         ISO C11 says that _Alignof's operand must be a parenthesized type.
19259         Problem reported by Eli Zaretskii in
19260         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
19261         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
19262         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
19264 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
19266         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
19267         Problem reported by Marco Atzeri in
19268         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
19269         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
19270         Simply delegate to the system <sys/select.h> in this case too.
19271         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
19272         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
19273         be needed on Solaris either.
19274         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
19275         Simply delegate to the system <sys/time.h> in this case.
19277 2013-03-19  Karl Berry  <karl@gnu.org>
19279         * build-aux/gnupload: check for erroneous (with gnupload) use of
19280         ftp-upload.gnu.org, tweak help.
19282 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19284         copy-file, rpmatch: fix problems found by cppcheck
19285         Reported by Arno Onken in
19286         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
19287         * lib/rpmatch.c (try): Fix memory leak.
19288         * lib/copy-file.c: Include "ignore-value.h".
19289         (qcopy_file_preserving): Ignore chown value.
19290         * modules/copy-file (Depends-on): Add ignore-value.
19292 2013-01-27  Jim Meyering  <jim@meyering.net>
19294         prefix-gnulib-mk: give better diagnostics
19295         * build-aux/prefix-gnulib-mk: Don't just "die".
19296         Give better diagnostics upon failure.
19298 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19300         putenv: port to Solaris 10
19301         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
19302         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
19303         is not what is wanted here.
19304         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
19305         declaration, not for its existence.
19307 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
19309         mktime: fix configure typo
19310         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
19312 2013-03-12  Eric Blake  <eblake@redhat.com>
19314         regex-tests: skip UTF-8 test on mingw
19315         * modules/regex-tests (Depends-on): Add localcharset.
19316         * tests/test-regex.c (main): Use it to skip test on mingw.
19318 2013-03-11  Eric Blake  <eblake@redhat.com>
19320         tests: make it easier to bypass alarm time in debugger
19321         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
19322         * tests/test-memmem.c (main): Likewise.
19323         * tests/test-passfd.c (main): Likewise.
19324         * tests/test-ptsname.c (main): Likewise.
19325         * tests/test-ptsname_r.c (main): Likewise.
19326         * tests/test-strcasestr.c (main): Likewise.
19327         * tests/test-strstr.c (main): Likewise.
19329         regex: port to mingw's recent addition of undeclared alarm
19330         * doc/posix-functions/alarm.texi (alarm): Document that alarm
19331         exists but still doesn't work in newer mingw.
19332         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
19333         not existence.  Ensure SIGALRM is not trapped.
19334         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
19335         * m4/regex.m4 (gl_REGEX): Likewise.
19336         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
19337         * tests/test-regex.c (main): Use correct probe for alarm.
19339         putenv: avoid compilation warning on mingw
19340         * lib/putenv.c (_unsetenv): Protect variable declaration.
19341         (putenv): Fix indentation.
19343 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
19345         unistd: don't prevent Tru64 Unix from using gnulib strtod.
19346         * lib/unistd.in.h: be careful not to include un-needed system
19347         stdlib.h from here, because that prevents gnulib stdlib.h from
19348         defining rpl_strtod correctly.
19350 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
19352         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
19353         changesets, but for the 'precision 0' test.
19354         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19355         round-to-even, since POSIX says rounding is implementation-defined
19356         and OS X 10.8.2 rounds 1.51 to 1 here.
19358         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
19359         changeset.
19360         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19361         round-to-even, since POSIX says rounding is implementation-defined
19362         and OS X 10.8.2 rounds 1.5 to 1 here.
19364 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19366         vasnprintf-posix-tests: allow rounding 1.5 to 1
19367         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
19368         round-to-even, since POSIX says rounding is implementation-defined
19369         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
19370         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
19372         bootstrap: port to FreeBSD
19373         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
19374         that treat '--' differently.  Reported by Mats Erik Andersson in
19375         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
19377 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
19379         regex: rename remaining __attribute calls to __attribute__.
19380         2012-02-25 changed definition of __attribute, but left some uses
19381         unchanged, preventing compilation of regex module on most non-gcc
19382         environments.
19383         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
19384         (lookup_collation_sequence_value, build_range_exp)
19385         (build_collating_symbol): Set attributes with newly renamed
19386         __attribute__ decorator.
19387         * lib/regex_internal.c (re_string_peek_byte_case)
19388         (re_node_set_compare, re_node_set_contains): Likewise.
19389         * lib/regexec.c (acquire_init_state_context): Likewise.
19391 2013-03-06  Bruno Haible  <bruno@clisp.org>
19393         execute: Revert last change, but use a different condition.
19394         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
19395         on Windows.
19397 2013-03-05  Eric Blake  <eblake@redhat.com>
19399         execute: drop dead code
19400         * lib/execute.c (nonintr_close, nonintr_open): Delete.
19402 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
19404         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
19405         * m4/non-recursive-gnulib-prefix-hack.m4
19406         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
19407         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
19408         <http://bugs.gnu.org/10305#237>.
19410 2013-03-04  Eric Blake  <eblake@redhat.com>
19412         test-getsockopt: avoid compiler warning
19413         * tests/test-getsockopt.c (includes): Ensure close is declared.
19415 2013-03-02  Bruno Haible  <bruno@clisp.org>
19417         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
19418         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
19420 2013-03-02  Bruno Haible  <bruno@clisp.org>
19422         gettext: Update to version 0.18.2.
19423         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
19424         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
19425                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
19427 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19429         regex: merge patches from libc
19431         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19432         * lib/regex_internal.h (__attribute__): Rename from __attribute.
19433         All uses changed.
19434         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
19435         (re_string_wchar_at, re_string_elem_size_at):
19436         Mark function as possibly unused.
19438         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
19439         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
19440         elements compare against the byte sequence of it, not its name.
19442 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
19444         putenv: port better to native Windows
19445         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19446         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
19447         (_unsetenv): Use _putenv if available.
19448         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
19449         a bit less likely to cause damage.
19450         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19451         Fix the wrong value with SetEnvironmentVariable.
19452         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
19453         code better.
19455 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19457         regex: ignore old-style-definition warnings
19458         * lib/regex.c: Add pragma to ignore these warnings.
19459         Problem reported for GNU tar by Pavel Raiskup.
19461 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
19463         getcwd: support coreutils better
19464         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
19465         but this might not be correct in coreutils, which disables
19466         the raw decl checks.  Problem reported by Nagendra in
19467         <http://bugs.gnu.org/10305#192>.
19468         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
19469         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
19470         Test the getcwd function, not any macro, since getcwd.c wants the
19471         function.
19472         * m4/getcwd.m4 (gl_FUNC_GETCWD):
19473         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
19474         compile, as might happen if there's a macro but no function.
19476         strtod: support coreutils better
19477         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
19478         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
19479         disables the raw decl checks.  This assumes there is an underlying
19480         strtod, but that's a safe assumption these days.
19481         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
19483         mountlist: port to HP NonStop
19484         Reported by Joachim Schmitz in
19485         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
19486         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
19487         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
19489 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19491         extern-inline: avoid compilation error with HP-UX cc
19492         Reported by Richard Lloyd in
19493         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
19494         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
19495         Suppress extern inline with HP-UX cc.  This should be safe,
19496         though it may hurt performance.  Perhaps someone with some HP-UX
19497         experience can come up with a higher-performance fix.
19499 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
19501         putenv: fix heap corruption with mixed putenv/_putenv
19502         Problem reported by Michael Goffioul in
19503         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
19504         * lib/putenv.c (putenv) [HAVE__PUTENV]:
19505         Rely on _putenv to allocate the new environment.
19506         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
19507         * modules/putenv (configure.ac): Use it.
19509 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
19511         unsetenv etc.: port to Solaris 11 + GNU Emacs
19512         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
19513         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
19514         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
19515         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
19516         idea but is too painful to fix right now), and without this gnulib
19517         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
19518         compiling unsetenv.c on Solaris 11.  Fix the problem for
19519         unsetenv.c, and fix other similar occurrences.
19521 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19523         secure_getenv: fix C++ declaration typo
19524         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
19525         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
19526         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
19528 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19530         careadlinkat: stop exporting careadlinkatcwd
19531         Only Emacs used it directly, and Emacs no longer needs it.
19532         * NEWS: Document this simplification.
19533         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
19534         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
19535         for readlink.
19536         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
19537         Don't include stdlib.h; no longer needed.
19538         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
19539         * lib/relocwrapper.c: Adjust comment to match new dependencies.
19540         * modules/areadlink (Depends-on): Add readlink.
19541         (Maintainer): Add self.
19542         * modules/careadlinkat (Depends-on): Remove readlink.
19544         extensions: port better to HP-UX
19545         This is merged from git Autoconf.
19546         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19547         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
19548         so that it's compatible with the value used when compiling.
19550         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
19551         Problem reported by Mats Erik Andersson in
19552         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
19553         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
19554         openpty function exists, not merely when we intend to replace it.
19555         This corrects the 2013-01-31 patch, which mistakenly defined
19556         HAVE_OPENPTY even on hosts that lacked it.
19558 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
19560         secure_getenv: fix include typo
19561         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
19563         secure_getenv: port better to FreeBSD and Solaris
19564         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
19565         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
19566         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
19567         This works better on BSDish platforms.
19568         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
19569         Test for issetugid if __secure_getenv is missing.
19571 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19573         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
19574         Some of these changes are merged in from git Autoconf.
19575         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19576         When deciding whether to define _XOPEN_SOURCE, inspect the
19577         preprocessor macro __hpux instead of the more-heavyweight
19578         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
19579         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
19580         as the key for __EXTENSIONS__.
19582         unistd: avoid namespace pollution on non-glibc systems
19583         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
19584         This avoids namespace pollution on non-glibc systems, by causing
19585         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
19586         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
19587         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
19589 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19591         tmpdir: use secure_getenv
19592         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
19593         Define to secure_getenv, not getenv.
19594         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
19595         as that's now secure_getenv's job.
19596         * modules/tmpdir (Depends-on): Add secure_getenv.
19598         tempname: use secure_getenv
19599         * lib/tempname.c (__secure_getenv) [!_LIBC]:
19600         Define to secure_getenv, not getenv.
19601         * modules/tempname (Depends-on):
19602         Add secure_getenv.
19604         secure_getenv: new module
19605         * MODULES.html.sh (Extra functions based on ANSI C 89):
19606         Add secure_getenv.
19607         * doc/glibc-functions/secure_getenv.texi: New file.
19608         * doc/gnulib.texi: Include it.
19609         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
19610         New files.
19611         * lib/stdlib.in.h (secure_getenv): New decl.
19612         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
19613         * modules/stdlib (stdlib.h):
19614         Add secure_getenv checks.
19616 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19618         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
19619         Reported for OS X 10.8.2 by Assaf Gordon in
19620         <http://bugs.gnu.org/13516>.
19621         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
19622         !HAVE_OPENAT && !HAVE_FDOPENDIR.
19623         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
19624         so that they can be kept in sync more easily.  Avoid PATH_MAX
19625         test on the Hurd.  Sync from test-getcwd.c for errno tests after
19626         mkdir or chdir failure.
19627         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
19628         lib/getcwd.c.
19629         (test_abort_bug): Do not test for the deep directory bug unless we
19630         have openat support.  Avoid PATH_MAX test on the Hurd.
19632         regex-tests, regex: fix bug: memset undeclared
19633         * tests/test-regex.c: Don't include regex.h twice.  Include
19634         string.h, to declare memset.  Christensen's report also mentioned
19635         this issue.
19636         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
19637         test-regex.c, to avoid future problems like this.  Remove
19638         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
19639         twice.
19641         regex-tests: fix link errors on older Solaris
19642         These need to link with @LIBINTL@ to get libintl_gettext.
19643         Problem reported by Tom G. Christensen in
19644         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
19645         * modules/regex-tests (test_regex_LDADD): New macro.
19647 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
19649         regex-tests: new module
19650         * modules/regex-tests, tests/test-regex.c: New files.
19652         regex: fix off-by-one error in configure test
19653         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
19655 2013-01-31  Eric Blake  <eblake@redhat.com>
19657         regex: avoid infinite configure test
19658         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
19660 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
19662         openpty: fix bug where HAVE_OPENPTY wasn't defined
19663         See the thread starting at:
19664         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
19665         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
19666         openpty function exists, not merely when we intend to replace it.
19668 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19670         sys_time: port to Solaris 2.6
19671         There is a circularity problem on Solaris 2.6, where <time.h> includes
19672         <sys/time.h> for struct timespec.  The include nesting is gnulib
19673         <time.h>, system <time.h>, gnulib <sys/time.h>, system
19674         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
19675         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
19676         <sys/siginfo.h>; the last, innermost file needs struct
19677         timestruc_t, which is defined in <sys/time.h>, which has not been
19678         fully parsed.  Problem reported by Tom G. Christensen in
19679         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
19680         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
19681         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
19682         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
19683         uses split double-inclusion guards.
19685 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19687         regex: test for buffer overrun
19688         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
19689         for the just-fixed regex bug.
19691 2013-01-29  Andreas Schwab  <schwab@suse.de>
19693         regex: fix buffer overrun in regexp matcher [BZ #15078]
19694         * lib/regexec.c (extend_buffers): Add parameter min_len.
19695         (check_matching): Pass minimum needed length.
19696         (clean_state_log_if_needed): Likewise.
19697         (get_subexp): Likewise.
19699 2013-01-28  Pádraig Brady  <P@draigBrady.com>
19701         mountlist: don't consider "devtmpfs" as dummy
19702         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
19703         as there is storage associcated with it.
19705 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
19707         futimens-tests, utimens-tests: Depend on gettext.
19708         This works around a problem introduced in my 2013-01-12 patch,
19709         which added @LIBINTL@ to these modules.
19710         * modules/futimens-tests (Depends-on):
19711         * modules/utimens-tests (Depends-on): Add gettext.
19713 2013-01-26  Eric Blake  <eblake@redhat.com>
19715         test-getpeername: fix typo
19716         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
19718 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
19720         bootstrap: remove the need for a sorted .gitignore file
19721         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
19722         rename to insert_if_absent(), so that we don't need or generate
19723         a sorted .gitignore file.  We do require a .gitignore with no
19724         existing duplicate entries and enforce that.
19725         (sort_patterns): Remove this function as we now use the simpler
19726         technigue of inserting blacklist entries at the top of the file,
19727         assuming gnulib won't be inserting !whitelist entries.
19729 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19731         readlinkat: don't depend on gl_FUNC_OPENAT
19732         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
19733         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
19734         renameat.m4, symlinkat.m4; but one thing at a time.
19736         statat: new module, split out from fstatat
19737         GNU Emacs needs the POSIX-specified fstatat, but not the
19738         gnulib-specified statat and lstat.  Split the latter two into a
19739         new module 'statat'.
19740         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
19741         * lib/openat.h, lib/statat.c (STATAT_INLINE):
19742         Rename from FSTATAT_INLINE. All uses changed.
19743         * modules/fstatat (Files): Remove lib/statat.c.
19744         (gl_MODULE_INDICATOR([fstatat])): Remove.
19745         (lib_SOURCES): Remove.
19746         (Maintainer): Add self.
19747         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
19748         * tests/test-fstatat.c (BASE): Don't define if already defined.
19749         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
19751 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
19753         tests: don't assume fd 99 is closed
19754         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
19755         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
19756         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
19757         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
19758         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
19759         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
19760         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
19761         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
19762         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
19763         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
19764         * tests/test-fwrite.c, tests/test-getpeername.c:
19765         * tests/test-getsockname.c, tests/test-getsockopt.c:
19766         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
19767         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
19768         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
19769         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
19770         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
19771         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
19772         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
19773         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
19774         * tests/test-unlinkat.c, tests/test-unlockpt.c:
19775         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
19776         Close file descriptor 99, instead of assuming it's already closed.
19778 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
19780         stpncpy: port to OS X 10.8
19781         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
19782         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
19784 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
19786         unistd: port to recent mingw
19787         * lib/unistd.in.h: Remove special invocation convention for mingw,
19788         which breaks for the latest mingw version.  See John W. Eaton in
19789         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
19791         largefile: port better to Mac OS X 10.5
19792         This patch is backported from Autoconf git.
19793         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
19794         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
19795         with ino_t size being different for configuration time versus
19796         build/run time.  Problem reported by PHO in
19797         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
19799 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
19801         doc: clarify -Werror
19802         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
19803         clarify that it's intended for developers, not for ordinary builds,
19804         and mention --enable-gcc-warnings as one possible use.
19806 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
19808         stdint: fix build with Android's Bionic fox x86
19809         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
19810         was already included as _SSIZE_T_DEFINED_ might also be defined
19811         in include/machine/_types.h, which is included by stdio.h
19813 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
19815         net_if-tests: port to Solaris 7 + GCC 3.4.6
19816         Problem reported by Tom G. Christensen in
19817         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
19818         * tests/test-net_if.c (ni): Move to next the code that uses it,
19819         so that it's declared only if needed.
19821 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
19823         net_if-tests: port to older Solaris
19824         Problem reported by Tom G. Christensen in
19825         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
19826         * modules/net_if-tests (NET_IF_LIB): New substitution.
19827         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
19828         (HAVE_IF_NAMEINDEX): New C macro.
19829         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
19831         system-quote-tests: port to older Solaris
19832         Problem reported by Tom G. Christensen in
19833         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
19834         * tests/test-system-quote-child.c (fopen, fread): Undef.
19836         c-xvasprintf etc.: fix link errors on older Solaris
19837         These need to link with @LIBINTL@ to get libintl_gettext.
19838         Problem reported by Tom G. Christensen in
19839         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
19840         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
19841         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
19842         * modules/futimens-tests (test_futimens_LDADD):
19843         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
19845 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19847         locale: port to Solaris 2.6 and 7 + GNU gettext
19848         * lib/locale.in.h: Just include_next <locale.h> when
19849         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
19850         when combining the localename module with GNU gettext 0.18.2.
19851         Problem reported by Tom G. Christensen in
19852         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
19854 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
19856         stdlib: port to Solaris 2.6
19857         Also, the code worked on Solaris 7 through 9 only by accident.
19858         Problem reported by Tom G. Christensen in
19859         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
19860         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
19861         simply include the system stdlib.h.
19862         * lib/getopt.in.h (__need_system_stdlib_h):
19863         * lib/pthread.in.h (__need_system_stdlib_h):
19864         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
19865         Define when including <stdlib.h>, to avoid problems at least for
19866         the pthread case on Solaris 2.6 and 7.  These .h files can get by
19867         with the system stdlib.h.
19869 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
19871         doc: update main copyright year
19872         * doc/gnulib.texi: Update copyright date.
19874         doc: improve ISO 8601 discussion
19875         * doc/parse-datetime.texi (Combined date and time of day items):
19876         Specify more carefully what formats are supported and what is
19877         done with excess precision.
19879 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
19881         doc: avoid small caps
19882         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
19883         they're more trouble than they're worth.  Suggested by Karl Berry
19884         in <http://bugs.gnu.org/13360>.
19886         regex: conform to strict C
19887         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
19888         From Aharon Robbins.
19890         gnulib-tool: fix incompatibility with autopoint 0.18.2
19891         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
19892         Problem reported by Tom G. Christensen in
19893         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
19895 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
19897         fprintftime: bring back and reword fwrite comment
19898         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
19900         stdio: remove now-unnecessary stdio.c
19901         Since stdio.in.h no longer uses inline functions, we no longer
19902         need to compile the extern versions.
19903         * lib/stdio.c: Remove.
19904         * modules/stdio (Files): Remove lib/stdio.c.
19905         (lib_SOURCES): Remove.
19907         unicodeio: depend on stdio, not ignore-value
19908         * lib/unicodeio.c: Do not include ignore-value.h.
19909         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
19910         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
19912         fprintftime: depend on stdio, not ignore-value
19913         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
19914         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
19915         since the stdio module arranges to silence that warning now.
19916         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
19918 2012-10-04  Simon Josefsson  <simon@josefsson.org>
19920         stdint-tests: Fix expanded-before-required-warning.
19921         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
19923 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
19925         fwrite: silence __wur only for older glibc versions
19926         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
19927         This will help us remove this workaround some time in the far future.
19929 2013-01-03  Eric Blake  <eblake@redhat.com>
19931         fwrite: silence __wur without using inline
19932         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
19933         just gcc, and in a way that avoids inline issues.
19934         * modules/stdio (Depends-on): Drop extern-inline.
19936 2013-01-03  Jim Meyering  <jim@meyering.net>
19938         update-copyright: avoid copyright notice date corruption
19939         Given a sequence of copyright year numbers in which the final
19940         one was a two-digit number that happened to be a substring of
19941         a preceding four-digit year number, we would mistakenly update
19942         the substring (from two- to four-digit) rather than the two-digit
19943         number at the end, which, combined with the addition of the current
19944         4-digit year number would yield two 5-digit year numbers, e.g.,
19945         here, it would convert the first "99" to "1999, 2013" rather than
19946         the final one:
19947           1991, 99
19948           11999, 20131, 1999
19949         * build-aux/update-copyright: Tighten a regexp.
19950         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
19951         Reported by Joseph Myers in
19952         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
19954 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
19956         regex: omit needless signed-pointer casts
19957         * lib/regcomp.c (build_charclass, build_charclass_op):
19958         Use char *, not unsigned char *, for class name and extra.
19959         The char values are always nonnegative so there's no need to
19960         insist on unsigned char * here, and using char * removes the need
19961         for casts.  Reported by Aharon Robbins in
19962         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19964         regex: support Gawk, which never uses alloca
19965         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
19966         Do not include in this case.  Gawk doesn't supply a substitute
19967         alloca.h and doesn't need one.
19969         regex: port __libc_lock_define usage to C89
19970         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
19971         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
19972         does not conform to C89, as it has an empty macro argument.
19973         Reported by Aharon Robbins in
19974         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19976 2013-01-01  Eric Blake  <eblake@redhat.com>
19978         maint: update all copyright year number ranges
19979         Run "make update-copyright".
19981         version-etc: bump copyright year reported in --version
19982         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
19984 2012-12-31  Eric Blake  <eblake@redhat.com>
19986         sigprocmask-tests: skip test if pid is unexpectedly large
19987         * tests/test-sigprocmask.c (main): Add range check.
19989         git-version-gen: avoid test -z portability glitch
19990         * build-aux/git-version-gen: Prefer portable test spelling, since
19991         git-version-gen is run on more than just developer machines.
19993 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
19995         git-version-gen: add --fallback option to use if git is not present
19996         * build-aux/git-version-gen: Add support for the new option --fallback,
19997         which comes into play when there is no $tarball_version_file and
19998         git is not working.
19999         (scriptversion): Update.
20001         maint.mk: handle missing git with more grace
20002         * top/maint.mk (no-submodule-changes, public-submodule-commit):
20003         Quietly proceed if git is not present.
20005 2012-12-31  Eric Blake  <eblake@redhat.com>
20007         dup2: work around cygwin bug
20008         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
20009         * lib/dup2.c (rpl_dup2): Work around it.
20010         * doc/posix-functions/dup2.texi (dup2): Document it.
20012 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20014         regex: remove unnecessary dependency on localcharset.h
20015         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
20016         hasn't been needed for years.
20017         * modules/regex (Depends-on): Remove localcharset.
20019         regex: revert single-byte change
20020         * lib/regexec.c (check_node_accept_bytes): Revert previous change
20021         to this function.  This was alredy fixed in a different way, at
20022         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
20023         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
20024         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
20026         regex: simplify based on Gawk version
20027         * lib/regex_internal.c (re_dfa_add_node): Simplify.
20028         Reported by Aharon Robbins in
20029         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20031 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20033         regex: check that pattern char is single-byte
20034         Reported by Aharon Robbins in
20035         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20036         * lib/regexec.c (check_node_accept_bytes):
20037         Return 0 if the pattern string has a multibyte character here.
20039         regex: implement rational ranges
20040         Reported by Aharon Robbins in
20041         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20042         * lib/regcomp.c (build_range_exp) [!_LIBC]:
20043         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
20044         Implement rational ranges.
20046         regex: avoid redefining __wctype
20047         Reported by Aharon Robbins in
20048         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20049         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
20050         #undef before defining.
20052         regex: port to hosts where malloc (0) == NULL
20053         Reported by Aharon Robbins in
20054         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20055         * lib/regex_internal.c (re_node_set_alloc):
20056         Don't assume that malloc (0) yields nonnull.
20057         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
20058         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
20059         * modules/regex (Files): Add m4/eealloc.m4.
20061         regex: port to C89
20062         Reported by Aharon Robbins in
20063         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20064         * lib/regcomp.c (init_word_char): Declaration before statement.
20066         regex: merge glibc changes
20067         Also, copy the license wording from glibc.  This simplifies
20068         merging changes.  gnulib-tool will change the wording to GPL as
20069         appropriate, when importing it to other packages.  The only
20070         glibc change made since the last merge, which needs merging, is:
20071         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
20072         * lib/regex_internal.h (gettext): Remove use of INTUSE.
20074         * users.txt: Add Emacs.
20076         doc: omit mention of version when not needed
20077         * doc/gnulib-intro.texi (Portability and Application Code):
20078         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
20079         Don't mention particular dates or versions when not necessary, so
20080         that the documentation won't go out of date so quickly.
20082         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
20084 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
20086         bootstrap: pass --force to autoreconf.
20087         * build-aux/bootstrap (AUTORECONFFLAGS): New.
20088         Add "--force" so that Automake's ylwrap and other such tools
20089         be updated at each bootstrap invocation.
20090         Use it.
20092 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20094         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
20095         The earlier patch forgot to update one of the #if conditions, causing
20096         a problem on Debian testing i386 reported by Mats Erik Andersson
20097         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
20098         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
20099         (__argp_fmtstream_puts, argp_fmtstream_puts)
20100         (__argp_fmtstream_write, argp_fmtstream_write)
20101         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
20103         * doc/gnulib-readme.texi: Minor fixups.
20104         (Portability guidelines): Modernize URLs.  Remove some repetition.
20105         (Indent with spaces not TABs): Reword to avoid too-long lines.
20106         Remove some '@ifset standalone' stuff that isn't used.
20108         * doc/gnulib-readme.texi (Portability guidelines):
20109         ctype.h, not ctime.h.
20111         Correct name of POSIX.1-2001.
20112         * doc/posix-functions/fgetc.texi (fgetc):
20113         * doc/posix-functions/fgets.texi (fgets):
20114         * doc/posix-functions/fread.texi (fread):
20115         * doc/posix-functions/fscanf.texi (fscanf):
20116         * doc/posix-functions/getc.texi (getc):
20117         * doc/posix-functions/getchar.texi (getchar):
20118         * doc/posix-functions/scanf.texi (scanf):
20119         POSIX.1-2001, not POSIX-2001.
20121         doc: move README into manual
20122         * README: Move contents to new file doc/gnulib-readme.texi.
20123         Replace with a one-line summary.
20124         * doc/gnulib.texi (Brief Overview): New section,
20125         with old intro preface.  Include gnulib-readme.texi for contents.
20126         (Philosophy): Rename from "Introduction", since this
20127         section no longer introduces the rest.  Write a new preface.
20128         * doc/gnulib-readme.texi: New file, with the old contents of
20129         README texinfo-ized.  This way, the README info appears
20130         in the online and printed manual.
20132 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
20134         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
20135         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
20136         c_vasprintf() prototype.
20138 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
20140         c-vasprintf: Fix "empty declaration" warning reported by GCC.
20141         * lib/c-vasprintf.h: Remove stray semicolon.
20143 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20145         gettext: avoid obsolete macro AM_PROG_MKDIR_P
20146         It is obsolete and is planned to be removed from Automake 1.14; see
20147         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
20148         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
20149         (installdirs-data, installdirs-data-yes):
20150         Use $(MKDIR_P), not $(mkdir_p).
20151         * m4/intl.m4 (AM_INTL_SUBDIR):
20152         * m4/po.m4 (AM_PO_SUBDIRS):
20153         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
20155 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20157         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
20158         On this platform, we are not optimizing but we are using
20159         the substitute for extern inlines, so compile as if
20160         C99-style extern inline, or a substitute, is available.
20161         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
20162         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
20163         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
20164         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
20165         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
20166         Declare as ARGP_FS_EI, not as extern.
20167         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
20168         (__option_is_short, _option_is_end, __option_is_end)
20169         [!_LIBC && __USE_EXTERN_INLINES]:
20170         Declare as ARGP_EI, not as extern.
20172 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20174         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
20175         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
20176         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
20177         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
20178         ...), as the latter is fatal with older Autoconfs.
20179         Problem reported and fix suggested by Eric Blake in thread starting at
20180         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
20182 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20184         AC_PROG_MKDIR_P: don't workaround if not buggy
20185         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
20186         Define only for Autoconf versions before 2.62.
20187         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
20188         undocumented m4_PACKAGE_VERSION, for consistency with the
20189         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
20190         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
20191         was introduced in 2.62.
20193 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
20195         New 'c-*printf' modules for formatted output in C locale.
20197         New module 'c-vasnprintf'.
20198         * modules/c-vasnprintf: New file.
20199         * lib/c-vasnprintf.c: New file.
20200         * lib/c-vasnprintf.h: New file.
20202         New module 'c-snprintf'.
20203         * modules/c-snprintf: New file.
20204         * modules/c-snprintf-tests: New file.
20205         * lib/c-snprintf.c: New file.
20206         * lib/c-snprintf.h: New file.
20207         * tests/test-c-snprintf.c: New file.
20208         * tests/test-c-snprintf.sh: New file.
20210         New module 'c-vsnprintf'.
20211         * modules/c-vsnprintf: New file.
20212         * modules/c-vsnprintf-tests: New file.
20213         * lib/c-vsnprintf.c: New file.
20214         * lib/c-vsnprintf.h: New file.
20215         * tests/test-c-vsnprintf.c: New file.
20216         * tests/test-c-vsnprintf.sh: New file.
20218         New module 'c-vasprintf'.
20219         * modules/c-vasprintf: New file.
20220         * modules/c-vasprintf-tests: New file.
20221         * lib/c-asprintf.c: New file.
20222         * lib/c-vasprintf.c: New file.
20223         * lib/c-vasprintf.h: New file.
20224         * tests/test-c-vasprintf.c  +: New file.
20225         * tests/test-c-vasprintf.sh: New file.
20227         New module 'c-xvasprintf'.
20228         * modules/c-xvasprintf: New file.
20229         * modules/c-xvasprintf-tests: New file.
20230         * lib/c-xasprintf.c: New file.
20231         * lib/c-xvasprintf.c: New file.
20232         * lib/c-xvasprintf.h: New file.
20233         * tests/test-c-xvasprintf.c: New file.
20234         * tests/test-c-xvasprintf.sh: New file.
20236 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20238         argp: better 'inline'
20239         Use extern-inline module to declare extern inline functions.
20240         This avoids some bogus warning diagnostics.  Problem discovered
20241         when modifying GNU tar to use the manywarnings module.
20242         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
20243         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
20244         Define based on extern-inline.
20245         * modules/argp (Depends-on): Add extern-inline.
20247 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
20249         filemode, sys_stat: Handle MPX files a la AIX.
20250         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
20251         * lib/sys_stat.in.h (S_ISMPX): New macro.
20252         * tests/test-sys_stat.c: Add tests for MPX files.
20254 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
20256         x-to-1: honor $PERL
20257         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
20258         a chance to use his preferred version of Perl.  This is typically
20259         required by Darwin users whose default /usr/bin/perl does not have all
20260         the libraries required by help2man, and who need to use their MacPorts
20261         installation of Perl instead.
20263 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20265         gnu-web-doc-update: add all the new files, even in new directories
20266         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
20267         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
20268         Use it.
20269         (main): Don't use cvsutils to get the list of unknown files,
20270         just add all the existing files and directories.
20272 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20274         gnu-web-doc-update: improve --help
20275         * build-aux/gnu-web-doc-update: Move comments into --help.
20277 2012-12-07  Eric Wong  <normalperson@yhbt.net>
20279         mountlist: recognize more "dummy" file systems
20280         * lib/mountlist.c (ME_DUMMY_0):
20281         Add these dummy FS names to the list:
20282         - "debugfs" virtual filesystem for kernel debugging
20283         - "devpts" PTY slave filesystem
20284         - "devtmpfs" device filesystem on top of tmpfs/ramfs
20285         - "fusectl" control filesystem for FUSE
20286         - "mqueue" enumerates POSIX message queues
20287         - "rpc_pipefs" kernel <-> userspace bridge for NFS
20288         - "sysfs" is for exporting kernel objects
20289         - "devfs" device filesystem for Linux 2.4 and FreeBSD
20291 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
20293         extern-inline: avoid incompatibility with Darwin Libc
20294         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
20295         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
20296         Problem reported by Akim Demaille in
20297         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
20299 2012-12-11  Simon Josefsson  <simon@josefsson.org>
20301         gnupload: Work with GnuPG using gpg-agent (for smartcards).
20302         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
20303         let it handle password prompting.
20305 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
20307         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
20308         * lib/canonicalize.c (canonicalize_filename_mode):
20309         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
20310         fetching the current directory.  Don't overrun the beginning of
20311         rpath if there's no slashes after the MS-Windows drive letter.
20313 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
20315         maint.mk: avoid extra forks
20316         * top/maint.mk (_cfg_mk): The GNU make manual documents that
20317         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
20318         So use that instead of "$(shell test -f FILE && echo FILE)".
20320 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20322         vasnprintf: fix ASCII_ONLY typo
20323         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20324         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20325         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20326         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
20327         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
20329 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
20331         list, oset, xlist, xoset: fix extern inline issue with C99
20332         This was introduced by my recent changes for 'inline'.
20333         Problem reported for gettext by Daiki Ueno in
20334         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
20335         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
20336         (gl_list_nx_create, gl_list_size, gl_list_node_value)
20337         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
20338         (gl_list_previous_node, gl_list_get_at)
20339         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
20340         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
20341         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
20342         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
20343         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
20344         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
20345         (gl_list_iterator_free, gl_sortedlist_search)
20346         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
20347         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
20348         (gl_sortedlist_remove):
20349         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
20350         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
20351         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
20352         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
20353         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
20354         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
20355         (gl_list_add_at, gl_sortedlist_add):
20356         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
20357         Wrap these extern decls inside "#if 0", because they are implemented
20358         as inline functions, and extern inline is not what's wanted here.
20359         It would simplify these .h files to remove the extern decls entirely,
20360         although a downside would be less-clear separation between
20361         specification and implementation.
20363 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
20365         sys_stat: no 'static inline'
20366         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
20367         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
20369         extern-inline: no 'static inline'
20370         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
20371         Do not require AC_C_INLINE.
20372         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
20373         'static inline', for older compilers.
20375         snippet/warn-on-use: no 'static inline'
20376         * build-aux/snippet/warn-on-use.h:
20377         Remove unnecessary 'inline' in comment.
20379         rbtree-list, rbtreehash-list: no 'static inline'
20380         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
20381         * lib/gl_anytree_list2.h (node_at):
20382         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
20383         (gl_oset_first, add_nodes_to_buckets):
20384         Now static, not static inline.
20386         regex: no 'static inline'
20387         * lib/regex_internal.c (calc_state_hash):
20388         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
20389         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
20390         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
20391         Now static, not static inline.
20392         (inline) [__GNUC__ < 3 && _LIBC]:
20393         Remove macro; no longer needed.
20395         xvasprintf: no 'static inline'
20396         * lib/xvasprintf.c (xstrcat):
20397         Now static, not static inline.
20398         * m4/xvasprintf.m4 (gl_XVASPRINTF):
20399         Do not require AC_C_INLINE.
20401         parse-datetime, parse-duration: no 'static inline'
20402         * lib/parse-datetime.y (to_uchar):
20403         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
20404         (scale_n_add):
20405         Now static, not static inline.
20406         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
20407         * modules/parse-duration (configure.ac):
20408         Do not require AC_C_INLINE.
20410         getaddrinfo: no 'static inline'
20411         * lib/getaddrinfo.c (validate_family):
20412         Now static, not static inline.
20413         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
20414         Do not require AC_C_INLINE.
20416         ftruncate, fts, lstat, openat, raise: no 'static inline'
20417         * lib/ftruncate.c (chsize_nothrow):
20418         * lib/fts.c (opendirat, diropen):
20419         * lib/lstat.c (orig_lstat):
20420         * lib/openat.c (orig_openat):
20421         * lib/raise.c (raise_nothrow):
20422         Now static, not static inline.
20423         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
20424         * m4/fts.m4 (gl_FUNC_FTS_CORE):
20425         * m4/lstat.m4 (gl_PREREQ_LSTAT):
20426         * m4/openat.m4 (gl_PREREQ_OPENAT):
20427         * m4/raise.m4 (gl_PREREQ_RAISE):
20428         Do not require AC_C_INLINE.
20430         fflush, stat: no 'static inline'
20431         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20432         (clear_ungetc_buffer, disable_seek_optimization)
20433         (restore_seek_optimization, update_fpos_cache):
20434         * lib/stat.c (orig_stat):
20435         Now static, not static inline.
20436         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
20437         (update_fpos_cache):
20438         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
20439         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
20440         * m4/stat.m4 (gl_PREREQ_STAT):
20441         Do not require AC_C_INLINE.
20443         error, filevercmp: no 'static inline'
20444         * lib/error.c (is_open, flush_stdout):
20445         * lib/filevercmp.c (order):
20446         Now static, not static inline.
20447         * m4/error.m4 (gl_PREREQ_ERROR):
20448         * modules/filevercmp (configure.ac):
20449         Do not require AC_C_INLINE.
20451         dup, execute, fatal-signal, etc.: no 'static inline'
20452         * lib/dup.c (dup_nothrow):
20453         * lib/execute.c (nonintr_close, nonintr_open):
20454         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
20455         * lib/fopen.c (orig_fopen):
20456         * lib/freadseek.c (freadptrinc):
20457         * lib/freopen.c (orig_freopen):
20458         * lib/fstat.c (orig_fstat, fstat_nothrow):
20459         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
20460         (get_rusage_as_via_iterator):
20461         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
20462         * lib/getdtablesize.c (_setmaxstdio_nothrow):
20463         * lib/isatty.c (_isatty_nothrow):
20464         * lib/open.c (orig_open):
20465         * lib/read.c (read_nothrow):
20466         * lib/sigprocmask.c (signal_nothrow):
20467         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
20468         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
20469         * lib/wait-process.c (unregister_slave_subprocess):
20470         * lib/write.c (write_nothrow):
20471         Now static, not static inline.
20472         * lib/spawn-pipe.c (nonintr_open): Define only if
20473         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
20474         * m4/dup.m4 (gl_PREREQ_DUP):
20475         * m4/execute.m4 (gl_EXECUTE):
20476         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
20477         * m4/fopen.m4 (gl_PREREQ_FOPEN):
20478         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
20479         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
20480         * m4/fstat.m4 (gl_PREREQ_FSTAT):
20481         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
20482         * m4/isatty.m4 (gl_PREREQ_ISATTY):
20483         * m4/open.m4 (gl_PREREQ_OPEN):
20484         * m4/read.m4 (gl_PREREQ_READ):
20485         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
20486         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
20487         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
20488         * m4/wait-process.m4 (gl_WAIT_PROCESS):
20489         * m4/write.m4 (gl_PREREQ_WRITE):
20490         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
20491         Do not require AC_C_INLINE.
20493         c-strtod, memcoll, readutmp: no 'static inline'
20494         * lib/c-strtod.c (c_locale):
20495         * lib/memcoll.c (strcoll_loop):
20496         * lib/readutmp.c (desirable_utmp_entry):
20497         Now static, not static inline.
20498         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
20499         * m4/memcoll.m4 (gl_MEMCOLL):
20500         * m4/readutmp.m4 (gl_READUTMP):
20501         Do not require AC_C_INLINE.
20503         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
20504         * lib/arctwo.c (to_uchar):
20505         * lib/md4.c (set_uint32):
20506         * lib/md5.c (set_uint32):
20507         * lib/sha1.c (set_uint32):
20508         * lib/sha256.c (set_uint32):
20509         * lib/sha512.c (set_uint64):
20510         Now static, not static inline.  This is a bit simpler, and doesn't
20511         affect performance with GCC and default optimization.
20512         * m4/arctwo.m4 (gl_ARCTWO):
20513         * m4/md4.m4 (gl_MD4):
20514         * m4/md5.m4 (gl_MD5):
20515         * m4/sha1.m4 (gl_SHA1):
20516         * m4/sha256.m4 (gl_SHA256):
20517         * m4/sha512.m4 (gl_SHA512):
20518         Do not require AC_C_INLINE.
20520         cond, lock, thread: better 'inline'
20521         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
20522         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
20523         New macros.  Use them instead of static inline, for header functions.
20524         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
20525         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
20526         * lib/glthread/lock.c (gl_waitqueue_init)
20527         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
20528         * lib/glthread/thread.c (get_current_thread_handle):
20529         Change 'static inline' to 'inline'.
20530         * lib/glthread/cond.h, lib/glthread/thread.h:
20531         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20532         * m4/cond.m4 (gl_COND):
20533         * m4/lock.m4 (gl_PREREQ_LOCK):
20534         * m4/thread.m4 (gl_THREAD):
20535         Do not require AC_C_INLINE.
20536         * modules/cond, modules/thread (Depends-on): Add extern-inline.
20538         chdir-long, cycle-check, savewd: better 'inline'
20539         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
20540         (find_non_slash):
20541         * lib/cycle-check.c (is_zero_or_power_of_two):
20542         * lib/savewd.c (savewd_delegating):
20543         Change 'static inline' to 'inline'.
20544         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
20545         Replace all remaining uses of 'static inline' with it.
20546         * lib/savewd.h:
20547         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20548         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
20549         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
20550         * m4/savewd.m4 (gl_SAVEWD):
20551         Do not require AC_C_INLINE.
20552         * modules/savewd (Depends-on): Add extern-inline.
20554         base32, base64: no need for 'inline'
20555         * lib/base32.c (to_uchar, get_8, decode_8):
20556         * lib/base64.c (to_uchar, get_4, decode_4):
20557         Change 'static inline' to 'inline'.
20558         * m4/base32.m4 (gl_PREREQ_BASE32):
20559         * m4/base64.m4 (gl_PREREQ_BASE64):
20560         Do not require AC_C_INLINE.
20562         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
20563         * lib/gl_array_oset.c (gl_array_nx_add_at):
20564         (gl_array_remove_at):
20565         * lib/gl_linkedhash_list.c (hash_resize_after_add)
20566         (add_to_bucket, remove_from_bucket):
20567         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
20568         Change 'static inline' to 'static', as it's simpler to omit
20569         'inline' unless there's a significant performance advantage.
20571         list, oset, xlist, xoset, xsublist: simplify via extern inline
20572         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
20573         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
20574         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
20575         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
20576         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
20577         New macro.  Replace all uses of 'static inline' with it.
20578         [HAVE_INLINE]: Implement functions as *_INLINE functions,
20579         instead of as macros FOO that are defined to static inline
20580         functions FOO_inline.
20581         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
20582         * lib/gl_xsublist.c:
20583         Reimplement from scratch, by defining the corresponding *_INLINE
20584         macro and including the corresponding .h file.  This is simpler.
20585         * modules/list, modules/oset, modules/xlist, modules/xoset:
20586         (Files): Remove m4/gl_list.m4.
20587         (configure.ac): Remove gl_LIST.
20588         * m4/gl_list.m4: Remove.
20589         * modules/list, modules/oset, modules/xlist, modules/xoset:
20590         * modules/xsublist:
20591         (Depends-on): Depend on extern-inline, not inline.
20593         xalloc: better 'inline'
20594         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
20595         New macro.  Replace all uses of 'static inline' with it.
20596         (static_inline): Remove.
20597         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
20598         Let 'extern inline' do the work automatically, instead of doing
20599         it by hand.
20600         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
20601         Remove.  All uses removed.
20602         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
20604         gethrxtime: better 'inline'
20605         * lib/xtime.c: New file.
20606         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
20607         * lib/xtime.h (XTIME_INCLUDE):
20608         New macros.  Replace all uses of 'static inline' with them.
20609         * lib/gethrxtime.c (gethrxtime): Define only if
20610         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
20611         this source file is now always compiled, because of the extern inline.
20612         * lib/gethrxtime.h, lib/xtime.h:
20613         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20614         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
20615         if gethrtime works, as they're not needed in that case.
20616         (gl_XTIME): Do not require AC_C_INLINE.
20617         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
20618         compiled now.  Move the check into gl_GETHRXTIME.
20619         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
20620         (Depends-on): Add extern-inline.
20621         (configure.ac): gethrxtime is always compiled now.
20622         (lib_SOURCES): Add gethrxtime.c.
20624         wctype-h: better 'inline'
20625         * lib/wctype-h.c: New file.
20626         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
20627         New macro.  Replace all uses of 'static inline' with it.
20628         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20629         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
20630         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
20631         (Depends-on): Add extern-inline.
20633         unistd: better 'inline'
20634         * lib/unistd.c: New file.
20635         * lib/unistd.in.h (_GL_UNISTD_INLINE):
20636         New macro.  Replace all uses of 'static inline' with it.
20637         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20638         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
20639         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
20640         (Depends-on): Add extern-inline.
20642         sys_socket: better 'inline'
20643         * lib/sys_socket.c: New file.
20644         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
20645         New macro.  Replace all uses of 'static inline' with it.
20646         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20647         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
20648         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
20649         (Depends-on): Add extern-inline.
20651         stdio: better 'inline'
20652         * lib/stdio.c: New file.
20653         * lib/stdio.in.h (_GL_STDIO_INLINE):
20654         New macro.  Replace all uses of 'static inline' with it.
20655         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20656         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
20657         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
20658         (Depends-on): Add extern-inline.
20660         sigaction: better 'inline'
20661         * lib/sig-handler.c: New file.
20662         * lib/sig-handler.h (SIG_HANDLER_INLINE):
20663         New macro.  Replace all uses of 'static inline' with it.
20664         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20665         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
20666         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
20667         (Depends-on): Add extern-inline.
20669         selinux-h: better 'inline'
20670         * lib/se-context.c, lib/se-selinux.c: New files.
20671         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
20672         * lib/se-context.in.h (SE_CONTEXT_INLINE):
20673         New macro.  Replace all uses of 'static inline' with it.
20674         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20675         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
20676         New macro.  Replace all uses of 'static inline' with it.
20677         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20678         * modules/selinux-h (Files, lib_SOURCES):
20679         Add lib/se-context.c, lib/se-selinux.c.
20680         (Depends-on): Add extern-inline.
20681         (configure.ac): Do not require AC_C_INLINE.
20683         pthread: better 'inline'
20684         * lib/pthread.c: New file.
20685         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
20686         New macro.  Replace all uses of 'static inline' with it.
20687         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20688         * m4/pthread.m4 (gl_PTHREAD_CHECK):
20689         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
20690         * modules/pthread (Files): Add lib/pthread.c.
20691         (Depends-on): Add extern-inline.
20693         math: better 'inline'
20694         * lib/math.c: New file.
20695         * lib/math.in.h (_GL_MATH_INLINE):
20696         New macro.  Replace all uses of 'static inline' with it.
20697         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20698         * m4/math_h.m4 (gl_MATH_H):
20699         Do not require AC_C_INLINE.
20700         * modules/math (Files, lib_SOURCES):
20701         Add lib/math.c.
20702         (Depends-on): Add extern-inline.
20704         count-one-bits: better 'inline'
20705         * lib/count-one-bits.c: New file.
20706         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
20707         New macro.  Replace all uses of 'static inline' with it.
20708         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20709         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
20710         Do not require AC_C_INLINE.
20711         * modules/count-one-bits (Files, lib_SOURCES):
20712         Add lib/count-one-bits.c.
20713         (Depends-on): Add extern-inline.
20715         count-leading-zeros: better 'inline'
20716         * lib/count-leading-zeros.c: New file.
20717         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
20718         New macro.  Replace all uses of 'static inline' with it.
20719         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20720         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
20721         Do not require AC_C_INLINE.
20722         * modules/count-leading-zeros (Files, lib_SOURCES):
20723         Add lib/count-leading-zeros.c.
20724         (Depends-on): Add extern-inline.
20726         bitrotate: better 'inline'
20727         * lib/bitrotate.c: New file.
20728         * lib/bitrotate.h (BITROTATE_INLINE):
20729         New macros.
20730         Replace all uses of 'static inline' with them.
20731         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20732         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
20733         (Depends-on): Add extern-inline.
20734         (configure.ac): Do not require AC_C_INLINE.
20736 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
20738         maint.mk: avoid gratuitous failure
20739         Reported by Stefano Lattarini in
20740         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
20741         * top/maint.mk (public-submodule-commit): Quote more safely.
20743 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
20745         canonicalize, canonicalize-lgpl: support MS-Windows file names
20746         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
20747         for test cases, which it'd be nice to add at some point.
20748         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
20749         * lib/canonicalize.c (canonicalize_filename_mode):
20750         * lib/canonicalize-lgpl.c (__realpath):
20751         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
20752         slash is at the beginning of the file name.  Use ISSLASH, instead
20753         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
20754         the first character with '/'.  Test for
20755         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
20756         with a drive letter.
20757         * lib/canonicalize.c (SLASHES): New macro.
20758         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
20760 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
20762         fts: introduce FTS_VERBATIM
20763         * lib/fts_.h (FTS_VERBATIM): New bit flag.
20764         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
20765         * lib/fts.c (fts_open): Honor it.
20767 2012-11-09  Pádraig Brady  <P@draigBrady.com>
20769         getlogin-tests: allow errno == ENXIO
20770         * tests/test-getlogin.c (main): Skip tests if getlogin fails
20771         with errno == ENXIO (No controlling tty).
20772         getlogin_r-tests: Likewise. Also allow errno == ENOENT
20773         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
20774         with errno == ENOENT.  This was reported to happen in various
20775         situations on GNU/Linux.
20777 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20779         getlogin-tests: allow errno == ENOENT
20780         * tests/test-getlogin.c (main): Skip tests if getlogin fails
20781         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
20782         when running a test in an Emacs shell buffer.
20784 2012-11-08  Jim Meyering  <jim@meyering.net>
20786         tests/nap.h: avoid warning about unused variable
20787         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
20789         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
20790         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
20791         white space before each of the special-cased file names, to avoid
20792         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
20793         in http://bugs.gnu.org/12830.
20795 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
20797         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
20798         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
20799         fails with errno == EBADF when fd is opened with O_PATH.
20800         Reported by Jim Meyering in
20801         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
20802         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
20803         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
20805 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20807         test-utimens: speed up by taking shorter naps
20808         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
20809         New functions.
20810         (nap): Use them, to do a better job of guessing the delay.
20811         On Fedora 17 with ext4 atop md atop hard disks, this made
20812         test-utimens run 10x faster, because the test napped for
20813         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
20814         <http://bugs.gnu.org/12820#11>.
20816 2012-11-07  Jim Meyering  <jim@meyering.net>
20818         mountlist.c: fix a compilation failure
20819         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
20820         I introduced while transforming commit v0.0-7683-g613bcb6
20822 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20824         errno: port to LynxOS 178 2.2.2
20825         Problem reported by Joel Brobecker in
20826         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
20827         * doc/posix-headers/errno.texi (errno.h): Document this.
20828         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
20829         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
20830         Supply a string for EILSEQ.
20831         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
20833 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20835         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
20836         Linux kernel 2.6.39 introduced O_PATH (see
20837         <http://lwn.net/Articles/433854/>) and this is a better fallback
20838         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
20839         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
20840         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
20841         * lib/fcntl.in.h (O_ACCMODE):
20842         * tests/test-fcntl-h.c (main):
20843         Do not reject O_ACCMODE merely because it has more than the
20844         minimal number of bits, as POSIX allows extensions here.
20846 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
20848         mountlist: do not classify a bind-mounted dir entry as "dummy"
20849         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
20850         the "none"-testing clause.
20851         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
20852         exception for bind-mounted directories.
20854 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
20856         quote: provide a means to escape strings with nul characters
20857         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
20858         (quote, quote_n): Rename formal arguments for consistency with
20859         quotearg.
20861 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
20863         test-raise: don't assume 199 is an invalid signal
20864         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
20866         sh-quote-tests: port to Solaris 9
20867         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
20868         Problem reported by Dagobert Michelsen in
20869         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
20871 2012-10-28  Jim Meyering  <jim@meyering.net>
20873         maint.mk: rename a new configurable variable
20874         * top/maint.mk (_gl_translatable_string_re): Rename from
20875         translation-markers: _gl_ prefix to insulate from user Makefile code,
20876         and the _re suffix to inform that it's a regular expression.
20878 2012-10-26  Eric Blake  <eblake@redhat.com>
20880         maint.mk: let packages tweak sc_po_check pattern
20881         * top/maint.mk (sc_po_check): Add translation-markers, to allow
20882         finding files with other translation markers.
20884 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20886         euidaccess: speed up 'configure' on GNU hosts
20887         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
20888         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
20889         it's needed only in this case.  Use AC_CHECK_DECLS, not
20890         AC_CHECK_DECLS_ONCE.
20891         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
20892         or AC_REQUIRE for AC_FUNC_GETGROUPS.
20894         * lib/regexec.c (re_search_internal): Fix grammar in comment.
20896 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
20898         fchmodat, fchownat, fstatat: port to non-inlining compilers
20899         Problem reported for FreeBSD 9 by Jim Meyering in
20900         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
20901         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
20902         New files, which define FCHMODAT_INLINE etc.
20903         * lib/fchmodat.c (FCHMODAT_INLINE):
20904         * lib/fchownat.c (FCHOWNAT_INLINE):
20905         * lib/fstatat.c (FSTATAT_INLINE):
20906         Remove, as chmodat.c etc. now do this.
20907         * modules/fchmodat (Files): Add lib/chmodat.c.
20908         * modules/fchownat (Files): Add lib/chownat.c.
20909         * modules/fstatat (Files): Add lib/statat.c.
20911 2012-10-15  Jim Meyering  <jim@meyering.net>
20913         fchmodat.c, fchownat.c: compile-impeding typos
20914         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
20915         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
20916         Introduced in commit v0.0-7636-gd202279.
20918 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
20920         fcntl-h: support GNU flags like O_IGNORE_CTTY
20921         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
20922         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
20923         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
20924         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
20925         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
20926         Define to 0 if not already defined.
20927         * tests/test-fcntl-h.c: Test these new flags.
20929 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
20931         faccessat, etc.: support AT_FDCWD-only use
20932         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
20933         this function only if its first argument is AT_FDCWD.
20934         Emacs wants faccessat for AT_EACCESS but not for any first-arg
20935         values other than AT_FDCWD, so it doesn't want all the openat
20936         machinery with fchdir etc.
20937         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
20938         * modules/fstatat, modules/mkdirat, modules/openat (Files):
20939         * modules/unlinkat (Files):
20940         Remove lib/openat-priv.h, as at-internal supplies this file.
20941         Removing this file here allows us to support programs like Emacs
20942         that avoid at-internal.
20944         faccessat: speed up 'configure' on mainstream hosts
20945         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
20946         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
20947         since it's only on unusual platforms that we need to check for
20948         'access', and it's better not to slow 'configure' down on all
20949         platforms.
20951         faccessat: port to Solaris 10
20952         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
20953         Needed on Solaris 10, which doesn't have AT_EACCESS,
20954         so we need the Gnulib fcntl.h, which defines it.
20956 2012-10-14  Pádraig Brady  <P@draigBrady.com>
20957         canonicalize: fix C89 compilation
20958         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
20959         declarations so C89 is supported.  Also remove the comment
20960         referencing memorty allocation as the suggested feature could
20961         not be implemented as suggested.
20962         Reported by Michael Goffioul.
20964 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20966         group-member: omit unnecessary dependencies
20967         This is for Emacs, which has its own allocator and where we
20968         don't want to use xalloc.
20969         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
20970         since we no longer use xmalloc.  Do not include stdbool.h, since
20971         the changes below happen to remove the only use of bool.
20972         (GROUPBUF_SIZE): New constant.
20973         (struct group_info): Remove n_groups member.  Add groupbuf member.
20974         This lets us get the groups without using malloc, usually.
20975         (free_group_info, get_group_info): Adjust to this.
20976         (get_group_info): Return the number of groups found, or -1 on error.
20977         Use plain malloc not xmalloc, and treat its failure as if there
20978         are no groups, as the user already loses in case of error.
20979         (group_member): Simplify, based on changes to get_group_info.
20980         * modules/group-member (Depends-on): Remove dependencies on
20981         xalloc and stdbool.  Add dependency on xalloc-oversized.
20983 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
20985         gethrxtime: port to C++
20986         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
20988 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
20990         ptsname: fix macro-name typo
20991         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
20993 2012-10-03  Simon Josefsson  <simon@josefsson.org>
20995         inttostr: Relax license.
20996         * modules/inttostr (License): Change from LGPL to LGPLv2+.
20998 2012-10-03  Eric Blake  <eblake@redhat.com>
21000         ptsname_r: support ptys returned by FreeBSD posix_openpt
21001         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
21002         lives in /dev/pts/.
21004 2012-10-02  Eric Blake  <eblake@redhat.com>
21006         pselect: reject invalid file descriptors
21007         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
21008         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
21009         * modules/pselect (Depends-on): Add dup2.
21010         * doc/posix-functions/pselect.texi (pselect): Document this.
21012         select: reject invalid file descriptors
21013         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
21014         * lib/select.c (rpl_select) [!win32]: Work around it.
21015         * modules/select (Depends-on): Add dup2.
21016         * doc/posix-functions/select.texi (select): Document this.
21018         select: enhance test
21019         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
21020         New functions.
21021         (test_function): Enhance test.
21022         (do_select_bad_fd): Avoid any stale errno values.
21024         ptsname: reject invalid file descriptors
21025         http://www.austingroupbugs.net/view.php?id=503
21026         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
21027         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
21028         * modules/stdlib (Makefile.am): Replace witness.
21029         * lib/stdlib.in.h (ptsname): Allow for replacement.
21030         * modules/ptsname (configure.ac): Trigger replacement.
21031         * doc/posix-functions/ptsname.texi (ptsname): Document this.
21033 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
21035         hash-pjw-bare: new module
21036         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
21037         * lib/hash-pjw-bare.h: Likewise.
21038         * modules/hash-pjw-bare: New file.
21039         * MODULES.html.sh (Misc): Add it.
21041 2012-10-02  Eric Blake  <eblake@redhat.com>
21043         manywarnings: cater to more gcc infelicities
21044         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
21045         -Wuninitialized without -O.
21047 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
21049         select, poll tests: Make setsockopt invocation effective.
21050         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
21051         the bind() call.
21052         * tests/test-select.h (open_server_socket): Likewise.
21054 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
21056         sockets, sys_stat: restore AC_C_INLINE
21057         This undoes the 2012-09-22 patch.
21058         * m4/sockets.m4 (gl_SOCKETS):
21059         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
21060         Restore AC_C_INLINE, since MSVC requires __inline or _inline
21061         and does not support plain 'inline'.  Reported by Bruno Haible in
21062         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
21064 2012-09-30  Bruno Haible  <bruno@clisp.org>
21066         localeconv tests: Avoid test failure on OpenIndiana.
21067         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
21068         skip the 'grouping' and 'mon_grouping' tests.
21069         Reported by Jim Meyering.
21071 2012-09-30  Bruno Haible  <bruno@clisp.org>
21073         havelib: Follow libtool developments.
21074         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
21075         Suggested by Simon Josefsson.
21077 2012-09-29  Jim Meyering  <meyering@redhat.com>
21079         fstatat.c: fix a compile-impeding typo
21080         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
21081         Introduced in commit v0.0-7636-gd202279.
21082         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
21084 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
21086         extern-inline: provide a -Wundef safe config.h
21087         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
21088         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
21089         to produce a -Wundef warning free config.h.
21091 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21093         hash-pjw: relax license to LGPLv2+
21094         * modules/hash-pjw (License): Relax, with consent of author.
21096 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
21098         maint.mk: fix strict vs. lazy variable issues with RELEASE
21099         * top/maint.mk (_equal): New function.
21100         (member_check): Strip the result to avoid spurious spaces.
21101         (url_dir_list): Do not use ifeq, which is strict, as it will
21102         require RELEASE_TYPE to be defined.
21103         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
21104         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
21105         (announcement_Cc_alpha,announcement_mail_headers_alpha)
21106         (announcement_Cc_beta,announcement_mail_headers_beta)
21107         (announcement_Cc_stable,announcement_mail_headers_stable): these.
21108         (release): Do not depend on $(release-type), as it forces its
21109         evaluation.  Bounce to it.
21111 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
21113         maint.mk: formatting changes
21114         * top/maint.mk: Indent bodies of if's.
21116 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
21118         maint.mk: factor the validation of RELEASE_TYPE
21119         With help from Jim Meyering.
21120         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
21121         * top/maint.mk (_empty, _sp): Move their definition earlier.
21122         (member-check, release-type): New.
21123         Use the latter instead of $(RELEASE_TYPE).
21124         Remove now useless local checks.
21126 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
21128         maint.mk: provide "make upload" to ease uploading
21129         See
21130         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
21131         Do not depend simply on the current $(VERSION), as there may have been
21132         new commits since the tarball generation.  Rather, rely on $(RELEASE),
21133         as "make release-commit" already does.
21135         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
21136         "make TYPE".
21138         * top/maint.mk (upload_command, upload, release): New.
21139         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
21140         (VERSION): first word of $(RELEASE) is always right.
21141         (emit_upload_commands): Adjust.
21142         * top/README-release: Update.
21144 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
21146         maint.mk: silent rules
21147         With help from Stefano Lattarini.
21148         * top/maint.mk (writable-files): Use $(AM_V_GEN).
21149         (announcement): Use $(AM_V_at).
21151 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
21153         localename: port gl_locale_name_thread_unsafe to FreeBSD
21154         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
21155         and use the simpler FreeBSD implementation on Mac OS X as well.
21156         Original idea suggested by Ed Maste in
21157         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
21159 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21161         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
21162         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
21163         * lib/mbuiter.c, lib/xsize.c: New files.
21164         * lib/binary-io.h (BINARY_IO_INLINE):
21165         * lib/eealloc.h (EEALLOC_INLINE):
21166         * lib/mbfile.h (MBFILE_INLINE):
21167         * lib/mbiter.h (MBITER_INLINE):
21168         * lib/mbuiter.h (MBUITER_INLINE):
21169         * lib/xsize.h (XSIZE_INLINE):
21170         New macros.
21171         Replace all uses of 'static inline' with them.
21172         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21173         * m4/eealloc.m4 (gl_EEALLOC):
21174         * m4/mbfile.m4 (gl_MBFILE):
21175         * m4/mbiter.m4 (gl_MBITER):
21176         * m4/xsize.m4 (gl_XSIZE):
21177         Do not require AC_C_INLINE.
21178         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
21179         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
21180         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
21181         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
21182         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
21183         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
21184         * modules/binary-io, modules/eealloc, modules/mbfile:
21185         * modules/mbiter, modules/mbuiter:
21186         (Depends-on): Add extern-inline.
21188         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
21189         * lib/pipe-filter-aux.c: New file.
21190         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
21191         Replace all uses of 'static inline' with it.
21192         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21193         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
21194         (filter_retcode): No real need for inline here.
21195         * modules/pipe-filter-gi, modules/pipe-filter-ii:
21196         (Files): Add lib/pipe-filter-aux.c.
21197         (Depends-on): Add extern-inline.
21198         (configure.ac): Do not require AC_C_INLINE.
21199         (lib_SOURCES): Add pipe-filter-aux.c.
21201         fdutimensat: omit unnecessary AC_C_INLINE
21202         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
21204         fchmodat, fchownat, fstatat: use extern-inline
21205         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
21206         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
21207         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
21208         New macros.
21209         * lib/openat.h:
21210         Replace all uses of 'static inline' with them.
21211         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21212         * modules/fchmodat, modules/fchownat, modules/fstatat:
21213         * modules/openat-h:
21214         (Depends-on):
21215         Add extern-inline.
21216         (configure.ac): Remove AC_C_INLINE.
21218         acl, mbchar, priv-set: use extern-inline
21219         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
21220         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
21221         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
21222         New macros.
21223         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
21224         Replace all uses of 'static inline' with it.
21225         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21226         * m4/acl.m4 (gl_FUNC_ACL):
21227         * m4/mbchar.m4 (gl_MBCHAR):
21228         * m4/priv-set.m4 (gl_PRIV_SET):
21229         Remove AC_C_INLINE, since 'inline' is no longer used directly.
21230         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
21231         Add extern-inline.
21233         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
21234         * m4/sockets.m4 (gl_SOCKETS):
21235         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
21236         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
21237         environments where it's already guaranteed to work, so we needn't
21238         check for it at 'configure'-time.
21240         tls-tests: omit unnecessary 'inline'
21241         * tests/test-tls.c (perhaps_yield): No longer inline.
21242         Simplicity and portability trump efficiency in test cases.
21244         utimens-tests: avoid unnecessary 'inline'
21245         * modules/fdutimensat-tests (configure.ac):
21246         * modules/futimens-tests (configure.ac):
21247         * modules/utimens-tests (configure.ac):
21248         * modules/utimensat-tests (configure.ac):
21249         Remove AC_C_INLINE.
21250         * tests/test-utimens-common.h (ctime_compare):
21251         No longer inline.  Simplicity and portability trump efficiency here.
21253         misc: don't limit commentary to inline functions
21254         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
21255         * lib/xalloc-oversized.h, lib/xsize.h:
21256         Contrast macros to functions in general, not just to inline functions,
21257         when the commentary does not apply only to inline functions.
21259 2012-09-20  Jim Meyering  <meyering@redhat.com>
21261         non-recursive-gnulib-prefix-hack: new module
21262         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
21263         the file that originated in Bison.
21264         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
21265         largely copied from a snippet that resided in bison's configure.ac.
21266         * modules/non-recursive-gnulib-prefix-hack: New file.
21267         * MODULES.html.sh (Support for maintaining and releasing projects):
21268         Add it.
21270 2012-09-18  Jim Meyering  <meyering@redhat.com>
21272         maint.mk: generalize _gl_tight_scope for non-recursive make
21273         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
21274         that *.h would describe additional .h files in the directory
21275         specified by $(_gl_TS_dir).  I.e., add this...
21276         (_gl_TS_other_headers): New variable.
21278         maint.mk: exempt trailing blanks found in "binary" files
21279         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
21280         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
21281         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21283 2012-09-17  Jim Meyering  <meyering@redhat.com>
21285         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
21286         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
21287         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
21288         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21290 2012-09-17  Jim Meyering  <meyering@redhat.com>
21292         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
21293         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
21294         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
21295         It is not in the same category as "exit (0)" or "exit (1)", and
21296         besides, I know of no symbolic name for that 77.  Reported by
21297         Richard W.M. Jones in
21298         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21300 2012-09-17  Jim Meyering  <meyering@redhat.com>
21302         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
21303         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
21304         all uses of #define, not just those that start in column 1.
21305         Richard W.M. Jones reported a false positive in
21306         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21308 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21310         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
21311         * lib/localcharset.c (locale_charset) [DARWIN7]:
21312         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
21313         as these two values are incompatible.  Problem reported by Max Horn.
21314         For more discussion, please see
21315         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
21317         doc: document sticky-EOF issue
21318         * doc/posix-functions/fgetc.texi (fgetc):
21319         * doc/posix-functions/fgets.texi (fgets):
21320         * doc/posix-functions/fread.texi (fread):
21321         * doc/posix-functions/fscanf.texi (fscanf):
21322         * doc/posix-functions/getc.texi (getc):
21323         * doc/posix-functions/getchar.texi (getchar):
21324         * doc/posix-functions/scanf.texi (scanf):
21325         Mention that glibc and default Solaris do not conform to
21326         C99 and POSIX-2001 or later, with respect to how getchar
21327         etc. behave when feof reports nonzero.
21329 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21331         poll: fix poll(0, NULL, msec)
21332         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
21333         but nfd is 0.  In that case poll should behave like select.
21335 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21336             Paolo Bonzini  <bonzini@gnu.org>
21338         poll: fix for systems that can't recv() on a non-socket
21339         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
21340         is readable.  In this case POLLHUP will not be supported.
21341         * doc/posix-functions/poll.texi: Document this.
21343 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
21345         poll/select: document portability problems not fixed by Gnulib.
21346         * doc/posix-functions/poll.texi: poll does not work well on
21347         pipes under Windows.  It has the same limitations as select on
21348         BeOS.
21349         * doc/posix-functions/select.texi: select does not work well
21350         on pipes under Windows.
21352 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21354         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
21355         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
21356         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
21357         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
21359 2012-09-06  Eric Blake  <eblake@redhat.com>
21361         net_if: give more details about the bug being fixed
21362         * doc/posix-headers/net_if.texi: Add clarification.
21364 2012-09-05  Eric Blake  <eblake@redhat.com>
21366         net_if: new module
21367         * modules/net_if: New module, borrowing ideas from netinet_in.
21368         * m4/net_if_h.m4: New file.
21369         * lib/net_if.in.h: Likewise.
21370         * doc/posix-headers/net_if.texi (net/if.h): Document it.
21371         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21372         * tests/test-net_if.c: Make function checks conditional.
21373         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
21375 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
21377         readutmp: fix non-portable UT_PID use
21378         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
21379         Use `UT_PID (u) > 0' as absolute condition.
21381 2012-09-04  Jim Meyering  <meyering@redhat.com>
21383         fts: reduce two or more trailing spaces to just one, usually
21384         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
21385         or more slashes, trim all but the final one.  But if a name consists
21386         solely of two slashes, don't modify it.  If it consists solely of
21387         three or more slashes, strip all but one.
21389         This is part of the solution to a minor problem with rm:
21390         it would print a bogus ELOOP diagnostic when failing to remove
21391         the slash-decorated name of a symlink-to-directory:
21393             $ mkdir d && ln -s d s && env rm -r s/
21394             rm: cannot remove 's': Too many levels of symbolic links
21396         With the change below and a trivial don't-trim-trailing-slashes
21397         adjustment to remove.c, it does this:
21399             $ env rm -r s/
21400             rm: cannot remove 's/': Not a directory
21402         Improved by: Eric Blake
21404         fts: when there is no risk of overlap, use memcpy, not memmove
21405         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
21407 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21409         stdbool: be more compatible with mixed C/C++ compiles
21410         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
21411         Define to bool, true, false, respectively, as GCC's builtin
21412         stdbool.h does.  Problem reported by Michael Goffioul in
21413         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
21415 2012-08-28  Jim Meyering  <meyering@redhat.com>
21417         revert last change: it was not needed
21418         * tests/test-vc-list-files-git.sh: There's already a test for
21419         a working git, just below.
21421 2012-08-28  Jim Meyering  <meyering@redhat.com>
21423         tests: test-vc-list-files-git.sh: skip if git is not available
21424         * tests/test-vc-list-files-git.sh: Skip this test when git is
21425         not available.
21427 2012-08-26  Bruno Haible  <bruno@clisp.org>
21429         gnulib-tool: Remove no-op option --no-changelog.
21430         * gnulib-tool (func_usage): Don't mention --no-changelog.
21431         (do_changelog): Remove variable.
21432         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21434 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21436         doc: remove fdl-1.2.texi
21437         It is no longer used or maintained, and its use of @acronym
21438         is problematic.  See the thread containing
21439         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
21440         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
21441         * doc/old-licenses/fdl-1.2.texi: Remove.
21443         execinfo: port to FreeBSD
21444         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
21445         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
21446         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
21447         * modules/execinfo (Link): Add $(LIB_EXECINFO).
21449 2012-08-23  Jim Meyering  <meyering@redhat.com>
21451         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
21452         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
21453         to placate gcc's -Wold-style-declaration.
21455 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21457         doc: do not use @acronym
21458         * doc/inet_ntoa.texi (inet_ntoa):
21459         * doc/parse-datetime.texi (Seconds since the Epoch)
21460         (Specifying time zone rules):
21461         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
21462         Don't use @acronym.  Problem reported by John Darlington in
21463         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
21465 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21467         stdnoreturn: port to newer GCCs
21468         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
21469         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
21470         Problem reported by Jim Meyering in
21471         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
21472         Also, rename the 'test' function to a void a clash with the
21473         already-supplied 'main' function; this fixes a bug that incorrectly
21474         rejected GCC 4.7.1's <stdnoreturn.h>.
21475         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
21476         Document GCC problem.
21478 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
21480         pipe-filter: fix comment typo
21481         * lib/pipe-filter.h: Mention correct function.
21483 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21485         execinfo: new module
21486         This is for Emacs.  Currently, it provides a no-effect stub
21487         on all platforms where it does not already work.
21488         It already works on glibc-based systems, and on Solaris 11.
21489         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
21490         New files.
21491         * doc/glibc-headers/execinfo.texi (execinfo.h):
21492         * MODULES.html.sh (Misc): Document it.
21494 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21496         extern-inline: support old GCC 'inline'
21497         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
21498         if available.  This applies to GCC versions 2.7 through 4.2, or
21499         when newer GCC is using -fgnu89-inline.  The goal is to address
21500         some of the performance issues mentioned by Bruno Haible in
21501         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
21503 2012-08-20  Eric Blake  <eblake@redhat.com>
21505         maint.mk: avoid redundant file name in message
21506         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
21507         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
21508         (sc_makefile_path_separator_check): Remove bogus $(ME).
21510 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
21512         timer-time: fix link order when static linking on glibc
21513         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
21514         _after_ -lrt so that it's significant.
21516 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21518         timespec: omit unnecessary AC_C_INLINE
21519         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
21521         stat-time: omit unnecessary AC_C_INLINE
21522         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
21523         Do not require AC_C_INLINE.
21525         ignore-value: omit unnecessary AC_C_INLINE
21526         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
21528         sys_select: avoid 'static inline'
21529         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
21531         mktime: avoid 'static inline'
21532         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
21533         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
21535 2012-08-19  Bruno Haible  <bruno@clisp.org>
21537         gnulib-tool: Improve coding style.
21538         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
21539         func_emit_lib_Makefile_am.
21540         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21542 2012-08-19  Bruno Haible  <bruno@clisp.org>
21544         gnulib-tool: Fix indentation.
21545         * gnulib-tool (func_import): Fix indentation.
21547 2012-08-19  Bruno Haible  <bruno@clisp.org>
21549         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
21550         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
21551         on the list of removed files.
21553 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
21555         test-parse-datetime: avoid glibc leap-second glitch
21556         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
21557         with the 2012 rules.  Problem reported by Bruce Dubbs in
21558         <http://bugs.gnu.org/12206>.
21560 2012-08-14  Bruno Haible  <bruno@clisp.org>
21562         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
21563         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
21564         from argument.
21565         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21567 2012-08-14  Eric Blake  <eblake@redhat.com>
21569         ldexp: relax license
21570         * modules/ldexp (License): Trivial relax, since the module only
21571         provides a permissively licensed m4 file.
21573 2012-08-13  Bruno Haible  <bruno@clisp.org>
21575         gnulib-tool: Fix persistence of --witness-c-macro option.
21576         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
21577         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21579 2012-08-11  Eric Blake  <eblake@redhat.com>
21581         count-leading-zeros: use a lookup table on non-gcc compilers
21582         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
21583         alternate implementation, suggested by Jim Meyering.
21585 2012-08-10  Eric Blake  <eblake@redhat.com>
21587         count-leading-zeros: new module
21588         * modules/count-leading-zeros: New module.
21589         * m4/count-leading-zeros.m4: New file.
21590         * lib/count-leading-zeros.h: Likewise.
21591         * modules/count-leading-zeros-tests: New test.
21592         * tests/test-count-leading-zeros.c: New file.
21593         * MODULES.html.sh (Integer arithmetic functions): Document it.
21595 2012-08-07  Simon Josefsson  <simon@josefsson.org>
21596             Jim Meyering  <meyering@redhat.com>
21598         maintainer-makefile: Fix syntax error with dash.
21599         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
21600         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
21602 2012-08-05  Jim Meyering  <meyering@redhat.com>
21604         extern-inline: also ignore -Wmissing-declarations
21605         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
21606         required with gcc-4.8.0-to-be.
21608         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
21609         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
21610         for /error ?([^,]*)/.  This avoids false-positives for strings like
21611         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
21613 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
21615         gnumakefile: better interaction with Automake-NG
21616         * modules/gnumakefile [Makefile.am]: The makefiles generated by
21617         Automake-NG always contain a definition of VPATH, even in non-VPATH
21618         builds (its value being simply '.' in that case).  So, in the
21619         'clean-GNUmakefile' rule, to determine whether running under a
21620         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
21621         '$(VPATH)' expands to the empty string.
21623 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
21625         base64: Use extern C scope in header file, for C++.
21626         * lib/base64.h: Add C++ namespace protection.
21628 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
21630         stat-time, timespec, u64: support naive out-of-dir builds
21631         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
21632         Use '#include "foo.h"', not '#include <foo.h>', when including
21633         one's own interface.  This works better when configuring with
21634         out-of-directory builds, since packages need not add an
21635         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
21637 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
21639         utimens: use extern-inline
21640         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
21641         * lib/utimens.h: Add copyright notice, since this is now large enough
21642         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21643         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
21644         * modules/utimens (Depends-on): Add extern-inline.
21646         u64: use extern-inline
21647         * lib/u64.c: New file.
21648         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21649         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
21650         * modules/u64 (Files): Add lib/u64.c.
21651         (Depends-on): Add extern-inline.
21652         (configure.ac): No need to require AC_C_INLINE, since extern-inline
21653         does that now.
21654         (lib_SOURCES): Add u64.c.
21656         timespec: use extern-inline
21657         * lib/timespec.c: New file.
21658         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21659         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
21660         * modules/timespec (Files): Add lib/timespec.c.
21661         (Depends-on): Add extern-inline.
21662         (lib_SOURCES): Add timespec.c.
21664         stat-time: use extern-inline
21665         * lib/stat-time.c: New file.
21666         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21667         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
21668         * modules/stat-time (Files): Add lib/stat-time.c.
21669         (Depends-on): Add extern-inline.
21670         (lib_SOURCES): Add stat-time.c.
21672         extern-inline: new module
21673         * modules/extern-inline, m4/extern-inline.m4: New files.
21674         This is for better support of 'extern inline' a la ISO C99,
21675         with a portable alternative on compilers that do not support
21676         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
21677         of the Emacs executable, when compiled with debugging disabled,
21678         which is a typical way that Emacs is built while developing.
21680 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
21682         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
21683         * build-aux/do-release-commit-and-tag: Move variable definitions
21684         together.
21685         ($branch): Instead of defaulting to "master", default to the current
21686         branch (as gnu-web-doc-update does).
21687         (help): Display the current values of the option arguments.
21688         * top/maint.mk (release-commit): New.
21689         * top/README-release: Simplify the corresponding step.
21691 2012-07-30  Eric Blake  <eblake@redhat.com>
21693         passfd: fix comment on recvfd
21694         * lib/passfd.c (recvfd): Fix comment.
21695         Reported by Jann Horn <jannhorn@googlemail.com>.
21697 2012-07-30  Jim Meyering  <meyering@redhat.com>
21699         maint.mk: avoid a sub-shell
21700         * top/maint.mk (release-prep): Remove unneeded sub-shell.
21702 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21704         maint.mk: use silent-rules support from Automake
21705         * top/maint.mk (news-check, vc-diff-check, announcement)
21706         (no-submodule-changes, alpha beta stable, release-prep)
21707         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
21709 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21711         maint.mk: provide a web-manual-update target
21712         * top/maint.mk: here.
21713         * top/README-release: Use it to simplify the web manual update step.
21715 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21717         README-release: shorten the circuit to post a news
21718         * top/README-release: Point directly to the news submission form.
21720 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21722         gnu-web-doc-update: fix --help
21723         * build-aux/gnu-web-doc-update: The information "top level" was written
21724         twice.
21726 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21728         maint.mk: absolute VPATH issue
21729         * top/maint.mk (release-prep): Help Git find .git/.
21730         From Jim Meyering.
21732 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21734         gitlog-to-changelog: fix previous change
21735         * build-aux/gitlog-to-changelog: Fix condition.
21736         Add missing ";".
21738 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21740         gitlog-to-changelog: don't expect .git to be in $srcdir
21741         Reported by Bruno Haible.
21742         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
21743         * build-aux/gitlog-to-changelog (&git_dir_option): New.
21744         Use it.
21746 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21748         maint.mk: absolute VPATH build fix
21749         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
21750         $(srcdir) is not a parent of $(builddir).
21752 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
21754         clean-temp: Fix memory leak.
21755         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
21756         'files' members of tmpdir.
21758 2012-07-27  Jim Meyering  <meyering@redhat.com>
21760         maint.mk: new rule: refresh-gnulib-patches
21761         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
21762         Use this rule to refresh them.
21763         * top/maint.mk (refresh-gnulib-patches): New rule.
21765 2012-07-24  Bruno Haible  <bruno@clisp.org>
21767         gnulib-tool: Fix handling of inctests variable.
21768         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
21769         Reported by Nick Bowler <nbowler@elliptictech.com>.
21771 2012-07-22  Bruno Haible  <bruno@clisp.org>
21773         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
21774         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
21775         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
21776         Remove exemption for getpass.h.
21777         Suggested by Eric Blake.
21779 2012-07-20  Eric Blake  <eblake@redhat.com>
21781         verify: document conflict with -Wnested-externs
21782         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
21784         maint.mk: forbid exit(-1)
21785         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
21787 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
21789         fsusage: port back to Solaris
21790         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
21791         error (fsd not declared) on Solaris 10.  Reported privately by
21792         Andrew Borodin.
21794 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
21796         gnu-web-doc-update: fix error messages
21797         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
21799         gnu-web-doc-update: check the requirements.
21800         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
21801         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
21802         * build-aux/bootstrap (find_tool): Comment change.
21804 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
21806         maint.mk: minor simplication.
21807         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
21808         for default values.
21810 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
21812         gitlog-to-changelog: VPATH build issues
21813         If builddir is not a subdirectory of srcdir, running git from it will
21814         fail.
21815         * build-aux/gitlog-to-changelog (--srcdir): New option.
21817 2012-07-15  Bruno Haible  <bruno@clisp.org>
21819         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
21820         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
21821         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
21822         Remove exemption for fpending.h.
21823         Suggested by Eric Blake.
21825 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
21827         pthread_sigmask: fix bug on FreeBSD 9
21828         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
21829         Include string.h.
21830         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
21831         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
21832         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
21833         but pthread_sigmask (1729, NULL, NULL) returns zero.
21834         See <http://bugs.gnu.org/11884>.
21835         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
21836         by inspecting whether the main call changed the old mask.
21838 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
21840         README-release: make it more legible
21841         * top/README-release: Improve typography slightly.
21843 2012-07-15  Jim Meyering  <meyering@redhat.com>
21845         maint: require that each sc_... command start with "@"
21846         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
21847         "make sc_maint" helps us avoid this nit.
21849 2012-07-15  Jim Meyering  <meyering@redhat.com>
21851         maint.mk: add leading "@" to quiet new "make syntax-check" rule
21852         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
21854 2012-07-13  Eric Blake  <eblake@redhat.com>
21856         maint.mk: new syntax check for HAVE_DECL checks
21857         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
21858         * cfg.mk
21859         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
21860         Exempt some false positives.
21861         Based on a report by Karel Zak.
21863         argp: make HAVE_DECL usage consistent
21864         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
21865         macros, not whether they are defined.
21866         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
21867         convention with other declaration checks.
21868         Reported by Karel Zak, with suggestions from Paul Eggert.
21870         stat-time: relax license to LGPLv2+
21871         * modules/stat-time (License): Relax, with consent of all authors.
21873         strndup: fix m4 usage error
21874         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
21875         defined, to either 0 or 1.
21876         Reported by Karel Zak.
21878 2012-07-11  Jim Meyering  <meyering@redhat.com>
21880         maint: enable the sc_avoid_if_before_free syntax-check rule
21881         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
21882         (if_before_free_offenders_): Define.
21883         (if_before_free_basename_re_): Define.
21884         Exempt current files with useless if-before-free.
21886 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
21888         gettext: do not assume '#define ... defined ...' behavior
21889         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
21890         Do not use '#define FOO ... defined BAR ...', as the C standard says
21891         it's not portable to expect that this works after macro expansion.
21892         Problem reported for gzip by Steven M. Schweda in
21893         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
21895 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21897         getloadavg: clean out old Emacs and Autoconf cruft
21898         See Glenn Morris in <http://bugs.gnu.org/11905>.
21899         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
21900         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
21901         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
21902         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
21904 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
21906         bootstrap: let warn be like tests/init.sh's warn_
21907         Reported by Jim Meyering.
21908         * build-aux/bootstrap (warn): Remove, replaced by...
21909         (warnf_, warn_): these.
21910         Adjust callers.
21911         Shorten messages that no longer fit in 80 columns.
21913 2012-07-09  Bruno Haible  <bruno@clisp.org>
21915         getopt: Simplify after Emacs changed.
21916         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
21917         (gl_GETOPT_IFELSE): Remove macro.
21919 2012-07-09  Jim Meyering  <meyering@redhat.com>
21921         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
21922         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
21924         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
21925         Bugs in both of those conspired to make the
21926         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
21927         _sc_search_regexp's handling of non-empty $in_files would filter
21928         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
21929         choice of in_files value meant there would be no match in most
21930         projects, due to the presence of two or more Makefile.in files.
21931         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
21932         Fix a bug in how a non-empty $$in_files was processed:
21933         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
21934         in spite of the name, it's a regexp, not a list of file names.
21936 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
21938         getloadavg, getopt: fix commentary re configure.in
21939         Autoconf is deprecating the name 'configure.in', so change it to
21940         to the new name 'configure.ac' in a couple of places.
21941         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
21942         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
21943         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
21944         Emacs has renamed it to configure.ac, and it no longer refers
21945         to these macros anyway.
21947         timespec: mark functions with const attributes
21948         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
21949         Mark with _GL_ATTRIBUTE_CONST.
21951 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
21953         canonicalize[-lgpl]: handle "guessing" values when cross-building
21954         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
21955         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
21956         matches "*yes" instead of just "yes".  Regression introduced in commit
21957         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
21959 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
21960             Bruno Haible  <bruno@clisp.org>
21962         canonicalize: make the right guess when cross-compiling to GNU
21963         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
21964         determine whether cross-compiling to glibc systems, so as to
21965         include GNU/Hurd.
21967 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21969         timespec-sub: avoid duplicate include
21970         * lib/timespec-sub.c: Do not include <config.h> twice.
21971         Reported by Juanma Barranquero.
21973 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
21975         bootstrap: use a more consistent error reporting scheme
21976         * build-aux/bootstrap (warn, die): New.
21977         Use them.
21979 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
21981         sys_time: allow too-wide tv_sec
21982         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
21983         timeval even if tv_sec is wider than time_t.  This allows
21984         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
21985         as without this patch gnulib replaces struct timeval
21986         and OpenBSD futimes therefore has a type mismatch.
21987         * doc/posix-headers/sys_time.texi: Mention this.
21989         pthread: check for both pthread_create and pthread_join
21990         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
21991         alter the check so that it tests for both pthread_create and
21992         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
21993         Suggested by Bruno Haible and Richard Yao in
21994         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
21996         parse-datetime: doc tuneup
21997         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
21998         spacing issues.
22000 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
22002         do-release-commit-and-tag: fix the previous commit
22003         * build-aux/do-release-commit-and-tag: Actually the test was right,
22004         but the comment and the error message were misleading.
22005         Fix comment, and improve error message.
22006         Perform check first, so that NEWS is not modified uselessly.
22008         do-release-commit-and-tag: fix typo
22009         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
22010         _not_ start with a stub.
22012 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
22014         pthread: check for pthread_create, not pthread_join
22015         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
22016         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
22017         pthread_join in libc.  I hope this removes the need for all the
22018         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
22019         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
22021 2012-07-04  Jim Meyering  <meyering@redhat.com>
22023         parse-datetime: fix failure to diagnose invalid input
22024         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
22025         rather than diagnosing the invalid input.  Now it reports this:
22026         date: invalid date '\260'
22027         * lib/parse-datetime.y (to_uchar): Define.
22028         (yylex): Don't sign-extend "other" bytes.
22029         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
22030         Thanks to Bruno Haible for the patch to this file.
22031         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
22032         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
22034 2012-07-03  Jim Meyering  <meyering@redhat.com>
22036         bootstrap: do not require now-removed build-aux/missing
22037         Now that build-aux/missing is, er, missing, bootstrap would
22038         silently fail.
22039         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
22040         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
22041         no longer part of gnulib.
22042         Diagnose the failure.
22044 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22046         alloca: add support for HP NonStop TNS/E native
22047         * lib/alloca.in.h (alloca): Support the new host.
22048         From a suggestion by Joachim Schmitz in
22049         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
22051 2012-07-02  Pádraig Brady  <P@draigBrady.com>
22053         fsusage: remove code not needed on non GNU/Linux systems.
22055         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
22056         Don't include headers no longer needed in this case.
22057         * lib/fsusage.c [STAT_STATVFS &&
22058         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
22059         STAT_STATFS2_FRSIZE to exclude code not used in this case.
22061 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22063         fsusage: include files needed for glibc 2.6 fallback
22064         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
22065         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
22066         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
22067         Problem reported by Ludovic Courtès in
22068         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
22070         fsusage: avoid needless check on GNU/Linux
22071         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
22072         on GNU/Linux systems, since it can't possibly work.
22074 2012-07-01  Bruno Haible  <bruno@clisp.org>
22076         log: Fix an autoconf >= 2.64 warning.
22077         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
22078         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22080 2012-06-28  Bruno Haible  <bruno@clisp.org>
22082         log10f: Fix possible configuration problem.
22083         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
22084         $LOGF_LIBM.
22085         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22087 2012-06-28  Bruno Haible  <bruno@clisp.org>
22089         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
22090         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
22091         not gl_cv_func_unlink_works.
22092         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22094 2012-06-27  Eric Blake  <eblake@redhat.com>
22096         config: drop scripts that automake says are not independent
22097         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
22098         * build-aux/elisp-comp: Delete.
22099         * build-aux/missing: Likewise.
22100         * build-aux/ylwrap: Likewise.
22101         * modules/elisp-comp: Likewise.
22102         * MODULES.html.sh: Drop mention of elisp-comp.
22103         * NEWS: Mention this.
22105 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
22107         root-uid: new module
22108         This is for portability to Tandem's NonStop Kernel.
22109         * lib/root-uid.h, modules/root-uid: New files.
22110         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
22111         * lib/write-any-file.c, tests/test-sethostname2.c:
22112         Include "root-uid.h".
22113         * lib/euidaccess.c (euidaccess):
22114         * lib/pt_chown.c (main):
22115         * lib/unlinkdir.c (cannot_unlink_dir):
22116         * lib/write-any-file.c (can_write_any_file):
22117         * m4/mknod.m4 (gl_FUNC_MKNOD):
22118         * tests/test-sethostname2.c (geteuid, main):
22119         Don't assume ROOT_UID == 0.
22120         * modules/euidaccess (Depends-on):
22121         * modules/pt_chown (Depends-on):
22122         * modules/sethostname-tests (Depends-on):
22123         * modules/unlinkdir (Depends-on):
22124         * modules/write-any-file (Depends-on):
22125         Add root-uid.
22127         regex: use locale-independent comparison for codeset name
22128         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
22129         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
22130         for codeset name.
22131         * lib/regex_internal.h: Do not include <strings.h>, since we
22132         no longer use strcasecmp.
22133         * modules/regex (Depends-on): Remove strcase.
22135 2012-06-23  Bruno Haible  <bruno@clisp.org>
22137         getopt-posix: No longer guarantee that option processing is resettable.
22138         * doc/posix-functions/getopt.texi: Drop description of problem with
22139         internal state. Fix info about mingw and msvc9.
22140         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
22141         option processing by getopt(). Run three test programs instead of one.
22142         Simplify cross-compilation guess.
22143         * NEWS: Mention the change.
22144         Reported by Rich Felker <dalias@aerifal.cx>.
22146 2012-06-26  Bruno Haible  <bruno@clisp.org>
22148         argp, regex: Ensure strcasecmp gets declared.
22149         * lib/argp-help.c: Include <strings.h>.
22150         * lib/regex_internal.h: Likewise.
22151         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
22153 2012-06-24  Bruno Haible  <bruno@clisp.org>
22155         ptsname_r: Make it consistent with ptsname on AIX.
22156         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
22157         implementation as for OSF/1.
22158         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
22159         a pty master.
22161         ptsname_r: Make it consistent with ptsname on OSF/1.
22162         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
22163         OSF/1.
22165 2012-06-24  Bruno Haible  <bruno@clisp.org>
22167         ttyname_r: Fix result on OSF/1, Solaris.
22168         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
22170 2012-06-24  Bruno Haible  <bruno@clisp.org>
22172         ptsname_r: Add support for Solaris.
22173         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
22174         Solaris.
22176         ptsname_r: Fix test failure on native Windows.
22177         * modules/ptsname_r (Depends-on): Add isatty.
22179         ptsname_r: Fix test failures on IRIX, Solaris.
22180         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
22181         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
22182         accordingly.
22183         * lib/ptsname_r.c: Include <fcntl.h>.
22184         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
22185         set errno if fd is invalid.
22186         * tests/test-isatty.c (main): Update comments.
22188 2012-06-24  Bruno Haible  <bruno@clisp.org>
22190         ptsname test: Extend test.
22191         * tests/test-ptsname.c: Include <errno.h>.
22192         (main): Test behaviour with invalid file descriptor.
22194 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22196         time: fix obsolete comment
22197         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
22198         reference to HAVE_STRUCT_TIMESPEC in comment.
22200 2012-06-23  Bruno Haible  <bruno@clisp.org>
22202         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
22203         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
22204         does not handle abbreviated long options with equivalent
22205         disambiguations, set gl_replace_getopt to yes.
22206         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
22208 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22210         time_r: fix typo that always overrode localtime_r decl
22211         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
22212         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
22213         not in a standard include.
22215 2012-06-22  Bruno Haible  <bruno@clisp.org>
22217         Write "Mac OS X" instead of "MacOS X".
22218         * README: Write "Mac OS X" instead of "MacOS X".
22219         * build-aux/bootstrap: Likewise.
22220         * build-aux/install-reloc: Likewise.
22221         * lib/acl-internal.h: Likewise.
22222         * lib/acl_entries.c: Likewise.
22223         * lib/argp-ba.c: Likewise.
22224         * lib/argp-pv.c: Likewise.
22225         * lib/config.charset: Likewise.
22226         * lib/copy-acl.c: Likewise.
22227         * lib/csharpexec.c: Likewise.
22228         * lib/euidaccess.c: Likewise.
22229         * lib/fbufmode.c: Likewise.
22230         * lib/fflush.c: Likewise.
22231         * lib/file-has-acl.c: Likewise.
22232         * lib/filemode.h: Likewise.
22233         * lib/fpurge.c: Likewise.
22234         * lib/freadable.c: Likewise.
22235         * lib/freadahead.c: Likewise.
22236         * lib/freading.c: Likewise.
22237         * lib/freadptr.c: Likewise.
22238         * lib/freadseek.c: Likewise.
22239         * lib/fseeko.c: Likewise.
22240         * lib/fseterr.c: Likewise.
22241         * lib/fsusage.c: Likewise.
22242         * lib/fwritable.c: Likewise.
22243         * lib/fwriting.c: Likewise.
22244         * lib/get-rusage-as.c: Likewise.
22245         * lib/get-rusage-data.c: Likewise.
22246         * lib/getdomainname.c: Likewise.
22247         * lib/idpriv-drop.c: Likewise.
22248         * lib/idpriv-droptemp.c: Likewise.
22249         * lib/localcharset.c: Likewise.
22250         * lib/locale.in.h: Likewise.
22251         * lib/localename.c: Likewise.
22252         * lib/mbsrtowcs-state.c: Likewise.
22253         * lib/nproc.c: Likewise.
22254         * lib/passfd.c: Likewise.
22255         * lib/posix_openpt.c: Likewise.
22256         * lib/printf-parse.c: Likewise.
22257         * lib/progreloc.c: Likewise.
22258         * lib/safe-read.h: Likewise.
22259         * lib/safe-write.h: Likewise.
22260         * lib/sched.in.h: Likewise.
22261         * lib/set-mode-acl.c: Likewise.
22262         * lib/signal.in.h: Likewise.
22263         * lib/stdint.in.h: Likewise.
22264         * lib/stdio-impl.h: Likewise.
22265         * lib/stdlib.in.h: Likewise.
22266         * lib/strtod.c: Likewise.
22267         * lib/sys_select.in.h: Likewise.
22268         * lib/tcgetsid.c: Likewise.
22269         * lib/unistd.in.h: Likewise.
22270         * lib/unlockpt.c: Likewise.
22271         * lib/vasnprintf.c: Likewise.
22272         * lib/vma-iter.c: Likewise.
22273         * lib/wcsrtombs-state.c: Likewise.
22274         * m4/acl.m4: Likewise.
22275         * m4/acosl.m4: Likewise.
22276         * m4/asinl.m4: Likewise.
22277         * m4/atanl.m4: Likewise.
22278         * m4/c-stack.m4: Likewise.
22279         * m4/cosl.m4: Likewise.
22280         * m4/expl.m4: Likewise.
22281         * m4/extensions.m4: Likewise.
22282         * m4/fdatasync.m4: Likewise.
22283         * m4/fmal.m4: Likewise.
22284         * m4/frexp.m4: Likewise.
22285         * m4/frexpf.m4: Likewise.
22286         * m4/frexpl.m4: Likewise.
22287         * m4/fsusage.m4: Likewise.
22288         * m4/getdomainname.m4: Likewise.
22289         * m4/getloadavg.m4: Likewise.
22290         * m4/getopt.m4: Likewise.
22291         * m4/gettext.m4: Likewise.
22292         * m4/gnulib-common.m4: Likewise.
22293         * m4/intdiv0.m4: Likewise.
22294         * m4/intlmacosx.m4: Likewise.
22295         * m4/largefile.m4: Likewise.
22296         * m4/ldexpl.m4: Likewise.
22297         * m4/link-follow.m4: Likewise.
22298         * m4/locale-ar.m4: Likewise.
22299         * m4/locale-fr.m4: Likewise.
22300         * m4/locale-ja.m4: Likewise.
22301         * m4/locale-tr.m4: Likewise.
22302         * m4/locale-zh.m4: Likewise.
22303         * m4/locale_h.m4: Likewise.
22304         * m4/lock.m4: Likewise.
22305         * m4/logl.m4: Likewise.
22306         * m4/mathfunc.m4: Likewise.
22307         * m4/minus-zero.m4: Likewise.
22308         * m4/mktime.m4: Likewise.
22309         * m4/mmap-anon.m4: Likewise.
22310         * m4/multiarch.m4: Likewise.
22311         * m4/nanosleep.m4: Likewise.
22312         * m4/nocrash.m4: Likewise.
22313         * m4/poll.m4: Likewise.
22314         * m4/printf-frexpl.m4: Likewise.
22315         * m4/printf.m4: Likewise.
22316         * m4/signbit.m4: Likewise.
22317         * m4/sinl.m4: Likewise.
22318         * m4/sqrtl.m4: Likewise.
22319         * m4/strerror_r.m4: Likewise.
22320         * m4/tanl.m4: Likewise.
22321         * m4/threadlib.m4: Likewise.
22322         * m4/ttyname_r.m4: Likewise.
22323         * m4/unlink.m4: Likewise.
22324         * m4/visibility.m4: Likewise.
22325         * m4/wcwidth.m4: Likewise.
22326         * tests/minus-zero.h: Likewise.
22327         * tests/test-alloca-opt.c: Likewise.
22328         * tests/test-copy-acl.sh: Likewise.
22329         * tests/test-copy-file.sh: Likewise.
22330         * tests/test-fdatasync.c: Likewise.
22331         * tests/test-file-has-acl.sh: Likewise.
22332         * tests/test-flock.c: Likewise.
22333         * tests/test-fsync.c: Likewise.
22334         * tests/test-localename.c: Likewise.
22335         * tests/test-malloca.c: Likewise.
22336         * tests/test-nonblocking-pipe.h: Likewise.
22337         * tests/test-nonblocking-socket.h: Likewise.
22338         * tests/test-openpty.c: Likewise.
22339         * tests/test-posix_openpt.c: Likewise.
22340         * tests/test-ptsname.c: Likewise.
22341         * tests/test-ptsname_r.c: Likewise.
22342         * tests/test-sameacls.c: Likewise.
22343         * tests/test-select.h: Likewise.
22344         * tests/test-set-mode-acl.sh: Likewise.
22345         * tests/test-snprintf-posix.h: Likewise.
22346         * tests/test-sprintf-posix.h: Likewise.
22347         * tests/test-strtod.c: Likewise.
22348         * tests/test-time.c: Likewise.
22349         * tests/test-vasnprintf-posix.c: Likewise.
22350         * tests/test-vasprintf-posix.c: Likewise.
22351         * doc/acl-resources.txt: Likewise.
22352         * doc/**/*.texi: Likewise.
22353         Reported by Max Horn <max@quendi.de>.
22355 2012-06-22  Bruno Haible  <bruno@clisp.org>
22357         grantpt: Relax requirement regarding invalid file descriptors.
22358         * lib/grantpt.c: Don't include <fcntl.h>.
22359         (grantpt): Don't verify the validity of the file descriptor.
22360         * modules/grantpt (Depends-on): Remove fcntl-h.
22361         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
22362         file descriptors.
22363         * doc/posix-functions/grantpt.texi: Document more platforms on which
22364         grantpt succeeds for invalid file descriptors.
22365         Reported by Rich Felker <dalias@aerifal.cx>.
22367 2012-06-22  Bruno Haible  <bruno@clisp.org>
22369         fbufmode test: Don't test unportable behaviour.
22370         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
22371         (main): Invoke it three times.
22372         Reported by Szabolcs Nagy <nsz@port70.net>
22373         and Rich Felker <dalias@aerifal.cx>.
22375 2012-06-21  Bruno Haible  <bruno@clisp.org>
22377         gnulib-tool: Refactor inctests variable.
22378         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
22379         (func_modules_transitive_closure,
22380         func_modules_transitive_closure_separately,
22381         func_import, func_create_testdir): Update.
22383         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
22384         * gnulib-tool: Accept option --without-tests.
22385         (func_usage): Document --without-tests option. Rearrange.
22386         (inctests): Normalize according to the mode.
22387         * NEWS: Mention the change.
22388         Suggested by Simon Josefsson.
22390 2012-06-21  Bruce Korb  <bkorb@gnu.org>
22392         parse-duration test: Avoid spurious output.
22393         * tests/test-parse-duration.sh: Reindent with leading tabs.
22395 2012-06-21  Jim Meyering  <meyering@redhat.com>
22397         maint: disable the strncpy prohibition
22398         * cfg.mk: Do not prohibit strncpy here.
22400 2012-06-21  Bruno Haible  <bruno@clisp.org>
22402         nonblocking: Avoid compilation error on mingw64.
22403         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
22404         fscanf.
22405         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
22406         * modules/vfscanf (configure.ac): Likewise.
22407         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
22408         definition only if stdio.h has prepared it.
22409         Reported by Daniel P. Berrange <berrange@redhat.com>.
22411 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
22413         gnulib-tool: Use readlink if it is available.
22414         * gnulib-tool (func_readlink): Choose function more appropriately.
22416 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
22418         posixtm-tests: port to buggy compiler
22419         Problem reported by Simon Josefsson in
22420         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
22421         * modules/posixtm-tests (Depends-on): Add stdint.
22422         * tests/test-posixtm.c (struct posixtm_test.t_expected):
22423         Now of type int_least64_t, not int64_t, both because that's
22424         what INT64_C returns and because int_least64_t works even
22425         on 72-bit hosts.
22426         (T): Use INT64_C on constants outside the traditional int range,
22427         to work around compiler bug noted by Simon.
22429         mktime: fix integer overflow in 'configure'-time test
22430         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
22431         after integer overflow.  Problem reported by Rich Felker in
22432         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
22433         Also, don't look for further instances of a bug if we've already
22434         found one instance; this helps 'configure' run faster.
22436 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
22438         tmpfile, clean-temp: Fix invocation of GetVersionEx.
22439         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
22440         GetVersionEx correctly.
22441         * lib/clean-temp.c (supports_delete_on_close): Likewise.
22443 2012-06-20  Bruno Haible  <bruno@clisp.org>
22445         fdopen: Allow implementations that don't reject invalid fd arguments.
22446         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
22447         succeeds.
22448         Reported by Rich Felker <dalias@aerifal.cx>.
22450 2012-06-20  Simon Josefsson  <simon@josefsson.org>
22452         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
22453         bring in LIBINTL.
22455 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22457         init.sh: do not rely on autoupated PWD
22458         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
22459         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
22460         Although Nelson's bug was not necessarily fixed by this patch,
22461         it seems wise to make the change for safety.
22462         * tests/init.sh (path_prepend_): Do not rely on PWD updating
22463         automagically after 'cd'; this is not reliable on older shells.
22464         (setup_): Fail if we cannot cd to temporary directory.
22466 2012-06-19  Bruno Haible  <bruno@clisp.org>
22468         stat, fstat: Avoid warnings on mingw64.
22469         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
22470         redefining.
22471         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
22472         Reported by Daniel P. Berrange <berrange@redhat.com>.
22474 2012-06-19  Bruno Haible  <bruno@clisp.org>
22476         stdioext: Add support for musl libc.
22478         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
22479         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
22481         * m4/fseterr.m4: New file.
22482         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
22483         function exists.
22484         * modules/fseterr (Files): Add m4/fseterr.m4.
22485         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
22486         __fseterr does not exist.
22487         (Makefile.am): Remove fseterr.c from lib_SOURCES.
22489         * lib/freadable.h: Update comment.
22491         * lib/fwritable.h: Update comment.
22493         * lib/freading.h: Update comment.
22495         * lib/fwriting.h: Update comment.
22497         * m4/freadahead.m4: New file.
22498         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
22499         that function exists.
22500         * modules/freadahead (Files): Add m4/freadahead.m4.
22501         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
22502         __freadahead does not exist.
22503         (Makefile.am): Remove freadahead.c from lib_SOURCES.
22505         * m4/freadptr.m4: New file.
22506         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
22507         function exists.
22508         * modules/freadptr (Files): Add m4/freadptr.m4.
22509         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
22510         __freadptr does not exist.
22511         (Makefile.am): Remove freadptr.c from lib_SOURCES.
22513         * m4/freadseek.m4: New file.
22514         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
22515         exists.
22516         * modules/freadseek (Files): Add m4/freadseek.m4.
22517         (configure.ac): Invoke gl_FUNC_FREADSEEK.
22519         * lib/fpurge.c (fpurge): Update comment.
22521         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
22523 2012-06-19  Bruno Haible  <bruno@clisp.org>
22525         *printf-posix: Put more info into config.log.
22526         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
22527         exit code into config.log.
22529 2012-06-19  Bruno Haible  <bruno@clisp.org>
22531         getopt-gnu: Fix exit code overflow in autoconf test.
22532         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
22533         to keep them below < 128.
22535 2012-06-17  Jim Meyering  <meyering@redhat.com>
22537         maint.mk: fix typo in code to derive GPG key at release time
22538         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
22540 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22542         regex: avoid warning when pointers are not long
22543         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
22544         and uintptr_t, not long, for portability to hosts where pointers and
22545         long have different sizes.  Issue noted by Daniel P. Berrange in
22546         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
22547         and fix suggested by Bruno Haible in
22548         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
22550 2012-06-17  Bruno Haible  <bruno@clisp.org>
22552         dummy: Relicense into the public domain.
22553         * modules/dummy (License): Set to "public domain".
22554         Suggested by Reuben Thomas.
22556 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
22558         announce-gen: VPATH issues
22559         * build-aux/announce-gen (--srcdir): New option, used to trim the
22560         $srcdir part of the path from $builddir to NEWS.
22561         * top/maint.mk (announcement): Adjust.
22563 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
22565         gnu-web-doc-update: VPATH builds
22566         * build-aux/gnu-web-doc-update (--builddir): New option.
22567         Revamp the handling of options.
22568         Prefer $(...) to `...`.
22569         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
22570         the template, and it is GNU mktemp specific.
22571         Prefer set -e to long series of &&.
22572         Restore the initial git branch, not "master".
22573         Properly initialize submodules (don't rely only on bootstrap).
22574         Do not reconfigure blindly, use config.status.
22575         * top/README-release: Update instructions for gnu-web-doc-update.
22577 2012-06-11  Jim Meyering  <meyering@redhat.com>
22579         maint.mk: revert most of the previous change re "all these"
22580         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
22581         For rationale, see the discussion at
22582         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
22584 2012-06-10  Karl Berry  <karl@gnu.org>
22586         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
22588         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
22590 2012-06-10  Bruce Korb  <bkorb@gnu.org>
22592         parse-duration: Relicense under LGPLv2+.
22593         * modules/parse-duration (License): Change to LGPLv2+.
22595 2012-06-10  Jim Meyering  <meyering@redhat.com>
22597         maint.mk: prohibit common grammar error: "all these"
22598         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
22599         the list of prohibited word sequences.  It should be "all of these".
22600         * lib/tempname.c (__gen_tempname): Fix one of them.
22602 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22604         do-release-commit-and-tag: support VPATH builds
22605         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
22606         (noteworthy): Defined earlier to factor its value.
22607         (noteworthy_stub): New.
22608         Use it to factor.
22609         (help_version): Split into...
22610         (help, version): these.
22611         Adjust the option processing part.
22612         Support "--option=value" in addition to "--option value".
22613         (builddir): New.
22614         (--builddir): New option.
22615         * top/README-release: Document this.
22616         Reword slightly so that the reader cannot understand that he
22617         has to do these steps before calling do-release-commit-and-tag.
22619 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22621         readme-release: also require announce-gen and maintainer-makefile
22622         * modules/readme-release (Depends-on): here.
22623         * modules/announce-gen, modules/do-release-commit-and-tag,
22624         modules/gnu-web-doc-update, modules/maintainer-makefile
22625         (Description): Point to readme-release.
22627 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22629         maint.mk: fix VPATH issues.
22630         * top/maint.mk (news-check): GNU Make understand $< very well.
22631         (release-prep): NEWS is in $(srcdir).
22633 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
22635         readme-release: require the promoted modules.
22636         * modules/readme-release (Depends-on): Add
22637         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
22638         in this text.
22640 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22641             Bruno Haible  <bruno@clisp.org>
22643         error, strerror-override: Support mingw64 from Fedora 17.
22644         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
22645         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
22646         EINPROGRESS.
22647         * lib/strerror-override.h (strerror_override): Test it.
22648         * lib/strerror-override.c (strerror_override): Likewise.
22649         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
22651 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22652             Bruno Haible  <bruno@clisp.org>
22654         error, strerror-override: Support mingw64 from Fedora 17.
22655         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
22656         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
22657         * lib/strerror-override.h (strerror_override): Test it.
22658         * lib/strerror-override.c (strerror_override): Likewise.
22660 2012-06-03  Bruno Haible  <bruno@clisp.org>
22662         error, strerror-override: Support new errno values from POSIX:2008.
22663         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
22664         ENOTRECOVERABLE.
22665         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
22666         platforms.
22667         * lib/strerror-override.c (strerror_override): Conditionalize the
22668         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
22669         * lib/strerror-override.h (strerror_override): Declare also if
22670         GNULIB_defined_EOWNERDEAD is defined.
22671         * tests/test-errno.c (e130, e131): New variables.
22672         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
22673         ENOTRECOVERABLE.
22674         Reported by Paolo Bonzini.
22676 2012-05-31  Jim Meyering  <meyering@redhat.com>
22678         savewd: add missing dependency on sys_wait module
22679         * modules/savewd (Depends-on): Add sys_wait, needed at least
22680         for MSVC.  Report and suggested change by Michael Goffioul.
22682 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
22684         system-quote-tests: port to CentOS 5
22685         Problem reported by Tom G. Christensen in
22686         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
22687         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
22689 2012-05-29  Jim Meyering  <meyering@redhat.com>
22691         maint: fix typos in comments and ChangeLog
22692         Culprits identified and fixed mostly automatically using these commands:
22693         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
22694         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
22695         using http://github.com/lyda/misspell-check
22696         * ChangeLog: Fix typos.
22697         * doc/solaris-versions: Likewise.
22698         * lib/regexec.c (re_search_stub): Likewise.
22699         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
22701 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
22703         manywarnings: remove duplicate -Wmultichar entry
22704         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
22705         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
22706         so keep the entry marked as documented.
22708 2012-05-27  Karl Berry  <karl@gnu.org>
22710         * config/srclist.txt (mktime.c): remove last libc sync,
22711         perhaps just temporarily.
22713 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
22715         regex: don't assume uint64_t or uint32_t
22716         * lib/regcomp.c (init_word_char): Don't assume that the types
22717         uint64_t and uint32_t exist.  The C standard doesn't guarantee
22718         them, and on some 32-bit compilers there is no uint64_t.
22719         Problem reported by Gianluigi Tiesi in
22720         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
22722 2012-05-25  Jim Meyering  <meyering@redhat.com>
22724         maint.mk: add strncpy-prohibiting syntax-check rule
22725         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
22727 2012-05-24  Jim Meyering  <meyering@redhat.com>
22729         maint.mk: compute $(gpg_key_ID) more portably
22730         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
22731         That use of sed is not portable to some fringe systems.
22732         Reported by Paul Eggert in
22733         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
22735 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
22737         mktime: sync from glibc
22738         * config/srclist.txt: Uncomment mktime.c.
22739         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
22740         First, indent with tabs, since glibc uses tabs and doesn't want to
22741         change and we'd rather be identical to glibc.  Also, two small
22742         coding changes:
22743         (isdst_differ): Use &&, not &, as && is the usual style.
22744         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
22745         for clarity.
22747 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22749         announce-gen: du -h is more portable than du --human
22750         * build-aux/announce-gen (sizes): Invoke du with -h instead
22751         of --human.  Accept leading white space in its output.
22753 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22755         announce-gen: Improve diagnostics.
22756         * build-aux/announce-gen: When parsing command line options,
22757         prefer "announce-gen: option --release-type requires an argument"
22758         to "Option release-type requires an argument".
22760 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22762         maint.mk: gpg_key_ID: use sed more portably
22763         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
22764         the closing brace.
22765         (refresh-po): Fuse two sed invocations into one.
22767 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
22769         gitlog-to-changelog: support the log message format used in Bison.
22770         * build-aux/gitlog-to-changelog: Support --strip-tab and
22771         --strip-cherry-picked.
22773 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22775         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
22776         the rest of the current time slice to another thread in the current
22777         process. So if the thread that feeds the file decscriptor we're
22778         polling is not in the current process, we get busy-waiting.
22779         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
22780         Patch from Theodore Leblond.
22781         * lib/select.c: Split polling out of the loop that sets the output
22782         fd_sets.  Check for zero result and loop if the wait timeout is
22783         infinite.
22785 2012-05-21  Simon Josefsson  <simon@josefsson.org>
22787         select: Fix build error on IRIX 6.5.
22788         * lib/select.c: Include stddef.h for NULL.
22790 2012-05-21  Simon Josefsson  <simon@josefsson.org>
22792         gc: fix libgcrypt detection on older machines.
22793         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
22794         copyright years because the file has been distributed every year
22795         since it was created.
22797 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
22799         crypto: fix bug in large buffer handling
22800         Problem reported by Serge Belyshev for glibc in
22801         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
22802         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
22803         * lib/md4.c (md4_process_block):
22804         * lib/md5.c (md5_process_block):
22805         * lib/sha1.c (sha1_process_block):
22806         * lib/sha256.c (sha256_process_block):
22807         Don't assume the buffer length is less than 2**32.
22808         * lib/sha512.c (sha512_process_block): Likewise.
22809         Here, the bug is present only in the rare case where the host does
22810         not support uint64_t or where size_t is wider than 64 bits.
22811         Use u64size to work around the problems.
22812         * lib/u64.h (u64size): New macro.
22814 2012-05-15  Pádraig Brady  <P@draigBrady.com>
22816         fsusage: fix block size returned on older Linux 2.6
22818         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
22819         which is available since Linux 2.6.
22820         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
22821         when the member is available so it can be used as a fallback.
22822         * doc/posix-functions/statvfs.texi: Mention the hang issue
22823         on Linux < 2.6.36.
22825 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22827         bootstrap: suppress stderr chatter
22828         * build-aux/bootstrap (insert_sorted_if_absent, main program):
22829         Omit unnecessary chatter to stderr.  The main program chatter
22830         was there only inadvertantly.
22832         bootstrap: .gitignore files created by autopoint, libtool
22833         I ran into this problem when bootstrapping the latest diffutils.
22834         After './bootstrap', 'git status' reported lots of untracked files
22835         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
22836         autopoint and do not need to be version-controlled.
22837         * build-aux/bootstrap: Put into .gitignore the files that
22838         autopoint and libtool create, by keeping track of files that exist
22839         after but not before these programs are run.
22840         (version_controlled_file): Move up.  2nd arg is now full file
22841         name, not base name; this is more convenient.  Put CVS at the end,
22842         as it's now somewhat deprecated.
22844 2012-05-14  Jim Meyering  <meyering@redhat.com>
22846         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
22847         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
22848         definition.  Reported by Bruno Haible.
22850 2012-05-13  Bruno Haible  <bruno@clisp.org>
22851             Paul Eggert  <eggert@cs.ucla.edu>
22853         binary-io: Define set_binary_mode function.
22854         * lib/binary-io.h (set_binary_mode): New function.
22855         (SET_BINARY): Define in terms of set_binary_mode.
22856         * modules/binary-io (configure.ac): Require AC_C_INLINE.
22857         * tests/test-binary-io.c (main): Accept an argument, and test either
22858         set_binary_mode or SET_BINARY depending on the argument.
22859         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
22860         argument. Clean up also t-bin-out0.tmp.
22862 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
22864         bootstrap: take advantage of POSIX shell features
22866         The 'bootstrap' script offered by Gnulib script already uses POSIX
22867         shell features (like $((...)) arithmetic expansions) that are not
22868         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
22869         means that bootstrap must already be run using a proper POSIX shell,
22870         which will thus provide more features, like ${var#pattern} parameter
22871         expansion or inversion of a command exit status with '!'.  We can
22872         thus use these features to improve the clarity and the performances
22873         of the bootstrap script.
22875         Suggested by Eric Blake.
22877         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
22878         of sed/expr plus command substitutions, to save some forks.  While
22879         we are at it, prefer the POSIX $(...) form of command substitution,
22880         rather than the legacy form `...` (since the former is visually
22881         clearer and interacts better with quoting), and prefer the idiom:
22882           "if ! CMD; then ACTION ..."
22883         over the idiom:
22884           "if CMD; then :; else ACTION ..."
22885         which was required by legacy Bourne shells not supporting '!'.
22887 2012-05-12  Bruno Haible  <bruno@clisp.org>
22889         system-quote: Add more comments.
22890         * lib/system-quote.h: Add more comments about wilcards and limitations.
22891         Suggested by Eli Zaretskii <eliz@gnu.org>.
22893         sh-quote, system-quote: Add comments about wildcards.
22894         * lib/sh-quote.h: Clarify what happens with wildcard characters.
22895         * lib/system-quote.h: Likewise.
22896         Reported by Eli Zaretskii <eliz@gnu.org>.
22898 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
22900         fsusage: check for GNU/Linux statvfs problem dynamically
22901         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
22902         Define STAT_STATFS2_BSIZE too, since in this case the code now
22903         checks dynamically whether statvfs is reliable, falling back on
22904         Linux-style statfs otherwise.
22905         (statvfs_works): New function, for dynamically testing statvfs.
22906         (get_fs_usage) [STAT_STATVFS]: Use it.
22907         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
22908         statvfs on GNU/Linux hosts, since it's now done dynamically.
22910 2012-05-10  Bruno Haible  <bruno@clisp.org>
22912         system-quote, execute, spawn-pipe: Escape '?' on Windows.
22913         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
22914         '?' character.
22915         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
22916         * tests/test-system-quote-main.c (check_all): Check also strings like
22917         "??????????".
22918         Reported by Eli Zaretskii <eliz@gnu.org>.
22920 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
22922         _Noreturn: port config.h to gcc -Wundef
22923         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
22924         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
22925         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
22927 2012-05-10  Bruno Haible  <bruno@clisp.org>
22929         system-quote: Refactor.
22930         * lib/system-quote.h (system_quote_copy): Fix comment.
22931         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
22932         New functions, extracted from system_quote_copy.
22933         (system_quote_length, system_quote_copy): Use these functions.
22934         Reported by Paul Eggert.
22936 2012-05-08  Bruno Haible  <bruno@clisp.org>
22938         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
22939         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
22941 2012-05-08  Bruno Haible  <bruno@clisp.org>
22943         Tests for module 'system-quote'.
22944         * modules/system-quote-tests: New file.
22945         * tests/test-system-quote.sh: New file.
22946         * tests/test-system-quote-main.c: New file.
22947         * tests/test-system-quote-child.c: New file.
22949         New module 'system-quote'.
22950         * lib/system-quote.h: New file.
22951         * lib/system-quote.c: New file.
22952         * modules/system-quote: New file.
22954 2012-05-08  Bruno Haible  <bruno@clisp.org>
22956         sh-quote: Make C++ safe and allow multiple inclusion.
22957         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
22958         declarations in extern "C".
22960 2012-05-08  Bruno Haible  <bruno@clisp.org>
22962         sh-quote tests: Make tests stricter.
22963         * tests/test-sh-quote.c (check_one): Check the return value of
22964         shell_quote_copy.
22965         (main): Check a string with a CR character. Check a string that
22966         contains UCHAR_MAX.
22968 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
22970         warnings.m4: provide a means to specify the program to compile.
22971         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
22972         (gl_WARN_ADD): here.
22973         Use gl_AS_VAR_APPEND.
22974         Support an argument to specify the program to compile.
22975         (gl_WARN_ADD): Accept an argument to specify the program to compile.
22976         AC_SUBST the WARN_CFLAGS when they are used.
22977         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
22978         leave this to gl_WARN_ADD.
22980 2012-05-08  Eric Blake  <eblake@redhat.com>
22982         doc: recommendations on gettext version
22983         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
22984         choice between versions.
22985         * DEPENDENCIES (gettext): Cover both approaches.
22987 2012-05-08  Jim Meyering  <meyering@redhat.com>
22989         init.sh: explain why EXEEXT support uses aliases rather than functions
22990         * tests/init.sh: Add a comment.
22992         init.sh: don't let bash aliases interfere with tests
22993         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
22994         is bash.  This avoids problems for those who alias standard commands to
22995         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
22996         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
22998 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
23000         stdint: be more consistent with glibc, SunOS libc
23001         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
23002         (gl_int_fast16_t, gl_uint_fast16_t)
23003         (gl_int_fast32_t, gl_uint_fast32_t)
23004         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
23005         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
23006         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
23007         Be consistent with glibc by default, and with SunOS 5.10 and later
23008         if __sun is defined.  This lessens the likelihood of clashes if
23009         code compiled for older hosts is combined with code compiled for
23010         newer ones.  Problem reported by Niels Möller in
23011         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
23013 2012-05-07  Eric Blake  <eblake@redhat.com>
23015         isatty: relax license to LGPLv2+
23016         * modules/isatty (License): Relax license.
23018 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23020         stat-size: comment fix
23021         * lib/stat-size.h: Remove obsolete comment about indenting.
23023 2012-05-06  Bruno Haible  <bruno@clisp.org>
23025         Tests for module 'sh-quote'.
23026         * modules/sh-quote-tests: New file.
23027         * tests/test-sh-quote.c: New file.
23029 2012-05-06  Bruno Haible  <bruno@clisp.org>
23031         sh-quote: Improve shell_quote_argv's signature.
23032         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
23033         * lib/sh-quote.c (shell_quote_argv): Likewise.
23035 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23037         stdint: document issues with int_fast8_t etc.
23038         * doc/posix-headers/stdint.texi (stdint.h): Say that other
23039         stdint.h substitutes may define these types differently.  See
23040         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
23042 2012-05-05  Bruno Haible  <bruno@clisp.org>
23044         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
23045         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
23046         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
23047         or 'guessing no (mishandles large arguments)'.
23049 2012-05-05  Bruno Haible  <bruno@clisp.org>
23051         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
23052         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
23053         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
23054         set gl_cv_func_link_follows_symlink to "guessing no".
23056 2012-05-05  Bruno Haible  <bruno@clisp.org>
23058         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
23059         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
23060         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
23061         "guessing no".
23062         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
23064 2012-05-05  Bruno Haible  <bruno@clisp.org>
23066         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
23067         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
23068         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
23069         set gl_cv_struct_dirent_d_ino to "guessing yes".
23071 2012-05-05  Bruno Haible  <bruno@clisp.org>
23073         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
23074         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
23075         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
23076         "guessing yes".
23078 2012-05-05  Bruno Haible  <bruno@clisp.org>
23080         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
23081         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
23082         compiling to a glibc system, set gl_cv_func_signbit and
23083         gl_cv_func_signbit_gcc to "guessing yes".
23085 2012-05-05  Bruno Haible  <bruno@clisp.org>
23087         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
23088         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
23089         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
23090         to "guessing yes".
23091         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
23092         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
23094 2012-05-05  Bruno Haible  <bruno@clisp.org>
23096         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
23097         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
23098         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
23099         gl_cv_func_realpath_works to "guessing yes".
23101 2012-05-05  Bruno Haible  <bruno@clisp.org>
23103         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
23104         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
23105         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
23107 2012-05-04  Bruno Haible  <bruno@clisp.org>
23109         Tweak last commit.
23110         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
23111         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23113 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
23115         unistd_h: make it easier to avoid sys_types_h
23116         This is useful for Emacs, which has its own method of porting to
23117         Windows, and which therefore does not need the sys_types_h module.
23118         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
23119         code moved here from gl_SYS_TYPES_H.
23120         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
23121         using the code directly.
23122         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
23123         gl_SYS_TYPES_H.
23124         * modules/sys_types (Files):
23125         * modules/unistd (Files): Add m4/off_t.m4.
23127 2012-05-03  Bruno Haible  <bruno@clisp.org>
23129         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
23130         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
23131         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
23132         "guessing yes" or "guessing no".
23133         (gl_FUNC_LSTAT): Update.
23134         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
23135         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
23136         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
23138 2012-05-03  Bruno Haible  <bruno@clisp.org>
23140         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
23141         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
23142         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
23143         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
23144         cross-compiling, choose the first alternative on glibc systems.
23145         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
23147 2012-05-03  Bruno Haible  <bruno@clisp.org>
23149         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
23150         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
23151         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
23153 2012-05-03  Bruno Haible  <bruno@clisp.org>
23155         chown: Avoid "guessing no" when cross-compiling to glibc systems.
23156         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
23158 2012-05-03  Bruno Haible  <bruno@clisp.org>
23160         Avoid "guessing no" guesses when cross-compiling to glibc systems.
23161         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
23162         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
23163         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
23164         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
23165         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
23166         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
23167         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
23168         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
23169         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
23170         compiling to glibc systems, set gl_cv_func_chown_slash_works,
23171         gl_cv_func_chown_ctime_works to "guessing yes".
23172         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
23173         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
23174         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
23175         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
23176         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
23177         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
23178         compiling to glibc systems, set gl_cv_func_open_directory_works to
23179         "guessing yes".
23180         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
23181         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
23182         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
23183         "guessing yes".
23184         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
23185         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
23186         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
23187         compiling to glibc systems, set gl_cv_func_floorf_ieee to
23188         "guessing yes".
23189         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
23190         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
23191         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
23192         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
23193         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
23194         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
23195         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
23196         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
23197         "guessing yes".
23198         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
23199         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
23200         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
23201         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
23202         "guessing yes".
23203         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
23204         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
23205         "guessing yes".
23206         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
23207         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
23208         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
23209         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
23210         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
23211         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
23212         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
23213         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
23214         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
23215         compiling to glibc systems, set gl_cv_func_log10f_ieee to
23216         "guessing yes".
23217         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
23218         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
23219         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
23220         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
23221         "guessing yes".
23222         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
23223         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
23224         "guessing yes".
23225         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
23226         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
23227         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
23228         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
23229         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
23230         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
23231         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
23232         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
23233         compiling to glibc systems, set gl_cv_func_mkfifo_works to
23234         "guessing yes".
23235         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
23236         compiling to glibc systems, set gl_cv_func_mknod_works to
23237         "guessing yes".
23238         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
23239         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
23240         "guessing yes".
23241         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
23242         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
23243         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
23244         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
23245         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
23246         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
23247         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
23248         compiling to glibc systems, set gl_cv_func_svid_putenv to
23249         "guessing yes".
23250         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
23251         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
23252         "guessing yes".
23253         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
23254         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
23255         "guessing yes".
23256         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
23257         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
23258         to "guessing yes".
23259         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
23260         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
23261         to "guessing yes".
23262         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
23263         compiling to glibc systems, set gl_cv_func_rmdir_works to
23264         "guessing yes".
23265         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
23266         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
23267         gl_cv_func_unlink_parent_fails to "guessing yes".
23268         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
23269         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
23270         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
23271         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
23272         gl_cv_func_rename_dest_works to "guessing yes".
23273         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
23274         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
23275         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
23276         compiling to glibc systems, set gl_cv_func_roundf_ieee to
23277         "guessing yes".
23278         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
23279         compiling to glibc systems, set gl_cv_func_roundl_ieee to
23280         "guessing yes".
23281         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
23282         compiling to glibc systems, set gl_cv_func_setenv_works to
23283         "guessing yes".
23284         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
23285         compiling to glibc systems, set gl_cv_func_unsetenv_works to
23286         "guessing yes".
23287         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
23288         compiling to glibc systems, set gl_cv_func_sleep_works to
23289         "guessing yes".
23290         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
23291         compiling to glibc systems, set gl_cv_func_stat_file_slash to
23292         "guessing yes".
23293         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
23294         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
23295         "guessing yes".
23296         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
23297         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
23298         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
23299         compiling to glibc systems, set gl_cv_func_truncf_ieee to
23300         "guessing yes".
23301         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
23302         compiling to glibc systems, set gl_cv_func_truncl_ieee to
23303         "guessing yes".
23304         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
23305         compiling to glibc systems, set gl_cv_func_usleep_works to
23306         "guessing yes".
23307         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
23308         compiling to glibc systems, set gl_cv_func_futimesat_works to
23309         "guessing yes".
23311 2012-05-03  Bruno Haible  <bruno@clisp.org>
23313         Say "guessing yes" or "guessing no" when cross-compiling.
23314         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
23315         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
23316         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
23317         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
23318         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
23319         am_cv_func_working_getline to "guessing yes" or "guessing no".
23320         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
23321         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
23322         (gl_FUNC_MEMMEM): When cross-compiling, set
23323         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
23324         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
23325         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
23326         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
23327         set gl_cv_func_strcasestr_works_always to "guessing yes" or
23328         "guessing no".
23329         (gl_FUNC_STRCASESTR): When cross-compiling, set
23330         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
23331         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
23332         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
23333         (gl_FUNC_STRSTR): When cross-compiling, set
23334         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
23335         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
23336         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
23337         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
23338         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
23340 2012-05-01  Bruno Haible  <bruno@clisp.org>
23342         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
23343         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
23344         * build-aux/reloc-ldflags: Likewise.
23345         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
23347 2012-05-01  Bruno Haible  <bruno@clisp.org>
23349         gnulib-tool: Remove transitional code.
23350         * gnulib-tool: Don't warn about --import with 0 arguments any more.
23351         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
23353 2012-05-01  Bruno Haible  <bruno@clisp.org>
23355         getcwd: Fix misindentation.
23356         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
23358 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
23360         exclude: process exclude and include directives in order
23361         This restores the pre-2009 behavior, and is part of a fix of a
23362         grep bug reported by Quentin Arce in
23363         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
23364         * lib/exclude.c (struct exclude): Remove 'tail' member.
23365         (new_exclude_segment): Prepend the new segment instead of appending.
23366         Return void, since that's now more convenient.
23367         (file_pattern_matches): Renamed from excluded_file_pattern_p.
23368         (file_name_matches): Renamed from excluded_file_name_p.
23369         (file_pattern_matches, file_name_matches):
23370         Return true if the pattern matches, not if it excludes.
23371         All callers changed.
23372         (excluded_file_name): Process the list in reverse order;
23373         since the list is now reversed this restores the pre-2009 behavior.
23374         (add_exclude): Adjust to new reversed-order list.  Use local var
23375         rather than macro, for clarity.
23376         * tests/test-exclude7.sh: Adjust to corrected behavior.
23378         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
23379         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
23380         it's not possible here.  Handle the case of \ at end of pattern
23381         without dumping core.
23382         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
23384         _Noreturn: future-proof non-GNU and non-MSVC compilers
23385         * build-aux/snippet/_Noreturn.h (_Noreturn):
23386         * m4/gnulib-common.m4 (gl_COMMON_BODY):
23387         Do not define _Noreturn if __STDC_VERSION__ indicates this is
23388         C11 or later.  This is more likely to work with random future C
23389         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
23390         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
23392         exclude: handle wildcards with FNM_EXTMATCH
23393         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
23394         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
23395         comment that "has wildcards" really means "has or may have
23396         wildcards".  Simplify by avoiding the need to call strcspn.
23398 2012-04-29  Bruno Haible  <bruno@clisp.org>
23400         gnulib-tool: Fix list of authors.
23401         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
23403 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
23405         bootstrap: support Automake-NG in $buildreq
23406         * bootstrap (check_versions): Handle automake and aclocal from
23407         Automake-NG specially.  They can be specified as respectively
23408         the "automake-ng" and "aclocal-ng" requirements.
23410 2012-04-25  Eric Blake  <eblake@redhat.com>
23412         bootstrap: only force latest Makefile.in.in for gettext module
23413         * build-aux/bootstrap (with_gettext): Only install latest
23414         Makefile.in.in for projects requesting bleeding edge gettext.
23416 2012-04-22  Bruno Haible  <bruno@clisp.org>
23418         doc: Mention reason for replacement on glibc/Linux systems.
23419         * doc/posix-functions/dprintf.texi: Mention the problem with special
23420         'long double' values.
23421         * doc/posix-functions/fprintf.texi: Likewise.
23422         * doc/posix-functions/printf.texi: Likewise.
23423         * doc/posix-functions/snprintf.texi: Likewise.
23424         * doc/posix-functions/sprintf.texi: Likewise.
23425         * doc/posix-functions/vdprintf.texi: Likewise.
23426         * doc/posix-functions/vfprintf.texi: Likewise.
23427         * doc/posix-functions/vprintf.texi: Likewise.
23428         * doc/posix-functions/vsnprintf.texi: Likewise.
23429         * doc/posix-functions/vsprintf.texi: Likewise.
23430         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
23431         platforms with F_DUPFD_CLOEXEC problems.
23432         * doc/posix-functions/glob.texi: Mention which platforms are affected
23433         by the problem with symbolic links.
23434         * doc/posix-functions/linkat.texi: Mention the problem with
23435         AT_SYMLINK_FOLLOW on Linux.
23437 2012-04-22  Bruno Haible  <bruno@clisp.org>
23439         pwrite: Don't replace on all platforms.
23440         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
23442 2012-04-22  Bruno Haible  <bruno@clisp.org>
23444         rint* tests: Avoid gcc warnings.
23445         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
23446         * tests/test-rintf.c (INFINITY, NAN): Likewise.
23447         * tests/test-rintl.c (INFINITY, NAN): Likewise.
23449 2012-04-21  Bruno Haible  <bruno@clisp.org>
23451         users.txt: Update.
23452         * users.txt: Add freedink, wdiff. Update URLs for projects that have
23453         switched from CVS to git, bzr, or svn.
23455 2012-04-21  Bruno Haible  <bruno@clisp.org>
23457         Large File Support for native Windows platforms.
23459         * m4/largefile.m4 (gl_LARGEFILE): New macro.
23460         * modules/largefile (configure.ac): Require gl_LARGEFILE.
23462         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
23463         type.
23464         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
23465         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
23466         * doc/posix-headers/sys_types.texi: Mention the effect of the
23467         'largefile' module.
23469         * lib/fcntl.in.h: Add comments about off_t.
23470         * modules/fcntl-h (Depends-on): Add sys_types.
23472         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
23473         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
23474         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
23475         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
23476         * modules/unistd (Depends-on): Add sys_types.
23477         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
23479         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
23480         instead of lseek.
23481         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
23482         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
23483         * modules/lseek (Depends-on): Add sys_types.
23485         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
23486         msvc-nothrow.h.
23487         (SetFileSize): New function.
23488         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
23489         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
23490         if Large File Support is requested.
23491         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
23492         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
23494         * lib/stdio.in.h: Add comments about off_t.
23495         * modules/stdio (Depends-on): Add sys_types.
23497         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
23498         instead of ftello.
23499         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
23500         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
23501         (gl_PREREQ_FTELLO): New macro.
23502         * modules/ftello (Depends-on): Add sys_types.
23503         (configure.ac): Incoke gl_PREREQ_FTELLO.
23505         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
23506         instead of fseeko.
23507         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
23508         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
23509         (gl_PREREQ_FSEEKO): New macro.
23510         * modules/fseeko (Depends-on): Add sys_types.
23511         (configure.ac): Invoke gl_PREREQ_FSEEKO.
23513         * lib/sys_stat.in.h: Add comments about off_t.
23514         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
23515         64-bit integer for st_size in 'struct stat'.
23516         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
23517         Define _GL_WINDOWS_64_BIT_ST_SIZE.
23518         * modules/sys_stat (Depends-on): Add sys_types.
23519         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
23521         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
23522         instead of stat or _stat.
23524         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
23525         'struct _stati64' instead of fstat and 'struct stat'.
23526         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
23527         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
23529         Reported by Ray Satiro <raysatiro@yahoo.com>.
23531 2012-04-19  Eric Blake  <eblake@redhat.com>
23533         bootstrap: accommodate older libtool
23534         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
23535         Reported by Daniel P. Berrange.
23537 2012-04-19  Jim Meyering  <meyering@redhat.com>
23539         announce-gen: avoid failure due to lack of Digest::SHA1
23540         Even with the preferred Digest::SHA available, this script
23541         would fail when the backup module, Digest::SHA1, was not installed.
23542         * build-aux/announce-gen: Quote the conditional use of "use".
23543         Reported by Reuben Thomas in:
23544         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
23546         bootstrap: don't let a user's CDPATH setting affect this script
23547         When CDPATH is set, cd will sometimes generate output.
23548         When "cd" is run in a subshell whose output matters, that
23549         surprising-to-some output can cause malfunction.
23550         Unsetting CDPATH turns off this shell "feature."
23551         * build-aux/bootstrap (CDPATH): Unset.
23552         Reported by Reuben Thomas in:
23553         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
23554         and inspired by his patch here:
23555         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
23557 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
23558         and Jim Meyering  <meyering@redhat.com>
23560         maint.mk: catch "see @xref{}" and similar
23561         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
23562         prohibit "See also @xref{", "Also see @pxref{", and similar.
23564 2012-04-16  Jim Meyering  <meyering@redhat.com>
23566         bootstrap: really use gnulib's po/Makefile.in.in
23567         * build-aux/bootstrap: Correct the source file name in previous change.
23568         Reported by Akim Demaille.
23570         configmake: correct minor inconsistency in Makefile rule
23571         * modules/configmake (Makefile.am): All other rules like this one
23572         run the final "mv -f ..." in the same backslash-continued command
23573         as the one that does everything else.  This one put the mv -f ...
23574         command on a separate, non-backslash-continued line.
23575         Make it like the others.
23577         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
23578         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
23579         the one from gettext.  Reported by Akim Demaille.
23581 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
23583         Fix recursion of install-* into po directories.
23584         Bison's install-pdf bug reported by Hans Aberg at
23585         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
23586         * build-aux/po/Makefile.in.in (install-dvi, install-html)
23587         (install-info, install-pdf, install-ps): New targets.
23589 2012-04-16  Jim Meyering  <meyering@redhat.com>
23591         maint: avoid spurious "make sc_maint" failure
23592         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
23593         exempt all *.class file names, for lib/javaversion.class.
23595 2012-04-15  Bruno Haible  <bruno@clisp.org>
23597         lseek: Make configure test independent of environment.
23598         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
23599         Windows, we know that lseek() on pipes is broken; skip the runtime
23600         test.
23602 2012-04-14  Bruno Haible  <bruno@clisp.org>
23604         stat: Bypass buggy override in mingw64.
23605         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
23606         * lib/stat.c (stat) [mingw64]: Define to _stat.
23607         * doc/posix-functions/stat.texi: Mention mingw64 bug.
23609 2012-04-14  Bruno Haible  <bruno@clisp.org>
23611         pathmax: Fix compilation error on MSVC 9.
23612         * modules/pathmax (Depends-on): Add unistd.
23614 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
23616         README: document pointer comparison assumption
23617         * README (Portability guidelines): Document assumption about
23618         pointer comparisons, in response to a recent bug-gnulib comment by
23619         Jeffrey Kegler.
23621 2012-04-12  Bruno Haible  <bruno@clisp.org>
23623         Tests for module 'getrusage'.
23624         * modules/getrusage-tests: New file.
23625         * tests/test-getrusage.c: New file.
23627         New module 'getrusage'.
23628         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
23629         warn-on-use.h.
23630         (getrusage): New declaration.
23631         * lib/getrusage.c: New file.
23632         * m4/getrusage.m4: New file.
23633         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
23634         is declared.
23635         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
23636         HAVE_GETRUSAGE.
23637         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
23638         snippet/c++defs, snippet/warn-on-use.
23639         (Makefile.am): Update generation of sys/resource.h. Substitute
23640         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
23641         * modules/getrusage: New file.
23642         * doc/posix-functions/getrusage.texi: Mention the new module.
23644 2012-04-12  Bruno Haible  <bruno@clisp.org>
23646         Tests for module 'sys_resource'.
23647         * modules/sys_resource-tests: New file.
23648         * tests/test-sys_resource.c: New file.
23650         New module 'sys_resource'.
23651         * lib/sys_resource.in.h: New file.
23652         * m4/sys_resource_h.m4: New file.
23653         * modules/sys_resource: New file.
23654         * doc/posix-headers/sys_resource.texi: Mention the new module.
23656 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
23658         ioctl: Fix compilation error on mingw.
23659         * lib/ioctl.c: Include <windows.h>.
23660         Also reported by Ray Satiro <raysatiro@yahoo.com>.
23662 2012-04-04  Jim Meyering  <meyering@redhat.com>
23664         regex: correct #pragma guard expression
23665         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
23666         not 4.3.  Correct its cpp guard expression.
23668 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
23670         regex: remove unnecessary type punning
23671         Problem reported by Vladimir Serbinenko in
23672         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
23673         * lib/regex.h (struct re_pattern_buffer): Change the type of
23674         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
23675         Fix comment to match code.
23676         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
23677         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
23678         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
23679         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
23680         (set_regs):
23681         Omit no-longer-necessary casts.
23683 2012-04-03  Bruno Haible  <bruno@clisp.org>
23685         Tests for module 'ilogbl'.
23686         * modules/ilogbl-tests: New file.
23687         * tests/test-ilogbl.c: New file.
23689         New module 'ilogbl'.
23690         * lib/math.in.h (ilogbl): New declaration.
23691         * lib/ilogbl.c: New file.
23692         * m4/ilogbl.m4: New file.
23693         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
23694         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
23695         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
23696         Split sed invocation, to avoid the limit of 100 substitutions of
23697         HP-UX 'sed'.
23698         * modules/ilogbl: New file.
23699         * tests/test-math-c++.cc: Check the declaration of ilogbl.
23700         * doc/posix-functions/ilogbl.texi: Mention the new module.
23702 2012-04-03  Bruno Haible  <bruno@clisp.org>
23704         Tests for module 'ilogbf'.
23705         * modules/ilogbf-tests: New file.
23706         * tests/test-ilogbf.c: New file.
23708         New module 'ilogbf'.
23709         * lib/math.in.h (ilogbf): New declaration.
23710         * lib/ilogbf.c: New file.
23711         * m4/ilogbf.m4: New file.
23712         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
23713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
23714         REPLACE_ILOGBF.
23715         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
23716         REPLACE_ILOGBF.
23717         * modules/ilogbf: New file.
23718         * tests/test-math-c++.cc: Check the declaration of ilogbf.
23719         * doc/posix-functions/ilogbf.texi: Mention the new module.
23721 2012-04-03  Bruno Haible  <bruno@clisp.org>
23723         Tests for module 'ilogb'.
23724         * modules/ilogb-tests: New file.
23725         * tests/test-ilogb.c: New file.
23726         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
23727         tests/test-logb-ieee.h.
23729         New module 'ilogb'.
23730         * lib/math.in.h (ilogb): New declaration.
23731         * lib/ilogb.c: New file.
23732         * m4/ilogb.m4: New file.
23733         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
23734         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
23735         REPLACE_ILOGB.
23736         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
23737         REPLACE_ILOGB.
23738         * modules/ilogb: New file.
23739         * tests/test-math-c++.cc: Check the declaration of ilogb.
23740         * doc/posix-functions/ilogb.texi: Mention the new module.
23742 2012-04-03  Bruno Haible  <bruno@clisp.org>
23744         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
23745         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
23746         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
23747         (main): Check their values.
23748         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
23749         problem.
23751 2012-04-03  Bruno Haible  <bruno@clisp.org>
23753         Tests for module 'logbl-ieee'.
23754         * modules/logbl-ieee-tests: New file.
23755         * tests/test-logbl-ieee.c: New file.
23757         New module 'logbl-ieee'.
23758         * modules/logbl-ieee: New file.
23760         Tests for module 'logb-ieee'.
23761         * modules/logb-ieee-tests: New file.
23762         * tests/test-logb-ieee.c: New file.
23764         New module 'logb-ieee'.
23765         * modules/logb-ieee: New file.
23767         Tests for module 'logbf-ieee'.
23768         * modules/logbf-ieee-tests: New file.
23769         * tests/test-logbf-ieee.c: New file.
23770         * tests/test-logb-ieee.h: New file.
23772         New module 'logbf-ieee'.
23773         * modules/logbf-ieee: New file.
23775 2012-04-03  Bruno Haible  <bruno@clisp.org>
23777         Tests for module 'logbl'.
23778         * modules/logbl-tests: New file.
23779         * tests/test-logbl.c: New file.
23781         New module 'logbl'.
23782         * lib/math.in.h (logbl): New declaration.
23783         * lib/logbl.c: New file.
23784         * m4/logbl.m4: New file.
23785         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
23786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
23787         REPLACE_LOGBL.
23788         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
23789         REPLACE_LOGBL.
23790         * modules/logbl: New file.
23791         * tests/test-math-c++.cc: Check the declaration of logbl.
23792         * doc/posix-functions/logbl.texi: Mention the new module.
23794 2012-04-02  Bruno Haible  <bruno@clisp.org>
23796         Tests for module 'logbf'.
23797         * modules/logbf-tests: New file.
23798         * tests/test-logbf.c: New file.
23800         New module 'logbf'.
23801         * lib/math.in.h (logbf): New declaration.
23802         * lib/logbf.c: New file.
23803         * m4/logbf.m4: New file.
23804         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
23805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
23806         REPLACE_LOGBF.
23807         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
23808         REPLACE_LOGBF.
23809         * modules/logbf: New file.
23810         * tests/test-math-c++.cc: Check the declaration of logbf.
23811         * doc/posix-functions/logbf.texi: Mention the new module.
23813 2012-04-02  Bruno Haible  <bruno@clisp.org>
23815         logb tests: More tests.
23816         * tests/test-logb.h: New file, based on tests/test-logb.c and
23817         tests/test-frexp.h.
23818         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
23819         (main): Just invoke test_function.
23820         * modules/logb-tests (Files): Add tests/test-logb.h,
23821         tests/minus-zero.h, tests/randomd.c.
23822         (Makefile.am): Add randomd.c to test_logb_SOURCES.
23824         logb: Provide replacement and workarounds.
23825         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
23826         is 1.
23827         * lib/logb.c: New file.
23828         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
23829         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
23830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
23831         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
23832         * modules/logb (Files): Add lib/logb.c.
23833         (Depends-on): Add isfinite, frexp, isnand.
23834         (configure.ac): Compile the replacement code logb.c if needed.
23835         * tests/test-math-c++.cc: Check the declaration of logb.
23836         * doc/posix-functions/logb.texi: Mention the replacement and the bug
23837         with subnormal numbers.
23839 2012-04-02  Bruno Haible  <bruno@clisp.org>
23841         log10* tests: Speed up.
23842         * tests/test-log10.h (test_function): Reduce amount of random numbers
23843         to test.
23845 2012-04-01  Bruno Haible  <bruno@clisp.org>
23847         logf-ieee: Fix test whether logf works.
23848         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
23850 2012-04-01  Bruno Haible  <bruno@clisp.org>
23852         log10l: Work around log10l-ieee test failure on IRIX 6.5.
23853         * lib/log10l.c: Include <float.h>
23854         (log10l): On IRIX, normalize the +Infinity value.
23855         * modules/log10l (Depends-on): Add 'float'.
23856         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
23857         +Infinity.
23859         log10f-ieee: Work around test failure on NetBSD 5.1.
23860         * m4/log10f-ieee.m4: New file.
23861         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
23862         test whether log10f works with a negative argument. Replace it if not.
23863         * lib/log10f.c (log10f): For negative arguments, return NaN.
23864         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
23865         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
23866         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
23868         log10f-ieee: Work around test failure on Solaris 9.
23869         * modules/log10f-ieee (Depends-on): Add log10-ieee.
23870         (configure.ac): Require gl_FUNC_LOG10F.
23872         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
23873         * m4/log10-ieee.m4: New file.
23874         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
23875         whether log10 works with a negative argument. Replace it if not.
23876         * lib/log10.c (log10): For negative arguments, return NaN.
23877         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
23878         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
23879         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
23881         Tests for module 'log10l-ieee'.
23882         * modules/log10l-ieee-tests: New file.
23883         * tests/test-log10l-ieee.c: New file.
23885         New module 'log10l-ieee'.
23886         * modules/log10l-ieee: New file.
23888         Tests for module 'log10-ieee'.
23889         * modules/log10-ieee-tests: New file.
23890         * tests/test-log10-ieee.c: New file.
23892         New module 'log10-ieee'.
23893         * modules/log10-ieee: New file.
23895         Tests for module 'log10f-ieee'.
23896         * modules/log10f-ieee-tests: New file.
23897         * tests/test-log10f-ieee.c: New file.
23898         * tests/test-log10-ieee.h: New file.
23900         New module 'log10f-ieee'.
23901         * modules/log10f-ieee: New file.
23903 2012-04-01  Bruno Haible  <bruno@clisp.org>
23905         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
23906         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
23907         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
23908         workaround.
23909         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
23910         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
23911         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
23912         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
23913         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
23914         (Depends-on): Update conditions.
23915         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
23916         IRIX 6.5, OSF/1 5.1 problems.
23918 2012-04-01  Bruno Haible  <bruno@clisp.org>
23920         log10f: Work around OSF/1 5.1 bug.
23921         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
23922         * lib/log10f.c (log10f): If logf exists, use it and provide just the
23923         workaround.
23924         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
23925         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
23926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
23927         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
23928         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
23929         (Depends-on): Update conditions.
23930         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
23932 2012-04-01  Bruno Haible  <bruno@clisp.org>
23934         log10: Work around OSF/1 5.1 bug.
23935         * lib/math.in.h (log10): New declaration.
23936         * lib/log10.c: New file.
23937         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
23938         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
23939         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
23940         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
23941         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
23942         * modules/log10 (Files): Add lib/log10.c.
23943         (Depends-on): Add math.
23944         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
23945         * tests/test-math-c++.cc: Check the declaration of log10.
23946         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
23948 2012-03-31  Bruno Haible  <bruno@clisp.org>
23950         log10l tests: More tests.
23951         * modules/log10l-tests (Files): Add tests/test-log10l.h,
23952         tests/minus-zero.h, tests/randoml.c.
23953         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
23954         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
23955         (main): Invoke test_function.
23957         log10f tests: More tests.
23958         * modules/log10f-tests (Files): Add tests/test-log10.h,
23959         tests/minus-zero.h, tests/randomf.c.
23960         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
23961         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
23962         (main): Invoke test_function.
23964         log10 tests: More tests.
23965         * tests/test-log10.h: New file.
23966         * modules/log10-tests (Files): Add tests/test-log10.h,
23967         tests/minus-zero.h, tests/randomd.c.
23968         (Makefile.am): Add randomd.c to test_log10_SOURCES.
23969         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
23970         (main): Invoke test_function.
23972 2012-03-31  Simon Josefsson  <simon@josefsson.org>
23974         fflush: Fix syntax error.
23975         * lib/fflush.c: Include unused-parameter.h, needed for
23976         _GL_UNUSED_PARAMETER.
23977         * modules/fflush (Depends-on): Add snippet/unused-parameter.
23979 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
23981         regex: pacify GCC when compiling GRUB
23982         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
23983         a diagnostic.  Reported by Vladimir Serbinenko in
23984         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
23986 2012-03-29  Eric Blake  <eblake@redhat.com>
23988         stdio: don't assume gets any more
23989         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
23990         support.
23991         * modules/stdio (Makefile.am): Likewise.
23992         * lib/stdio-read.c (gets): Likewise.
23993         * tests/test-stdio-c++.cc: Likewise.
23994         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
23995         * lib/stdio.in.h (gets): Make warning occur in more places.
23996         * doc/posix-functions/gets.texi (gets): Update documentation.
23997         Reported by Christer Solskogen.
23999         maint.mk: fix syntax checks without exclusions
24000         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
24001         Reported by Daniel P. Berrange.
24003         strerror_r: avoid compiler warning
24004         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
24005         level.
24007         fflush: avoid compiler warning
24008         * lib/fflush.c (update_fpos_cache): Mark variables that are
24009         potentially unused.
24011 2012-03-25  Bruno Haible  <bruno@clisp.org>
24013         Tests for module 'localeconv'.
24014         * modules/localeconv-tests: New file.
24015         * tests/test-localeconv.c: New file.
24017         New module 'localeconv'.
24018         * lib/locale.in.h (localeconv): New declaration.
24019         * lib/localeconv.c: New file.
24020         * m4/localeconv.m4: New file.
24021         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
24022         REPLACE_LOCALECONV.
24023         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
24024         REPLACE_LOCALECONV.
24025         * modules/localeconv: New file.
24026         * modules/nl_langinfo (Depends-on): Add localeconv.
24027         * modules/human (Depends-on): Likewise.
24028         * doc/posix-functions/localeconv.texi: Mention the new module.
24030 2012-03-25  Bruno Haible  <bruno@clisp.org>
24032         locale: Provide a complete 'struct lconv'.
24033         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
24034         'struct lconv' does not contain int_p_cs_precedes.
24035         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
24036         * doc/posix-headers/locale.texi: Update.
24038         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
24039         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
24040         * doc/posix-headers/locale.texi: Update.
24042         locale: Provide a working 'struct lconv'.
24043         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
24044         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
24045         'struct lconv' does not even contain decimal_point.
24046         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
24047         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
24048         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
24049         * doc/posix-headers/locale.texi: Mention the problems with
24050         'struct lconv'.
24051         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24053 2012-03-24  Bruno Haible  <bruno@clisp.org>
24055         Enable common subexpression optimization in GCC.
24056         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
24057         macros.
24058         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
24059         GCC attribute 'const'.
24060         (uc_locale_language): Declare with GCC attribute 'pure'.
24061         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
24062         with GCC attribute 'const'.
24063         * lib/unictype.in.h (uc_is_general_category_withtable,
24064         uc_combining_class, uc_combining_class_name,
24065         uc_combining_class_long_name, uc_bidi_class_name,
24066         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
24067         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
24068         uc_decimal_value, uc_digit_value, uc_numeric_value,
24069         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
24070         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
24071         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
24072         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
24073         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
24074         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
24075         Declare with GCC attribute 'const'.
24076         (uc_general_category_name, uc_general_category_long_name,
24077         uc_general_category_byname, uc_general_category,
24078         uc_is_general_category, uc_combining_class_byname,
24079         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
24080         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
24081         Declare with GCC attribute 'pure'.
24082         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
24083         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
24084         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
24085         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
24086         with GCC attribute 'pure'.
24087         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
24088         'const'.
24089         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
24090         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
24091         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
24092         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
24093         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
24094         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
24095         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
24096         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
24097         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
24098         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
24099         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
24100         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
24101         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
24102         GCC attribute 'pure'.
24103         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
24104         'const'.
24105         * lib/uniwidth.in.h (uc_width): Simplify declaration.
24106         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
24107         u32_strwidth): Declare with GCC attribute 'pure'.
24109         Enable common subexpression optimization in GCC.
24110         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24111         (alphasort): Declare with GCC attribute 'pure'.
24112         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24113         (atoll): Declare with GCC attribute 'pure'.
24114         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24115         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24116         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
24117         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24118         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
24119         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
24120         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
24122 2012-03-24  Bruno Haible  <bruno@clisp.org>
24124         gnulib-tool: Avoid unintended error output from 'cmp'.
24125         * gnulib-tool (func_add_file, func_update_file, func_import): Use
24126         "cmp -s", not "cmp > /dev/null".
24128 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
24130         gnulib-tool: fix imprecise comments w.r.t. an automake bug
24132         It's not just Automake versions < 1.9b that creates an empty
24133         pkgdatadir at installation time if pkgdata_DATA is specified
24134         to empty; modern automake versions do this as well, at least
24135         until automake 1.11.4 (not yet released at the moment of writing,
24136         but soon to appear).  That behaviour was generally considered a
24137         feature rather than a bug, at least until this discussion:
24138         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
24140         See also automake bugs #10997 and #11030.
24142         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
24143         reference to relevant automake bug numbers.
24144         (func_emit_tests_Makefile_am): Likewise.
24146 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
24148         announce-gen: use Digest::SHA when possible
24149         * build-aux/announce-gen: Use Digest::SHA when possible, falling
24150         back to Digest::SHA1 if necessary.
24152 2012-03-20  Jim Meyering  <meyering@redhat.com>
24154         tests: avoid gcc warnings about argv vs. const initializers
24155         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
24156         warnings about discarding 'const' qualifier from pointer target type.
24157         * tests/test-posix_spawn2.c (main): Likewise.
24159 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
24161         README-release: simplify slightly
24162         * top/README-release: Run "git checkout master" only once.
24164 2012-03-15  Mark Wielaard  <mark@klomp.org>
24166         git-merge-changelog: add specific example on how to use with hg.
24167         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
24169 2012-03-18  Mark Wielaard  <mark@klomp.org>
24171         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
24173 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
24175         git-version-gen: don't let "prefix" envvar cause trouble
24176         * build-aux/git-version-gen (prefix): Initialize properly,
24177         so as not to use a value specified via the environment.
24178         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
24180 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24182         regex: diagnose too-large repeat counts in EREs
24183         Previously, the code did not diagnose the too-large repeat count
24184         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
24185         as if it were 'b\{1000000000}', which is unexpected.
24186         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
24187         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
24188         is a reasonable one for this problem.  Another option would be to
24189         create a new REG_OVERFLOW error for repeat counts that are too large.
24190         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
24191         count is too large, so that the caller can distinguish the two cases.
24192         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
24193         "Too large" return code, and that repeat counts are one example of this.
24195 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24197         doc: some glibc x32 integer width issues
24198         * doc/posix-headers/sys_types.texi (sys/types.h):
24199         * doc/posix-headers/time.texi (time.h):
24200         Mention that glibc x32 does not conform to POSIX in a couple of
24201         areas related to integer widths.
24203 2012-03-15  Bruno Haible  <bruno@clisp.org>
24205         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
24206         * lib/fma.c (VOLATILE): New macro.
24207         (FUNC): Use it to work around a GCC compiler bug.
24209 2012-03-13  Bruno Haible  <bruno@clisp.org>
24211         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24212         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
24213         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
24214         REPLACE_HYPOTL to 1.
24215         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
24217 2012-03-13  Bruno Haible  <bruno@clisp.org>
24219         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24220         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
24221         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
24222         REPLACE_REMAINDERL to 1.
24223         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
24224         bug.
24226 2012-03-13  Bruno Haible  <bruno@clisp.org>
24228         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24229         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
24230         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
24231         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
24232         too big rounding errors.
24233         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
24234         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
24235         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
24236         (Depends-on): Update conditions.
24237         * tests/test-sqrtl.c (my_ldexpl): New function.
24238         (main): Add test of a particular value.
24239         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24241 2012-03-13  Pádraig Brady  <P@draigBrady.com>
24243         doc: Update timer_* platform portability notes.
24244         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
24245         that always return ENOSYS.
24246         * doc/posix-functions/timer_delete.texi: Likewise.
24247         * doc/posix-functions/timer_gettime.texi: Likewise.
24248         * doc/posix-functions/timer_settime.texi: Likewise.
24250 2012-03-13  Bruno Haible  <bruno@clisp.org>
24252         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24253         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
24254         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
24255         REPLACE_CBRTL to 1.
24256         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24258 2012-03-13  Bruno Haible  <bruno@clisp.org>
24260         remainderl: Avoid compilation error on AIX >= 5.2.
24261         * lib/math.in.h (remainderl): Undefine macro from the system header.
24263 2012-03-13  Bruno Haible  <bruno@clisp.org>
24265         Avoid compilation errors with MSVC option -fp:strict.
24266         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
24267         * lib/cbrtf.c: Likewise.
24268         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24270 2012-03-12  Bruno Haible  <bruno@clisp.org>
24272         uninorm: Don't crash in out-of-memory conditions.
24273         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
24274         gracefully.
24275         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
24276         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
24278 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
24280         quote: fix syntax-check
24281         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
24282         also exports quote_quoting_options.
24284 2012-03-12  Simon Josefsson  <simon@josefsson.org>
24286         Collapse list of copyright years to ranges.  See
24287         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
24288         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
24289         build-aux/csharpexec.sh.in, build-aux/gnupload,
24290         build-aux/install-reloc, build-aux/javacomp.sh.in,
24291         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
24292         build-aux/move-if-change, build-aux/reloc-ldflags,
24293         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
24295 2012-03-11  Bruno Haible  <bruno@clisp.org>
24297         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24298         * m4/log2f-ieee.m4: New file.
24299         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
24300         whether log2f works with a minus zero argument. Replace it if not.
24301         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
24302         (Depends-on): Add log2-ieee.
24303         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
24304         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
24306         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24307         * m4/log2-ieee.m4: New file.
24308         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
24309         whether log2 works with a minus zero argument. Replace it if not.
24310         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
24311         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
24312         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
24314         Tests for module 'log2l-ieee'.
24315         * modules/log2l-ieee-tests: New file.
24316         * tests/test-log2l-ieee.c: New file.
24318         New module 'log2l-ieee'.
24319         * modules/log2l-ieee: New file.
24321         Tests for module 'log2-ieee'.
24322         * modules/log2-ieee-tests: New file.
24323         * tests/test-log2-ieee.c: New file.
24325         New module 'log2-ieee'.
24326         * modules/log2-ieee: New file.
24328         Tests for module 'log2f-ieee'.
24329         * modules/log2f-ieee-tests: New file.
24330         * tests/test-log2f-ieee.c: New file.
24331         * tests/test-log2-ieee.h: New file.
24333         New module 'log2f-ieee'.
24334         * modules/log2f-ieee: New file.
24336 2012-03-11  Bruno Haible  <bruno@clisp.org>
24338         Tests for module 'log2l'.
24339         * modules/log2l-tests: New file.
24340         * tests/test-log2l.c: New file.
24342         New module 'log2l'.
24343         * lib/math.in.h (log2l): New declaration.
24344         * lib/log2l.c: New file.
24345         * m4/log2l.m4: New file.
24346         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
24347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
24348         REPLACE_LOG2L.
24349         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
24350         REPLACE_LOG2L.
24351         * modules/log2l: New file.
24352         * tests/test-math-c++.cc: Check the declaration of log2l.
24353         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
24354         and OSF/1 problems.
24356 2012-03-11  Bruno Haible  <bruno@clisp.org>
24358         Tests for module 'log2f'.
24359         * modules/log2f-tests: New file.
24360         * tests/test-log2f.c: New file.
24362         New module 'log2f'.
24363         * lib/math.in.h (log2f): New declaration.
24364         * lib/log2f.c: New file.
24365         * m4/log2f.m4: New file.
24366         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
24367         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
24368         REPLACE_LOG2F.
24369         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
24370         REPLACE_LOG2F.
24371         * modules/log2f: New file.
24372         * tests/test-math-c++.cc: Check the declaration of log2f.
24373         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
24374         and OSF/1 and Cygwin problems.
24376 2012-03-11  Bruno Haible  <bruno@clisp.org>
24378         Tests for module 'log2'.
24379         * modules/log2-tests: New file.
24380         * tests/test-log2.c: New file.
24381         * tests/test-log2.h: New file.
24383         New module 'log2'.
24384         * lib/math.in.h (log2): New declaration.
24385         * lib/log2.c: New file.
24386         * m4/log2.m4: New file.
24387         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
24388         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
24389         REPLACE_LOG2.
24390         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
24391         REPLACE_LOG2.
24392         * modules/log2: New file.
24393         * tests/test-math-c++.cc: Check the declaration of log2.
24394         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
24395         and OSF/1 and Cygwin problems.
24397 2012-03-11  Bruno Haible  <bruno@clisp.org>
24399         exp2* tests: More tests.
24400         * tests/test-exp2.h (test_function): Test all integral arguments that
24401         don't need to overflow or denormalized numbers.
24402         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
24403         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
24404         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
24406 2012-03-10  Bruno Haible  <bruno@clisp.org>
24408         log1pl-ieee: Work around test failure on AIX 7.1.
24409         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
24411         log1pl-ieee: Work around test failure on IRIX 6.5.
24412         * m4/log1pl-ieee.m4: New file.
24413         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
24414         test whether log1pl works with a minus zero argument. Replace it if
24415         not.
24416         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
24417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
24418         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
24419         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
24420         (Depends-on): Update conditions.
24421         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24422         m4/signbit.m4.
24423         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
24424         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
24426         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
24427         * m4/log1pf-ieee.m4: New file.
24428         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
24429         test whether log1pf works with a minus zero argument. Replace it if
24430         not.
24431         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
24432         m4/signbit.m4.
24433         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
24434         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
24436         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
24437         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
24438         (configure.ac): Require gl_FUNC_LOG1PF.
24440         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
24441         * m4/log1p-ieee.m4: New file.
24442         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
24443         whether log1p works with a minus zero argument. Replace it if not.
24444         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
24445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
24446         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
24447         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
24448         (Depends-on): Update conditions.
24449         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24450         m4/signbit.m4.
24451         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
24452         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
24454         Tests for module 'log1pl-ieee'.
24455         * modules/log1pl-ieee-tests: New file.
24456         * tests/test-log1pl-ieee.c: New file.
24458         New module 'log1pl-ieee'.
24459         * modules/log1pl-ieee: New file.
24461         Tests for module 'log1p-ieee'.
24462         * modules/log1p-ieee-tests: New file.
24463         * tests/test-log1p-ieee.c: New file.
24465         New module 'log1p-ieee'.
24466         * modules/log1p-ieee: New file.
24468         Tests for module 'log1pf-ieee'.
24469         * modules/log1pf-ieee-tests: New file.
24470         * tests/test-log1pf-ieee.c: New file.
24471         * tests/test-log1p-ieee.h: New file.
24473         New module 'log1pf-ieee'.
24474         * modules/log1pf-ieee: New file.
24476 2012-03-10  Bruno Haible  <bruno@clisp.org>
24478         Tests for module 'log1pl'.
24479         * modules/log1pl-tests: New file.
24480         * tests/test-log1pl.c: New file.
24482         New module 'log1pl'.
24483         * lib/math.in.h (log1pl): New declaration.
24484         * lib/log1pl.c: New file.
24485         * m4/log1pl.m4: New file.
24486         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
24487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
24488         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
24489         * modules/log1pl: New file.
24490         * tests/test-math-c++.cc: Check the declaration of log1pl.
24491         * doc/posix-functions/log1pl.texi: Mention the new module.
24493 2012-03-10  Bruno Haible  <bruno@clisp.org>
24495         Tests for module 'log1pf'.
24496         * modules/log1pf-tests: New file.
24497         * tests/test-log1pf.c: New file.
24499         New module 'log1pf'.
24500         * lib/math.in.h (log1pf): New declaration.
24501         * lib/log1pf.c: New file.
24502         * m4/log1pf.m4: New file.
24503         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
24504         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
24505         REPLACE_LOG1PF.
24506         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
24507         REPLACE_LOG1PF.
24508         * modules/log1pf: New file.
24509         * tests/test-math-c++.cc: Check the declaration of log1pf.
24510         * doc/posix-functions/log1pf.texi: Mention the new module.
24512 2012-03-10  Bruno Haible  <bruno@clisp.org>
24514         log1p tests: More tests.
24515         * tests/test-log1p.h: New file.
24516         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
24517         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
24518         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
24519         (main): Invoke test_function.
24521         log1p: Provide replacement for Minix and MSVC.
24522         * lib/math.in.h (log1p): New declaration.
24523         * lib/log1p.c: New file.
24524         * m4/log1p.m4: New file.
24525         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
24526         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
24527         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
24528         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
24529         (Depends-on): Add math, isnand, log, round.
24530         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
24531         HAVE_LOG1P is 0.
24532         * tests/test-math-c++.cc: Check the declaration of log1p.
24533         * doc/posix-functions/log1p.texi: Mention the replacement.
24535 2012-03-10  Bruno Haible  <bruno@clisp.org>
24537         math tests: Small simplification.
24538         * tests/test-exp.h (test_function): Use the same err_bound for
24539         'double' on platforms with sizeof (long double) == sizeof (double)
24540         than on platforms with sizeof (long double) > sizeof (double).
24541         * tests/test-exp2.h (test_function): Likewise.
24542         * tests/test-expm1.h (test_function): Likewise.
24543         * tests/test-log.h (test_function): Likewise.
24545 2012-03-10  Bruno Haible  <bruno@clisp.org>
24547         Fix some comments.
24548         * lib/expl.c: Fix an ambiguous comment.
24549         * lib/expm1.c: Likewise.
24550         * lib/expm1l.c: Likewise.
24551         * lib/exp2.c: Likewise.
24552         * lib/exp2l.c: Likewise.
24554 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
24556         regex: allow inclusion of <regex.h> before <limits.h>
24557         Without this patch, portable programs had to include <limits.h> before
24558         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
24559         I ran into this problem with a test version of GNU grep on Solaris 8.
24560         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
24561         This is done conditionally so that this change can be merged
24562         back to glibc.
24563         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
24564         using the included regex.
24566         fts: depend on fdopendir
24567         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
24568         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
24569         problem was introduced when fdopendir was split out.
24571 2012-03-10  Bruno Haible  <bruno@clisp.org>
24573         Remove unused variables.
24574         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
24575         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
24577 2012-03-10  Bruno Haible  <bruno@clisp.org>
24579         isnanf-nolibm: Fix last commit.
24580         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
24582         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
24583         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
24585 2012-03-10  Bruno Haible  <bruno@clisp.org>
24587         logf-ieee: Work around test failure on NetBSD 5.1.
24588         * m4/logf-ieee.m4: New file.
24589         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
24590         whether logf works with a negative argument. Replace it if not.
24591         * lib/logf.c (logf): For negative arguments, return NaN.
24592         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
24593         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
24594         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
24596         logf-ieee: Work around test failure on Solaris 9.
24597         * modules/logf-ieee (Depends-on): Add log-ieee.
24598         (configure.ac): Require gl_FUNC_LOGF.
24600         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
24601         * m4/log-ieee.m4: New file.
24602         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
24603         log works with a negative argument. Replace it if not.
24604         * lib/log.c (log): For negative arguments, return NaN.
24605         * modules/log-ieee (Files): Add m4/log-ieee.m4.
24606         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
24607         * doc/posix-functions/log.texi: Mention the log-ieee module.
24609         Tests for module 'logl-ieee'.
24610         * modules/logl-ieee-tests: New file.
24611         * tests/test-logl-ieee.c: New file.
24613         New module 'logl-ieee'.
24614         * modules/logl-ieee: New file.
24616         Tests for module 'log-ieee'.
24617         * modules/log-ieee-tests: New file.
24618         * tests/test-log-ieee.c: New file.
24620         New module 'log-ieee'.
24621         * modules/log-ieee: New file.
24623         Tests for module 'logf-ieee'.
24624         * modules/logf-ieee-tests: New file.
24625         * tests/test-logf-ieee.c: New file.
24626         * tests/test-log-ieee.h: New file.
24628         New module 'logf-ieee'.
24629         * modules/logf-ieee: New file.
24631 2012-03-10  Bruno Haible  <bruno@clisp.org>
24633         log: Fix bug introduced on 2012-03-09.
24634         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
24636 2012-03-10  Pádraig Brady  <P@draigBrady.com>
24638         timer-time: link explicitly with pthreads on glibc
24639         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
24640         to support static linking, when newer glibc is
24641         detected, as that contains pthread emulation of
24642         POSIX timer functions where required.
24643         * modules/timer-time: Depend on threadlib to
24644         pull in the appropriate library to link.
24646 2012-03-10  Bruno Haible  <bruno@clisp.org>
24648         log* tests: More tests.
24649         * tests/test-log.h: New file.
24650         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
24651         (main): Invoke test_function.
24652         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
24653         (main): Invoke test_function.
24654         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
24655         (main): Invoke test_function.
24656         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24657         tests/randomd.c.
24658         (Makefile.am): Add randomd.c to test_log_SOURCES.
24659         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24660         tests/randomf.c.
24661         (Makefile.am): Add randomf.c to test_logf_SOURCES.
24662         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24663         tests/randoml.c.
24664         (Depends-on): Add 'float'.
24665         (Makefile.am): Add randoml.c to test_logl_SOURCES.
24667 2012-03-09  Bruno Haible  <bruno@clisp.org>
24669         logl: Work around OSF/1 5.1 bug.
24670         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
24671         * lib/logl.c (logl): If logl exists, use it and provide just the
24672         workaround.
24673         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
24674         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
24675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
24676         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
24677         * modules/logl (configure.ac): Consider REPLACE_LOGL.
24678         (Depends-on): Update conditions.
24679         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
24681 2012-03-09  Bruno Haible  <bruno@clisp.org>
24683         logf: Work around OSF/1 5.1 bug.
24684         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
24685         * lib/logf.c (logf): If logf exists, use it and provide just the
24686         workaround.
24687         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
24688         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
24689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
24690         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
24691         * modules/logf (configure.ac): Consider REPLACE_LOGF.
24692         (Depends-on): Update conditions.
24693         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
24695 2012-03-09  Bruno Haible  <bruno@clisp.org>
24697         log: Work around OSF/1 5.1 bug.
24698         * lib/math.in.h (log): New declaration.
24699         * lib/log.c: New file.
24700         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
24701         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
24702         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
24703         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
24704         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
24705         * modules/log (Files): Add lib/log.c.
24706         (Depends-on): Add math.
24707         (configure.ac): If REPLACE_LOG is 1, compile an override.
24708         * tests/test-math-c++.cc: Check the declaration of log.
24709         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
24711 2012-03-09  Jim Meyering  <meyering@redhat.com>
24713         readtokens.c: adjust wording in a comment
24714         * lib/readtokens.c: Insert omitted "that" in a comment.
24716 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24718         modechange: add notations +40, 00440, etc.
24719         * lib/modechange.c (mode_compile): Support new notations
24720         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
24722 2012-03-08  Bruno Haible  <bruno@clisp.org>
24724         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
24725         * m4/exp2l-ieee.m4: New file.
24726         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
24727         test whether exp2l works with a NaN argument and with a negative
24728         infinity argument. Replace it if not.
24729         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
24730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
24731         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
24732         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
24733         (Depends-on): Update conditions.
24734         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
24735         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
24736         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
24738         Tests for module 'exp2l-ieee'.
24739         * modules/exp2l-ieee-tests: New file.
24740         * tests/test-exp2l-ieee.c: New file.
24742         New module 'exp2l-ieee'.
24743         * modules/exp2l-ieee: New file.
24745         Tests for module 'exp2-ieee'.
24746         * modules/exp2-ieee-tests: New file.
24747         * tests/test-exp2-ieee.c: New file.
24749         New module 'exp2-ieee'.
24750         * modules/exp2-ieee: New file.
24752         Tests for module 'exp2f-ieee'.
24753         * modules/exp2f-ieee-tests: New file.
24754         * tests/test-exp2f-ieee.c: New file.
24755         * tests/test-exp2-ieee.h: New file.
24757         New module 'exp2f-ieee'.
24758         * modules/exp2f-ieee: New file.
24760 2012-03-08  Bruno Haible  <bruno@clisp.org>
24762         Tests for module 'exp2l'.
24763         * modules/exp2l-tests: New file.
24764         * tests/test-exp2l.c: New file.
24766         New module 'exp2l'.
24767         * lib/math.in.h (exp2l): New declaration.
24768         * lib/exp2l.c: New file.
24769         * lib/expl-table.c: New file, extracted from lib/expl.c.
24770         * lib/expl.c (gl_expl_table): New declaration.
24771         (expl): Remove expl_table. Update reference.
24772         * m4/exp2l.m4: New file.
24773         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
24774         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
24775         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
24776         * modules/exp2l: New file.
24777         * modules/expl (Files): Add lib/expl-table.c.
24778         (configure.ac): Compile also expl-table.c.
24779         * tests/test-math-c++.cc: Check the declaration of exp2l.
24780         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
24781         problem.
24783 2012-03-08  Bruno Haible  <bruno@clisp.org>
24785         Tests for module 'exp2f'.
24786         * modules/exp2f-tests: New file.
24787         * tests/test-exp2f.c: New file.
24789         New module 'exp2f'.
24790         * lib/math.in.h (exp2f): New declaration.
24791         * lib/exp2f.c: New file.
24792         * m4/exp2f.m4: New file.
24793         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
24794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
24795         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
24796         * modules/exp2f: New file.
24797         * tests/test-math-c++.cc: Check the declaration of exp2f.
24798         * doc/posix-functions/exp2f.texi: Mention the new module and the
24799         IRIX problem.
24801 2012-03-08  Bruno Haible  <bruno@clisp.org>
24803         Tests for module 'exp2'.
24804         * modules/exp2-tests: New file.
24805         * tests/test-exp2.c: New file.
24806         * tests/test-exp2.h: New file.
24808         New module 'exp2'.
24809         * lib/math.in.h (exp2): New declaration.
24810         * lib/exp2.c: New file.
24811         * m4/exp2.m4: New file.
24812         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
24813         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
24814         REPLACE_EXP2.
24815         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
24816         REPLACE_EXP2.
24817         * modules/exp2: New file.
24818         * tests/test-math-c++.cc: Check the declaration of exp2.
24819         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
24820         and OpenBSD problems.
24822 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24824         savedir: fix comment typo
24825         * lib/savedir.c (savedirstream): Fix typo in comment.
24827 2012-03-08  Bruno Haible  <bruno@clisp.org>
24829         test-readtokens.c: use const; remove unwarranted cast
24830         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
24832 2012-03-08  Bruno Haible  <bruno@clisp.org>
24834         fmal: Avoid compilation error on AIX.
24835         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
24836         AIX 5.2..7.1.
24838 2012-03-08  Bruno Haible  <bruno@clisp.org>
24840         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
24841         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
24842         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
24843         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
24844         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
24845         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
24846         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
24848 2012-03-08  Bruno Haible  <bruno@clisp.org>
24850         remainderf: Override buggy system function on IRIX 6.5.
24851         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
24852         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
24853         when it exists.
24854         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
24856 2012-03-08  Jim Meyering  <meyering@redhat.com>
24858         test-readtokens.c: avoid const-related compilation warnings
24859         * tests/test-readtokens.c: Avoid const-related compilation warnings.
24861 2012-03-07  Jim Meyering  <meyering@redhat.com>
24862             Bruno Haible  <bruno@clisp.org>
24864         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
24865         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
24866         tests/randomd.c.
24867         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
24868         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
24869         tests/randoml.c.
24870         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
24872 2012-03-07  Bruno Haible  <bruno@clisp.org>
24874         expm1l: Avoid compilation error on AIX.
24875         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
24876         AIX 5.2..7.1.
24878 2012-03-07  Bruno Haible  <bruno@clisp.org>
24880         expm1l: Don't override undeclared system function on IRIX 6.5.
24881         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
24882         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
24883         it exists. Set HAVE_DECL_EXPM1L.
24884         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
24885         HAVE_EXPM1L.
24886         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
24887         HAVE_EXPM1L.
24888         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
24890 2012-03-07  Bruno Haible  <bruno@clisp.org>
24892         remainderl: Don't override undeclared system function on IRIX 6.5.
24893         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
24894         HAVE_REMAINDERL.
24895         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
24896         declared when it exists. Set HAVE_DECL_REMAINDERL.
24897         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
24898         not HAVE_REMAINDERL.
24899         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
24900         HAVE_REMAINDERL.
24901         * doc/posix-functions/remainderl.texi: Mention missing declaration
24902         problem.
24904 2012-03-07  Bruno Haible  <bruno@clisp.org>
24906         rintf: Don't override undeclared system function on IRIX 6.5.
24907         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
24908         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
24909         exists. Set HAVE_DECL_RINTF.
24910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
24911         HAVE_RINTF.
24912         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
24913         HAVE_RINTF.
24914         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
24916 2012-03-07  Bruno Haible  <bruno@clisp.org>
24918         roundl: Avoid compilation error on AIX.
24919         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
24920         AIX 5.2..7.1.
24922 2012-03-07  Bruno Haible  <bruno@clisp.org>
24924         roundl: Don't override undeclared system function on IRIX 6.5.
24925         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
24926         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
24927         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
24928         * modules/roundl (configure.ac): For replacement code, test
24929         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
24930         (Depends-on): Update conditions.
24931         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
24933 2012-03-07  Bruno Haible  <bruno@clisp.org>
24935         roundf: Don't override undeclared system function on IRIX 6.5.
24936         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
24937         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
24938         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
24939         * modules/roundf (configure.ac): For replacement code, test
24940         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
24941         (Depends-on): Update conditions.
24942         * modules/roundf-ieee (Depends-on): Update conditions.
24943         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
24945 2012-03-07  Bruno Haible  <bruno@clisp.org>
24947         round: Don't override undeclared system function on IRIX 6.5.
24948         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
24949         argument.
24950         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
24951         also when it is not declared. Set HAVE_ROUND. For replacement code,
24952         test HAVE_ROUND, not HAVE_DECL_ROUND.
24953         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
24954         not HAVE_DECL_ROUND.
24955         (Depends-on): Update conditions.
24956         * modules/round-ieee (Depends-on): Update conditions.
24957         * doc/posix-functions/round.texi: Mention the IRIX problem.
24959 2012-03-07  Bruno Haible  <bruno@clisp.org>
24961         copysignf: Don't override undeclared system function on IRIX 6.5.
24962         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
24963         HAVE_COPYSIGNF.
24964         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
24965         declared when it exists. Set HAVE_DECL_COPYSIGNF.
24966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
24967         not HAVE_COPYSIGNF.
24968         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
24969         HAVE_COPYSIGNF.
24970         * doc/posix-functions/copysignf.texi: Mention missing declaration
24971         problem.
24973 2012-03-07  Jim Meyering  <meyering@redhat.com>
24975         readtokens: add tests
24976         * modules/readtokens-tests: New file.
24977         * tests/test-readtokens.c: New file.
24979 2012-03-07  Jim Meyering  <meyering@redhat.com>
24981         quotearg: the module must now include quote.h
24982         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
24983         So must the module.
24984         * modules/quotearg (Files): Add quote.h.
24986 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
24988         readtokens: avoid core dumps with unusual calling patterns
24989         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
24990         * lib/readtokens.c: Include limits.h.
24991         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
24992         (readtoken): Don't cache the delimiters; the cache code was buggy
24993         if !delim && saved_delim, or if the new n_delim differs from the old.
24994         Also, it wasn't thread-safe.
24996 2012-03-07  Bruno Haible  <bruno@clisp.org>
24998         quote: Adhere to common module description layout.
24999         * modules/quote (Makefile.am): Add back empty section.
25001 2012-03-06  Akim Demaille  <demaille@gostai.com>
25003         quote: fuse into quotearg
25004         This patch is made for the benefit of Bison.
25005         quote does not leave the choice of the quoting style to the user.
25006         quoting_style provides poor customizability, yet quoting_options,
25007         which is very rich, is hidden inside quotearg.c.  So in order to
25008         allow quote customization, move its implementation to quotearg.c.
25009         * lib/quote.c: Remove.
25010         * modules/quote: Adjust.
25011         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
25012         warning: provide all the members of literal structs.
25013         (quote_quoting_options): New.
25014         (quote, quote_n): Import implementation from quote.c.
25015         * lib/quote.h: Import the comments from quote.c.
25016         (quote_quoting_options): New.
25018 2012-03-06  Bruno Haible  <bruno@clisp.org>
25020         Tests for module 'expm1l-ieee'.
25021         * modules/expm1l-ieee-tests: New file.
25022         * tests/test-expm1l-ieee.c: New file.
25024         New module 'expm1l-ieee'.
25025         * modules/expm1l-ieee: New file.
25027         Tests for module 'expm1f-ieee'.
25028         * modules/expm1f-ieee-tests: New file.
25029         * tests/test-expm1f-ieee.c: New file.
25031         New module 'expm1f-ieee'.
25032         * modules/expm1f-ieee: New file.
25034         Tests for module 'expm1-ieee'.
25035         * modules/expm1-ieee-tests: New file.
25036         * tests/test-expm1-ieee.c: New file.
25037         * tests/test-expm1-ieee.h: New file.
25039         New module 'expm1-ieee'.
25040         * modules/expm1-ieee: New file.
25041         * m4/expm1-ieee.m4: New file.
25042         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
25043         whether expm1 works with a minus zero argument. Replace it if not.
25044         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
25045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
25046         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
25047         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
25048         (Depends-on): Update conditions.
25049         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
25050         AIX problem.
25052 2012-03-06  Bruno Haible  <bruno@clisp.org>
25054         Work around expm1f bug on IRIX 6.5.
25055         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
25056         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
25057         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
25058         not work.
25059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
25060         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
25061         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
25062         (Depends-on): Update conditions.
25063         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
25065 2012-03-06  Bruno Haible  <bruno@clisp.org>
25067         Tests for module 'expm1l'.
25068         * modules/expm1l-tests: New file.
25069         * tests/test-expm1l.c: New file.
25071         New module 'expm1l'.
25072         * lib/math.in.h (expm1l): New declaration.
25073         * lib/expm1l.c: New file.
25074         * m4/expm1l.m4: New file.
25075         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
25076         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
25077         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
25078         * modules/expm1l: New file.
25079         * tests/test-math-c++.cc: Check the declaration of expm1l.
25080         * doc/posix-functions/expm1l.texi: Mention the new module.
25082 2012-03-06  Bruno Haible  <bruno@clisp.org>
25084         Tests for module 'expm1f'.
25085         * modules/expm1f-tests: New file.
25086         * tests/test-expm1f.c: New file.
25088         New module 'expm1f'.
25089         * lib/math.in.h (expm1f): New declaration.
25090         * lib/expm1f.c: New file.
25091         * m4/expm1f.m4: New file.
25092         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
25093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
25094         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
25095         * modules/expm1f: New file.
25096         * tests/test-math-c++.cc: Check the declaration of expm1f.
25097         * doc/posix-functions/expm1f.texi: Mention the new module.
25099 2012-03-06  Bruno Haible  <bruno@clisp.org>
25101         Tests for module 'expm1'.
25102         * modules/expm1-tests: New file.
25103         * tests/test-expm1.c: New file.
25104         * tests/test-expm1.h: New file.
25106         New module 'expm1'.
25107         * lib/math.in.h (expm1): New declaration.
25108         * lib/expm1.c: New file.
25109         * m4/expm1.m4: New file.
25110         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
25111         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
25112         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
25113         * modules/expm1: New file.
25114         * tests/test-math-c++.cc: Check the declaration of expm1.
25115         * doc/posix-functions/expm1.texi: Mention the new module.
25117 2012-03-06  Bruno Haible  <bruno@clisp.org>
25119         math: Ensure declarations of math functions.
25120         * modules/acosf (Depends-on): Add 'extensions'.
25121         * modules/asinf (Depends-on): Likewise.
25122         * modules/atan2f (Depends-on): Likewise.
25123         * modules/atanf (Depends-on): Likewise.
25124         * modules/cbrt (Depends-on): Likewise.
25125         * modules/cbrtf (Depends-on): Likewise.
25126         * modules/cbrtl (Depends-on): Likewise.
25127         * modules/copysignf (Depends-on): Likewise.
25128         * modules/copysignl (Depends-on): Likewise.
25129         * modules/cosf (Depends-on): Likewise.
25130         * modules/coshf (Depends-on): Likewise.
25131         * modules/expf (Depends-on): Likewise.
25132         * modules/fabsf (Depends-on): Likewise.
25133         * modules/fabsl (Depends-on): Likewise.
25134         * modules/fmaf (Depends-on): Likewise.
25135         * modules/fmal (Depends-on): Likewise.
25136         * modules/fmodf (Depends-on): Likewise.
25137         * modules/fmodl (Depends-on): Likewise.
25138         * modules/frexpf (Depends-on): Likewise.
25139         * modules/frexpl (Depends-on): Likewise.
25140         * modules/hypot (Depends-on): Likewise.
25141         * modules/hypotf (Depends-on): Likewise.
25142         * modules/hypotl (Depends-on): Likewise.
25143         * modules/ldexpf (Depends-on): Likewise.
25144         * modules/ldexpl (Depends-on): Likewise.
25145         * modules/log10f (Depends-on): Likewise.
25146         * modules/log10l (Depends-on): Likewise.
25147         * modules/log1p (Depends-on): Likewise.
25148         * modules/logb (Depends-on): Likewise.
25149         * modules/logf (Depends-on): Likewise.
25150         * modules/modff (Depends-on): Likewise.
25151         * modules/modfl (Depends-on): Likewise.
25152         * modules/powf (Depends-on): Likewise.
25153         * modules/remainderf (Depends-on): Likewise.
25154         * modules/remainderl (Depends-on): Likewise.
25155         * modules/rintf (Depends-on): Likewise.
25156         * modules/rintl (Depends-on): Likewise.
25157         * modules/sinf (Depends-on): Likewise.
25158         * modules/sinhf (Depends-on): Likewise.
25159         * modules/sqrtf (Depends-on): Likewise.
25160         * modules/tanf (Depends-on): Likewise.
25161         * modules/tanhf (Depends-on): Likewise.
25162         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
25163         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
25164         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
25165         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
25166         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
25167         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
25168         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
25169         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
25170         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
25171         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
25172         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
25173         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
25174         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
25175         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
25176         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
25177         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
25178         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
25179         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
25180         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
25181         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
25182         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
25183         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
25184         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
25185         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
25186         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
25187         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
25188         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
25189         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25190         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
25191         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
25192         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
25193         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
25194         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
25195         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
25196         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
25197         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
25198         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
25199         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
25200         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
25201         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
25202         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
25204 2012-03-06  Bruno Haible  <bruno@clisp.org>
25206         math: Update module names in warnings.
25207         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
25208         tanl): Use specific module name in warn-on-use warning.
25210 2012-03-06  Bruno Haible  <bruno@clisp.org>
25212         expl: Simplify computation.
25213         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
25215 2012-03-05  Bruno Haible  <bruno@clisp.org>
25217         exp* tests: More tests.
25218         * tests/test-exp.h: New file.
25219         * tests/test-exp.c: Include <float.h> and test-exp.h.
25220         (main): Invoke test_function.
25221         * tests/test-expf.c: Include <float.h> and test-exp.h.
25222         (main): Invoke test_function.
25223         * tests/test-expl.c: Include <float.h> and test-exp.h.
25224         (main): Invoke test_function.
25225         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
25226         (Makefile.am): Add randomd.c to test_exp_SOURCES.
25227         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
25228         (Makefile.am): Add randomf.c to test_expf_SOURCES.
25229         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
25230         (Depends-on): Add 'float'.
25231         (Makefile.am): Add randoml.c to test_expl_SOURCES.
25233         expl: Fix precision of computed result.
25234         * lib/expl.c: Completely rewritten.
25235         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
25236         (Maintainer): Add me.
25237         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
25239 2012-03-05  Bruno Haible  <bruno@clisp.org>
25241         cbrt* tests: More tests.
25242         * tests/test-cbrt.h: New file.
25243         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
25244         (main): Invoke test_function.
25245         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
25246         (main): Invoke test_function.
25247         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
25248         (main): Invoke test_function.
25249         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
25250         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
25251         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
25252         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
25253         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
25254         (Depends-on): Add 'float'.
25255         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
25257 2012-03-05  Bruno Haible  <bruno@clisp.org>
25259         hypot* tests: More tests.
25260         * tests/test-hypot.h: New file, partially extracted from
25261         tests/test-hypotl.c.
25262         * tests/test-hypot.c: Include test-hypot.h.
25263         (main): Invoke test_function.
25264         * tests/test-hypotf.c: Include test-hypot.h.
25265         (main): Invoke test_function.
25266         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
25267         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
25268         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
25269         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
25270         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
25271         tests/randomf.c.
25272         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
25273         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
25274         tests/randoml.c.
25275         (Depends-on): Add 'fpucw', 'float'.
25276         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
25278 2012-03-05  Bruno Haible  <bruno@clisp.org>
25280         fpucw: Doc about FreeBSD.
25281         * lib/fpucw.h: Mention FreeBSD in comments.
25283 2012-03-04  Bruno Haible  <bruno@clisp.org>
25285         sqrt* tests: More tests.
25286         * tests/test-sqrt.h: New file.
25287         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
25288         (main): Invoke test_function.
25289         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
25290         (main): Invoke test_function.
25291         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
25292         (main): Invoke test_function.
25293         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
25294         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
25295         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
25296         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
25297         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
25298         (Depends-on): Add 'float'.
25299         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
25301 2012-03-04  Bruno Haible  <bruno@clisp.org>
25303         remainder* tests: More tests.
25304         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
25305         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
25306         (main): Invoke test_function.
25307         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
25308         (main): Invoke test_function.
25309         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
25310         (main): Invoke test_function.
25311         * modules/remainder-tests (Files): Add tests/test-remainder.h,
25312         tests/randomd.c.
25313         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
25314         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
25315         tests/randomf.c.
25316         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
25317         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
25318         tests/randoml.c.
25319         (Depends-on): Add 'float'.
25320         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
25322 2012-03-04  Bruno Haible  <bruno@clisp.org>
25324         remainder, remainderf, remainderl: Fix computation for large quotients.
25325         * lib/remainder.c: Completely rewritten.
25326         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
25327         USE_FLOAT.
25328         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
25329         USE_LONG_DOUBLE.
25330         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
25331         isnand, isinf. Remove round, fma.
25332         * modules/remainderf (Files): Add lib/remainder.c.
25333         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
25334         Remove roundf, fmaf.
25335         * modules/remainderl (Files): Add lib/remainder.c.
25336         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
25337         isinf. Remove roundl, fmal.
25338         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
25339         REMAINDER_LIBM.
25340         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
25341         REMAINDERF_LIBM.
25342         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
25343         REMAINDERL_LIBM.
25345 2012-03-04  Bruno Haible  <bruno@clisp.org>
25347         fmod* tests: More tests.
25348         * tests/test-fmod.h (my_ldexp): New function.
25349         (test_function): Reduce amount of random numbers to test. Add tests
25350         of very large quotients x / y.
25351         * tests/test-fmod.c (MAX_EXP): New macro.
25352         * tests/test-fmodf.c (MAX_EXP): Likewise.
25353         * tests/test-fmodl.c (MAX_EXP): Likewise.
25355 2012-03-04  Bruno Haible  <bruno@clisp.org>
25357         fmod, fmodl: Fix computation for large quotients x / y.
25358         * lib/fmod.c: Completely rewritten.
25359         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
25360         USE_LONG_DOUBLE.
25361         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
25362         isnand. Remove fma.
25363         * modules/fmodl (Files): Add lib/fmod.c.
25364         (Depends-on): Add float, isfinite, signbit, fabsl,
25365         frexpl, ldexpl, isnanl. Remove fma.
25366         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
25367         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
25369 2012-03-03  Bruno Haible  <bruno@clisp.org>
25371         fmod* tests: More tests.
25372         * tests/test-fmod.h: New file.
25373         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
25374         (main): Invoke test_function.
25375         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
25376         (main): Invoke test_function.
25377         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
25378         (main): Invoke test_function.
25379         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
25380         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
25381         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
25382         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
25383         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
25384         (Depends-on): Add 'float'.
25385         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
25387 2012-03-03  Bruno Haible  <bruno@clisp.org>
25389         rint* tests: More tests.
25390         * tests/test-rint.h: New file, partially extracted from
25391         tests/test-rintl.c.
25392         * tests/test-rint.c: Include test-rint.h.
25393         (main): Invoke test_function.
25394         * tests/test-rintf.c: Include test-rint.h.
25395         (main): Invoke test_function.
25396         * tests/test-rintl.c: Include test-rint.h.
25397         (main): Invoke test_function.
25398         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
25399         (Makefile.am): Add randomd.c to test_rint_SOURCES.
25400         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
25401         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
25402         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
25403         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
25405 2012-03-03  Bruno Haible  <bruno@clisp.org>
25407         modf* tests: More tests.
25408         * tests/test-modf.h: New file.
25409         * tests/test-modf.c: Include <float.h> and test-modf.h.
25410         (main): Invoke test_function.
25411         * tests/test-modff.c: Include <float.h> and test-modf.h.
25412         (main): Invoke test_function.
25413         * tests/test-modfl.c: Include <float.h> and test-modf.h.
25414         (main): Invoke test_function.
25415         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
25416         (Makefile.am): Add randomd.c to test_modf_SOURCES.
25417         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
25418         (Makefile.am): Add randomf.c to test_modff_SOURCES.
25419         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
25420         (Depends-on): Add 'float'.
25421         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
25423 2012-03-03  Bruno Haible  <bruno@clisp.org>
25425         fabs* tests: More tests.
25426         * tests/test-fabs.h: New file, partially extracted from
25427         tests/test-fabsl.c.
25428         * tests/test-fabs.c (RANDOM): New macro.
25429         * tests/test-fabsf.c (RANDOM): New macro.
25430         * tests/test-fabsl.c (RANDOM): New macro.
25431         * modules/fabs-tests (Files): Add tests/randomd.c.
25432         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
25433         * modules/fabsf-tests (Files): Add tests/randomf.c.
25434         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
25435         * modules/fabsl-tests (Files): Add tests/randoml.c.
25436         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
25438 2012-03-03  Bruno Haible  <bruno@clisp.org>
25440         ldexp* tests: More tests.
25441         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
25442         * tests/test-ldexp.c (RANDOM): New macro.
25443         * tests/test-ldexpf.c (RANDOM): New macro.
25444         * tests/test-ldexpl.c (RANDOM): New macro.
25445         * modules/ldexp-tests (Files): Add tests/randomd.c.
25446         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
25447         * modules/ldexpf-tests (Files): Add tests/randomf.c.
25448         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
25449         * modules/ldexpl-tests (Files): Add tests/randoml.c.
25450         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
25452 2012-03-03  Bruno Haible  <bruno@clisp.org>
25454         frexp* tests: More tests.
25455         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
25456         * tests/test-frexp.c (RANDOM): New macro.
25457         * tests/test-frexpf.c (RANDOM): New macro.
25458         * tests/test-frexpl.c (RANDOM): New macro.
25459         * modules/frexp-tests (Files): Add tests/randomd.c.
25460         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
25461         * modules/frexpf-tests (Files): Add tests/randomf.c.
25462         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
25463         * modules/frexpl-tests (Files): Add tests/randoml.c.
25464         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
25466 2012-03-03  Bruno Haible  <bruno@clisp.org>
25468         Support for pseudo-random numbers in tests.
25469         * tests/randomf.c: New file.
25470         * tests/randomd.c: New file.
25471         * tests/randoml.c: New file.
25472         * tests/macros.h (randomf, randomd, randoml): New declarations.
25474 2012-03-03  Bruno Haible  <bruno@clisp.org>
25476         frexp* tests: Refactor.
25477         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
25478         * tests/test-frexp.c: Include and use it.
25479         * tests/test-frexpf.c: Likewise.
25480         * tests/test-frexpl.c: Likewise.
25481         * modules/frexp-tests (Files): Add tests/test-frexp.h.
25482         * modules/frexpf-tests (Files): Likewise.
25483         * modules/frexpl-tests (Files): Likewise.
25485 2012-03-02  Jim Meyering  <meyering@redhat.com>
25487         maint: don't specify XZ_OPT=-9ev in dist-related rule
25488         Using xz's -9 option is warranted only if you have a very large
25489         tarball (see xz's documentation for the sizes vs. presets), and
25490         requires 64MiB of memory at decompression time.
25491         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
25492         Automake's default of just "-e" is fine.  Override on a
25493         per-package basis by setting XZ_OPT e.g., in cfg.mk.
25495 2012-03-01  Eric Blake  <eblake@redhat.com>
25497         maint.mk: allow announcement for non-gnulib project
25498         * maint.mk (announcement): Skip gnulib version if not used.
25500 2012-03-01  Jim Meyering  <meyering@redhat.com>
25502         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
25503         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
25504         envvar settings cannot interfere.  Otherwise, setting envvars like
25505         prohibit=foo require=bar, etc. would cause spurious test failures.
25507 2012-03-01  Eric Blake  <eblake@redhat.com>
25509         maint.mk: add per-line exclusions to prohibitions
25510         * maint.mk (_sc_search_regexp): Add $exclude parameter.
25511         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
25512         (sc_const_long_option): Use it.
25514 2012-03-01  Bruno Haible  <bruno@clisp.org>
25516         Tests for module 'expl-ieee'.
25517         * modules/expl-ieee-tests: New file.
25518         * tests/test-expl-ieee.c: New file.
25520         New module 'expl-ieee'.
25521         * modules/expl-ieee: New file.
25523         Tests for module 'exp-ieee'.
25524         * modules/exp-ieee-tests: New file.
25525         * tests/test-exp-ieee.c: New file.
25527         New module 'exp-ieee'.
25528         * modules/exp-ieee: New file.
25530         Tests for module 'expf-ieee'.
25531         * modules/expf-ieee-tests: New file.
25532         * tests/test-expf-ieee.c: New file.
25533         * tests/test-exp-ieee.h: New file.
25535         New module 'expf-ieee'.
25536         * modules/expf-ieee: New file.
25538 2012-02-29  Bruno Haible  <bruno@clisp.org>
25540         cbrtl-ieee: Work around test failure on IRIX 6.5.
25541         * m4/cbrtl-ieee.m4: New file.
25542         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
25543         test whether cbrtl works with a minus zero argument. Replace it if not.
25544         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
25545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
25546         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
25547         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
25548         (Depends-on): Update conditions.
25549         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
25550         m4/signbit.m4.
25551         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
25552         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
25553         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
25555         Tests for module 'cbrtl-ieee'.
25556         * modules/cbrtl-ieee-tests: New file.
25557         * tests/test-cbrtl-ieee.c: New file.
25559         New module 'cbrtl-ieee'.
25560         * modules/cbrtl-ieee: New file.
25562         Tests for module 'cbrt-ieee'.
25563         * modules/cbrt-ieee-tests: New file.
25564         * tests/test-cbrt-ieee.c: New file.
25566         New module 'cbrt-ieee'.
25567         * modules/cbrt-ieee: New file.
25569         Tests for module 'cbrtf-ieee'.
25570         * modules/cbrtf-ieee-tests: New file.
25571         * tests/test-cbrtf-ieee.c: New file.
25572         * tests/test-cbrt-ieee.h: New file.
25574         New module 'cbrtf-ieee'.
25575         * modules/cbrtf-ieee: New file.
25577 2012-02-29  Bruno Haible  <bruno@clisp.org>
25579         cbrtf: Work around bug in IRIX 6.5 system function.
25580         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
25581         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
25582         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
25583         work.
25584         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
25585         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
25586         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
25587         (Depends-on): Update conditions.
25588         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
25590 2012-02-29  Bruno Haible  <bruno@clisp.org>
25592         Tests for module 'cbrtl'.
25593         * modules/cbrtl-tests: New file.
25594         * tests/test-cbrtl.c: New file.
25596         New module 'cbrtl'.
25597         * lib/math.in.h (cbrtl): New declaration.
25598         * lib/cbrtl.c: New file.
25599         * m4/cbrtl.m4: New file.
25600         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
25601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
25602         HAVE_DECL_CBRTL.
25603         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
25604         HAVE_DECL_CBRTL.
25605         * modules/cbrtl: New file.
25606         * tests/test-math-c++.cc: Check the declaration of cbrtl.
25607         * doc/posix-functions/cbrtl.texi: Mention the new module.
25609 2012-02-29  Bruno Haible  <bruno@clisp.org>
25611         Tests for module 'cbrtf'.
25612         * modules/cbrtf-tests: New file.
25613         * tests/test-cbrtf.c: New file.
25615         New module 'cbrtf'.
25616         * lib/math.in.h (cbrtf): New declaration.
25617         * lib/cbrtf.c: New file.
25618         * m4/cbrtf.m4: New file.
25619         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
25620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
25621         HAVE_DECL_CBRTF.
25622         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
25623         HAVE_DECL_CBRTF.
25624         * modules/cbrtf: New file.
25625         * tests/test-math-c++.cc: Check the declaration of cbrtf.
25626         * doc/posix-functions/cbrtf.texi: Mention the new module.
25628 2012-02-29  Bruno Haible  <bruno@clisp.org>
25630         cbrt: Provide replacement on MSVC and Minix.
25631         * lib/math.in.h (cbrt): New declaration.
25632         * lib/cbrt.c: New file.
25633         * m4/cbrt.m4: New file.
25634         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
25635         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
25636         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
25637         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
25638         (Depends-on): Add dependencies.
25639         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
25640         * tests/test-math-c++.cc: Check the declaration of cbrt.
25641         * doc/posix-functions/cbrt.texi: Mention that the module provides a
25642         replacement.
25644 2012-02-29  Bruno Haible  <bruno@clisp.org>
25646         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
25647         * m4/hypotl-ieee.m4: New file.
25648         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
25649         test whether hypotl works with mixed NaN and Infinity arguments.
25650         Replace it if not.
25651         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
25652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
25653         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
25654         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
25655         (Depends-on): Update conditions.
25656         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
25657         (Depends-on): Add hypot-ieee.
25658         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
25659         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
25661         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
25662         * m4/hypotf-ieee.m4: New file.
25663         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
25664         test whether hypotf works with mixed NaN and Infinity arguments.
25665         Replace it if not.
25666         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
25667         (Depends-on): Add hypot-ieee.
25668         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
25669         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
25671         hypot-ieee: Work around test failure on OSF/1 and native Windows.
25672         * lib/math.in.h (hypot): New declaration.
25673         * lib/hypot.c: New file.
25674         * m4/hypot-ieee.m4: New file.
25675         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
25676         whether hypot works with mixed NaN and Infinity arguments. Replace it
25677         if not.
25678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
25679         REPLACE_HYPOT.
25680         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
25681         * modules/hypot (Files): Add lib/hypot.c.
25682         (Depends-on): Add dependencies.
25683         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
25684         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
25685         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
25686         * tests/test-math-c++.cc: Check the declaration of hypot.
25687         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
25689         Tests for module 'hypotl-ieee'.
25690         * modules/hypotl-ieee-tests: New file.
25691         * tests/test-hypotl-ieee.c: New file.
25693         New module 'hypotl-ieee'.
25694         * modules/hypotl-ieee: New file.
25696         Tests for module 'hypot-ieee'.
25697         * modules/hypot-ieee-tests: New file.
25698         * tests/test-hypot-ieee.c: New file.
25700         New module 'hypot-ieee'.
25701         * modules/hypot-ieee: New file.
25703         Tests for module 'hypotf-ieee'.
25704         * modules/hypotf-ieee-tests: New file.
25705         * tests/test-hypotf-ieee.c: New file.
25706         * tests/test-hypot-ieee.h: New file.
25708         New module 'hypotf-ieee'.
25709         * modules/hypotf-ieee: New file.
25711 2012-02-29  Bruno Haible  <bruno@clisp.org>
25713         Remove unused variables.
25714         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
25715         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
25716         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
25717         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
25719 2012-02-29  Eric Blake  <eblake@redhat.com>
25721         termios: fix pid_t always, not just for tcgetsid
25722         * doc/posix-headers/termios.texi (termios.h): Mention problem.
25723         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
25724         just when building tcgetsid.
25726 2012-02-29  Bruno Haible  <bruno@clisp.org>
25728         Tests for module 'hypotl'.
25729         * modules/hypotl-tests: New file.
25730         * tests/test-hypotl.c: New file.
25732         New module 'hypotl'.
25733         * lib/math.in.h (hypotl): New declaration.
25734         * lib/hypotl.c: New file.
25735         * m4/hypotl.m4: New file.
25736         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
25737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
25738         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
25739         * modules/hypotl: New file.
25740         * tests/test-math-c++.cc: Check the hypotl declaration.
25741         * doc/posix-functions/hypotl.texi: Mention the new module.
25743 2012-02-29  Eric Blake  <eblake@redhat.com>
25745         tcgetsid: fix cygwin header bug
25746         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
25748         docs: update cygwin progress
25749         * doc/posix-functions/llround.texi (llround): Added in cygwin
25750         1.7.8.
25751         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
25752         * doc/glibc-functions/program_invocation_name.texi
25753         (program_invocation_name): Likewise.
25754         * doc/glibc-functions/program_invocation_short_name.texi
25755         (program_invocation_short_name): Likewise.
25756         * doc/glibc-functions/madvise.texi (madvise): Likewise.
25757         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
25758         Likewise.
25759         * doc/posix-functions/pthread_spin_destroy.texi
25760         (pthread_spin_destroy): Added in cygwin 1.7.10.
25761         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
25762         Likewise.
25763         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
25764         Likewise.
25765         * doc/posix-functions/pthread_spin_trylock.texi
25766         (pthread_spin_trylock): Likewise.
25767         * doc/posix-functions/pthread_spin_unlock.texi
25768         (pthread_spin_unlock): Likewise.
25769         * doc/posix-functions/pthread_setschedprio.texi
25770         (pthread_setschedprio): Likewise.
25771         * doc/posix-functions/pthread_attr_getstack.texi
25772         (pthread_attr_getstack): Likewise.
25773         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
25774         (pthread_attr_getstackaddr): Likewise.
25775         * doc/glibc-functions/pthread_getattr_np.texi
25776         (pthread_getattr_np): Likewise.
25777         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
25778         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
25779         * doc/posix-functions/clock_settime.texi (clock_settime):
25780         Likewise.
25781         * doc/posix-functions/pthread_attr_getguardsize.texi
25782         (pthread_attr_getguardsize): Likewise.
25783         * doc/posix-functions/pthread_attr_setguardsize.texi
25784         (pthread_attr_setguardsize): Likewise.
25785         * doc/posix-functions/pthread_attr_setstack.texi
25786         (pthread_attr_setstack): Likewise.
25787         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
25788         (pthread_attr_setstackaddr): Likewise.
25789         * doc/posix-functions/clock_getcpuclockid.texi
25790         (clock_getcpuclockid): Likewise.
25791         * doc/posix-functions/pthread_getcpuclockid.texi
25792         (pthread_getcpuclockid): Likewise.
25793         * doc/glibc-functions/error.texi (error): Likewise.
25794         * doc/glibc-functions/error_at_line.texi (error_at_line):
25795         Likewise.
25796         * doc/glibc-functions/error_message_count.texi
25797         (error_message_count): Likewise.
25798         * doc/glibc-functions/error_one_per_line.texi
25799         (error_one_per_line): Likewise.
25800         * doc/glibc-functions/error_print_progname.texi
25801         (error_print_progname): Likewise.
25802         * doc/posix-functions/pthread_condattr_getclock.texi
25803         (pthread_condattr_getclock): Likewise.
25804         * doc/posix-functions/pthread_condattr_setclock.texi
25805         (pthread_condattr_setclock): Likewise.
25806         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
25807         Likewise.
25808         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
25809         * doc/glibc-functions/getpt.texi (getpt): Likewise.
25810         * doc/glibc-functions/get_current_dir_name.texi
25811         (get_current_dir_name): Likewise.
25812         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
25813         Likewise.
25814         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
25815         wrong return type.
25816         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
25817         1.7.11.
25819 2012-02-29  Bruno Haible  <bruno@clisp.org>
25821         Tests for module 'hypotf'.
25822         * modules/hypotf-tests: New file.
25823         * tests/test-hypotf.c: New file.
25825         New module 'hypotf'.
25826         * lib/math.in.h (hypotf): New declaration.
25827         * lib/hypotf.c: New file.
25828         * m4/hypotf.m4: New file.
25829         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
25830         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
25831         REPLACE_HYPOTF.
25832         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
25833         REPLACE_HYPOTF.
25834         * modules/hypotf: New file.
25835         * tests/test-math-c++.cc: Check the hypotf declaration.
25836         * doc/posix-functions/hypotf.texi: Mention the new module.
25838         hypot: Prepare for hypotf module.
25839         * m4/hypot.m4: New file.
25840         * modules/hypot (Files): Add m4/hypot.m4.
25841         (configure.ac): Invoke gl_FUNC_HYPOT.
25843 2012-02-29  Bruno Haible  <bruno@clisp.org>
25845         hypot tests: More tests.
25846         * tests/test-hypot.c: Include <float.h>.
25847         (main): Add tests about overflow and underflow.
25849 2012-02-29  Bruno Haible  <bruno@clisp.org>
25851         math code: Add comments.
25852         * lib/acosl.c: Add comment about related glibc source files.
25853         * lib/asinl.c: Likewise.
25854         * lib/atanl.c: Likewise.
25855         * lib/expl.c: Likewise.
25856         * lib/logl.c: Likewise.
25857         * lib/sincosl.c: Likewise.
25858         * lib/sinl.c: Likewise.
25859         * lib/tanl.c: Likewise.
25860         * lib/trigl.c: Likewise.
25861         * lib/cosl.c: Likewise. Fix comments.
25863 2012-02-28  Bruno Haible  <bruno@clisp.org>
25865         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
25866         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
25867         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
25868         HUGE_VALL are defined.
25869         (numeric_equald): Renamed from numeric_equal.
25870         (numeric_equalf, numeric_equall): New functions.
25871         (main): Check also HUGE_VALF, HUGE_VALL.
25872         * modules/math-tests (Files): Add tests/macros.h.
25873         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
25874         HUGE_VALL.
25876 2012-02-28  Bruno Haible  <bruno@clisp.org>
25878         doc: Move ISO C11 feature notes into POSIX chapters.
25879         * doc/posix-functions/aligned_alloc.texi: Renamed from
25880         doc/glibc-functions/aligned_alloc.texi.
25881         * doc/posix-functions/quick_exit.texi: Renamed from
25882         doc/glibc-functions/quick_exit.texi.
25883         * doc/posix-headers/uchar.texi: Renamed from
25884         doc/glibc-headers/uchar.texi.
25885         * doc/posix-functions/c16rtomb.texi: Renamed from
25886         doc/glibc-functions/c16rtomb.texi.
25887         * doc/posix-functions/c32rtomb.texi: Renamed from
25888         doc/glibc-functions/c32rtomb.texi.
25889         * doc/posix-functions/mbrtoc16.texi: Renamed from
25890         doc/glibc-functions/mbrtoc16.texi.
25891         * doc/posix-functions/mbrtoc32.texi: Renamed from
25892         doc/glibc-functions/mbrtoc32.texi.
25893         * doc/gnulib.texi: Update.
25894         (Glibc uchar.h): Remove section.
25895         Suggested by Eric Blake.
25897 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
25899         stdnoreturn: port to MSVC better
25900         MSVC standard headers use __declspec(noreturn), so #define noreturn
25901         to empty on that platform.  Reported by Bruno Haible in
25902         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
25903         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
25904         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
25906 2012-02-28  Bruno Haible  <bruno@clisp.org>
25908         doc: Mention new glibc headers and functions.
25909         * doc/glibc-headers/uchar.texi: New file.
25910         * doc/glibc-functions/aligned_alloc.texi: New file.
25911         * doc/glibc-functions/c16rtomb.texi: New file.
25912         * doc/glibc-functions/c32rtomb.texi: New file.
25913         * doc/glibc-functions/clock_adjtime.texi: New file.
25914         * doc/glibc-functions/fanotify_init.texi: New file.
25915         * doc/glibc-functions/fanotify_mark.texi: New file.
25916         * doc/glibc-functions/inet6_opt_append.texi: New file.
25917         * doc/glibc-functions/inet6_opt_find.texi: New file.
25918         * doc/glibc-functions/inet6_opt_finish.texi: New file.
25919         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
25920         * doc/glibc-functions/inet6_opt_init.texi: New file.
25921         * doc/glibc-functions/inet6_opt_next.texi: New file.
25922         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
25923         * doc/glibc-functions/inet6_rth_add.texi: New file.
25924         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
25925         * doc/glibc-functions/inet6_rth_init.texi: New file.
25926         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
25927         * doc/glibc-functions/inet6_rth_segments.texi: New file.
25928         * doc/glibc-functions/inet6_rth_space.texi: New file.
25929         * doc/glibc-functions/login.texi: New file.
25930         * doc/glibc-functions/mbrtoc16.texi: New file.
25931         * doc/glibc-functions/mbrtoc32.texi: New file.
25932         * doc/glibc-functions/name_to_handle_at.texi: New file.
25933         * doc/glibc-functions/ntp_gettimex.texi: New file.
25934         * doc/glibc-functions/open_by_handle_at.texi: New file.
25935         * doc/glibc-functions/prlimit.texi: New file.
25936         * doc/glibc-functions/process_vm_readv.texi: New file.
25937         * doc/glibc-functions/process_vm_writev.texi: New file.
25938         * doc/glibc-functions/recvmmsg.texi: New file.
25939         * doc/glibc-functions/scandirat.texi: New file.
25940         * doc/glibc-functions/sendmmsg.texi: New file.
25941         * doc/glibc-functions/setns.texi: New file.
25942         * doc/glibc-functions/timespec_get.texi: New file.
25943         * doc/gnulib.texi: Include them.
25944         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
25945         sections.
25946         Reported by Eric Blake.
25948 2012-02-28  Bruno Haible  <bruno@clisp.org>
25950         Avoid compilation errors with MSVC option -fp:strict.
25951         * lib/floor.c: Use MSVC specific pragma fenv_access.
25952         * lib/ceil.c: Likewise.
25953         * lib/trunc.c: Likewise.
25954         * lib/round.c: Likewise.
25955         * lib/rint.c: Likewise.
25956         * lib/fma.c: Likewise.
25957         * lib/integer_length.c: Likewise.
25958         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
25959         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
25960         * tests/test-floor2.c: Likewise.
25961         * tests/test-floorf2.c: Likewise.
25962         * tests/test-ceil2.c: Likewise.
25963         * tests/test-ceilf2.c: Likewise.
25964         * tests/test-trunc2.c: Likewise.
25965         * tests/test-truncf2.c: Likewise.
25966         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
25968 2012-02-27  Bruno Haible  <bruno@clisp.org>
25970         Tests for module 'sqrtl-ieee'.
25971         * modules/sqrtl-ieee-tests: New file.
25972         * tests/test-sqrtl-ieee.c: New file.
25974         New module 'sqrtl-ieee'.
25975         * modules/sqrtl-ieee: New file.
25977         Tests for module 'sqrt-ieee'.
25978         * modules/sqrt-ieee-tests: New file.
25979         * tests/test-sqrt-ieee.c: New file.
25981         New module 'sqrt-ieee'.
25982         * modules/sqrt-ieee: New file.
25984         Tests for module 'sqrtf-ieee'.
25985         * modules/sqrtf-ieee-tests: New file.
25986         * tests/test-sqrtf-ieee.c: New file.
25987         * tests/test-sqrt-ieee.h: New file.
25989         New module 'sqrtf-ieee'.
25990         * modules/sqrtf-ieee: New file.
25992 2012-02-27  Bruno Haible  <bruno@clisp.org>
25994         remainderl-ieee: Work around test failure on OSF/1.
25995         * m4/remainderl-ieee.m4: New file.
25996         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
25997         present, test whether remainderl works with a zero second argument.
25998         Replace it if not.
25999         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
26000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
26001         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
26002         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
26003         (Depends-on): Update conditions.
26004         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
26005         (Depends-on): Add remainder-ieee.
26006         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
26007         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
26008         module.
26010         remainderf-ieee: Work around test failure on OSF/1.
26011         * m4/remainderf-ieee.m4: New file.
26012         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
26013         present, test whether remainderf works with a zero second argument.
26014         Replace it if not.
26015         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
26016         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
26017         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
26018         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
26019         (Depends-on): Update conditions.
26020         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
26021         (Depends-on): Add remainder-ieee.
26022         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
26023         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
26024         module.
26026         remainder-ieee: Work around test failure on OSF/1.
26027         * m4/remainder-ieee.m4: New file.
26028         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
26029         present, test whether remainder works with a zero second argument.
26030         Replace it if not.
26031         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
26032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
26033         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
26034         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
26035         (Depends-on): Update dependencies.
26036         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
26037         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
26038         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
26040         Tests for module 'remainderl-ieee'.
26041         * modules/remainderl-ieee-tests: New file.
26042         * tests/test-remainderl-ieee.c: New file.
26044         New module 'remainderl-ieee'.
26045         * modules/remainderl-ieee: New file.
26047         Tests for module 'remainder-ieee'.
26048         * modules/remainder-ieee-tests: New file.
26049         * tests/test-remainder-ieee.c: New file.
26051         New module 'remainder-ieee'.
26052         * modules/remainder-ieee: New file.
26054         Tests for module 'remainderf-ieee'.
26055         * modules/remainderf-ieee-tests: New file.
26056         * tests/test-remainderf-ieee.c: New file.
26057         * tests/test-remainder-ieee.h: New file.
26059         New module 'remainderf-ieee'.
26060         * modules/remainderf-ieee: New file.
26062 2012-02-27  Bruno Haible  <bruno@clisp.org>
26064         modff, modfl: Fix configure syntax error.
26065         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
26066         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
26068 2012-02-27  Bruno Haible  <bruno@clisp.org>
26070         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
26071         * m4/fmodl-ieee.m4: New file.
26072         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
26073         whether fmodl works with zero arguments. Replace it if not.
26074         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
26075         (Depends-on): Add fmod-ieee.
26076         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
26077         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
26079         fmodf-ieee: Work around test failure on OSF/1.
26080         * m4/fmodf-ieee.m4: New file.
26081         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
26082         whether fmodf works with zero arguments. Replace it if not.
26083         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
26084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
26085         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
26086         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
26087         (Depends-on): Update dependencies.
26088         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
26089         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
26090         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
26092         fmodf-ieee: Work around test failure on MSVC 9.
26093         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
26094         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
26096         fmod-ieee: Work around test failures on OSF/1, mingw.
26097         * m4/fmod-ieee.m4: New file.
26098         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
26099         whether fmod works with zero arguments. Replace it if not.
26100         * lib/math.in.h (fmod): New declaration.
26101         * lib/fmod.c: New file.
26102         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
26103         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
26104         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
26105         * modules/fmod (Files): Add lib/fmod.c.
26106         (Depends-on): Add math, isinf, trunc, fma.
26107         (configure.ac): Arrange to compile lib/fmod.c if needed.
26108         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
26109         m4/signbit.m4.
26110         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
26111         * tests/test-math-c++.cc: Check the declaration of fmod.
26112         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
26114         fmodl-ieee: Fix test failures.
26115         * lib/fmodl.c (fmodl): Treat Inf specially.
26116         * modules/fmodl (Depends-on): Add isinf.
26118         Tests for module 'fmodl-ieee'.
26119         * modules/fmodl-ieee-tests: New file.
26120         * tests/test-fmodl-ieee.c: New file.
26122         New module 'fmodl-ieee'.
26123         * modules/fmodl-ieee: New file.
26125         Tests for module 'fmod-ieee'.
26126         * modules/fmod-ieee-tests: New file.
26127         * tests/test-fmod-ieee.c: New file.
26129         New module 'fmod-ieee'.
26130         * modules/fmod-ieee: New file.
26132         Tests for module 'fmodf-ieee'.
26133         * modules/fmodf-ieee-tests: New file.
26134         * tests/test-fmodf-ieee.c: New file.
26135         * tests/test-fmod-ieee.h: New file.
26137         New module 'fmodf-ieee'.
26138         * modules/fmodf-ieee: New file.
26140 2012-02-27  Bruno Haible  <bruno@clisp.org>
26142         Tests for module 'rintl-ieee'.
26143         * modules/rintl-ieee-tests: New file.
26144         * tests/test-rintl-ieee.c: New file.
26146         New module 'rintl-ieee'.
26147         * modules/rintl-ieee: New file.
26149         Tests for module 'rint-ieee'.
26150         * modules/rint-ieee-tests: New file.
26151         * tests/test-rint-ieee.c: New file.
26153         New module 'rint-ieee'.
26154         * modules/rint-ieee: New file.
26156         Tests for module 'rintf-ieee'.
26157         * modules/rintf-ieee-tests: New file.
26158         * tests/test-rintf-ieee.c: New file.
26159         * tests/test-rint-ieee.h: New file.
26161         New module 'rintf-ieee'.
26162         * modules/rintf-ieee: New file.
26164 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
26166         regex: re_search etc. should return -2 when memory exhausted
26167         This bug was uncovered when testing 'grep'.  Without the fix,
26168         re_search and friends return -1 when memory is exhausted, but -1
26169         means no match, and this causes grep to falsely report no-match
26170         instead of memory-exhaustion.  See
26171         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
26172         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
26173         trouble; this can occur if re_search_internal ran out of memory.
26175 2012-02-26  Bruno Haible  <bruno@clisp.org>
26177         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
26178         * m4/modfl-ieee.m4: New file.
26179         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
26180         whether modfl works with Inf. Replace it if not.
26181         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
26182         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
26183         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
26184         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
26185         (Depends-on): Update dependencies.
26186         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
26187         m4/signbit.m4.
26188         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
26189         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
26191         modfl-ieee: Fix dependencies.
26192         * modules/modfl-ieee (Depends-on): Add modf-ieee.
26194         modfl-ieee: Fix test failures.
26195         * lib/modfl.c (modfl): Treat NaN and Inf specially.
26196         * modules/modfl (Depends-on): Add isfinite, isinf.
26198         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
26199         * m4/modff-ieee.m4: New file.
26200         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
26201         whether modff works with NaN and Inf. Replace it if not.
26202         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
26203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
26204         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
26205         * modules/modff (configure.ac): Consider REPLACE_MODFF.
26206         (Depends-on): Update dependencies.
26207         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
26208         m4/signbit.m4.
26209         (Depends-on): Add modf-ieee.
26210         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
26211         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
26213         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
26214         * m4/modf-ieee.m4: New file.
26215         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
26216         whether modf works with NaN and Inf. Replace it if not.
26217         * lib/math.in.h (modf): New declaration.
26218         * lib/modf.c: New file.
26219         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
26220         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
26221         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
26222         * modules/modf (Files): Add lib/modf.c.
26223         (Depends-on): Add math, isfinite, trunc, isinf.
26224         (configure.ac): Addrange to compile lib/modf.c if needed.
26225         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
26226         m4/signbit.m4.
26227         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
26228         * tests/test-math-c++.cc: Check the declaration of modf.
26229         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
26231         Tests for module 'modfl-ieee'.
26232         * modules/modfl-ieee-tests: New file.
26233         * tests/test-modfl-ieee.c: New file.
26235         New module 'modfl-ieee'.
26236         * modules/modfl-ieee: New file.
26238         Tests for module 'modf-ieee'.
26239         * modules/modf-ieee-tests: New file.
26240         * tests/test-modf-ieee.c: New file.
26242         New module 'modf-ieee'.
26243         * modules/modf-ieee: New file.
26245         Tests for module 'modff-ieee'.
26246         * modules/modff-ieee-tests: New file.
26247         * tests/test-modff-ieee.c: New file.
26248         * tests/test-modf-ieee.h: New file.
26250         New module 'modff-ieee'.
26251         * modules/modff-ieee: New file.
26253 2012-02-26  Bruno Haible  <bruno@clisp.org>
26255         Tests for module 'fabsl-ieee'.
26256         * modules/fabsl-ieee-tests: New file.
26257         * tests/test-fabsl-ieee.c: New file.
26259         New module 'fabsl-ieee'.
26260         * modules/fabsl-ieee: New file.
26262         Tests for module 'fabs-ieee'.
26263         * modules/fabs-ieee-tests: New file.
26264         * tests/test-fabs-ieee.c: New file.
26266         New module 'fabs-ieee'.
26267         * modules/fabs-ieee: New file.
26269         Tests for module 'fabsf-ieee'.
26270         * modules/fabsf-ieee-tests: New file.
26271         * tests/test-fabsf-ieee.c: New file.
26272         * tests/test-fabs-ieee.h: New file.
26274         New module 'fabsf-ieee'.
26275         * modules/fabsf-ieee: New file.
26277 2012-02-26  Bruno Haible  <bruno@clisp.org>
26279         Tests for module 'fmal-ieee'.
26280         * modules/fmal-ieee-tests: New file.
26281         * tests/test-fmal-ieee.c: New file.
26283         New module 'fmal-ieee'.
26284         * modules/fmal-ieee: New file.
26286         Tests for module 'fma-ieee'.
26287         * modules/fma-ieee-tests: New file.
26288         * tests/test-fma-ieee.c: New file.
26290         New module 'fma-ieee'.
26291         * modules/fma-ieee: New file.
26293         Tests for module 'fmaf-ieee'.
26294         * modules/fmaf-ieee-tests: New file.
26295         * tests/test-fmaf-ieee.c: New file.
26296         * tests/test-fma-ieee.h: New file.
26298         New module 'fmaf-ieee'.
26299         * modules/fmaf-ieee: New file.
26301 2012-02-26  Bruno Haible  <bruno@clisp.org>
26303         Tests for module 'ldexpl-ieee'.
26304         * modules/ldexpl-ieee-tests: New file.
26305         * tests/test-ldexpl-ieee.c: New file.
26307         New module 'ldexpl-ieee'.
26308         * modules/ldexpl-ieee: New file.
26310         Tests for module 'ldexp-ieee'.
26311         * modules/ldexp-ieee-tests: New file.
26312         * tests/test-ldexp-ieee.c: New file.
26314         New module 'ldexp-ieee'.
26315         * modules/ldexp-ieee: New file.
26317         Tests for module 'ldexpf-ieee'.
26318         * modules/ldexpf-ieee-tests: New file.
26319         * tests/test-ldexpf-ieee.c: New file.
26320         * tests/test-ldexp-ieee.h: New file.
26322         New module 'ldexpf-ieee'.
26323         * modules/ldexpf-ieee: New file.
26325 2012-02-26  Bruno Haible  <bruno@clisp.org>
26327         Refactor frexp*-ieee tests.
26328         * tests/test-frexp-ieee.h: New file.
26329         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
26330         (main): Just call test_function.
26331         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
26332         (main): Just call test_function.
26333         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
26334         (main): Just call test_function.
26335         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
26336         * modules/frexp-ieee-tests (Files): Likewise.
26337         * modules/frexpl-ieee-tests (Files): Likewise.
26339         Tests for module 'frexpl-ieee'.
26340         * modules/frexpl-ieee-tests: New file.
26341         * tests/test-frexpl-ieee.c: New file.
26343         New module 'frexpl-ieee'.
26344         * modules/frexpl-ieee: New file.
26346         Tests for module 'frexp-ieee'.
26347         * modules/frexp-ieee-tests: New file.
26348         * tests/test-frexp-ieee.c: New file.
26350         New module 'frexp-ieee'.
26351         * modules/frexp-ieee: New file.
26353         Tests for module 'frexpf-ieee'.
26354         * modules/frexpf-ieee-tests: New file.
26355         * tests/test-frexpf-ieee.c: New file.
26357         New module 'frexpf-ieee'.
26358         * modules/frexpf-ieee: New file.
26360 2012-02-26  Bruno Haible  <bruno@clisp.org>
26362         roundl-ieee tests: More tests.
26363         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26364         (main): Add tests for [MX] shaded specification in POSIX.
26365         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26366         (Depends-on): Add isnanl-nolibm.
26368         round-ieee tests: More tests.
26369         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26370         (main): Add tests for [MX] shaded specification in POSIX.
26371         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26372         (Depends-on): Add isnand-nolibm.
26374         roundf-ieee tests: More tests.
26375         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26376         (main): Add tests for [MX] shaded specification in POSIX.
26377         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26378         (Depends-on): Add isnanf-nolibm.
26380         truncl-ieee tests: More tests.
26381         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26382         (main): Add tests for [MX] shaded specification in POSIX.
26383         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26384         (Depends-on): Add isnanl-nolibm.
26386         trunc-ieee tests: More tests.
26387         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26388         (main): Add tests for [MX] shaded specification in POSIX.
26389         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26390         (Depends-on): Add isnand-nolibm.
26392         truncf-ieee tests: More tests.
26393         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26394         (main): Add tests for [MX] shaded specification in POSIX.
26395         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26396         (Depends-on): Add isnanf-nolibm.
26398         ceill-ieee tests: More tests.
26399         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26400         (main): Add tests for [MX] shaded specification in POSIX.
26401         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26402         (Depends-on): Add isnanl-nolibm.
26404         ceil-ieee tests: More tests.
26405         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26406         (main): Add tests for [MX] shaded specification in POSIX.
26407         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26408         (Depends-on): Add isnand-nolibm.
26410         ceilf-ieee tests: More tests.
26411         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26412         (main): Add tests for [MX] shaded specification in POSIX.
26413         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26414         (Depends-on): Add isnanf-nolibm.
26416         floorl-ieee tests: More tests.
26417         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26418         (main): Add tests for [MX] shaded specification in POSIX.
26419         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26420         (Depends-on): Add isnanl-nolibm.
26422         floor-ieee tests: More tests.
26423         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26424         (main): Add tests for [MX] shaded specification in POSIX.
26425         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26426         (Depends-on): Add isnand-nolibm.
26428         floorf-ieee tests: More tests.
26429         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26430         (main): Add tests for [MX] shaded specification in POSIX.
26431         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26432         (Depends-on): Add isnanf-nolibm.
26434 2012-02-26  Bruno Haible  <bruno@clisp.org>
26436         fpieee: More comments.
26437         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
26439 2012-02-25  Bruno Haible  <bruno@clisp.org>
26441         Tests for module 'log10l'.
26442         * modules/log10l-tests: New file.
26443         * tests/test-log10l.c: New file.
26444         * tests/test-math-c++.cc: Check the declaration of log10l.
26446         New module 'log10l'.
26447         * lib/math.in.h (log10l): New declaration.
26448         * lib/log10l.c: New file.
26449         * m4/log10l.m4: New file.
26450         * modules/log10l: New file.
26451         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
26452         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
26453         HAVE_DECL_LOG10L.
26454         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
26455         HAVE_DECL_LOG10L.
26456         * doc/posix-functions/log10l.texi: Mention the new module.
26458 2012-02-25  Bruno Haible  <bruno@clisp.org>
26460         fmodl, remainder*: Avoid wrong results due to rounding errors.
26461         * lib/fmodl.c (fmodl): Correct the result if it is not within the
26462         expected bounds.
26463         * lib/remainderf.c (remainderf): Likewise.
26464         * lib/remainder.c (remainder): Likewise.
26465         * lib/remainderl.c (remainderl): Likewise.
26467 2012-02-25  Bruno Haible  <bruno@clisp.org>
26469         Tests for module 'remainderl'.
26470         * modules/remainderl-tests: New file.
26471         * tests/test-remainderl.c: New file.
26472         * tests/test-math-c++.cc: Check the declaration of remainderl.
26474         New module 'remainderl'.
26475         * lib/math.in.h (remainderl): New declaration.
26476         * lib/remainderl.c: New file.
26477         * m4/remainderl.m4: New file.
26478         * modules/remainderl: New file.
26479         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
26480         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
26481         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
26482         HAVE_REMAINDERL.
26483         * doc/posix-functions/remainderl.texi: Mention the new module.
26485 2012-02-25  Bruno Haible  <bruno@clisp.org>
26487         Tests for module 'remainderf'.
26488         * modules/remainderf-tests: New file.
26489         * tests/test-remainderf.c: New file.
26490         * tests/test-math-c++.cc: Check the declaration of remainderf.
26492         New module 'remainderf'.
26493         * lib/math.in.h (remainderf): New declaration.
26494         * lib/remainderf.c: New file.
26495         * m4/remainderf.m4: New file.
26496         * modules/remainderf: New file.
26497         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
26498         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
26499         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
26500         HAVE_REMAINDERF.
26501         * doc/posix-functions/remainderf.texi: Mention the new module.
26503 2012-02-25  Bruno Haible  <bruno@clisp.org>
26505         remainder: Support for MSVC.
26506         * lib/math.in.h (remainder): New declaration.
26507         * lib/remainder.c: New file.
26508         * m4/remainder.m4: New file.
26509         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
26510         (Depends-on): Add math, round, fma.
26511         (configure.ac): Use results of gl_FUNC_REMAINDER.
26512         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
26513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
26514         HAVE_DECL_REMAINDER.
26515         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
26516         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
26517         * tests/test-math-c++.cc: Check the declaration of remainder.
26518         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
26519         problems are fixed.
26521 2012-02-25  Bruno Haible  <bruno@clisp.org>
26523         Tests for module 'fmodl'.
26524         * modules/fmodl-tests: New file.
26525         * tests/test-fmodl.c: New file.
26526         * tests/test-math-c++.cc: Check the declaration of fmodl.
26528         New module 'fmodl'.
26529         * lib/math.in.h (fmodl): New declaration.
26530         * lib/fmodl.c: New file.
26531         * m4/fmodl.m4: New file.
26532         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
26533         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
26534         REPLACE_FMODL.
26535         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
26536         REPLACE_FMODL.
26537         * modules/fmodl: New file.
26538         * doc/posix-functions/fmodl.texi: Mention the new module.
26540 2012-02-25  Bruno Haible  <bruno@clisp.org>
26542         Tests for module 'modfl'.
26543         * modules/modfl-tests: New file.
26544         * tests/test-modfl.c: New file.
26545         * tests/test-math-c++.cc: Check the declaration of modfl.
26547         New module 'modfl'.
26548         * lib/math.in.h (modfl): New declaration.
26549         * lib/modfl.c: New file.
26550         * m4/modfl.m4: New file.
26551         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
26552         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
26553         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
26554         * modules/modfl: New file.
26555         * doc/posix-functions/modfl.texi: Mention the new module.
26557 2012-02-25  Bruno Haible  <bruno@clisp.org>
26559         Tests for module 'fabsl'.
26560         * modules/fabsl-tests: New file.
26561         * tests/test-fabsl.c: New file.
26562         * tests/test-math-c++.cc: Check the declaration of fabsl.
26564         New module 'fabsl'.
26565         * lib/math.in.h (fabsl): New declaration.
26566         * lib/fabsl.c: New file.
26567         * m4/fabsl.m4: New file.
26568         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
26569         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
26570         REPLACE_FABSL.
26571         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
26572         REPLACE_FABSL.
26573         * modules/fabsl: New file.
26574         * doc/posix-functions/fabsl.texi: Mention the new module.
26576 2012-02-25  Bruno Haible  <bruno@clisp.org>
26578         fabs tests: More tests.
26579         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
26580         (zero): New variable.
26581         (main): Add tests for signed zero.
26582         * modules/fabs-tests (Files): Add tests/minus-zero.h.
26584         fabsf tests: More tests.
26585         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
26586         (zero): New variable.
26587         (main): Add tests for signed zero.
26588         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
26590 2012-02-24  Bruno Haible  <bruno@clisp.org>
26592         atanl: Provide function definition on MSVC.
26593         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
26594         function pointer.
26595         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
26597 2012-02-24  Bruno Haible  <bruno@clisp.org>
26599         acosl: Provide function definition on MSVC.
26600         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
26601         function pointer.
26602         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
26604 2012-02-24  Bruno Haible  <bruno@clisp.org>
26606         asinl: Provide function definition on MSVC.
26607         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
26608         function pointer.
26609         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
26611 2012-02-24  Bruno Haible  <bruno@clisp.org>
26613         tanl: Provide function definition on MSVC.
26614         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
26615         function pointer.
26616         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
26618 2012-02-24  Bruno Haible  <bruno@clisp.org>
26620         cosl: Provide function definition on MSVC.
26621         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
26622         function pointer.
26623         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
26625 2012-02-24  Bruno Haible  <bruno@clisp.org>
26627         sinl: Provide function definition on MSVC.
26628         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
26629         function pointer.
26630         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
26632 2012-02-24  Bruno Haible  <bruno@clisp.org>
26634         logl: Provide function definition on MSVC.
26635         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
26636         function pointer.
26637         * lib/math.in.h (logl): Undefine if it does not exist as a function.
26639 2012-02-24  Bruno Haible  <bruno@clisp.org>
26641         expl: Provide function definition on MSVC.
26642         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
26643         function pointer.
26644         * lib/math.in.h (expl): Undefine if it does not exist as a function.
26646 2012-02-24  Bruno Haible  <bruno@clisp.org>
26648         sqrtl: Provide function definition on MSVC.
26649         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
26650         a function pointer.
26651         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
26653 2012-02-24  Bruno Haible  <bruno@clisp.org>
26655         ceill: Provide function definition on MSVC.
26656         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
26657         used as a function pointer.
26658         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
26660 2012-02-24  Bruno Haible  <bruno@clisp.org>
26662         floorl: Provide function definition on MSVC.
26663         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
26664         used as a function pointer.
26665         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
26667 2012-02-24  Bruno Haible  <bruno@clisp.org>
26669         ceilf: Provide function definition on MSVC.
26670         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
26671         used as a function pointer.
26672         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
26674 2012-02-24  Bruno Haible  <bruno@clisp.org>
26676         floorf: Provide function definition on MSVC.
26677         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
26678         used as a function pointer.
26679         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
26681 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26683         stdnoreturn: new module
26684         This implements a replacement for C11's <stdnoreturn.h>.
26685         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
26686         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
26687         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
26688         * tests/test-stdnoreturn.c: New files.
26690 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
26692         regex: fix false multibyte matches in some regular expressions
26693         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
26694         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
26695         * lib/regex_internal.c (re_string_skip_chars):
26696         Fix miscomputation of remain_len that may cause incomplete
26697         multi-byte character and false match.
26699 2012-02-24  Jim Meyering  <meyering@redhat.com>
26701         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
26702         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
26703         uses with "==" *before* the call, e.g., 0 == strcmp (...)
26704         Remove now-unnecessary str''cmp obfuscation.
26705         Suggested by Akim Demaille.
26707 2012-02-24  Bruno Haible  <bruno@clisp.org>
26709         streq: Rename macro.
26710         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
26711         * NEWS: Mention the change.
26712         * lib/mbrtowc.c (mbrtowc): Update.
26713         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
26714         * lib/wcwidth.c (wcwidth): Update.
26715         Suggested by Akim Demaille and Jim Meyering.
26717 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26719         regex: fix typo in definition of MIN
26720         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
26721         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
26723 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
26724             Bruno Haible  <bruno@clisp.org>
26726         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
26727         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
26728         entries into a stack-allocated buffer directly.
26729         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
26731 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
26732             Bruno Haible  <bruno@clisp.org>
26734         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
26736          - There were several instances of this pattern:
26738              for (;;) {
26739                n = acl (f, GETACLCNT, 0, NULL);
26740                [ allocate an array A of size N ]
26741                if (acl (f, GETACL, n, a) == n)
26742                  break;
26743              }
26745            This loop might never terminate if some other process is constantly
26746            manipulating the file's ACL.  The loop should be rewritten to
26747            terminate.
26749          - The acl (... GETACLNT ...) call is merely an optimization; its value
26750            is merely a hint as to how big to make the array.  A better
26751            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
26752            and just guess a reasonably-big size, growing the size and trying
26753            again if it's not large enough.  This guarantees termination, and
26754            saves a system call.
26756         * lib/acl-internal.h: Include <limits.h>.
26757         (MIN, SIZE_MAX): New macros.
26758         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
26759         a stack-allocated buffer, and use malloc if it does not fit. Don't
26760         use GETACLCNT.
26761         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
26763 2012-02-19  Bruno Haible  <bruno@clisp.org>
26765         acl: Fix endless loop on Solaris with vxfs.
26766         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
26767         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
26768         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
26769         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
26770         * tests/test-sameacls.c (main)[Solaris]: Likewise.
26771         Reported by Bill Jones in
26772         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
26774 2012-02-19  Bruno Haible  <bruno@clisp.org>
26776         acl: Fix copy-acl test failure on Solaris 11.0.
26777         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
26778         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
26779         that this function returns 0 in some more cases.
26781 2012-02-19  Bruno Haible  <bruno@clisp.org>
26783         acl: Update doc references.
26784         * doc/acl-resources.txt: Update links to Solaris documentation.
26786 2012-02-19  Bruno Haible  <bruno@clisp.org>
26788         Fix test failure in many locales on Solaris 11.
26789         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
26790         'tr' arguments.
26791         * tests/test-pipe-filter-ii1.c (main): Likewise.
26792         * build-aux/bootstrap (check_versions): Run 'tr' command with range
26793         expressions in the C locale.
26794         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26795         * m4/host-os.m4 (gl_HOST_OS): Likewise.
26797 2012-02-19  Bruno Haible  <bruno@clisp.org>
26799         gnulib-tool: Improve usage message.
26800         * gnulib-tool (func_usage): Move doc of --help and --version to the
26801         section "Operation modes".
26803 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
26805         README-release: make it easier to execute commands
26806         * top/README-release: break commands out on to separate lines.
26808 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
26810         GNUmakefile: simplify detection of unconfigured trees
26811         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
26812         whether the tree make is being run from is already configured or
26813         not.  Related simplifications.
26815 2012-02-13  Simon Josefsson  <simon@josefsson.org>
26817         * gnulib-tool (func_usage): Document --help and --version.
26819 2012-02-11  Jim Meyering  <meyering@redhat.com>
26821         bootstrap: don't exit 0 upon gnulib-tool failure
26822         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
26823         its exit status, not 0.
26825 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
26827         README-release: various improvements
26828         * top/README-release: Give a command to push changes for the
26829         release.  Add "distcheck" to list of other pre-release checks.
26830         Fix instance of "make stable" which should be "make TYPE".
26832 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
26834         maint: replace FSF snail-mail addresses with URLs
26835         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
26836         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
26837         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
26838         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
26839         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
26840         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
26841         * lib/check-version.c, lib/check-version.h, lib/config.charset:
26842         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
26843         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
26844         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
26845         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
26846         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
26847         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
26848         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
26849         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
26850         * lib/glthread/thread.c, lib/glthread/thread.h:
26851         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
26852         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
26853         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
26854         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
26855         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
26856         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
26857         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
26858         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
26859         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
26860         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
26861         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
26862         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
26863         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
26864         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
26865         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
26866         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
26867         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
26868         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
26869         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
26870         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
26871         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
26872         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
26873         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
26874         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
26875         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
26876         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
26877         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
26878         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
26879         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
26880         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
26881         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
26882         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
26883         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
26884         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
26885         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
26886         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
26887         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
26888         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
26889         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
26890         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
26891         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
26892         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
26893         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
26894         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
26895         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
26896         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
26897         * tests/test-poll.c, tests/test-quotearg-simple.c:
26898         * tests/test-quotearg.c, tests/test-quotearg.h:
26899         * tests/test-round-ieee.c, tests/test-round1.c:
26900         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
26901         * tests/test-roundl-ieee.c, tests/test-roundl.c:
26902         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
26903         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
26904         * tests/test-strerror.c, tests/test-strerror_r.c:
26905         * tests/test-strsignal.c, tests/test-strverscmp.c:
26906         * tests/test-xmemdup0.c:
26907         Replace FSF snail mail addresses with URLs, as per GNU coding
26908         standards.  See glibc bug
26909         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
26911 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
26913         README-release: capitalize a word and split a line
26914         * top/README-release: Fix punctuation and spacing.
26916 2012-02-08  Akim Demaille  <demaille@gostai.com>
26918         fatal-signal: use C prototypes (with explicit void).
26919         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
26920         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
26922 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26924         regex: spelling fix
26925         * lib/regexec.c: spelling fix
26927         regex: rely on stdint.h for SIZE_MAX
26928         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
26930 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26932         regex: merge glibc changes
26934         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
26935         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
26936         (init_word_char): Work even if bitset words are not exactly 32 or
26937         64 bits wide.  Don't assume there are no padding bits.
26938         * lib/regex.c [_LIBC]: Do not include <config.h>.
26939         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
26940         and -Wtype-limits.
26941         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
26942         needless disagreement with glibc.  All uses changed.  Define it to
26943         1 only if _GNU_SOURCE, to match glibc.
26944         (_REG_RM_NAME): Remove; no longer needed, since the names in
26945         question are now all protected by __USE_GNU.
26946         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
26947         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
26948         * lib/regex_internal.h (MIN): New macro.
26950         2012-01-03 Ulrich Drepper <drepper@gmail.com>
26951         * lib/regcomp.c (init_word_char): Optimize regex a bit.
26953         2011-12-30 Jakub Jelinek <jakub@redhat.com>
26954         * lib/regex_internal.c (re_string_fetch_byte_case):
26955         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
26956         is miscompiled, and it turns out it is because of an incorrect
26957         attribute on re_string_fetch_byte_case.  Unlike
26958         re_string_peek_byte_case, this one is really not pure, it modifies
26959         memory (increments pstr->cur_idx), and with the pure attribute GCC
26960         assumed it doesn't and it cached the presumed value of
26961         regexp->cur_idx in a variable across the
26962          for (;; ++i)
26963            {
26964              if (i >= BRACKET_NAME_BUF_SIZE)
26965                return REG_EBRACK;
26966              if (token->type == OP_OPEN_CHAR_CLASS)
26967                ch = re_string_fetch_byte_case (regexp);
26968              else
26969                ch = re_string_fetch_byte (regexp);
26970              if (re_string_eoi(regexp))
26971                return REG_EBRACK;
26972              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
26973                break;
26974              elem->opr.name[i] = ch;
26975            }
26977         2011-11-29 Andreas Schwab <schwab@redhat.com>
26978         * lib/regcomp.c (build_equiv_class):
26979         Fix access after end of search string in regex matcher.
26981         2011-11-12 Ulrich Drepper <drepper@redhat.com>
26982         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
26984         2011-10-12 Ulrich Drepper <drepper@redhat.com>
26985         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
26987         2011-10-11 Ulrich Drepper <drepper@redhat.com>
26988         * lib/regcomp.c (parse_branch, parse_sub_exp):
26989         More regex memory leak fixes and tests.
26990         (parse_sub_exp, parse_bracket_exp):
26991         Fix memory leak for some invalid regular expressions.
26993         2011-05-28 Ulrich Drepper <drepper@gmail.com>
26994         * lib/regex_internal.c, lib/regexec.c:
26995         Fix unnecessary overallocation due to incomplete character.  When
26996         incomplete characters are found at the end of a string the code
26997         ran amok and allocated lots of memory.  Stricter limits are now in
26998         place.
27000         2011-05-20 Reuben Thomas <rrt@sc3d.org>
27001         * lib/regex.h: Update documentation.
27003         2011-05-16 Aharon Robbins <arnold@skeeve.com>
27004         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
27006         2010-05-05 Andreas Schwab <schwab@redhat.com>
27007         * lib/regexec.c (find_collation_sequence_value):
27008         Fix lookup of collation sequence value during regexp matching.
27010         2010-01-22 Ulrich Drepper <drepper@redhat.com>
27011         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
27013         2008-01-16 Ulrich Drepper <drepper@redhat.com>
27014         * lib/regex.h: Cleanup namespace.
27016         2007-11-26 Ulrich Drepper <drepper@redhat.com>
27017         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
27019         2007-08-26 Ulrich Drepper <drepper@redhat.com>
27020         * lib/regex_internal.h: Prevent some declarations and definitions
27021         to be seen when used in tests.
27023         2005-05-06 Ulrich Drepper <drepper@redhat.com>
27024         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
27025         __libc_lock_* macros if not _LIBC.
27026         (struct re_dfa_t): Add lock.
27028 2012-02-07  Eric Blake  <eblake@redhat.com>
27030         maint.mk: also prohibit lower-case @var@
27031         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
27032         lower case, like @top_srcdir@.
27034 2012-02-04  Eric Blake  <eblake@redhat.com>
27036         canonicalize: avoid uninitialized memory use
27037         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
27038         random '/' left in dest.
27039         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
27041 2012-02-04  Bruno Haible  <bruno@clisp.org>
27043         isatty: Fix test failure of ptsname_r on native Windows.
27044         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
27045         and don't set errno.
27046         (isatty): Test first whether fd is valid. Set errno when returning 0.
27048 2012-02-04  Bruno Haible  <bruno@clisp.org>
27050         spawn-pipe tests: Fix a NULL program name in a diagnostic.
27051         * tests/test-spawn-pipe-main.c: Include progname.h.
27052         (main): Invoke set_program_name.
27053         * modules/spawn-pipe-tests (Depends-on): Add progname.
27055         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
27056         * tests/test-nonblocking-socket-main.c: Include progname.h.
27057         (main): Invoke set_program_name.
27058         * modules/nonblocking-socket-tests (Depends-on): Add progname.
27060         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
27061         * tests/test-nonblocking-pipe-main.c: Include progname.h.
27062         (main): Invoke set_program_name.
27063         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
27065 2012-02-04  Eric Blake  <eblake@redhat.com>
27067         canonicalize-lgpl: fix // handling
27068         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
27070         canonicalize: fix // handling
27071         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
27072         /// to //, since only // is special.
27074 2012-02-04  Bruno Haible  <bruno@clisp.org>
27076         ioctl: Fix test failure on native Windows.
27077         * lib/ioctl.c: Include msvc-nothrow.h.
27078         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
27080 2012-02-04  Bruno Haible  <bruno@clisp.org>
27082         fsync: Avoid test failure on native Windows.
27083         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
27084         read-only.
27086 2012-02-04  Bruno Haible  <bruno@clisp.org>
27088         sys_select: Avoid syntax error on OpenBSD 5.0.
27089         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
27090         currently being included, just include the system's <sys/select.h>.
27092 2012-02-04  Bruno Haible  <bruno@clisp.org>
27094         sys_select: Avoid syntax error on OpenBSD 5.0.
27095         * lib/sys_select.in.h: Include <signal.h> only after the include_next
27096         <sys/select.h>, not before.
27097         Reported by Jiri B <jirib@devio.us>.
27099 2012-02-04  Bruno Haible  <bruno@clisp.org>
27101         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
27102         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
27103         global variables.
27104         * tests/test-get-rusage-data.c (main): Likewise.
27105         Reported by Jim Meyering.
27107 2012-02-04  Bruno Haible  <bruno@clisp.org>
27109         stdioext: Fix last commit.
27110         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
27112 2012-02-03  Bruno Haible  <bruno@clisp.org>
27114         stdioext: Add tentative support for Plan9.
27115         * lib/stdio-impl.h: Include <errno.h>.
27116         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
27117         * lib/freadable.c (freadable): Likewise.
27118         * lib/fwritable.c (fwritable): Likewise.
27119         * lib/fbufmode.c (fbufmode): Likewise.
27120         * lib/freading.c (freading): Likewise.
27121         * lib/fwriting.c (fwriting): Likewise.
27122         * lib/freadptr.c (freadptr): Likewise.
27123         * lib/freadseek.c (freadptrinc): Likewise.
27124         * lib/freadahead.c (freadahead): Likewise.
27125         * lib/fpurge.c (fpurge): Likewise.
27126         * lib/fseeko.c (rpl_fseeko): Likewise.
27127         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
27128         Reported by Jens Staal <staal1978@gmail.com>.
27130 2012-02-02  Jim Meyering  <meyering@redhat.com>
27132         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
27133         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
27134         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
27135         not even to try to add the attribute.  Instead, add a pragma to suppress
27136         the suggestion/warning.
27138 2012-01-31  Karl Berry  <karl@gnu.org>
27140         setstate doc: typo.
27141         * doc/posix-functions/setstate.texi (setstate): { not (.
27143 2012-01-31  Bruno Haible  <bruno@clisp.org>
27145         popen: Make more robust on Windows.
27146         * lib/popen.c: On native Windows, use the _popen based code even if
27147         HAVE_POPEN is set.
27148         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
27149         environment variable on native Windows.
27151 2012-01-30  Bruno Haible  <bruno@clisp.org>
27153         pclose: Fix typo.
27154         * lib/stdio.in.h (pclose): Fix typo in warning message.
27156 2012-01-30  Bruno Haible  <bruno@clisp.org>
27158         doc about getlogin_r, setstate.
27159         * doc/posix-functions/getlogin_r.texi: List the incompatible
27160         declaration problem under "not fixed by gnulib".
27161         * doc/posix-functions/setstate.texi: Mention incompatible declaration
27162         problem on Solaris 11 and other platforms.
27164 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
27165             Bruno Haible  <bruno@clisp.org>
27167         poll tests: Make test more robust.
27168         * tests/test-poll.c: Include macros.h.
27169         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
27170         return value of various I/O operations.
27171         * modules/poll-tests (Files): Add tests/macros.h.
27173 2012-01-30  Bruno Haible  <bruno@clisp.org>
27175         sys_stat: Fix support for mingw64 and MSVC.
27176         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
27177         header files already do it.
27178         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
27179         stat itself.
27180         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27182 2012-01-30  Bruno Haible  <bruno@clisp.org>
27184         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
27185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
27186         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
27188 2012-01-29  Bruno Haible  <bruno@clisp.org>
27190         quotearg: Fix test failure on MacOS X 10.5.
27191         * tests/test-quotearg-simple.c: Include localcharset.h.
27192         (main): If the locale encoding is not ASCII, bypass the tests of
27193         locale_quoting_style and clocale_quoting_style.
27194         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
27196 2012-01-29  Jim Meyering  <meyering@redhat.com>
27198         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
27199         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
27200         detect uses of canonicalize_file_name.
27202 2012-01-28  Bruno Haible  <bruno@clisp.org>
27204         test-framework-sh: Fix test failure with AIX 7.1 diff.
27205         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
27206         in column 1, like 'diff -c' does.
27207         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
27208         whether 'diff -u' is used. Instead, test whether the output contains
27209         some '@' character.
27211 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27213         strtoimax: eliminate need for stdint.h, inttypes.h checks
27214         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
27215         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
27216         the prerequisites for a recently-introduced strtoimax test.
27217         I guess this might cause strtoimax to be replaced when not
27218         strictly necessary on older hosts, but this shouldn't introduce
27219         any bugs and it should make Emacs 'configure' faster on typical
27220         modern hosts.  Problem discovered when importing the latest gnulib
27221         to an Emacs test version.
27222         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
27224 2012-01-28  Bruno Haible  <bruno@clisp.org>
27226         sys_time: Override 'struct timeval' on some native Windows platforms.
27227         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
27228         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
27229         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
27230         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
27231         needs to be overridden.
27232         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
27233         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
27234         * tests/test-sys_select.c: Check that the tv_sec member has the same
27235         size as a 'time_t'.
27236         * tests/test-sys_time.c: Likewise.
27237         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
27238         is set, set also REPLACE_GETTIMEOFDAY.
27239         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
27240         convert the resulting 'struct timeval' before returning.
27241         * lib/select.c: Include <sys/time.h>.
27242         (select, timeval): Undefine at the right place.
27243         * modules/select (Depends-on): Add sys_time.
27244         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
27245         some Windows platforms.
27246         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27248 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27250         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
27251         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
27252         an integer.
27253         * lib/fcntl.c (dupfd): Likewise.
27254         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
27256 2012-01-28  Bruno Haible  <bruno@clisp.org>
27258         fcntl: Avoid compilation error on native Windows.
27259         * modules/fcntl (Depends-on): Add 'close'.
27261 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27263         select, poll, isatty: Avoid warnings on x86_64 mingw64.
27264         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
27265         pointer to an integer.
27266         * lib/poll.c (IsConsoleHandle): Likewise.
27267         * lib/isatty.c (IsConsoleHandle): Likewise.
27269 2012-01-28  Jim Meyering  <meyering@redhat.com>
27271         doc: clarify README-release
27272         * top/README-release: Clarify: you should make a point to have
27273         the latest stable versions of build tools in your PATH, and the
27274         reference to buildreq is solely for its list of tool names, not
27275         for its minimal-functional version numbers.
27276         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
27278         maint.mk: use more readable (yet functionally equivalent) quoting
27279         It is common to quote a single quote in a single quoted string like
27280         this:  '...'\''...'.  Unless you know the idiom, that looks like
27281         gibberish, so prefer to double-quote the string when possible.
27282         Then you can use a more readable, lone single quote: "...'..."
27283         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
27284         "don't" is more readable than the equivalent 'don'\''t'.
27285         (sc_cast_of_x_alloc_return_value): Likewise.
27286         (sc_cast_of_alloca_return_value): Likewise.
27287         (sc_makefile_path_separator_check): Similar: use ":" in '...',
27288         rather than '\'':'\''.
27290 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27292         stdalign: relax _Alignof and tighten _Alignas test
27293         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
27294         as it was too strict: alignof must divide offsetof, but it need
27295         not equal offsetof.  Inspired by Joseph S. Myers's comment
27296         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
27297         Conversely, tighten the _Alignas test a bit, as the resulting
27298         alignment must be exactly 8.
27300 2012-01-27  Bruno Haible  <bruno@clisp.org>
27302         stdalign: Document the last change.
27303         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
27305 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27307         stdalign: check that alignof and offsetof are consistent
27308         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
27309         Problem reported for gnulib by Richard W.M. Jones in
27310         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
27312 2012-01-27  Jim Meyering  <meyering@redhat.com>
27314         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
27315         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
27316         convert a sequence with gaps to the minimal containing range.
27317         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
27318         * tests/test-update-copyright.sh: Test for this.
27319         The FSF confirmed it is ok to do this, assuming there is at
27320         least one significant change per year in the affected range:
27321         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
27323 2012-01-26  Bruno Haible  <bruno@clisp.org>
27325         pipe2: refine doc about thread-safety
27326         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
27327         multithread-safety problem.
27328         * doc/glibc-functions/accept4.texi: Likewise.
27330 2012-01-26  Bruno Haible  <bruno@clisp.org>
27332         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
27333         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
27334         In the test program, include <fcntl.h>, for O_RDONLY.
27336 2012-01-26  Eric Blake  <eblake@redhat.com>
27338         pipe2: document lack of thread-safety in replacement
27339         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
27340         issue in replacement.
27341         * doc/glibc-functions/accept4.texi (accept4): Likewise.
27342         Based on a report by Eric Wong.
27344 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27345             Bruno Haible  <bruno@clisp.org>
27347         malloca: Avoid warnings on x86_64 mingw64.
27348         * lib/malloca.c: Include <stdint.h>.
27349         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
27350         * modules/malloca (Depends-on): Add stdint.
27351         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
27353 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27355         obstack: remove __STDC__ conditionals
27356         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
27357         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
27358         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
27359         m4/include_next.m4 as the only gnulib-maintained places that still
27360         refer to __STDC__.
27362 2012-01-24  Bruno Haible  <bruno@clisp.org>
27364         havelib: Modern quoting.
27365         * build-aux/config.rpath: Quote 'like this', not `like this', as per
27366         the recent change to the GNU coding standards.
27368 2012-01-24  Bruno Haible  <bruno@clisp.org>
27370         stdint: Improve support for Android.
27371         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
27372         Reported by Simon Josefsson <simon@josefsson.org>.
27374 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27376         doc: omit trailing empty lines from INSTALL etc.
27377         * doc/Makefile (INSTALL): Omit trailing empty lines.
27378         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
27379         omit trailing empty lines.  This simplifies the build procedure.
27381 2012-01-23  Jim Meyering  <meyering@redhat.com>
27383         tests: avoid spurious warnings about gl_sockets_startup
27384         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
27385         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
27386         reporting a "statement with no effect".
27387         * tests/test-accept.c (main): Mark as "(void)".
27388         * tests/test-accept4.c (main): Likewise.
27389         * tests/test-bind.c (main): Likewise.
27390         * tests/test-connect.c (main): Likewise.
27391         * tests/test-getpeername.c (main): Likewise.
27392         * tests/test-getsockname.c (main): Likewise.
27393         * tests/test-getsockopt.c (main): Likewise.
27394         * tests/test-listen.c (main): Likewise.
27395         * tests/test-recv.c (main): Likewise.
27396         * tests/test-recvfrom.c (main): Likewise.
27397         * tests/test-send.c (main): Likewise.
27398         * tests/test-sendto.c (main): Likewise.
27399         * tests/test-setsockopt.c (main): Likewise.
27400         * tests/test-shutdown.c (main): Likewise.
27402 2012-01-21  Bruno Haible  <bruno@clisp.org>
27404         locale-fr.m4: Fix for Android.
27405         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
27406         failure of the test program on Bionic libc.
27408 2012-01-21  Jim Meyering  <meyering@redhat.com>
27410         bootstrap: fail when bootstrap_post_import_hook fails
27411         Otherwise, it's far too easy to miss diagnostics emitted
27412         between gnulib-tool's output and that of running configure.
27413         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
27415 2012-01-17  Jim Meyering  <meyering@redhat.com>
27417         maint: enable sc_trailing_blank
27418         * build-aux/pmccabe.css: Remove trailing blanks.
27419         * doc/acl-cygwin.txt: Likewise.
27420         * doc/gnu-oids.texi: Likewise
27421         * cfg.mk: Enable sc_trailing_blank.
27422         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
27424 2012-01-17  Jim Meyering  <meyering@redhat.com>
27426         maint: enable sc_prohibit_openat_without_use
27427         * cfg.mk: Enable sc_prohibit_openat_without_use.
27428         Exempt lib/selinux-at.c.
27430 2012-01-17  Jim Meyering  <meyering@redhat.com>
27432         maint: enable sc_prohibit_cloexec_without_use
27433         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
27434         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
27436 2012-01-17  Jim Meyering  <meyering@redhat.com>
27438         maint: enable sc_prohibit_intprops_without_use
27439         * cfg.mk: Enable sc_prohibit_intprops_without_use
27440         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
27442 2012-01-17  Jim Meyering  <meyering@redhat.com>
27444         maint: enable sc_prohibit_hash_pjw_without_use
27445         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
27446         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
27447         to match any use of \<hash_pjw\>, i.e., not necessarily with a
27448         following " (".
27450 2012-01-17  Jim Meyering  <meyering@redhat.com>
27452         maint: enable double-word-prohibiting rule
27453         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
27454         Exempt three files.
27456 2012-01-17  Jim Meyering  <meyering@redhat.com>
27458         maint: remove empty lines at EOF, but excluding modules/*
27459         Apply syntax rules at home as well as abroad.  Most changes
27460         were induced by running this:
27461           make srcdir=. _build-aux=build-aux -f top/maint.mk \
27462             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
27463             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
27464         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
27465         Exempt modules/* and two binary files.
27466         Also exempt doc/INSTALL*, per request from Bruno Haible.
27467         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
27468         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
27469         * doc/Copyright/request-assign.future: Likewise.
27470         * doc/Copyright/request-disclaim.changes: Likewise.
27471         * doc/INSTALL: Likewise.
27472         * doc/INSTALL.ISO: Likewise.
27473         * doc/INSTALL.UTF-8: Likewise.
27474         * doc/acl-cygwin.txt: Likewise.
27475         * doc/acl-resources.txt: Likewise.
27476         * doc/fdl-1.2.texi: Likewise.
27477         * doc/fdl-1.3.texi: Likewise.
27478         * doc/fdl.texi: Likewise.
27479         * lib/argp-pin.c: Likewise.
27480         * lib/round.c: Likewise.
27481         * lib/unicase/u16-totitle.c: Likewise.
27482         * lib/unictype/block_test.c: Likewise.
27483         * lib/uninorm/canonical-decomposition.c: Likewise.
27484         * m4/README: Likewise.
27485         * m4/relocatable-lib.m4: Likewise.
27486         * tests/test-isnand-nolibm.c: Likewise.
27487         * tests/test-isnand.c: Likewise.
27488         * tests/uninorm/NormalizationTest.txt: Likewise.
27490 2012-01-17  Jim Meyering  <meyering@redhat.com>
27492         maint: add framework to run syntax-check rules against gnulib sources
27493         * cfg.mk: New file, to disable all currently-failing tests.
27494         We'll enable them one by one, as they are made to pass.
27495         * Makefile (sc_maint): New rule.
27497 2012-01-21  Bruno Haible  <bruno@clisp.org>
27499         stdint: Add support for Android.
27500         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
27501         include the system's <stdint.h>.
27502         Reported by Simon Josefsson <simon@josefsson.org>.
27504 2012-01-19  Jim Meyering  <meyering@redhat.com>
27506         bootstrap: add bootstrap_post_import_hook
27507         Bison does still need something like the gnulib_mk_hook whose
27508         invocation I had to remove along with slurp in commit 767ccd40.
27509         Technically, we could get along without it, but doing so would
27510         have required living with a warning and a mandatory post-bootstrap
27511         automake rerun.
27512         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
27513         (bootstrap_post_import_hook): New function.
27514         Invoke it after gnulib-tool --import and before autoreconf.
27516 2012-01-18  Jim Meyering  <meyering@redhat.com>
27518         gitlog-to-changelog: don't use "no_"-prefixed variable name
27519         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
27520         to enable both --cluster and --no-cluster.  Change variable name,
27521         s/\$no_cluster/$cluster/, and reverse usage to match.
27523         gitlog-to-changelog: use "||", not "or" in expressions
27524         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
27525         expressions.
27527 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
27529         gitlog-to-changelog: new option --no-cluster
27530         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
27531         clustering of adjacent commit messages.
27533 2012-01-17  Jim Meyering  <meyering@redhat.com>
27535         maint: spell file systems with two words, not one
27536         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
27537         two words, not one.
27539 2012-01-16  Jim Meyering  <meyering@redhat.com>
27541         bootstrap: add a FIXME comment to ensure we eventually remove the hack
27542         * build-aux/bootstrap (gnulib_tool_options): Add comment.
27544 2012-01-16  Eric Blake  <eblake@redhat.com>
27546         bootstrap: cater to autoconf 2.59
27547         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
27548         is not available.
27550         bootstrap: properly check for libtool
27551         * build-aux/bootstrap (libtoolize): Also run libtool when older
27552         usage is detected.
27554 2012-01-15  Bruno Haible  <bruno@clisp.org>
27556         Improve support for MSVC 9.
27557         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
27558         clashes on MSVC.
27559         * lib/fcntl.in.h: Likewise.
27560         * lib/stdlib.in.h: Likewise.
27561         * lib/sys_stat.in.h: Likewise.
27563 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
27565         gnupload: we hold the master copy of this script now
27566         For motivation and more information, see:
27567         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
27568         * build-aux/gnupload: Make it clear in the heading comments that the
27569         master copy of this file is maintained by gnulib.  Since we are at
27570         it, bump its copyright year and ...
27571         ($scriptversion): ... the date in its version.
27572         ($usage): Patches and bug reports should be sent to the gnulib list,
27573         not the automake one.
27574         * config/srclist.txt: Don't try to sync 'gnupload' from automake
27575         anymore.
27577 2012-01-15  Bruno Haible  <bruno@clisp.org>
27579         Fix module 'random'.
27580         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
27581         initstate, setstate are declared.
27583 2012-01-14  Bruno Haible  <bruno@clisp.org>
27585         Tests for module 'random'.
27586         * modules/random-tests: New file.
27587         * tests/test-random.c: New file, based on tests/test-random_r.c.
27589         New module 'random'.
27590         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
27591         declarations.
27592         * lib/random.c: New file, based on glibc/stdlib/random.c.
27593         * m4/random.m4: New file.
27594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
27595         HAVE_RANDOM.
27596         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
27597         * modules/random: New file.
27598         * config/srclist.txt: Add an entry for random.c.
27599         * doc/posix-functions/random.texi: Mention the 'random' module.
27600         * doc/posix-functions/initstate.texi: Likewise.
27601         * doc/posix-functions/setstate.texi: Likewise.
27602         * doc/posix-functions/srandom.texi: Likewise.
27604 2012-01-12  Bruno Haible  <bruno@clisp.org>
27606         random_r: Use common idioms.
27607         * lib/random_r.c: Include <stdlib.h> first.
27609         random_r: Override incompatible API on AIX, OSF/1.
27610         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
27611         Override the system function if REPLACE_RANDOM_R is 1.
27612         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
27613         and OSF/1, set REPLACE_RANDOM_R.
27614         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
27615         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
27616         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
27617         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
27618         * doc/glibc-functions/random_r.texi: Likewise.
27619         * doc/glibc-functions/setstate_r.texi: Likewise.
27621         random_r: Support for MSVC 9.
27622         * lib/random_r.c: Include stdint.h, not inttypes.h.
27624 2012-01-12  Eric Blake  <eblake@redhat.com>
27626         inet_ntop: guard extra work by IF_LINT
27627         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
27628         better code generation when not checking for warnings.
27629         Suggested by Paul Eggert and Jim Meyering.
27631         strptime: fix regression on mingw
27632         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
27633         Fix regression.  Reported by Bruno Haible.
27635 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
27636             Bruno Haible  <bruno@clisp.org>
27638         copy-file: add error-code-returning variant.
27639         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
27640         (qcopy_file_preserving): New declaration.
27641         * lib/copy-file.c (qcopy_file_preserving): Renamed from
27642         copy_file_preserving. Change return type to 'int'. Don't emit an error
27643         message here.
27644         (copy_file_preserving): New function.
27645         * tests/test-copy-file.c: Include <stdlib.h>.
27646         (main): Test qcopy_file_preserving if the environment variable
27647         NO_STDERR_OUTPUT is set.
27648         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
27649         with NO_STDERR_OUTPUT
27650         * tests/test-copy-file-2.sh: Likewise.
27652 2012-01-10  Bruno Haible  <bruno@clisp.org>
27654         copy-file: Use 'quote' module consistently.
27655         * lib/copy-file.c (copy_file_preserving): Use quote().
27657         copy-file: Refactor.
27658         * lib/copy-file.c: Include quote.h.
27659         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
27660         message here.
27661         * modules/copy-file (Depends-on): Add quote.
27663         acl: Export qcopy_acl.
27664         * lib/acl.h (qcopy_acl): New declaration.
27665         * lib/copy-acl.c (qcopy_acl): Make non-static.
27667         acl: Rename a local variable.
27668         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
27670         acl: Align return values of copy_acl and qcopy_acl.
27671         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
27672         maybe < -1.
27674 2012-01-11  Eric Blake  <eblake@redhat.com>
27676         strptime: silence gcc warnings
27677         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
27678         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
27679         Reported by Daniel P. Berrange.
27681         inet_ntop: silence gcc warning
27682         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
27683         Reported by Daniel P. Berrange.
27685 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
27687         getloadavg test: skip the test on GNU/Linux without /proc mounted
27688         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
27689         file.  When /proc is not mounted, it always fails with ENOENT.
27690         * tests/test-getloadavg.c (main): Treat ENOENT return code from
27691         getloadavg(3) the same way as ENOSYS and ENOTSUP.
27693 2012-01-10  Bruno Haible  <bruno@clisp.org>
27695         regex: Avoid link error on MSVC 9.
27696         * modules/regex (Depends-on): Add wctype.
27698 2012-01-10  Bruno Haible  <bruno@clisp.org>
27700         doc: Mention --with-tests option.
27701         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
27702         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
27703         --with-tests.
27704         Reported by Reuben Thomas.
27706 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
27708         users.txt: order package names lexicographically.
27709         * users.txt: Order package names lexicographically.
27711 2012-01-10  Jim Meyering  <meyering@redhat.com>
27713         maint.mk: fix description in comment
27714         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
27716         ignore-value: remove deprecated ignore_ptr function
27717         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
27718         * NEWS: Note this.
27720 2012-01-09  Jim Meyering  <meyering@redhat.com>
27722         test-init.sh: avoid a subshell
27723         * tests/test-init.sh: Remove protective subshell.
27724         Suggested by Bernhard Voelker.  While a subshell is normally
27725         required to protect against older shells (Solaris, FreeBSD) that
27726         warn about a missing program before performing redirection, the
27727         shell-selection tests performed by init.sh probably exclude any
27728         offending shell.
27730 2012-01-08  Bruno Haible  <bruno@clisp.org>
27732         setlocale tests: Avoid test failure on Solaris 11.0.
27733         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
27734         variable.
27736 2012-01-08  Bruno Haible  <bruno@clisp.org>
27738         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
27739         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27740         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
27741         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
27742         macro.
27743         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
27744         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
27745         * lib/spawn_faction_addopen.c: Add workaround implementation if
27746         HAVE_WORKING_POSIX_SPAWN.
27747         * modules/spawn (Makefile): Substitute
27748         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
27749         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
27750         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
27751         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
27752         (Depends-on): Update conditions.
27753         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
27754         the Solaris 11 bug.
27756 2012-01-08  Bruno Haible  <bruno@clisp.org>
27758         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
27759         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27760         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
27761         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
27762         macro.
27763         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
27764         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
27765         * lib/spawn_faction_adddup2.c: Add workaround implementation if
27766         HAVE_WORKING_POSIX_SPAWN.
27767         * modules/spawn (Makefile): Substitute
27768         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
27769         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
27770         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
27771         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
27772         (Depends-on): Update conditions.
27773         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
27774         the Solaris 11 bug.
27776 2012-01-08  Bruno Haible  <bruno@clisp.org>
27778         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
27779         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27780         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
27781         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
27782         HAVE_WORKING_POSIX_SPAWN.
27783         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
27784         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
27785         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
27786         * lib/spawn_faction_addclose.c: Add workaround implementation if
27787         HAVE_WORKING_POSIX_SPAWN.
27788         * modules/spawn (Makefile): Substitute
27789         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
27790         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
27791         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
27792         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
27793         (Depends-on): Update conditions.
27794         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
27795         the Solaris 11 bug.
27797 2012-01-08  Bruno Haible  <bruno@clisp.org>
27799         doc: Update for Solaris 11.0.
27800         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
27801         * m4/printf.m4: Update comments.
27803 2012-01-08  Bruno Haible  <bruno@clisp.org>
27805         mktime: Avoid compilation error on Solaris 11.
27806         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
27808 2012-01-08  Bruno Haible  <bruno@clisp.org>
27810         doc: Small fix.
27811         * doc/posix-headers/nl_types.texi: Correct platforms list.
27813 2012-01-08  Simon Josefsson  <simon@josefsson.org>
27815         Add lgpl-3.0 module.
27816         * MODULES.html.sh (Support for building documentation): Add
27817         lgpl-3.0.
27818         * modules/lgpl-3.0: New file.
27820 2012-01-08  Jim Meyering  <meyering@redhat.com>
27822         select.c: indent with spaces, not TABs
27823         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
27825 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
27827         quotearg: do not use grave accent for left quote
27828         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
27829         locale_quoting_style.
27830         (quotearg_buffer_restyled): Fix example.
27831         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
27833 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
27835         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
27836         Most programs do not have translation catalogs for English and much
27837         less separate catalogs for British and American English.  Drop the
27838         suggestion to translators about these two, and provide it
27839         automatically for Unicode locales.  Like most programs, even those
27840         using American English, we use single quotation marks.  This conflicts
27841         with the American typographic convention, but works better when you
27842         cite the entire error message within double quotes.  It also tries not
27843         to clash with established practice and with what non-gnulib programs
27844         will usually do.
27845         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
27846         using an UTF-8 or GB-18030 locale.  The list of other locales with
27847         quotes was provided by Bruno Haible.
27848         (quotearg_buffer_restyled): Adjust instructions to translators.
27849         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
27850         text, since this would be wrong when using Unicode.
27851         * modules/quotearg: Depend on c-strcaseeq.
27853 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
27855         quotearg: fix Wikipedia link
27856         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
27858 2012-01-07  Simon Josefsson  <simon@josefsson.org>
27860         Fix for mingw with MSVC9.
27861         * m4/ld-version-script.m4: Check that compiler rejects version
27862         scripts with syntax errors.  Reported by Bruno Haible
27863         <bruno@clisp.org>.
27865 2012-01-06  Bruno Haible  <bruno@clisp.org>
27867         Talk about "native Windows API", not "Woe32".
27868         * lib/accept4.c: Update comments to mention native Windows.
27869         * lib/execute.c: Likewise.
27870         * lib/fatal-signal.c: Likewise.
27871         * lib/localcharset.c: Likewise.
27872         * lib/nanosleep.c: Likewise.
27873         * lib/nl_langinfo.c: Likewise.
27874         * lib/pclose.c: Likewise.
27875         * lib/pipe-filter-gi.c: Likewise.
27876         * lib/pipe-filter-ii.c: Likewise.
27877         * lib/pipe.c: Likewise.
27878         * lib/pipe2.c: Likewise.
27879         * lib/popen.c: Likewise.
27880         * lib/progreloc.c: Likewise.
27881         * lib/relocatable.c: Likewise.
27882         * lib/sigaction.c: Likewise.
27883         * lib/sigprocmask.c: Likewise.
27884         * lib/spawn-pipe.h: Likewise.
27885         * lib/spawn-pipe.c: Likewise.
27886         * lib/spawni.c: Likewise.
27887         * lib/stat-time.h: Likewise.
27888         * lib/w32spawn.h: Likewise.
27889         * tests/test-isatty.c: Likewise.
27890         * lib/config.charset: More comments.
27891         * doc/gnulib-intro.texi: Mention native Windows.
27892         * doc/posix-functions/_Exit_C99.texi: Likewise.
27893         * doc/posix-headers/fcntl.texi: Likewise.
27895 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
27897         argp: Avoid crash if translator uses % characters in a translation.
27898         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
27899         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
27901 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
27903         doc: C11 and C++11 are now official
27904         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
27905         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
27906         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
27907         * modules/stdalign:
27908         Replace references to draft C1X to C11, and to draft C++0X to C++11.
27910 2012-01-06  Bruno Haible  <bruno@clisp.org>
27912         uc-is-grapheme-break tests: Tweak.
27913         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
27914         message.
27916 2012-01-06  Bruno Haible  <bruno@clisp.org>
27918         test-init.sh: correct the test for diff -u
27919         * tests/test-init.sh: Also redirect stdout to /dev/null.
27921 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
27923         Use ', not `, for quoting output.
27924         * build-aux/announce-gen (usage, sizes, print_news_deltas)
27925         (print_changelog_deltas, get_tool_versions, main program):
27926         * build-aux/git-version-gen:
27927         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
27928         * build-aux/move-if-change (help):
27929         * build-aux/useless-if-before-free (usage, main program):
27930         * check-module (parse_module_file, usage)
27931         (find_included_lib_files, check_module):
27932         * lib/argmatch.c (main) [TEST]:
27933         * lib/argp-help.c (_help):
27934         * lib/getopt1.c (main) [TEST]:
27935         * lib/git-merge-changelog.c (usage):
27936         * lib/xstrtol-error.c (xstrtol_error):
27937         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
27938         * m4/argz.m4 (gl_FUNC_ARGZ):
27939         * m4/bison.m4 (gl_BISON):
27940         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
27941         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
27942         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
27943         * m4/fpending.m4 (gl_PREREQ_FPENDING):
27944         * m4/gc-random.m4 (gl_GC_RANDOM):
27945         * m4/intl.m4 (gt_CHECK_DECL):
27946         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
27947         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
27948         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
27949         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
27950         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
27951         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
27952         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
27953         * tests/test-dirname.c (main):
27954         * tests/test-getpass.c (main):
27955         * tests/test-iconvme.c (main):
27956         * tests/test-parse-datetime.c (LOG):
27957         * tests/test-xstrtoimax.sh:
27958         * tests/test-xstrtol.sh:
27959         * tests/test-xstrtoll.sh:
27960         * tests/test-xstrtoumax.sh:
27961         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
27962         * top/GNUmakefile (abort-due-to-no-makefile):
27963         Quote 'like this', not `like this', as per the recent change to
27964         the GNU coding standards.
27966 2012-01-05  Bruno Haible  <bruno@clisp.org>
27968         strtoimax: Don't force a replacement on systems where intmax_t is int.
27969         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
27970         'intmax_t' is not larger than 'int'.
27971         Reported by Pádraig Brady <P@draigBrady.com>.
27973 2012-01-05  Bruno Haible  <bruno@clisp.org>
27975         doc: Mention NetBSD bugs.
27976         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
27977         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
27979 2012-01-05  Bruno Haible  <bruno@clisp.org>
27981         strtoumax tests: Enhance tests.
27982         * tests/test-strtoumax.c (main): Add tests for large values.
27984 2012-01-05  Bruno Haible  <bruno@clisp.org>
27986         strtoimax: Work around AIX 5.1 bug.
27987         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
27988         definition.
27989         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
27990         Set HAVE_STRTOIMAX.
27991         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
27992         REPLACE_STRTOIMAX.
27993         * modules/inttypes-incomplete (Makefile.am): Substitute
27994         REPLACE_STRTOIMAX.
27995         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
27996         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
27997         (Depends-on): Update conditions.
27998         * tests/test-strtoimax.c (main): Add tests for large values.
27999         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
28001 2012-01-05  Bruno Haible  <bruno@clisp.org>
28003         inttypes: Modernize.
28004         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
28005         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
28006         (Makefile.am): Update inttypes.h rule.
28008 2012-01-05  Jim Meyering  <meyering@redhat.com>
28010         init.sh: don't waste a subshell just to redirect stderr
28011         * tests/init.sh: In testing for diff -u and diff -c, use a
28012         stderr-redirecting exec inside `...` rather than a subshell.
28014         test-init.sh: avoid failure on HP-UX 11.00
28015         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
28016         resolves to diff -c or cmp.  Reported by Bruno Haible.
28018 2012-01-05  Bruno Haible  <bruno@clisp.org>
28020         Tests for module 'strtoull'.
28021         * modules/strtoull-tests: New file.
28022         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
28024 2012-01-05  Bruno Haible  <bruno@clisp.org>
28026         Tests for module 'strtoll'.
28027         * modules/strtoll-tests: New file.
28028         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
28030 2012-01-05  Bruno Haible  <bruno@clisp.org>
28032         Tests for module 'strtoul'.
28033         * modules/strtoul-tests: New file.
28034         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
28036 2012-01-05  Bruno Haible  <bruno@clisp.org>
28038         Tests for module 'strtol'.
28039         * modules/strtol-tests: New file.
28040         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
28042 2012-01-04  Jim Meyering  <meyering@redhat.com>
28044         test-init.sh: accommodate Solaris 5.10's different diff -u output
28045         * tests/test-init.sh: Also exempt @@ lines from the comparison
28046         of diff output, since Solaris 5.10 and GNU diff formats differ.
28047         Reported by Stefano Lattarini.
28049 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28051         test-posixtm: don't assume signed integer wraparound
28052         * tests/test-posixtm.c (main): Don't assume wraparound semantics
28053         after signed integer overflow.  Inspired by (though it may not
28054         fix) Bruno Haible's bug report in
28055         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
28057         Spell out "Windows 9x" and "Windows XP".
28058         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
28059         "Windows 9x" and "WinXP" with "Windows XP".
28061 2012-01-04  Jim Meyering  <meyering@redhat.com>
28063         test-vc-list-files-cvs.sh: remove obsolete comment
28064         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
28065         double exit.  Now that's all encapsulated via skip_ and Exit.
28067 2012-01-04  Bruno Haible  <bruno@clisp.org>
28069         Talk about "native Windows API", not "Win32".
28070         * lib/classpath.c: Update comments to mention native Windows.
28071         * lib/csharpexec.c: Likewise.
28072         * lib/dup2.c: Likewise.
28073         * lib/error.c: Likewise.
28074         * lib/fcntl.c: Likewise.
28075         * lib/filename.h: Likewise.
28076         * lib/findprog.c: Likewise.
28077         * lib/get-rusage-as.c: Likewise.
28078         * lib/get-rusage-data.c: Likewise.
28079         * lib/getpagesize.c: Likewise.
28080         * lib/javaexec.c: Likewise.
28081         * lib/msvc-inval.c: Likewise.
28082         * lib/msvc-nothrow.c: Likewise.
28083         * lib/nanosleep.c: Likewise.
28084         * lib/nonblocking.c: Likewise.
28085         * lib/printf-parse.c: Likewise.
28086         * lib/setlocale.c: Likewise.
28087         * lib/sigaction.c: Likewise.
28088         * lib/strerror_r.c: Likewise.
28089         * lib/tmpdir.c: Likewise.
28090         * lib/vasnprintf.c: Likewise.
28091         * lib/w32spawn.h: Likewise.
28092         * lib/waitpid.c: Likewise.
28093         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
28094         * m4/locale-ar.m4: Likewise.
28095         * m4/locale-fr.m4: Likewise.
28096         * m4/locale-ja.m4: Likewise.
28097         * m4/locale-tr.m4: Likewise.
28098         * m4/locale-zh.m4: Likewise.
28099         * m4/printf.m4: Likewise.
28100         * tests/test-cloexec.c: Likewise.
28101         * tests/test-copy-acl.sh: Likewise.
28102         * tests/test-copy-file.sh: Likewise.
28103         * tests/test-file-has-acl.sh: Likewise.
28104         * tests/test-set-mode-acl.sh: Likewise.
28105         * tests/test-dup-safer.c: Likewise.
28106         * tests/test-dup2.c: Likewise.
28107         * tests/test-dup3.c: Likewise.
28108         * tests/test-fcntl.c: Likewise.
28109         * tests/test-nonblocking-pipe.h: Likewise.
28110         * tests/test-nonblocking-socket.h: Likewise.
28111         * tests/test-pipe.c: Likewise.
28112         * tests/test-pipe2.c: Likewise.
28113         * tests/test-spawn-pipe-child.c: Likewise.
28114         * doc/acl-resources.txt: Likewise.
28115         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28116         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
28117         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
28118         * lib/localcharset.c: Update comments to mention native Windows.
28119         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28120         * lib/localename.c: Likewise.
28121         * lib/progreloc.c: Likewise.
28122         * lib/relocatable.c: Likewise.
28123         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28124         (windows_compute_revents): Renamed from win32_compute_revents.
28125         (windows_compute_revents_socket): Renamed from
28126         win32_compute_revents_socket.
28127         * lib/select.c: Update comments to mention native Windows.
28128         (windows_poll_handle): Renamed from win32_poll_handle.
28129         * m4/threadlib.m4: Update comments to mention native Windows.
28130         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
28131         --enable-threads=windows instead of --enable-threads=win32. Set
28132         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
28133         * lib/glthread/lock.h: Update comments to mention native Windows.
28134         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
28135         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
28136         USE_WIN32_THREADS.
28137         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
28138         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
28139         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
28140         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
28141         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
28142         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
28143         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
28144         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
28145         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
28146         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
28147         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
28148         * tests/test-tls.c: Likewise.
28149         Rationale:
28150         Microsoft renamed the "Win32 API" to "Windows API", as it is available
28151         on both 32-bit and 64-bit Windows systems.
28152         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
28153         line of distinction is between "native Windows" on one side and Unix/
28154         POSIX systems on the other side. More details in
28155         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
28156         Suggested by Paul Eggert.
28158 2012-01-03  Bruno Haible  <bruno@clisp.org>
28160         isatty: Support for MSVC 9.
28161         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
28162         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
28163         (_isatty_nothrow): New function.
28164         (isatty): Use it instead of _isatty.
28165         (IsConsoleHandle): Add comment, from Paolo Bonzini.
28166         * lib/poll.c (IsConsoleHandle): Likewise.
28167         * lib/select.c (IsConsoleHandle): Likewise.
28168         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
28169         (gl_PREREQ_ISATTY): New macro.
28170         * modules/isatty (Depends-on): Add msvc-inval.
28171         (configure.ac): Invoke gl_PREREQ_ISATTY.
28173 2012-01-03  Jim Meyering  <meyering@redhat.com>
28175         maint.mk: remove temporary transition aid from over 1.5 years ago
28176         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
28177         purpose was to aid in the transition (avoiding silent malfunction)
28178         from that old name to the new _sc_search_regexp.  This shim was
28179         added by commit 219c504b.
28181         init.sh: do not try to accommodate compare arguments starting with "-"
28182         * tests/init.sh (compare_dev_null_): Do not try to accommodate
28183         compare arguments that start with "-".  Besides, we do not worry
28184         about this when invoking diff or cmp; why start now with sed?
28185         Using "--" to separate options from argument would trigger sed
28186         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
28187         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
28189 2012-01-02  Bruno Haible  <bruno@clisp.org>
28191         Enhance tests for module 'isatty'.
28192         * modules/isatty-tests (Depends-on): Add pipe-posix.
28193         * tests/test-isatty.c: Include <fcntl.h>.
28194         (DEV_NULL): New macro.
28195         (main): Test the resut of isatty() also on regular files, pipes, and
28196         /dev/null.
28198         New module 'isatty'.
28199         * lib/unistd.in.h (isatty): New declaration.
28200         * lib/isatty.c: New file, based on an idea of
28201         Bastien Roucariès <roucaries.bastien@gmail.com>.
28202         * m4/isatty.m4: New file.
28203         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
28204         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
28205         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
28206         REPLACE_ISATTY.
28207         * modules/isatty: New file.
28208         * doc/posix-functions/isatty.texi: Mention the new module.
28209         Suggested by Paolo Bonzini.
28211 2012-01-02  Bruno Haible  <bruno@clisp.org>
28213         canonicalize: Tweak 2011-12-29 commit.
28214         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
28215         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
28217 2012-01-02  Jim Meyering  <meyering@redhat.com>
28219         gitlog-to-changelog: describe input syntax in --help output
28220         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
28222         gitlog-to-changelog: fix typo in --help: show backslash before email @
28223         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
28224         in sources, but not in actual output.
28226 2011-12-30  Jim Meyering  <meyering@redhat.com>
28228         gitlog-to-changelog: don't malfunction when name contains %-directive
28229         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
28230         in a name string cause trouble.  E.g., with a user name of "%s",
28231         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
28233 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
28235         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
28236         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
28237         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
28238         the "  (tiny change)" notation that is appended to the standard
28239         ChangeLog "date  name  email" header line.
28241 2012-01-01  Jim Meyering  <meyering@redhat.com>
28243         test-framework-sh: init.sh: fix "make dist" failure
28244         When using gnulib-tool's --with-tests option and any module that
28245         depends on test-framework-sh, "make dist" would fail due to the
28246         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
28247         in the gltests directory, and not in the gllib/ directory.
28248         One way to work around that is to move the EXTRA_DIST += init.sh
28249         from the primary module to the -tests one:
28250         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
28251         * modules/test-framework-sh (Makefile.am): ...not here.
28252         Reported by Tom G. Christensen in
28253         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
28255         version-etc: update copyright year reported by --version
28256         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
28258 2011-12-31  Pádraig Brady  <P@draigBrady.com>
28260         canonicalize: only stat() if required
28261         * lib/canonicalize.c (canonicalize_filename_mode):
28262         Avoid calling l?stat() when both CAN_MISSING,
28263         and CAN_NOLINKS are set, as we neither need
28264         to resolve symlinks or test component existence.
28266 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
28268         doc: cover st_ino issues once; add OpenVMS etc.
28269         * doc/posix-functions/stat.texi (stat):
28270         * doc/posix-functions/lstat.texi (lstat):
28271         * doc/posix-functions/fstatat.texi (fstatat):
28272         * doc/posix-functions/fstat.texi (fstat):
28273         Move general 'struct stat' stuff to sys_stat.texi,
28274         leaving behind a pointer.
28275         * doc/posix-headers/sys_stat.texi (sys/stat.h):
28276         Merge duplicate info about 'struct stat' problems into here.
28277         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
28278         and suggest partial workarounds.
28280         same-inode: port to OpenVMS
28281         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
28282         three st_ino values.
28284 2011-12-30  Pádraig Brady  <P@draigBrady.com>
28286         canonicalize: fix references to stat() and lstat()
28287         * lib/canonicalize.c (canonicalize_filename_mode):
28288         Ensure references always resolve to a replacement
28289         function if required (even via a macro).
28291 2011-12-30  Jim Meyering  <meyering@redhat.com>
28293         gitlog-to-changelog: remove a little duplication
28294         * build-aux/gitlog-to-changelog (main): Grep @lines once,
28295         rather than twice.
28297 2011-12-29  Pádraig Brady  <P@draigBrady.com>
28299         canonicalize: add support for not resolving symlinks
28300         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
28301         indicate we don't want to follow symlinks.  Also
28302         provide CAN_MODE_MASK to aid setting these existing
28303         mutually exclusive values.
28304         * lib/canonicalize.c (canonicalize_filename_mode):
28305         Extract the flags from can_mode parameter, which
28306         are currently just used to select between stat()
28307         and lstat().  Also ensure that mutually exclusive
28308         values are flagged immediately as invalid.
28309         * tests/test-canonicalize.c: Verify symlinks are
28310         not followed, and that invalid flag combinations
28311         are diagnosed.
28313 2011-12-25  Jim Meyering  <meyering@redhat.com>
28315         gitlog-to-changelog: do not clump multi-paragraph entries
28316         Identical header lines (date,name,email+coauthors) are suppressed,
28317         thus putting all entries with those same characteristics under
28318         a single header.  However, when a log entry consists of two or
28319         more paragraphs, it may not be clear where it starts and ends.
28320         This change makes it so that such an entry is always separated
28321         from others by a header line, even when that header would
28322         otherwise be suppressed.
28323         * build-aux/gitlog-to-changelog: Implement the above.
28324         Inspired by a related request from Stefano Lattarini in
28325         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
28327 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28329         announce-gen: fix `cmd' typo in diagnostic
28330         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
28331         diagnostic: a missing '$' meant that the command was not output.
28333 2011-12-23  Jim Meyering  <meyering@redhat.com>
28335         test-framework-sh: distribute init.sh
28336         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
28337         Otherwise, "make -C gnulib-tests check" (at least in grep) would
28338         fail due to the lack of init.sh.
28340         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
28341         * modules/atexit-tests: Rather than listing tests/init.sh,
28342         now that there's a module for it, simply depend on that new module.
28343         * modules/closein-tests: Likewise.
28344         * modules/exclude-tests: Likewise.
28345         * modules/getcwd-tests: Likewise.
28346         * modules/perror-tests: Likewise.
28347         * modules/pread-tests: Likewise.
28348         * modules/pwrite-tests: Likewise.
28349         * modules/vc-list-files-tests: Likewise.
28350         * modules/verify-tests: Likewise.
28351         * modules/xalloc-die-tests: Likewise.
28352         * modules/xstrtoimax-tests: Likewise.
28353         * modules/xstrtol-tests: Likewise.
28354         * modules/xstrtoll-tests: Likewise.
28355         * modules/xstrtoumax-tests: Likewise.
28356         * modules/yesno-tests: Likewise.
28358 2011-12-22  Jim Meyering  <meyering@redhat.com>
28360         test-framework-sh: add minimal tests of init.sh's compare function
28361         * modules/test-framework-sh-tests: New file.
28362         * tests/test-init.sh: New file.
28364         test-framework-sh: new module
28365         * modules/test-framework-sh: New file.
28366         * MODULES.html.sh (Support for maintaining and releasing projects):
28367         List it.
28369         init.sh: do not emit simulated diff output to stderr
28370         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
28372 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
28374         .gitignore: ignore gnulib.dvi and regex.info
28375         * doc/.gitignore:add gnulib.dvi and regex.info
28377 2011-12-22  Jim Meyering  <meyering@redhat.com>
28379         init.sh: correct previous change
28380         * tests/init.sh (compare): My previous change was wrong.
28381         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
28383         init.sh: avoid unwarranted test failure when using "set -e"
28384         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
28385         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
28386         a use like "compare exp out" would get evoke an unconditional failure.
28388 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
28390         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
28391         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
28392         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
28393         autoreconf that did not.
28394         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
28395         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
28397 2011-12-17  Jim Meyering  <meyering@redhat.com>
28399         bootstrap: remove some now-unneeded code
28400         This script arose back when gnulib-tool was young.
28401         Since then, it has seen improvements that render much of this
28402         script unnecessary.  In particular, it can now make symlinks
28403         to the files it uses.  Also, I no longer see as much value in
28404         marking files as read-only via comments.
28405         If you relied on the symlink-creation feature of the preceding
28406         version of this script, you can get most of that functionality
28407         by adding the --symlink option to the definition of
28408         gnulib_tool_option_extras in your bootstrap.conf file.
28409         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
28410         Run autopoint and libtoolize *before* gnulib-tool.
28411         After it, run an abbreviated autoreconf, rather than a loop around
28412         all tools.
28413         (slirp, bt_mark_as_generated): Remove functions.
28415 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28417         ftoastr: fix typo
28418         * lib/ftoastr.h: Fix misspelling in comment.
28420 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
28422         * top/README-release: fix punctuation.
28424 2011-12-17  Jim Meyering  <meyering@redhat.com>
28426         bootstrap: correct the recent buildreq change
28427         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
28428         had no effect.
28429         * build-aux/bootstrap (buildreq): Bracket each search term with
28430         "*...*", so that the shell "case" statement works as intended.
28431         Add comments.
28433 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
28435         build: let bootstrap resort to wget when downloading .po files
28436         * build-aux/bootstrap (download_po_files): Fallback to wget when
28437         downloading the .po files via rsync fails.  This is necessary to
28438         bootstrap from behind a strict firewall.
28440 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28442         stdint: don't assume C++11 when compiling with g++
28443         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
28444         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
28445         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
28446         work also in C++ before C++11, as that improperly inhibits
28447         generating a substitute stdint.h for that case.
28449 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28451         alloca: protect comment from gnulib-tool
28452         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
28453         that gnulib-tool doesn't think it's a license, and munge it to
28454         say "GCC version 3".
28456 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
28458         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
28459         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
28460         $(abs_top_builddir) instead of $(top_builddir).
28462 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
28464         strftime-tests: also test nanoseconds
28465         * tests/test-strftime.c (T): Add a test of %N.
28467 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
28469         inttypes, stdint: add C++11 support
28470         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
28471         when including inttypes.h and stdint.h.  Support this change to
28472         the standard.
28473         * doc/posix-headers/inttypes.texi (inttypes.h):
28474         * doc/posix-headers/stdint.texi (stdint.h): Document this.
28475         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
28476         Define if not defined already, for the benefit of pre-C++11 hosts.
28477         Define the standard format macros (e.g., PRId8) always.
28478         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
28479         Likewise, if __cpluspus.  Define the standard constant and limit
28480         macros (e.g., INT8_C, INT8_MAX) always.
28481         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
28482         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
28483         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
28484         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
28485         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
28486         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
28487         Likewise.
28489 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28491         nonblocking tests: Fix test failure on Linux/PPC.
28492         Suggested by Prerna Saxena in
28493         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
28494         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
28495         Set to 1100000.
28497 2011-12-12  Jim Meyering  <meyering@redhat.com>
28499         argmatch: don't hard-code `' when listing valid option arguments
28500         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
28501         use the quote function to add quotes.  Use fputs rather than
28502         fprintf for the format string with no format directive.
28504 2011-12-07  Eric Blake  <eblake@redhat.com>
28506         bootstrap: detect tools required by gnulib-tool
28507         * build-aux/bootstrap (buildreq): Provide minimum implicit
28508         dependencies.
28509         * DEPENDENCIES: Mention patch as a prereq.
28511 2011-12-04  Bruno Haible  <bruno@clisp.org>
28513         sethostname: Port to Windows platforms.
28514         * lib/sethostname.c: Provide an alternate implementation for Windows
28515         platforms.
28516         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
28517         (main): Skip the test if sethostname() fails with EPERM. On Windows
28518         platforms, don't check the result of gethostname().
28520 2011-12-04  Bruno Haible  <bruno@clisp.org>
28521             Jim Meyering  <meyering@redhat.com>
28523         tests: Avoid spurious error message on platforms without mktemp program.
28524         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
28526 2011-12-04  Bruno Haible  <bruno@clisp.org>
28528         sethostname: Fix documentation.
28529         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
28530         "not fixed" section.
28532 2011-12-03  Bruno Haible  <bruno@clisp.org>
28534         gnulib-tool: Verify that the License field is present and non-empty.
28535         * gnulib-tool (func_get_license_raw): New function, extracted from
28536         func_get_license.
28537         (func_get_license): Use it. Warn if the module is not a test module and
28538         has no license.
28539         Suggested by Jim Meyering.
28541 2011-12-03  Bruno Haible  <bruno@clisp.org>
28543         sethostname tests: Fix link error on mingw.
28544         * tests/test-sethostname1.c: New file, extracted from
28545         tests/test-sethostname.c.
28546         * tests/test-sethostname2.c: New file, extracted from
28547         tests/test-sethostname.c.
28548         * tests/test-sethostname.c: Remove file.
28549         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
28550         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
28551         (Depends-on): Add gethostname.
28552         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
28553         Link the latter with $(GETHOSTNAME_LIB).
28555         sethostname tests: Fix compilation error on mingw.
28556         * tests/test-sethostname.c: Don't include <sys/types.h>.
28557         (geteuid): Use a dummy value without uid_t.
28558         * modules/sethostname-tests (Depends-on): Remove sys_types.
28560         sethostname tests: Avoid a gcc warning.
28561         * tests/test-sethostname.c (main): Remove an unused variable.
28563         Tweak last commit.
28564         * modules/sethostname-tests (Files): Sort by decreasing importance.
28565         (configure.ac): Check for geteuid.
28566         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
28567         the test when there's nothing to test. Drop an unnecessary cast.
28568         Improve an error message. Verify that the final sethostname() call
28569         succeeds.
28571 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28573         Add a test suite for the sethostname module.
28574         * modules/sethostname-tests: New file.  A test program
28575         for the sethostname module.
28576         * tests/test-sethostname.c: Likewise.
28578 2011-12-03  Bruno Haible  <bruno@clisp.org>
28580         Tweak last commit.
28581         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
28582         Fix preprocessor directives indentation. Fix typos.
28583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
28584         * modules/unistd (Makefile): Likewise.
28586 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28588         Integrate the sethostname module into unistd.
28589         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
28590         into the unistd.h header.
28591         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
28592         preprocessor directives.
28593         * modules/unistd: Setup the Makefile substitutions of the
28594         SETHOSTNAME preprocessor directives.
28596 2011-12-03  Bruno Haible  <bruno@clisp.org>
28598         Tweak last commit.
28599         * lib/sethostname.c: Don't include <string.h>.
28600         (sethostname): No need to copy the argument string to the stack. Don't
28601         call clearerr. Preserve errno when fprintf failed.
28602         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
28603         Don't invoke AC_REPLACE_FUNCS.
28604         * modules/sethostname (Link): Remove empty section.
28605         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
28606         failure problem.
28608 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28610         New module 'sethostname'.
28611         * lib/sethostname.c (sethostname): New file.  Provide sethostname
28612         for systems that lack it.
28613         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
28614         sethostname declaration and function.
28615         * modules/sethostname: New file.  Define the sethostname module.
28617 2011-12-03  Bruno Haible  <bruno@clisp.org>
28619         Tweak last commit.
28620         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
28622 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28624         Split the HOST_NAME_MAX detection into a separate m4 macro.
28625         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
28626         macro so it can be used by the pending sethostname module.
28628 2011-12-03  Bruno Haible  <bruno@clisp.org>
28630         Fix module descriptions syntax.
28631         * modules/argv-iter (License): Fix syntax.
28632         * modules/di-set (License): Likewise.
28633         * modules/ino-map (License): Likewise.
28634         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
28636 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
28638         stdalign: port to Clang 3.0
28639         Problem reported by Simon Josefsson in
28640         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
28641         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
28642         which has <stdalign.h> but which does not define alignof.
28643         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
28645 2011-12-01  Eric Blake  <eblake@redhat.com>
28647         mktempd: silence dd usage
28648         * build-aux/mktempd (rand_bytes): Silence dd.
28650 2011-11-30  Simon Josefsson  <simon@josefsson.org>
28652         manywarnings: Don't mention gcc version in docstring.
28653         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
28654         Jim Meyering <meyering@redhat.com>.
28656 2011-11-30  Jim Meyering  <meyering@redhat.com>
28658         hash: mark a few floating point constants with "f" suffix
28659         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
28660         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
28661         floating point constants with "f", since they're destined to be
28662         saved/used as "float"s.
28664 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
28666         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
28667         * tests/test-float.c (test_long_double): Correct and re-enable the
28668         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
28670 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
28672         Avoid subtracting two pointers that don't point into the same block.
28673         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
28674         only pointers into the same memory block are subtracted. We cannot
28675         assume that sizeof (ptrdiff_t) == sizeof (void *).
28677 2011-11-29  Eric Blake  <eblake@redhat.com>
28679         maint.mk: add syntax check for use of compare from init.sh
28680         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
28681         moved here from coreutils.
28683         manywarnings: drop -Wunsuffixed-float-constants
28684         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
28685         '1.0D', which is the only way to silence this warning for 'double'.
28687 2011-11-29  Jim Meyering  <meyering@redhat.com>
28689         hash: mark compute_bucket_size with the pure attribute
28690         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
28692         quotearg, propername: correct pragma guard expression
28693         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
28694         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
28696 2011-11-28  Jim Meyering  <meyering@redhat.com>
28698         propername: do not mark proper_name with the const attribute
28699         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
28700         since it examines data pointed to by its parameter.
28701         * lib/propername.c (proper_name): Instead, add a pragma to suppress
28702         the suggestion from -Wsuggest-attribute=const.
28704         propername: mark one more function as const
28705         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
28707 2011-11-27  Jim Meyering  <meyering@redhat.com>
28709         mark functions with const and pure attributes
28711         Mark functions per suggestions from gcc-4.6 when using these options:
28712         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
28713         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
28714         Follow these guidelines: when possible, apply the attribute to
28715         an extern declaration, not to its definition.  Apply it to the
28716         definition only when the definition is static.
28717         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
28718         * lib/argv-iter.h (argv_iter_n_args): Likewise.
28719         * lib/base64.h (isbase64): Likewise.
28720         * lib/basename-lgpl.c (last_component, base_len): Likewise.
28721         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
28722         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
28723         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
28724         (c_tolower, c_toupper): Likewise.
28725         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
28726         * lib/chdir-long.c (find_non_slash): Likewise.
28727         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
28728         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
28729         * lib/file-type.h (file_type): Likewise.
28730         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
28731         * lib/filevercmp.c (verrevcmp): Likewise.
28732         * lib/freadahead.h (freadahead): Likewise.
28733         * lib/fts.c (fts_maxarglen): Likewise.
28734         * lib/hash-pjw.h (hash_pjw): Likewise.
28735         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
28736         * lib/hash.c (is_prime, next_prime): Likewise.
28737         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
28738         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
28739         (hash_table_ok, hash_get_first, hash_string): Likewise.
28740         (compute_bucket_size): Likewise.
28741         * lib/i-ring.h (i_ring_empty): Likewise.
28742         * lib/isnan.c (isnanl): Likewise.
28743         * lib/math.h (isnanl, rpl_isnanl): Likewise.
28744         * lib/memcasecmp.h (memcasecmp): Likewise.
28745         * lib/memchr2.h (memchr2): Likewise.
28746         * lib/memcmp2.h (memcmp2): Likewise.
28747         * lib/parse-datetime.y (lookup_zone): Likewise.
28748         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
28749         [!WINDOWS_SOCKETS]: Likewise.
28750         * lib/strnlen1.h (strnlen1): Likewise.
28751         * lib/uniwidth.in.h (uc_width): Likewise.
28752         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
28753         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
28754         (quoting_options_from_style): Add a comment.
28755         * lib/propername.h (proper_name): Add a comment.
28757 2011-11-27  Bruno Haible  <bruno@clisp.org>
28759         Remove unused macros from !_LIBC code in glibc-borrowed files.
28760         * lib/fnmatch.c (STRCOLL): Remove macro.
28761         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
28762         * lib/glob.c (__stat, __readdir64): Remove macros.
28763         * lib/tempname.c (__open64, __xstat64): Remove macros.
28764         Suggested by Paul Eggert.
28766 2011-11-27  Bruno Haible  <bruno@clisp.org>
28768         getcwd: Fix link error on MSVC 9.
28769         * modules/getcwd (Depends-on): Add readdir, rewinddir.
28771 2011-11-27  Bruno Haible  <bruno@clisp.org>
28773         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
28774         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
28775         HAVE_OPENDIR is 0.
28776         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
28777         HAVE_CLOSEDIR is 0.
28778         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
28779         is 0.
28780         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
28782 2011-11-27  Bruno Haible  <bruno@clisp.org>
28784         getcwd: Fix bug from 2011-08-17.
28785         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
28786         platforms that need it.
28787         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
28788         code of 4 to be a failure, not a success. This ensures that
28789         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
28791 2011-11-27  Bruno Haible  <bruno@clisp.org>
28793         binary-io tests: Avoid test failure on mingw when libtool is used.
28794         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
28795         Don't verify the size of t-bin-out1.tmp here.
28796         * tests/test-binary-io.sh: Verify it here.
28797         Reported by Simon Josefsson.
28799 2011-11-26  Bruno Haible  <bruno@clisp.org>
28801         Fix conflict between two instantiations of module 'unistd'.
28802         * gnulib-tool (func_emit_autoconf_snippet): Substitute
28803         ${include_guard_prefix} also in the autoconf snippet.
28804         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
28805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
28806         GNULIB_UNISTD_H_GETOPT.
28807         * modules/getopt-posix (configure.ac): Set the
28808         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
28809         * modules/getopt-gnu (configure.ac): Likewise.
28810         * modules/unistd (Makefile.am): Change the substitution value of
28811         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
28812         Reported by Simon Josefsson.
28814 2011-11-25  Bruno Haible  <bruno@clisp.org>
28816         pagealign_alloc: Doc and comments.
28817         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
28818         module.
28819         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
28821 2011-11-25  Jim Meyering  <meyering@redhat.com>
28823         test-update-copyright.sh: avoid false-positive failure
28824         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
28825         around false positive failure on Cygwin/Windows.  The latter was
28826         matching erroneously-created files with names like
28827         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
28829 2011-11-25  Simon Josefsson  <simon@josefsson.org>
28831         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
28832         * m4/valgrind-tests.m4: Check that the parameters that will be
28833         used works, not just a subset of them.  Reported by Bruno Haible
28834         <bruno@clisp.org>.
28836 2011-11-24  Jim Meyering  <meyering@redhat.com>
28838         test-stdalign.c: comment out long double tests
28839         * tests/test-stdalign.c: Don't try to reduce alignment of long double
28840         variables.  That provokes errors like this from gcc-4.7.0 20111124:
28841         error: '_Alignas' specifiers cannot reduce alignment of \
28842         'static_longdouble_alignas'.
28844 2011-11-22  Jim Meyering  <meyering@redhat.com>
28846         init.sh: make "compare /dev/null FILE" output more readable
28847         * tests/init.sh (compare_): Document the preferred order of arguments.
28848         (emit_diff_u_header_): New function.
28849         (compare_dev_null_): Emit a simulated diff, rather than just the
28850         contents of the unexpected file.  Suggestion from Bruno Haible.
28852 2011-11-21  Jim Meyering  <meyering@redhat.com>
28853             Eric Blake  <eblake@redhat.com>
28855         init.sh: work around OSF/1 5.1's mishandling of /dev/null
28856         * tests/init.sh: Make our compare function slightly more portable.
28857         Reported by Bruno Haible in
28858         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
28860 2011-11-21  Simon Josefsson  <simon@josefsson.org>
28862         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
28863         before using it, in code that ends up in config.h.
28865 2011-11-20  Bruno Haible  <bruno@clisp.org>
28867         getcwd: Work around getcwd bug on AIX 5..7.
28868         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
28869         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
28870         Use a different value for gl_cv_func_getcwd_path_max. Move the
28871         definition of HAVE_PARTLY_WORKING_GETCWD from here...
28872         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
28873         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
28874         Define HAVE_MINIMALLY_WORKING_GETCWD.
28875         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
28876         where it is not even minimally working, that is, on AIX.
28877         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
28878         m4/getcwd-path-max.m4.
28879         (main): Update exit code computation.
28880         * doc/posix-functions/getcwd.texi: Mention list of platforms where
28881         getcwd does not handle long file names.
28883 2011-11-20  Bruno Haible  <bruno@clisp.org>
28885         getcwd: Fix bug from 2009-09-10.
28886         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
28887         like "no".
28889 2011-11-20  Simon Josefsson  <simon@josefsson.org>
28891         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
28893 2011-11-20  Bruno Haible  <bruno@clisp.org>
28895         fma tests: Avoid shadowing local variables.
28896         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
28897         expected.
28899 2011-11-20  Bruno Haible  <bruno@clisp.org>
28901         copysignf tests: Fix.
28902         * tests/test-copysignf.c: Fix signature check.
28904 2011-11-20  Bruno Haible  <bruno@clisp.org>
28906         fma: Remove unused code.
28907         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
28908         unused macros.
28910 2011-11-20  Bruno Haible  <bruno@clisp.org>
28912         sethostname: Fix doc about AIX.
28913         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
28914         sethostname; it has it.
28916         sethostname: Mention more portability problems.
28917         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
28918         problem.
28919         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
28921 2011-11-19  Bruno Haible  <bruno@clisp.org>
28923         Depend on module fcntl-h when AT_FDCWD is used.
28924         * modules/utimens (Depends-on): Add fcntl-h.
28925         * modules/areadlinkat (Depends-on): Likewise.
28926         * modules/areadlinkat-with-size (Depends-on): Likewise.
28927         * modules/faccessat (Depends-on): Likewise.
28928         * modules/fchmodat (Depends-on): Likewise.
28929         * modules/fchownat (Depends-on): Likewise.
28930         * modules/getcwd (Depends-on): Likewise.
28931         * modules/mkdirat (Depends-on): Likewise.
28932         * modules/mkfifoat (Depends-on): Likewise.
28933         * modules/readlinkat (Depends-on): Likewise.
28934         * modules/symlinkat (Depends-on): Likewise.
28935         * modules/dup2-tests (Depends-on): Likewise.
28936         * modules/fdutimensat-tests (Depends-on): Likewise.
28937         * modules/futimens-tests (Depends-on): Likewise.
28939 2011-11-19  Bruno Haible  <bruno@clisp.org>
28941         euidaccess: Update a comment.
28942         * lib/euidaccess.c: Update comment about platforms with faccessat.
28944 2011-11-19  Bruno Haible  <bruno@clisp.org>
28946         openat: Fix file list.
28947         * modules/openat (Files): Remove lib/at-func.c.
28949 2011-11-19  Bruno Haible  <bruno@clisp.org>
28951         fstatat: Simplify.
28952         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
28953         gnulib should define rpl_fstatat, there is a
28954         "#define fstatat rpl_fstatat" in <sys/stat.h>.
28956 2011-11-19  Bruno Haible  <bruno@clisp.org>
28958         Ensure 'inline' can be used in tests/test-utimens-common.h.
28959         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
28960         * modules/futimens-tests (configure.ac): Likewise.
28961         * modules/utimens-tests (configure.ac): Likewise.
28962         * modules/utimensat-tests (configure.ac): Likewise.
28964 2011-11-19  Simon Josefsson  <simon@josefsson.org>
28966         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
28967         not hash_insert0.
28968         (hash_insert_if_absent): Doc fix.
28970 2011-11-19  Simon Josefsson  <simon@josefsson.org>
28972         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
28974 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
28976         test-getcwd: disambiguate exit status
28977         * tests/test-getcwd.c (test_long_name): Return 0..7.
28978         (main): Exit with an unambiguous exit status.  The old
28979         code yielded a mysterious mixture of two failure codes.
28981         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
28982         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
28983         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
28984         rpl_fstatat or fstatat.  This should fix the other problem
28985         reported by Kai Habel in
28986         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
28987         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
28988         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
28989         and I reproduced it on a Solaris 8 host we still have in production.
28991 2011-11-18  Jim Meyering  <meyering@redhat.com>
28993         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
28994         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
28995         Add a sentence to the comment.
28996         (hash_insert0): New function that simply calls hash_insert_if_absent.
28997         * lib/hash.h (hash_insert_if_absent): Declare it.
28998         (hash_insert0): Add deprecation attribute.
28999         (_GL_ATTRIBUTE_DEPRECATED): Define.
29000         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
29001         not hash_insert0.
29002         * NEWS: Mention it, even though it's not really an incompatible change.
29004 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
29006         openat: avoid compilation failure due to lack of <errno.h> inclusion
29007         * lib/openat.c: Include <errno.h>.
29009 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29011         * modules/getcwd (Depends-on): Add fdopendir.
29012         This fixes one of the two problems reported by Kai Habel in
29013         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
29015         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
29016         stdalign problem reported by Ian Beckwith in
29017         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
29018         * modules/crypto/gc-arcfour (Depends-on):
29019         Depend conditionally on crypto/arcfour.
29020         * modules/crypto/gc-arctwo (Depends-on):
29021         Depend conditionally on crypto/arctwo.
29022         * modules/crypto/gc-des (Depends-on):
29023         Depend conditionally on crypto/des.
29024         * modules/crypto/gc-hmac-md5 (Depends-on):
29025         Depend conditionally on crypto/hmac-md5.
29026         * modules/crypto/gc-hmac-sha1 (Depends-on):
29027         Depend conditionally on crypto/hmac-sha1.
29028         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
29029         * modules/crypto/gc-md4 (Depends-on):
29030         Depend conditionally on crypto/md4.
29031         * modules/crypto/gc-md5 (Depends-on):
29032         Depend conditionally on crypto/md5.
29033         * modules/crypto/gc-rijndael (Depends-on):
29034         Depend conditionally on crypto/rijndael.
29035         * modules/crypto/gc-sha1 (Depends-on):
29036         Depend conditionally on crypto/sha1.
29037         * modules/crypto/gc-arcfour:
29038         * modules/crypto/gc-arctwo:
29039         * modules/crypto/gc-des:
29040         * modules/crypto/gc-hmac-md5:
29041         * modules/crypto/gc-hmac-sha1:
29042         * modules/crypto/gc-md2:
29043         * modules/crypto/gc-md4:
29044         * modules/crypto/gc-md5:
29045         * modules/crypto/gc-rijndael:
29046         * modules/crypto/gc-sha1:
29047         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
29048         now that the conditional dependencies do the work for us.
29050 2011-11-17  Jim Meyering  <meyering@redhat.com>
29052         tests: factor st_ctime-comparison out of two headers
29053         * tests/test-utimens-common.h (ctime_compare): Define.
29054         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
29055         * tests/test-lutimens.h (test_lutimens): Likewise.
29056         * tests/test-utimens.h (test_utimens): Likewise.
29058         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
29059         Invoke the test program via an init.sh-using wrapper.
29060         * tests/test-getcwd.sh: New file.
29061         * modules/getcwd-tests (Files): Add it.
29062         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
29064 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
29066         gitlog-to-changelog: support multi-author commits.
29067         The FSF cares about keeping track of all authors of patches to its
29068         projects, but Git doesn't provide obvious support for multi-author
29069         changesets. Consensus seems to be forming around the use of extra
29070         Signed-off-by inspired lines in the log message formatted as
29071         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
29072         multi-author commits between version control systems.
29073         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
29074         log message and output in standard ChangeLog multi-author format.
29075         Reported by Peter Rosin <peda@lysator.liu.se>
29077 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29078             Bruno Haible  <bruno@clisp.org>
29080         Fix some modules' file list.
29081         * modules/fstatat (Files): Add m4/lstat.m4.
29082         * modules/openat (Files): Likewise.
29083         * modules/unlinkat (Files): Likewise.
29085 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
29087         maint.mk: fix tight-scope.mk generation in VPATH builds.
29088         * top/maint.mk (tight-scope.mk): Make sure to prefix file
29089         reference with $(srcdir) so that the file is found correctly even
29090         when running `make syntax-check' in a VPATH build.
29092 2011-11-13  Bruno Haible  <bruno@clisp.org>
29093             Jim Meyering  <meyering@redhat.com>
29095         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
29096         * tests/init.sh (compare): Remove "No differences encountered" or
29097         synonymous output from the 'diff' program.
29099 2011-11-13  Bruno Haible  <bruno@clisp.org>
29101         Makefile: Tweak indentation.
29102         * Makefile: Use tab as first character in every line that contains rule
29103         commands.
29105 2011-11-13  Bruno Haible  <bruno@clisp.org>
29107         Syntax check for copyright statements.
29108         * check-copyright: New file.
29109         * Makefile (sc_check_copyright): New rule.
29111 2011-11-13  Simon Josefsson  <simon@josefsson.org>
29113         * build-aux/git-version-gen: Add --prefix to configure the tag
29114         match string.
29116 2011-11-13  Simon Josefsson  <simon@josefsson.org>
29118         * build-aux/git-version-gen: Add --help and --version.
29120 2011-11-12  Jim Meyering  <meyering@redhat.com>
29122         revamp the other test-exclude?.sh scripts to use init.sh, too
29123         * tests/test-exclude1.sh: Use init.sh.
29124         * tests/test-exclude2.sh: Likewise.
29125         * tests/test-exclude3.sh: Likewise.
29126         * tests/test-exclude4.sh: Likewise.
29127         * tests/test-exclude5.sh: Likewise.
29128         * tests/test-exclude6.sh: Likewise.
29129         * tests/test-exclude7.sh: Likewise.
29130         * tests/test-exclude8.sh: Likewise.
29131         * modules/exclude-tests (Files): List init.sh.
29133         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
29134         These shell scripts ignored failure of the binary test-exclude,
29135         so making the latter return 77 didn't cause them to be skipped.
29136         * tests/test-exclude5.sh: Exit with test-exclude's error status
29137         when that program fails.  Revamp to use init.sh.
29138         * tests/test-exclude2.sh: Likewise.
29140         test-exclude: fix a typo
29141         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
29143 2011-11-11  Bruno Haible  <bruno@clisp.org>
29145         obstack: Fix compilation error on MSVC 9.
29146         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
29148 2011-11-11  Jim Meyering  <meyering@redhat.com>
29150         test-exclude: skip tests rather than failing on deficient systems
29151         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
29152         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
29153         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
29154         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
29156 2011-11-10  Bruno Haible  <bruno@clisp.org>
29158         ptsname_r test: Avoid gcc warning on glibc systems.
29159         * tests/test-ptsname_r.c (null_ptr): New function.
29160         (test_errors): Use it.
29162 2011-11-10  Bruno Haible  <bruno@clisp.org>
29164         ptsname_r: Avoid compilation error on OSF/1 5.1.
29165         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
29166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
29167         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
29168         function is not declared or incompatibly declared.
29169         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
29170         * modules/ptsname_r (Depends-on, configure.ac): Update.
29171         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
29173 2011-11-10  Bruno Haible  <bruno@clisp.org>
29175         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
29176         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
29177         When cross-compiling, guess yes on all platforms except AIX.
29178         Reported by Ludovic Courtès <ludo@gnu.org>.
29180 2011-11-09  Bruno Haible  <bruno@clisp.org>
29182         ptsname_r tests: Fix bugs.
29183         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
29184         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
29186 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29188         fstatat: work with cross-compilation
29189         Problem reported by Ludovic Courtès in
29190         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
29191         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
29192         "cross-compiling" and assume the bug is present.  Replace
29193         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
29194         an inverted sense, to be more conservative about our assumptions.
29195         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
29197 2011-11-09  Bruno Haible  <bruno@clisp.org>
29199         Improve MODULES.html output.
29200         * modules/mkfifoat (Description): Use the word "function".
29201         * modules/readlinkat (Description): Likewise.
29202         * modules/symlinkat (Description): Likewise.
29204 2011-11-09  Eric Blake  <eblake@redhat.com>
29206         ptsname_r-tests: new test module
29207         * modules/ptsname_r-tests: New module.
29208         * tests/test-ptsname_r.c: New file.
29210         ptsname_r: new module
29211         * modules/ptsname_r: New module.
29212         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
29213         * lib/ptsname.c (__ptsname_r): Split...
29214         * lib/ptsname_r.c: ...into new file.
29215         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
29216         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
29217         * modules/stdlib (Makefile.am): Substitute witnesses.
29218         * lib/stdlib.in.h (ptsname_r): Declare it.
29219         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
29220         * MODULES.html.sh (Misc): Likewise.
29221         * modules/ptsname (Depends-on): Alter dependency.
29222         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
29224 2011-11-09  Jim Meyering  <meyering@redhat.com>
29226         announce-gen: be more concise when there's only one URL+tarball
29227         * build-aux/announce-gen (get_tool_versions): When you distribute
29228         only one type of tarball, combine the first two "Here are..."
29229         sections and make the key-checking grammar independent of
29230         how many tarballs there are.
29232 2011-11-09  Eric Blake  <eblake@redhat.com>
29234         openpty: provide a stub on mingw
29235         * lib/pty.in.h (includes): Provide forward declarations.
29236         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
29238         raise: fix mingw handling of SIGPIPE
29239         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
29241 2011-11-08  Bruno Haible  <bruno@clisp.org>
29243         More conditional dependencies.
29244         * modules/faccessat (Depends-on): Add conditions.
29245         * modules/fchmodat (Depends-on): Likewise.
29246         * modules/fchownat (Depends-on): Likewise.
29247         * modules/fstatat (Depends-on): Likewise.
29248         * modules/mkfifoat (Depends-on): Likewise.
29249         * modules/readlinkat (Depends-on): Likewise.
29250         * modules/symlinkat (Depends-on): Likewise.
29251         * modules/unlinkat (Depends-on): Likewise.
29252         * modules/utimensat (Depends-on): Likewise.
29253         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
29254         * modules/linkat (Depends-on): Refine the conditions.
29255         * modules/renameat (Depends-on): Likewise.
29257 2011-11-08  Bruno Haible  <bruno@clisp.org>
29259         faccessat: Move AC_LIBOBJ invocation to module description.
29260         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
29261         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
29262         invocation from here...
29263         * modules/faccessat (configure.ac): ... to here. Invoke
29264         gl_PREREQ_FACCESSAT.
29266 2011-11-08  Bruno Haible  <bruno@clisp.org>
29268         faccessat: Simplify autoconf macro.
29269         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
29270         gl_FUNC_EUIDACCESS.
29272 2011-11-08  Bruno Haible  <bruno@clisp.org>
29274         renameat: Fix dependencies.
29275         * modules/renameat (Depends-on): Add stdbool.
29277 2011-11-08  Bruno Haible  <bruno@clisp.org>
29279         mkfifoat: Fix module description.
29280         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
29281         not gl_UNISTD_MODULE_INDICATOR.
29283 2011-11-08  Bruno Haible  <bruno@clisp.org>
29285         fstatat: Remove unused dependency.
29286         * modules/fstatat (Depends-on): Remove fstat.
29288 2011-11-08  Simon Josefsson  <simon@josefsson.org>
29290         GNUmakefile: behave when Makefile is missing.
29291         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
29293 2011-11-08  Bruno Haible  <bruno@clisp.org>
29295         openat: Conditionalize dependencies.
29296         * lib/openat.c: Reduce the scope of some #includes.
29297         * modules/openat (Depends-on): Add conditions.
29299 2011-11-07  Jim Meyering  <meyering@redhat.com>
29301         maint.mk: extract GPG key ID without using a temporary file
29302         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
29303         without using a temporary file.  Based on a suggestion from Werner Koch
29304         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
29306 2011-11-07  Eric Blake  <eblake@redhat.com>
29308         grantpt: fix typo
29309         * lib/stdlib.in.h (grantpt): Check correct function.
29311         maint.mk: silence new syntax check
29312         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
29314 2011-11-06  Bruno Haible  <bruno@clisp.org>
29316         Doc about floating-point and math API.
29317         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
29318         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
29320 2011-11-06  Bruno Haible  <bruno@clisp.org>
29322         stdalign tests: Skip the test when compiled by Sun C.
29323         * tests/test-stdalign.c (main): Skip the test on Sun C.
29325 2011-11-06  Bruno Haible  <bruno@clisp.org>
29327         ansi-c++-opt: Complete the 2011-06-05 change.
29328         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
29329         does not support namespaces, set the variable to "no", not to ":".
29331 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
29333         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
29335 2011-11-06  Bruno Haible  <bruno@clisp.org>
29337         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
29338         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
29339         (minus_zerol) [HP-UX]: New macro.
29340         (unary_minus) [HP-UX]: New function.
29341         (copysignl) [HP-UX]: Use unary_minus function.
29343 2011-11-06  Bruno Haible  <bruno@clisp.org>
29345         ldexp, ldexpf, ldexpl: Enhance tests.
29346         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
29347         and tests/test-ldexpl.c.
29348         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
29349         LDEXP, MIN_EXP, MAX_EXP): New macros.
29350         Include test-ldexp.h.
29351         (main): Just call test_function.
29352         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
29353         infinity.h, nan.h.
29354         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29355         MAX_EXP): New macros.
29356         Include test-ldexp.h.
29357         (x, y): Remove variables.
29358         (main): Just call test_function.
29359         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
29360         infinity.h, nan.h.
29361         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29362         MAX_EXP): New macros.
29363         Include test-ldexp.h.
29364         (x, y): Remove variables.
29365         (main): Just call test_function.
29366         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
29367         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
29368         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29369         (Depends-on): Add isnand-nolibm, signbit, float.
29370         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
29371         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29372         (Depends-on): Add isnanf-nolibm, signbit, float.
29374 2011-11-06  Bruno Haible  <bruno@clisp.org>
29376         math tests: Cosmetics.
29377         * tests/test-math-c++.cc: Reorder declarations.
29379 2011-11-05  Bruno Haible  <bruno@clisp.org>
29381         fma*: Simplify test.
29382         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
29383         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
29385         Tests for module 'fmal'.
29386         * modules/fmal-tests: New file.
29387         * tests/test-fmal1.c: New file.
29388         * tests/test-fmal2.c: New file.
29390         New module 'fmal'.
29391         * lib/math.in.h (fmal): New declaration.
29392         * lib/fmal.c: New file.
29393         * m4/fmal.m4: New file.
29394         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
29395         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
29396         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
29397         REPLACE_FMAL.
29398         * modules/fmal: New file.
29399         * doc/posix-functions/fmal.texi: Mention the new module and the various
29400         bugs.
29402         Tests for module 'fmaf'.
29403         * modules/fmaf-tests: New file.
29404         * tests/test-fmaf1.c: New file.
29405         * tests/test-fmaf2.c: New file.
29407         New module 'fmaf'.
29408         * lib/math.in.h (fmaf): New declaration.
29409         * lib/fmaf.c: New file.
29410         * m4/fmaf.m4: New file.
29411         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
29412         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
29413         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
29414         REPLACE_FMAF.
29415         * modules/fmaf: New file.
29416         * doc/posix-functions/fmaf.texi: Mention the new module and the various
29417         bugs.
29419         Tests for module 'fma'.
29420         * modules/fma-tests: New file.
29421         * tests/test-fma1.c: New file.
29422         * tests/test-fma1.h: New file.
29423         * tests/test-fma2.c: New file.
29424         * tests/test-fma2.h: New file.
29426         New module 'fma'.
29427         * lib/math.in.h (fma): New declaration.
29428         * lib/fma.c: New file.
29429         * m4/fma.m4: New file.
29430         * m4/fegetround.m4: New file.
29431         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
29432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
29433         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
29434         REPLACE_FMA.
29435         * modules/fma: New file.
29436         * doc/posix-functions/fma.texi: Mention the new module and the various
29437         bugs.
29439         Extend gl_MATHFUNC.
29440         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
29441         Support 'void' as argument type.
29442         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
29444 2011-11-05  Jim Meyering  <meyering@redhat.com>
29446         maint.mk: also prohibit inclusion of dirent.h without use
29447         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
29449 2011-11-05  Bruno Haible  <bruno@clisp.org>
29451         ldexpl tests: Avoid test failure on MSVC 9.
29452         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
29453         value. Needed in order to enforce the conversion from a value greater
29454         than LDBL_MAX to Infinity.
29456 2011-11-05  Bruno Haible  <bruno@clisp.org>
29458         New modules 'at-internal', 'openat-h', split off from module 'openat'.
29459         * modules/at-internal: New file, extracted from modules/openat.
29460         * modules/openat-h: New file.
29461         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
29462         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
29463         * modules/openat (Description): Add reference to POSIX function.
29464         (Files): Remove lib/openat.h, lib/openat-proc.c.
29465         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
29466         intprops, unistd.
29467         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
29468         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
29469         gl_FCNTL_MODULE_INDICATOR.
29470         (Include): Remove unistd.h, openat.h.
29471         * modules/areadlinkat (Files): Add lib/at-func.c.
29472         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29473         openat-die, openat-h, save-cwd.
29474         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
29475         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29476         openat-die, openat-h, save-cwd, unistd.
29477         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
29478         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29479         openat-h, save-cwd. Remove fcntl-h, openat.
29480         * modules/fchmodat (Files): Remove lib/openat.h.
29481         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29482         openat, stdbool, unistd.
29483         * modules/fchownat (Files): Remove lib/openat.h.
29484         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29485         openat, stdbool, sys_stat.
29486         * modules/fdopendir (Files): Remove lib/openat-priv.h,
29487         lib/openat-proc.c.
29488         (Depends-on): Add at-internal.
29489         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
29490         * modules/fstatat (Files): Remove lib/openat.h.
29491         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
29492         stdbool, unistd.
29493         * modules/fts (Depends-on): Add openat-h.
29494         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
29495         openat.
29496         * modules/mkdirat (Files): Remove lib/openat.h.
29497         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29498         openat, stdbool, sys_stat.
29499         * modules/mkfifoat (Files): Add lib/at-func.c.
29500         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29501         openat-h, save-cwd. Remove fcntl-h, openat.
29502         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
29503         * modules/readlinkat (Files): Add lib/at-func.c.
29504         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29505         openat-h, save-cwd. Remove fcntl-h, openat.
29506         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
29507         openat.
29508         * modules/selinux-at (Files): Add lib/at-func.c.
29509         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29510         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
29511         * modules/symlinkat (Files): Add lib/at-func.c.
29512         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29513         openat-h, save-cwd. Remove fcntl-h, openat.
29514         * modules/unlinkat (Files): Remove lib/openat.h.
29515         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
29516         stdbool.
29517         * modules/utimensat (Files): Add lib/at-func.c.
29518         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
29519         openat-die, openat-h, save-cwd.
29520         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
29521         * modules/fdutimensat-tests (Depends-on): Add openat.
29522         * modules/fstatat-tests (Depends-on): Add openat-h.
29523         * modules/readlinkat-tests (Depends-on): Add openat.
29524         * modules/symlinkat-tests (Depends-on): Add openat.
29526 2011-11-05  Bruno Haible  <bruno@clisp.org>
29528         openat: Include <stdbool.h>.
29529         * lib/openat.c: Include <stdbool.h>.
29531 2011-11-04  Bruno Haible  <bruno@clisp.org>
29533         fchownat, renameat, unlinkat: Fix dependencies.
29534         * modules/fchownat (Depends-on): Add fstatat.
29535         * modules/renameat (Depends-on): Likewise.
29536         * modules/unlinkat (Depends-on): Likewise.
29538 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
29540         openat: remove direct dependency on dirent
29541         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
29542         and hasn't been needed ever since fdopendir was split into its own
29543         module on 2009-08-31.
29544         * modules/openat (Depends-on): Remove dirent.
29546 2011-11-04  Bruno Haible  <bruno@clisp.org>
29548         renameat: Optimize code size.
29549         * modules/renameat (configure.ac): Don't compile at-func2.c if
29550         REPLACE_RENAMEAT is 1.
29552 2011-11-04  Bruno Haible  <bruno@clisp.org>
29554         openat tests: Fix file list.
29555         * modules/openat-tests (Files): Add tests/test-open.h.
29557 2011-11-04  Bruno Haible  <bruno@clisp.org>
29559         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
29560         * modules/fchmodat (Depends-on): Add openat-die.
29561         * modules/fchownat (Depends-on): Likewise.
29562         * modules/linkat (Depends-on): Likewise.
29563         * modules/renameat (Depends-on): Likewise.
29564         * modules/openat (Depends-on): Add dirent.
29566 2011-11-04  Jim Meyering  <meyering@redhat.com>
29568         at-func*.c: fix comments
29569         * lib/at-func2.c: Correct/improve first-line comment.
29570         * lib/at-func.c: Correct grammar in first-line comment.
29572 2011-11-04  Bruno Haible  <bruno@clisp.org>
29574         New module 'mkdirat', split off from module 'openat'.
29575         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
29576         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
29577         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
29578         * modules/mkdirat: New file, extracted from modules/openat.
29579         * modules/openat (Files): Remove lib/mkdirat.c.
29580         (Depends-on): Remove mkdir.
29581         (configure.ac): Remove AC_LIBOBJ of mkdirat.
29582         (Include): Remove <sys/stat.h>.
29583         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
29584         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
29585         tests/test-mkdir.h.
29586         (Depends-on): Remove ignore-value.
29587         (Makefile.am): Remove rules for test-mkdirat.
29588         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
29589         of module 'openat'.
29590         * NEWS: Mention the change.
29592 2011-11-04  Bruno Haible  <bruno@clisp.org>
29594         closedir: Avoid warning on mingw.
29595         * lib/closedir.c: Include <unistd.h>.
29597 2011-11-04  Bruno Haible  <bruno@clisp.org>
29599         New module 'fstatat', split off from module 'openat'.
29600         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
29601         defined.
29602         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
29603         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
29604         gl_FUNC_FSTATAT.
29605         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
29606         * modules/fstatat: New file, extracted from modules/openat.
29607         * modules/openat (Files): Remove lib/fstatat.c.
29608         (Depends-on): Remove lstat.
29609         (configure.ac): Remove AC_LIBOBJ of fstatat.
29610         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
29611         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
29612         tests/test-lstat.h, tests/test-stat.h.
29613         (Depends-on): Remove getcwd-lgpl.
29614         (Makefile.am): Remove rules for test-fstatat.
29615         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
29616         of module 'openat'.
29617         * NEWS: Mention the change.
29618         * modules/getcwd (Depends-on): Add fstatat.
29619         * modules/linkat (Depends-on): Likewise.
29620         * modules/mkfifoat-tests (Depends-on): Likewise.
29621         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
29623 2011-11-03  Bruno Haible  <bruno@clisp.org>
29625         New module 'unlinkat', split off from module 'openat'.
29626         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
29627         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
29628         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
29629         * modules/unlinkat: New file, extracted from modules/openat. Correct
29630         the dependency conditions.
29631         * modules/openat (Files): Remove lib/unlinkat.c.
29632         (Depends-on): Remove rmdir, unlink.
29633         (configure.ac): Remove AC_LIBOBJ of unlinkat.
29634         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
29635         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
29636         tests/test-rmdir.h, tests/test-unlink.h.
29637         (Depends-on): Remove unlinkdir.
29638         (Makefile.am): Remove rules for test-unlinkat.
29639         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
29640         of module 'openat'.
29641         * NEWS: Mention the change.
29642         * modules/linkat-tests (Depends-on): Add unlinkat.
29643         * modules/mkfifoat-tests (Depends-on): Likewise.
29644         * modules/readlinkat-tests (Depends-on): Likewise.
29646 2011-11-02  Bruno Haible  <bruno@clisp.org>
29648         New module 'fchmodat', split off from module 'openat'.
29649         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
29650         defined.
29651         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
29652         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
29653         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
29654         * modules/fchmodat: New file, extracted from modules/openat.
29655         * modules/openat (Files): Remove lib/fchmodat.c.
29656         (configure.ac): Remove AC_LIBOBJ of fchmodat.
29657         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
29658         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
29659         (Makefile.am): Remove rules for test-fchmodat.
29660         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
29661         of module 'openat'.
29662         * NEWS: Mention the change.
29664 2011-11-02  Jim Meyering  <meyering@redhat.com>
29666         putenv: indent #definition of "environ" to placate cppi
29667         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
29669         gitlog-to-changelog: provide a ChangeLog-repair mechanism
29670         Git logs are often treated as immutable, because editing them
29671         changes the SHA1 checksums of all descendants.  Thus, errors in
29672         git logs tend to stay there forever.  However, when we generate
29673         a ChangeLog file -- typically for distribution -- from that git log,
29674         we can actually make corrections in the generated file.  The key
29675         lies in recording in machine-readable/applicable form the desired
29676         corrections.  See --help for description and an example.
29677         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
29678         (usage): Describe it; alphabetize option descriptions.
29679         (main): Honor the new option, carefully.
29681 2011-11-01  Jim Meyering  <meyering@redhat.com>
29683         gitlog-to-changelog: avoid an infloop
29684         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
29685         that ends up being empty.
29687 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29689         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
29690         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
29691         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
29692         contains (possibly-quoted) backslashes.  This should avoid
29693         all-too-common shell bugs if COMPLICATED contains backslashes in
29694         the "wrong" places.  Reported by David Evans in
29695         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
29696         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
29697         because we want ASCII ranges.  Is there some reason we don't use
29698         the C locale everywhere in this script?
29699         (func_module, top level): Avoid unwanted pathname expansion when
29700         $repo_url_prefix or $repo_url_suffix_repl contain shell
29701         metacharacters like '?' and '*'.
29703 2011-11-01  Bruno Haible  <bruno@clisp.org>
29705         fchownat: Improve description.
29706         * modules/fchownat (Description): Add link to function.
29708 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29710         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
29711         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
29712         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
29713         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
29715 2011-11-01  Bruno Haible  <bruno@clisp.org>
29717         alignof: Avoid collision with stdalign module.
29718         * lib/alignof.h (alignof): Remove macro.
29719         * NEWS: Mention the change.
29720         Reported by Paul Eggert.
29722 2011-11-01  Bruno Haible  <bruno@clisp.org>
29724         New module 'fchownat', split off from module 'openat'.
29725         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
29726         defined.
29727         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
29728         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
29729         invoke gl_FUNC_FCHOWNAT.
29730         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
29731         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
29732         * modules/fchownat: New file, extracted from modules/openat.
29733         * modules/openat (Files): Remove lib/fchownat.c.
29734         (Depends-on): Remove lchown.
29735         (configure.ac): Remove AC_LIBOBJ of fchownat.
29736         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
29737         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
29738         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
29739         (Depends-on): Remove mgetgroups, usleep, stat-time.
29740         (configure.ac): Remove test for getegid.
29741         (Makefile.am): Remove rules for test-fchownat.
29742         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
29743         of module 'openat'.
29744         * NEWS: Mention the change.
29746 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
29748         stdalign: port better to MSVC and to Sun C 5.11
29749         This fixes some of the problems reported by Bruno Haible in
29750         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
29751         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
29752         shortcomings of MSVC and of Sun C 5.11.
29753         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
29754         around __declspec arg.
29755         * modules/stdalign-tests (Files): Add tests/macros.h.
29756         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
29757         Include macros.h, for ASSERT.
29758         (DECLARE_ALIGNED): Remove.
29759         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
29760         to catch bug), and to 1 if not (simplifies the rest of the code).
29761         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
29762         (CHECK_AUTO): Remove.
29763         (CHECK_ALIGNED): Check only the alignment of the static vars,
29764         since auto var alignment isn't supported by Sun C 5.11.
29765         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
29766         ASSERT failures are easier to diagnose.
29768 2011-10-31  Bruno Haible  <bruno@clisp.org>
29770         doc about some IRIX 5.3 problems.
29771         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
29772         on IRIX 5.3.
29773         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
29774         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
29775         5.3.
29776         * doc/posix-functions/grantpt.texi: Likewise.
29777         * doc/posix-functions/unlockpt.texi: Likewise.
29778         * doc/posix-functions/lgamma.texi: Likewise.
29779         * doc/posix-functions/nextafter.texi: Likewise.
29780         * doc/posix-functions/remainder.texi: Likewise.
29781         * doc/posix-functions/select.texi: Mention misplaced declaration on
29782         IRIX 5.3.
29783         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29785 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
29787         gitlog-to-changelog: fix git-log invocation.
29788         git-log mishandles date strings before 1970-01-01 UTC, and there is
29789         no use to specify --since=1970-01-01 by default anyway.
29790         * build-aux/gitlog-to-changelog: By default, when no --since option
29791         was given, do not specify explicit --since option to git-log.
29793 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
29795         gitlog-to-changelog: new option --append-dot.
29796         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
29797         first non-blank line of each commit message terminated with a dot.
29799 2011-10-30  Bruno Haible  <bruno@clisp.org>
29801         ffsl, ffsll: Avoid compilation error due to 'restrict'.
29802         * lib/ffsl.h: Include <config.h>.
29803         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
29805 2011-10-30  Jim Meyering  <meyering@redhat.com>
29807         GNUmakefile: reenable "make syntax-check" for most projects
29808         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
29809         build-aux variable", "syntax-check" would do nothing but succeed with
29810         the "No version control files detected..." diagnostic (unless you
29811         happened to override _build-aux via cfg.mk).
29812         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
29813         to precede inclusion of maint.mk.  Otherwise, these variables would
29814         be used undefined in any project that does not override the default.
29816 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
29818         gitlog-to-changelog: treat a message with only blank lines as empty.
29819         * build-aux/gitlog-to-changelog: Move the code that removes leading and
29820         trailing blank lines before the code that issues a warning about an
29821         empty commit message.
29823 2011-10-30  Jim Meyering  <meyering@redhat.com>
29825         test-parse-datetime.c: avoid new DST-related false positive test failure
29826         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
29827         based on the time/date we'll convert, not the current time.
29828         Otherwise, the moment we cross a DST boundary like today's in
29829         Europe, (CEST to CET), that offset ends up being one hour off.
29831 2011-10-27  Bruno Haible  <bruno@clisp.org>
29833         fstat: Tweak documentation.
29834         * modules/fstat (Description): More precise description.
29836 2011-10-27  Bruno Haible  <bruno@clisp.org>
29838         Update documentation regarding 'largefile' module.
29839         * doc/posix-functions/fstat.texi: Tweak wording.
29840         * doc/posix-functions/opendir.texi: Mention that the module fixes the
29841         problems with huge directories and/or small ino_t types.
29842         * doc/posix-functions/readdir.texi: Likewise.
29843         * doc/posix-functions/rewinddir.texi: Likewise.
29845 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
29847         maint.mk: don't maintain a second build-aux variable.
29848         * maint.mk (build_aux): Removed.  The maintainer-makefile module
29849         depends on GNUmakefile, which already maintains a cfg.mk
29850         overridable $(_build-aux) for projects with a non-standard
29851         build-aux directory location, although without the $(srcdir)
29852         prefix.  Use that variable consistently instead of introducing a
29853         second one.  Adjust all call sites.
29855 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
29857         Add stdalign module and use it in other modules.
29858         This is based on a previous proposal by Bruno Haible
29859         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
29861         stdalign: new module
29862         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
29863         * modules/stdalign: New files.
29864         * MODULES.html.sh (c1x_core_properties): Add stdalign.
29865         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
29867         stdalign-tests: new module
29868         * modules/stdalign-tests, tests/test-stdalign.c: New files.
29870         argp: use stdalign
29871         * lib/argp-parse.c: Include <stdalign.h>.
29872         (alignof): Remove.
29873         * modules/argp (Depends-on): Add stdalign.
29875         crypto libraries: use stdalign
29876         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
29877         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
29878         Do not include <stdlib.h> twice, in md4.c.
29879         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
29880         because we are accessing a pointer's bit-pattern, not a size.
29881         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
29882         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
29883         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
29884         * modules/crypto/sha512: Likewise.
29886         sys_socket: use stdalign, not alignof
29887         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
29888         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
29890 2011-10-27  Bruno Haible  <bruno@clisp.org>
29892         raise test: Avoid a test failure on Linux/MIPS.
29893         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
29894         because 99 is a valid signal on Linux/MIPS.
29896 2011-10-27  Bruno Haible  <bruno@clisp.org>
29898         nonblocking tests: Fix test failure on Linux/MIPS.
29899         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
29900         Set to 270000.
29902 2011-10-27  Bruno Haible  <bruno@clisp.org>
29904         utimensat: Work around problem on Linux/hppa.
29905         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
29906         values.
29907         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
29909 2011-10-25  Jim Meyering  <meyering@redhat.com>
29911         maint.mk: fix a bug in sc_prohibit_stddef_without_use
29912         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
29913         after symbols like NULL, size_t, etc.
29914         Reported by Alfred M. Szmidt.
29916         maint.mk: exempt ENODATA from a syntax-check rule
29917         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
29918         from the sc_prohibit_always-defined_macros syntax-check rule.
29919         Add a comment.  See this for more details:
29920         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
29922 2011-10-23  Jim Meyering  <meyering@redhat.com>
29924         fts: close parent dir FD before returning from post-traversal fts_read
29925         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
29926         unlink A, even though an FD open on A remained.  This is suboptimal
29927         (holding a file descriptor open longer than needed), but otherwise not
29928         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
29929         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
29930         that represents a real problem: it causes the removal of A to fail
29931         with e.g., "rm: cannot remove `A': Device or resource busy"
29933         fts visits each directory twice and keeps a cache (fts_fd_ring) of
29934         directory file descriptors.  After completing the final, FTS_DP,
29935         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
29936         cache, but then proceeded to add a new FD to it via the subsequent
29937         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
29938         final file descriptor would be closed only via fts_close's call to
29939         fd_ring_clear.  Now, it is usually closed earlier, via the final
29940         FTS_DP-returning fts_read call.
29941         * lib/fts.c (restore_initial_cwd): New function, converted from
29942         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
29943         Update callers.
29944         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
29945         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
29947 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
29948             Bruno Haible  <bruno@clisp.org>
29949             Jim Meyering  <jim@meyering.net>
29951         readme-release: improve safety of release prep instructions.
29952         * README-release: Don't git pull all branches when only master
29953         is needed for the release process.
29954         Run make maintainer-clean before changing trees and merging.
29955         Don't try to run ./configure right after git pull in case files
29956         that influence the bootstrap process have changed, move the
29957         ./configure step to after running ./bootstrap.
29958         Don't bootstrap "one last time"... it's the first time!
29960 2011-10-22  Bruno Haible  <bruno@clisp.org>
29962         errno, strerror-override: Support for MSVC 10.
29963         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
29964         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
29965         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
29966         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
29967         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
29968         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
29969         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
29970         Assign values compatible with MSVC 10.
29971         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
29972         New macros.
29973         (GNULIB_defined_EWINSOCK): New macro.
29974         * lib/strerror-override.c (strerror_override): Update accordingly.
29975         * lib/strerror-override.h: Likewise.
29976         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
29977         longer equal to the corresponding errno value.
29978         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
29980 2011-10-22  Bruno Haible  <bruno@clisp.org>
29982         perror: Recognize when test program crashes.
29983         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
29984         strerror, set gl_cv_func_perror_works to no.
29985         Reported by Daniel Richard G. <skunk@iskunk.org>.
29987         perror: Fix indentation.
29988         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
29990 2011-10-22  Bruno Haible  <bruno@clisp.org>
29992         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
29993         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
29994         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
29995         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
29996         functions, not as a macro.
29997         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
29998         macros.
29999         (isfinite, isinf, isnan, signbit): Check overloaded functions and
30000         absence of macro.
30001         Suggested by Eric Blake.
30002         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30004 2011-10-21  Bruno Haible  <bruno@clisp.org>
30006         relocatable-prog-wrapper: Don't leave object files behind.
30007         * build-aux/install-reloc: Re-synchronize list of .o files to be
30008         removed with list of compilation units.
30010 2011-10-20  Bruno Haible  <bruno@clisp.org>
30012         openpty, posix_openpt: Remove code duplication.
30013         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
30014         * lib/openpty.c: Include <stdlib.h>.
30015         (openpty): Use posix_openpt on all platforms except IRIX.
30016         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
30018 2011-10-20  Bruno Haible  <bruno@clisp.org>
30020         unlockpt: Detect invalid argument.
30021         * lib/unlockpt.c: Include <fcntl.h>.
30022         (unlockpt): Check whether fd is valid, using fcntl().
30023         * modules/unlockpt (Depends-on): Add fcntl-h.
30025 2011-10-20  Bruno Haible  <bruno@clisp.org>
30027         openpty: Avoid compilation error on AIX 6.1.
30028         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
30030 2011-10-20  Bruno Haible  <bruno@clisp.org>
30032         posix_openpt: Support for OpenBSD.
30033         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
30034         (posix_openpt) [OpenBSD]: New code.
30035         * lib/grantpt.c: Include <fcntl.h>.
30036         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
30037         * modules/grantpt (Depends-on): Add fcntl-h.
30039 2011-10-20  Bruno Haible  <bruno@clisp.org>
30041         posix_openpt test: Coding style.
30042         * tests/test-posix_openpt.c: Use GNU coding style.
30044 2011-10-20  Bruno Haible  <bruno@clisp.org>
30046         grantpt: Support --avoid=pt_chown.
30047         * modules/grantpt (Files): Add lib/pty-private.h.
30049 2011-10-20  Bruno Haible  <bruno@clisp.org>
30051         posix_openpt: Fix autoconf macro.
30052         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
30053         unneeded check for _getpty.
30055 2011-10-20  Bruno Haible  <bruno@clisp.org>
30057         openpty: Update comments.
30058         * lib/openpty.c: Add comments about Minix.
30060 2011-10-19  Eric Blake  <eblake@redhat.com>
30062         openpty: relax license
30063         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
30065         pt_chown: use configmake to simplify build
30066         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
30068         ptsname and others: relax license
30069         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
30070         * modules/unlockpt (License): Likewise.
30071         * modules/pt_chown (License): Likewise.
30072         * modules/ptsname (License): Likewise.
30073         * modules/ttyname_r (License): Likewise.
30075 2011-10-19  Jim Meyering  <meyering@redhat.com>
30077         posix_openpt: remove spurious #endif
30078         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
30080 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
30082         maint.mk: Respect $(build_aux) in web-manual rule.
30083         * top/maint.mk (web-manual): Find gen-announce script in user's
30084         $(build_aux) directory instead of hard-coding 'build-aux'.
30086 2011-10-19  Bruno Haible  <bruno@clisp.org>
30088         posix_openpt: Fix compilation error.
30089         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
30090         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
30091         Mention the openpty module as an alternative.
30093 2011-10-19  Bruno Haible  <bruno@clisp.org>
30095         Support for old NeXTstep 3.3 frexp().
30096         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
30097         execution time of the test to 5 seconds.
30098         Reported by Daniel Richard G. <skunk@iskunk.org>.
30100 2011-10-19  Bruno Haible  <bruno@clisp.org>
30102         Support for old NeXTstep 3.3 sed.
30103         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
30104         part, use /.../, not \|...|. Escape periods in the header file name.
30105         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
30106         Reported by Daniel Richard G. <skunk@iskunk.org>.
30108 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30110         Support for old NeXTstep 3.3 gcc.
30111         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
30112         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
30113         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
30114         * lib/spawn.in.h (_Restrict_arr_): Likewise.
30115         * lib/regex.h (_Restrict_arr_): Likewise.
30116         * lib/regex_internal.h (re_token_t): Likewise.
30117         * lib/regexec.c (check_node_accept_bytes): Likewise.
30118         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
30120 2011-10-18  Eric Blake  <eblake@redhat.com>
30122         posix_openpt: new module
30123         * modules/posix_openpt: New module.
30124         * m4/posix_openpt.m4: New file.
30125         * lib/posix_openpt.c: Likewise.
30126         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
30127         (gl_STDLIB_H_DEFAULTS): Set defaults.
30128         * modules/stdlib (Makefile.am): Substitute macros.
30129         * lib/stdlib.in.h (posix_openpt): Declare.
30130         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
30131         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
30132         * modules/posix_openpt-tests: New test module.
30133         * tests/test-posix_openpt.c: New test.
30135 2011-10-15  Bruno Haible  <bruno@clisp.org>
30137         xstrtoll: Fix compilation failure.
30138         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
30139         from lib/strtol.c.
30140         * doc/posix-headers/limits.texi: Mention missing numerical limits on
30141         some platforms.
30142         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30144 2011-10-15  Bruno Haible  <bruno@clisp.org>
30146         vasnprintf: Optimize bit search operation.
30147         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
30148         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
30149         gl_DOUBLE_EXPONENT_LOCATION.
30150         * modules/vasnprintf (Files): Add m4/exponentd.m4.
30151         * modules/unistdio/u8-vasnprintf (Files): Likewise.
30152         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
30153         * modules/unistdio/u16-vasnprintf (Files): Likewise.
30154         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
30155         * modules/unistdio/u32-vasnprintf (Files): Likewise.
30156         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
30157         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
30158         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
30160 2011-10-15  Bruno Haible  <bruno@clisp.org>
30162         vasnprintf: Fix comments.
30163         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
30165 2011-10-14  Bruno Haible  <bruno@clisp.org>
30167         Tests for module 'integer_length_ll'.
30168         * modules/integer_length_ll-tests: New file.
30169         * tests/test-integer_length_ll.c: New file.
30171         New module 'integer_length_ll'.
30172         * lib/integer_length_ll.c: New file.
30173         * modules/integer_length_ll: New file.
30175 2011-10-14  Bruno Haible  <bruno@clisp.org>
30177         Tests for module 'integer_length_l'.
30178         * modules/integer_length_l-tests: New file.
30179         * tests/test-integer_length_l.c: New file.
30181         New module 'integer_length_l'.
30182         * lib/integer_length_l.c: New file.
30183         * modules/integer_length_l: New file.
30185 2011-10-14  Bruno Haible  <bruno@clisp.org>
30187         Tests for module 'integer_length'.
30188         * modules/integer_length-tests: New file.
30189         * tests/test-integer_length.c: New file.
30191         New module 'integer_length'.
30192         * lib/integer_length.h: New file.
30193         * lib/integer_length.c: New file.
30194         * modules/integer_length: New file.
30196 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30198         popen: Fix dependency conditions.
30199         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
30201 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30203         perror: Fix autoconf test.
30204         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
30205         <stdlib.h> and <string.h>.
30207 2011-10-14  Bruno Haible  <bruno@clisp.org>
30209         ffsl: Optimize on 64-bit platforms.
30210         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
30211         unrolling.
30213 2011-10-13  Bruno Haible  <bruno@clisp.org>
30215         ffsl: Optimize on 32-bit platforms.
30216         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
30217         use ffs() without a loop.
30219         ffsl, ffsll: Optimize for GCC.
30220         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
30221         * lib/ffsl.c (GCC_BUILTIN): New macro.
30222         * lib/ffsll.c (GCC_BUILTIN): Likewise.
30224 2011-10-13  Bruno Haible  <bruno@clisp.org>
30226         ffs, bcopy, memset: Support symbol renaming via config.h.
30227         * lib/ffs.c: Include <config.h>.
30228         * lib/bcopy.c: Likewise.
30229         * lib/memset.c: Likewise.
30231 2011-10-10  Bruno Haible  <bruno@clisp.org>
30233         atanl: Simplify for platforms where 'long double' == 'double'.
30234         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30235         alternative implementation.
30236         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30237         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30238         * modules/atanl (Depends-on): Add atan. Update conditions.
30240 2011-10-10  Bruno Haible  <bruno@clisp.org>
30242         acosl: Simplify for platforms where 'long double' == 'double'.
30243         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30244         alternative implementation.
30245         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30246         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30247         * modules/acosl (Depends-on): Add acos. Update conditions.
30249 2011-10-10  Bruno Haible  <bruno@clisp.org>
30251         asinl: Simplify for platforms where 'long double' == 'double'.
30252         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30253         alternative implementation.
30254         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30255         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30256         * modules/asinl (Depends-on): Add asin. Update conditions.
30258 2011-10-10  Bruno Haible  <bruno@clisp.org>
30260         tanl: Simplify for platforms where 'long double' == 'double'.
30261         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30262         implementation.
30263         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30264         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30265         * modules/tanl (Depends-on): Add tan. Update conditions.
30266         (configure.ac): Don't compile trigl.c if
30267         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30269 2011-10-10  Bruno Haible  <bruno@clisp.org>
30271         cosl: Simplify for platforms where 'long double' == 'double'.
30272         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30273         implementation.
30274         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30275         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30276         * modules/cosl (Depends-on): Add cos. Update conditions.
30277         (configure.ac): Don't compile sincosl.c and trigl.c if
30278         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30280 2011-10-10  Bruno Haible  <bruno@clisp.org>
30282         sinl: Simplify for platforms where 'long double' == 'double'.
30283         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30284         implementation.
30285         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30286         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30287         * modules/sinl (Depends-on): Add sin. Update conditions.
30288         (configure.ac): Don't compile sincosl.c and trigl.c if
30289         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30291 2011-10-10  Bruno Haible  <bruno@clisp.org>
30293         logl: Simplify for platforms where 'long double' == 'double'.
30294         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30295         implementation.
30296         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30297         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30298         * modules/logl (Depends-on): Add log. Update conditions.
30300 2011-10-10  Bruno Haible  <bruno@clisp.org>
30302         expl: Simplify for platforms where 'long double' == 'double'.
30303         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30304         implementation.
30305         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30306         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30307         * modules/expl (Depends-on): Add exp. Update conditions.
30309 2011-10-10  Bruno Haible  <bruno@clisp.org>
30311         sqrtl: Simplify for platforms where 'long double' == 'double'.
30312         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30313         alternative implementation.
30314         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30315         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30316         * modules/sqrtl (Depends-on): Update conditions.
30318 2011-10-10  Bruno Haible  <bruno@clisp.org>
30320         ldexpl: Simplify for platforms where 'long double' == 'double'.
30321         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30322         alternative implementation.
30323         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30324         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30325         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
30327 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
30329         ffsll: set correct witness
30330         * modules/ffsll (configure.ac): Fix typo.
30332 2011-10-10  Bruno Haible  <bruno@clisp.org>
30334         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
30335         * lib/printf-frexpl.c: Include <config.h>.
30336         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30337         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
30338         second time.
30339         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
30340         gl_LONG_DOUBLE_VS_DOUBLE.
30341         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
30342         conditions.
30344 2011-10-10  Bruno Haible  <bruno@clisp.org>
30346         frexpl: Simplify for platforms where 'long double' == 'double'.
30347         * lib/frexpl.c: Include <config.h>.
30348         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30349         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30350         time.
30351         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30352         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30353         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
30354         * modules/frexpl (Depends-on): Add frexp. Update conditions.
30355         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
30356         conditions.
30358 2011-10-10  Jim Meyering  <meyering@redhat.com>
30360         test-renameat: don't leave behind a temporary file
30361         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
30362           ERROR: files left in build directory after distclean:
30363           ./gltests/test-renameat.too
30364           make[1]: *** [distcleancheck] Error 1
30365         Reported by Tom G. Christensen.
30367 2011-10-09  Bruno Haible  <bruno@clisp.org>
30369         rint: Determine RINT_LIBM correctly on AIX 7.
30370         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
30371         directly, not only through a function pointer. Also accept an optional
30372         4th argument with extra code.
30373         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
30374         rintf() call by gcc when optimizing.
30376         mathfunc.m4: Refactor.
30377         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
30378         m4 variable.
30380 2011-10-09  Bruno Haible  <bruno@clisp.org>
30382         rintl: Simplify for platforms where 'long double' == 'double'.
30383         * lib/rintl.c: Include <config.h>.
30384         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30385         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30386         time.
30387         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30388         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30389         * modules/rintl (Depends-on): Add rint. Update conditions.
30391 2011-10-09  Bruno Haible  <bruno@clisp.org>
30393         roundl: Simplify for platforms where 'long double' == 'double'.
30394         * lib/roundl.c: Include <config.h>.
30395         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30396         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30397         time.
30398         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30399         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30400         * modules/roundl (Depends-on): Add round. Update conditions.
30402 2011-10-09  Bruno Haible  <bruno@clisp.org>
30404         truncl: Simplify for platforms where 'long double' == 'double'.
30405         * lib/truncl.c: Include <config.h>.
30406         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30407         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30408         time.
30409         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30410         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30411         * modules/truncl (Depends-on): Add trunc. Update conditions.
30413 2011-10-09  Bruno Haible  <bruno@clisp.org>
30415         ceill: Simplify for platforms where 'long double' == 'double'.
30416         * lib/ceill.c: Include <config.h>.
30417         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30418         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30419         time.
30420         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30421         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30422         * modules/ceill (Depends-on): Add ceil. Update conditions.
30424 2011-10-09  Bruno Haible  <bruno@clisp.org>
30426         floorl: Simplify for platforms where 'long double' == 'double'.
30427         * lib/floorl.c: Include <config.h>.
30428         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30429         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30430         time.
30431         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30432         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30433         * modules/floorl (Depends-on): Add floor. Update conditions.
30435 2011-10-09  Bruno Haible  <bruno@clisp.org>
30437         rint: Fix ordering constraints.
30438         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
30439         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
30440         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
30442 2011-10-09  Bruno Haible  <bruno@clisp.org>
30444         copysignl: Simplify for platforms where 'long double' == 'double'.
30445         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30446         alternative.
30447         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30448         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30449         * modules/copysignl (Depends-on): Add copysign. Update conditions.
30451 2011-10-09  Bruno Haible  <bruno@clisp.org>
30453         Tests for module 'rintl'.
30454         * modules/rintl-tests: New file.
30455         * tests/test-rintl.c: New file.
30457         New module 'rintl'.
30458         * lib/math.in.h (rintl): New declaration.
30459         * lib/rintl.c: New file.
30460         * m4/rintl.m4: New file.
30461         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
30462         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
30463         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
30464         * modules/rintl: New file.
30465         * tests/test-math-c++.cc: Check the declaration of rintl.
30466         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30467         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
30468         * doc/posix-functions/rintl.texi: Mention the new module.
30470 2011-10-09  Bruno Haible  <bruno@clisp.org>
30472         Tests for module 'rintf'.
30473         * modules/rintf-tests: New file.
30474         * tests/test-rintf.c: New file.
30476         New module 'rintf'.
30477         * lib/math.in.h (rintf): New declaration.
30478         * lib/rintf.c: New file.
30479         * m4/rintf.m4: New file.
30480         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
30481         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
30482         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
30483         * modules/rintf: New file.
30484         * tests/test-math-c++.cc: Check the declaration of rintf.
30485         * doc/posix-functions/rintf.texi: Mention the new module.
30487 2011-10-09  Bruno Haible  <bruno@clisp.org>
30489         rint: Support for MSVC.
30490         * lib/math.in.h (rint): New declaration.
30491         * lib/rint.c: New file.
30492         * m4/rint.m4: New file.
30493         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
30494         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
30495         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
30496         * modules/rint (Description): Fix.
30497         (Files): Add lib/rint.c, m4/rint.m4.
30498         (Depends-on): Add math.
30499         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
30500         gl_MATH_MODULE_INDICATOR.
30501         * tests/test-math-c++.cc: Check the declaration of rint.
30502         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30503         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
30504         * doc/posix-functions/rint.texi: Mention the replacement provided by
30505         the module.
30507         rint tests: More tests.
30508         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
30509         minus-zero.h, infinity.h, nan.h.
30510         (main): Skip the test if the current rounding mode is not standard. Add
30511         tests for negative numbers, minus zero, infinity, NaN.
30512         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
30513         tests/nan.h.
30514         (Depends-on): Add isnand-nolibm.
30516 2011-10-09  Bruno Haible  <bruno@clisp.org>
30518         Tests for module 'copysignl'.
30519         * modules/copysignl-tests: New file.
30520         * tests/test-copysignl.c: New file.
30522         New module 'copysignl'.
30523         * lib/math.in.h (copysignl): New declaration.
30524         * lib/copysignl.c: New file.
30525         * m4/copysignl.m4: New file.
30526         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
30527         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
30528         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
30529         HAVE_COPYSIGNL.
30530         * modules/copysignl: New file.
30531         * tests/test-math-c++.cc: Check the declaration of copysignl.
30532         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30533         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
30534         * doc/posix-functions/copysignl.texi: Mention the new module.
30536 2011-10-09  Bruno Haible  <bruno@clisp.org>
30538         Tests for module 'copysignf'.
30539         * modules/copysignf-tests: New file.
30540         * tests/test-copysignf.c: New file.
30542         New module 'copysignf'.
30543         * lib/math.in.h (copysignf): New declaration.
30544         * lib/copysignf.c: New file.
30545         * m4/copysignf.m4: New file.
30546         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
30547         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
30548         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
30549         HAVE_COPYSIGNF.
30550         * modules/copysignf: New file.
30551         * tests/test-math-c++.cc: Check the declaration of copysignf.
30552         * doc/posix-functions/copysignf.texi: Mention the new module.
30554 2011-10-09  Bruno Haible  <bruno@clisp.org>
30556         Ensure that HAVE_* variables are set to 1 before they are set to 0.
30557         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
30558         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
30559         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
30560         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
30561         gl_SIGNAL_H_DEFAULTS.
30563 2011-10-09  Bruno Haible  <bruno@clisp.org>
30565         poll: Make macro safer.
30566         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
30567         ac_cv_header_poll_h is not set.
30569 2011-10-09  Bruno Haible  <bruno@clisp.org>
30571         copysign: Provide replacement.
30572         * lib/math.in.h (copysign): New declaration.
30573         * lib/copysign.c: New file.
30574         * m4/copysign.m4: New file.
30575         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
30576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
30577         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
30578         HAVE_COPYSIGN.
30579         * modules/copysign (Description): Clarify.
30580         (Files): Add lib/copysign.c, m4/copysign.m4.
30581         (Depends-on): Add math, signbit.
30582         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
30583         gl_MATH_MODULE_INDICATOR.
30584         * tests/test-math-c++.cc: Check the declaration of copysign.
30585         * doc/posix-functions/copysign.texi: Mention the effects of the module
30586         on Minix and MSVC.
30588 2011-10-09  Bruno Haible  <bruno@clisp.org>
30590         isinf: Ensure macro on AIX 5.1.
30591         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
30592         macro.
30593         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
30595 2011-10-09  Bruno Haible  <bruno@clisp.org>
30597         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
30598         * modules/snprintf-posix-tests (configure.ac): Require
30599         gl_LONG_DOUBLE_VS_DOUBLE.
30600         * modules/sprintf-posix-tests (configure.ac): Likewise.
30601         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
30602         * modules/vasprintf-posix-tests (configure.ac): Likewise.
30603         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
30604         * modules/vsprintf-posix-tests (configure.ac): Likewise.
30605         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
30606         tests on platforms where 'long double' is the same as 'double'.
30607         * tests/test-sprintf-posix.h (test_function): Likewise.
30608         * tests/test-vasnprintf-posix.c (test_function): Likewise.
30609         * tests/test-vasprintf-posix.c (test_function): Likewise.
30611         *printf: Fix for platforms where 'long double' == 'double'.
30612         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
30613         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
30614         * modules/dprintf-posix (Files): Add m4/math_h.m4.
30615         * modules/fprintf-posix (Files): Likewise.
30616         * modules/obstack-printf-posix (Files): Likewise.
30617         * modules/snprintf-posix (Files): Likewise.
30618         * modules/sprintf-posix (Files): Likewise.
30619         * modules/vasnprintf (Files): Likewise.
30620         * modules/vasnprintf-posix (Files): Likewise.
30621         * modules/vasprintf-posix (Files): Likewise.
30622         * modules/vdprintf-posix (Files): Likewise.
30623         * modules/vfprintf-posix (Files): Likewise.
30624         * modules/vsnprintf-posix (Files): Likewise.
30625         * modules/vsprintf-posix (Files): Likewise.
30626         * modules/unistdio/u8-vasnprintf (Files): Likewise.
30627         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
30628         * modules/unistdio/u16-vasnprintf (Files): Likewise.
30629         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
30630         * modules/unistdio/u32-vasnprintf (Files): Likewise.
30631         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
30632         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
30634         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
30635         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
30636         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30637         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
30638         'long double'.
30639         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
30641         isinf: Fix for platforms where 'long double' == 'double'.
30642         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
30643         Don't blindly assume 80-bit 'long double'.
30645         isfinite: Fix for platforms where 'long double' == 'double'.
30646         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
30647         Don't blindly assume 80-bit 'long double'.
30649         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
30650         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
30651         * modules/isfinite-tests (configure.ac): Require
30652         gl_LONG_DOUBLE_VS_DOUBLE.
30653         * modules/isinf-tests (configure.ac): Likewise.
30654         * modules/isnan-tests (configure.ac): Likewise.
30655         * modules/isnanl-tests (configure.ac): Likewise.
30656         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
30657         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
30658         tests on platforms where 'long double' is the same as 'double'.
30659         * tests/test-isinf.c (test_isinfl): Likewise.
30660         * tests/test-isnan.c (test_long_double): Likewise.
30661         * tests/test-isnanl.h (main): Likewise.
30663 2011-10-08  Bruno Haible  <bruno@clisp.org>
30665         Tests for module 'tanhf'.
30666         * modules/tanhf-tests: New file.
30667         * tests/test-tanhf.c: New file.
30669         New module 'tanhf'.
30670         * lib/math.in.h (tanhf): New declaration.
30671         * lib/tanhf.c: New file.
30672         * m4/tanhf.m4: New file.
30673         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
30674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
30675         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
30676         * modules/tanhf: New file.
30677         * tests/test-math-c++.cc: Check the declaration of tanhf.
30678         * doc/posix-functions/tanhf.texi: Mention the new module.
30680         tanh: Use a .m4 file.
30681         * m4/tanh.m4: New file.
30682         * modules/tanh (Files): Add it.
30683         (configure.ac): Just invoke gl_FUNC_TANH.
30685 2011-10-08  Bruno Haible  <bruno@clisp.org>
30687         Tests for module 'coshf'.
30688         * modules/coshf-tests: New file.
30689         * tests/test-coshf.c: New file.
30691         New module 'coshf'.
30692         * lib/math.in.h (coshf): New declaration.
30693         * lib/coshf.c: New file.
30694         * m4/coshf.m4: New file.
30695         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
30696         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
30697         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
30698         * modules/coshf: New file.
30699         * tests/test-math-c++.cc: Check the declaration of coshf.
30700         * doc/posix-functions/coshf.texi: Mention the new module.
30702         cosh: Use a .m4 file.
30703         * m4/cosh.m4: New file.
30704         * modules/cosh (Files): Add it.
30705         (configure.ac): Just invoke gl_FUNC_COSH.
30707 2011-10-08  Bruno Haible  <bruno@clisp.org>
30709         Tests for module 'sinhf'.
30710         * modules/sinhf-tests: New file.
30711         * tests/test-sinhf.c: New file.
30713         New module 'sinhf'.
30714         * lib/math.in.h (sinhf): New declaration.
30715         * lib/sinhf.c: New file.
30716         * m4/sinhf.m4: New file.
30717         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
30718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
30719         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
30720         * modules/sinhf: New file.
30721         * tests/test-math-c++.cc: Check the declaration of sinhf.
30722         * doc/posix-functions/sinhf.texi: Mention the new module.
30724         sinh: Use a .m4 file.
30725         * m4/sinh.m4: New file.
30726         * modules/sinh (Files): Add it.
30727         (configure.ac): Just invoke gl_FUNC_SINH.
30729 2011-10-08  Bruno Haible  <bruno@clisp.org>
30731         Tests for module 'atan2f'.
30732         * modules/atan2f-tests: New file.
30733         * tests/test-atan2f.c: New file.
30735         New module 'atan2f'.
30736         * lib/math.in.h (atan2f): New declaration.
30737         * lib/atan2f.c: New file.
30738         * m4/atan2f.m4: New file.
30739         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
30740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
30741         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
30742         * modules/atan2f: New file.
30743         * tests/test-math-c++.cc: Check the declaration of atan2f.
30744         * doc/posix-functions/atan2f.texi: Mention the new module.
30746         atan2: Use a .m4 file.
30747         * m4/atan2.m4: New file.
30748         * modules/atan2 (Files): Add it.
30749         (configure.ac): Just invoke gl_FUNC_ATAN2.
30751 2011-10-08  Bruno Haible  <bruno@clisp.org>
30753         Tests for module 'atanf'.
30754         * modules/atanf-tests: New file.
30755         * tests/test-atanf.c: New file.
30757         New module 'atanf'.
30758         * lib/math.in.h (atanf): New declaration.
30759         * lib/atanf.c: New file.
30760         * m4/atanf.m4: New file.
30761         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
30762         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
30763         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
30764         * modules/atanf: New file.
30765         * tests/test-math-c++.cc: Check the declaration of atanf.
30766         * doc/posix-functions/atanf.texi: Mention the new module.
30768         atan: Use a .m4 file.
30769         * m4/atan.m4: New file.
30770         * modules/atan (Files): Add it.
30771         (configure.ac): Just invoke gl_FUNC_ATAN.
30773 2011-10-08  Bruno Haible  <bruno@clisp.org>
30775         Tests for module 'acosf'.
30776         * modules/acosf-tests: New file.
30777         * tests/test-acosf.c: New file.
30779         New module 'acosf'.
30780         * lib/math.in.h (acosf): New declaration.
30781         * lib/acosf.c: New file.
30782         * m4/acosf.m4: New file.
30783         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
30784         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
30785         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
30786         * modules/acosf: New file.
30787         * tests/test-math-c++.cc: Check the declaration of acosf.
30788         * doc/posix-functions/acosf.texi: Mention the new module.
30790         acos: Use a .m4 file.
30791         * m4/acos.m4: New file.
30792         * modules/acos (Files): Add it.
30793         (configure.ac): Just invoke gl_FUNC_ACOS.
30795 2011-10-08  Bruno Haible  <bruno@clisp.org>
30797         Tests for module 'asinf'.
30798         * modules/asinf-tests: New file.
30799         * tests/test-asinf.c: New file.
30801         New module 'asinf'.
30802         * lib/math.in.h (asinf): New declaration.
30803         * lib/asinf.c: New file.
30804         * m4/asinf.m4: New file.
30805         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
30806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
30807         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
30808         * modules/asinf: New file.
30809         * tests/test-math-c++.cc: Check the declaration of asinf.
30810         * doc/posix-functions/asinf.texi: Mention the new module.
30812         asin: Use a .m4 file.
30813         * m4/asin.m4: New file.
30814         * modules/asin (Files): Add it.
30815         (configure.ac): Just invoke gl_FUNC_ASIN.
30817 2011-10-08  Bruno Haible  <bruno@clisp.org>
30819         Tests for module 'tanf'.
30820         * modules/tanf-tests: New file.
30821         * tests/test-tanf.c: New file.
30823         New module 'tanf'.
30824         * lib/math.in.h (tanf): New declaration.
30825         * lib/tanf.c: New file.
30826         * m4/tanf.m4: New file.
30827         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
30828         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
30829         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
30830         * modules/tanf: New file.
30831         * tests/test-math-c++.cc: Check the declaration of tanf.
30832         * doc/posix-functions/tanf.texi: Mention the new module.
30834         tan: Use a .m4 file.
30835         * m4/tan.m4: New file.
30836         * modules/tan (Files): Add it.
30837         (configure.ac): Just invoke gl_FUNC_TAN.
30839 2011-10-08  Bruno Haible  <bruno@clisp.org>
30841         Tests for module 'cosf'.
30842         * modules/cosf-tests: New file.
30843         * tests/test-cosf.c: New file.
30845         New module 'cosf'.
30846         * lib/math.in.h (cosf): New declaration.
30847         * lib/cosf.c: New file.
30848         * m4/cosf.m4: New file.
30849         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
30850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
30851         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
30852         * modules/cosf: New file.
30853         * tests/test-math-c++.cc: Check the declaration of cosf.
30854         * doc/posix-functions/cosf.texi: Mention the new module.
30856         cos: Use a .m4 file.
30857         * m4/cos.m4: New file.
30858         * modules/cos (Files): Add it.
30859         (configure.ac): Just invoke gl_FUNC_COS.
30861 2011-10-08  Bruno Haible  <bruno@clisp.org>
30863         Tests for module 'sinf'.
30864         * modules/sinf-tests: New file.
30865         * tests/test-sinf.c: New file.
30867         New module 'sinf'.
30868         * lib/math.in.h (sinf): New declaration.
30869         * lib/sinf.c: New file.
30870         * m4/sinf.m4: New file.
30871         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
30872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
30873         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
30874         * modules/sinf: New file.
30875         * tests/test-math-c++.cc: Check the declaration of sinf.
30876         * doc/posix-functions/sinf.texi: Mention the new module.
30878         sin: Use a .m4 file.
30879         * m4/sin.m4: New file.
30880         * modules/sin (Files): Add it.
30881         (configure.ac): Just invoke gl_FUNC_SIN.
30883 2011-10-08  Bruno Haible  <bruno@clisp.org>
30885         Tests for module 'powf'.
30886         * modules/powf-tests: New file.
30887         * tests/test-powf.c: New file.
30889         New module 'powf'.
30890         * lib/math.in.h (powf): New declaration.
30891         * lib/powf.c: New file.
30892         * m4/powf.m4: New file.
30893         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
30894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
30895         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
30896         * modules/powf: New file.
30897         * tests/test-math-c++.cc: Check the declaration of powf.
30898         * doc/posix-functions/powf.texi: Mention the new module.
30900         pow: Use a .m4 file.
30901         * m4/pow.m4: New file.
30902         * modules/pow (Files): Add it.
30903         (configure.ac): Just invoke gl_FUNC_POW.
30905 2011-10-08  Bruno Haible  <bruno@clisp.org>
30907         Tests for module 'log10f'.
30908         * modules/log10f-tests: New file.
30909         * tests/test-log10f.c: New file.
30911         New module 'log10f'.
30912         * lib/math.in.h (log10f): New declaration.
30913         * lib/log10f.c: New file.
30914         * m4/log10f.m4: New file.
30915         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
30916         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
30917         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
30918         * modules/log10f: New file.
30919         * tests/test-math-c++.cc: Check the declaration of log10f.
30920         * doc/posix-functions/log10f.texi: Mention the new module.
30922         log10: Use a .m4 file.
30923         * m4/log10.m4: New file.
30924         * modules/log10 (Files): Add it.
30925         (configure.ac): Just invoke gl_FUNC_LOG10.
30927 2011-10-08  Bruno Haible  <bruno@clisp.org>
30929         Tests for module 'logf'.
30930         * modules/logf-tests: New file.
30931         * tests/test-logf.c: New file.
30933         New module 'logf'.
30934         * lib/math.in.h (logf): New declaration.
30935         * lib/logf.c: New file.
30936         * m4/logf.m4: New file.
30937         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
30938         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
30939         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
30940         * modules/logf: New file.
30941         * tests/test-math-c++.cc: Check the declaration of logf.
30942         * doc/posix-functions/logf.texi: Mention the new module.
30944         log: Use a .m4 file.
30945         * m4/log.m4: New file.
30946         * modules/log (Files): Add it.
30947         (configure.ac): Just invoke gl_FUNC_LOG.
30949 2011-10-08  Bruno Haible  <bruno@clisp.org>
30951         Tests for module 'expf'.
30952         * modules/expf-tests: New file.
30953         * tests/test-expf.c: New file.
30955         New module 'expf'.
30956         * lib/math.in.h (expf): New declaration.
30957         * lib/expf.c: New file.
30958         * m4/expf.m4: New file.
30959         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
30960         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
30961         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
30962         * modules/expf: New file.
30963         * tests/test-math-c++.cc: Check the declaration of expf.
30964         * doc/posix-functions/expf.texi: Mention the new module.
30966         exp: Use a .m4 file.
30967         * m4/exp.m4: New file.
30968         * modules/exp (Files): Add it.
30969         (configure.ac): Just invoke gl_FUNC_EXP.
30971 2011-10-08  Bruno Haible  <bruno@clisp.org>
30973         Tests for module 'sqrtf'.
30974         * modules/sqrtf-tests: New file.
30975         * tests/test-sqrtf.c: New file.
30977         New module 'sqrtf'.
30978         * lib/math.in.h (sqrtf): New declaration.
30979         * lib/sqrtf.c: New file.
30980         * m4/sqrtf.m4: New file.
30981         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
30982         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
30983         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
30984         * modules/sqrtf: New file.
30985         * tests/test-math-c++.cc: Check the declaration of sqrtf.
30986         * doc/posix-functions/sqrtf.texi: Mention the new module.
30988 2011-10-08  Bruno Haible  <bruno@clisp.org>
30990         Tests: Avoid link failures w.r.t. libintl.
30991         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
30992         $(LIBINTL).
30993         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
30994         $(LIBINTL).
30995         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
30996         against $(LIBINTL).
30997         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
30998         $(LIBINTL).
30999         * modules/openat-tests (Makefile.am): Link test-fchmodat against
31000         $(LIBINTL).
31001         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
31003 2011-10-08  Bruno Haible  <bruno@clisp.org>
31005         pow tests: Defeat compiler optimizations.
31006         * tests/test-pow.c (main): Assign arguments to x and y before use.
31008 2011-10-08  Bruno Haible  <bruno@clisp.org>
31010         gnulib-tool: Improve last commit.
31011         * gnulib-tool (func_modules_transitive_closure): Simplify code.
31012         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
31013         ignore dependencies that are not among the modules list.
31015 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
31017         gnulib-tool: don't follow dependencies to avoided modules
31018         This fixes a bug that is related to the previous one.
31019         * gnulib-tool (func_modules_transitive_closure)
31020         (func_emit_autoconf_snippets):
31021         Check whether a dependency is acceptable before using it.
31022         (--extract-dependencies): Report an error if --avoid is also used,
31023         since this combination of options is not yet supported.
31025         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
31026         Problem reported by Peter Dyballa in
31027         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
31028         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
31029         when echoing "$condition".
31031 2011-10-07  Bruno Haible  <bruno@clisp.org>
31033         Fix documentation about math functions on MacOS X.
31034         * doc/posix-functions/exp2.texi: Don't say the function is missing on
31035         MacOS X 10.5.
31036         * doc/posix-functions/fdim.texi: Likewise.
31037         * doc/posix-functions/feclearexcept.texi: Likewise.
31038         * doc/posix-functions/fegetenv.texi: Likewise.
31039         * doc/posix-functions/fegetround.texi: Likewise.
31040         * doc/posix-functions/feholdexcept.texi: Likewise.
31041         * doc/posix-functions/feraiseexcept.texi: Likewise.
31042         * doc/posix-functions/fesetenv.texi: Likewise.
31043         * doc/posix-functions/fesetround.texi: Likewise.
31044         * doc/posix-functions/fetestexcept.texi: Likewise.
31045         * doc/posix-functions/feupdateenv.texi: Likewise.
31046         * doc/posix-functions/fmax.texi: Likewise.
31047         * doc/posix-functions/fmin.texi: Likewise.
31048         * doc/posix-functions/log2.texi: Likewise.
31049         * doc/posix-functions/modff.texi: Likewise.
31050         * doc/posix-functions/nan.texi: Likewise.
31051         * doc/posix-functions/nanf.texi: Likewise.
31052         * doc/posix-functions/nextafterf.texi: Likewise.
31053         * doc/posix-functions/remquo.texi: Likewise.
31055 2011-10-07  Bruno Haible  <bruno@clisp.org>
31057         modff: Drop assumption about library that defines modff.
31058         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
31059         AC_CHECK_FUNCS.
31060         * modules/modff (Files): Add m4/mathfunc.m4.
31062 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
31064         raise tests: Avoid a GCC warning.
31065         * tests/test-raise.c (handler): Use _Noreturn.
31067 2011-10-07  Bruno Haible  <bruno@clisp.org>
31069         Tests for module 'ldexpf'.
31070         * modules/ldexpf-tests: New file.
31071         * tests/test-ldexpf.c: New file.
31073         New module 'ldexpf'.
31074         * lib/math.in.h (ldexpf): New declaration.
31075         * lib/ldexpf.c: New file.
31076         * m4/ldexpf.m4: New file.
31077         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
31078         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
31079         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
31080         * modules/ldexpf: New file.
31081         * tests/test-math-c++.cc: Check the declaration of ldexpf.
31082         * doc/posix-functions/ldexpf.texi: Mention the new module.
31084 2011-10-06  Bruno Haible  <bruno@clisp.org>
31086         frexpf: Work around problems on IRIX and mingw.
31087         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
31088         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
31089         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
31090         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
31091         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
31092         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
31093         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
31095 2011-10-06  Bruno Haible  <bruno@clisp.org>
31097         fabsf: Drop assumption about library that defines fabsf.
31098         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
31099         AC_CHECK_FUNCS.
31100         * modules/fabsf (Files): Add m4/mathfunc.m4.
31102 2011-10-06  Bruno Haible  <bruno@clisp.org>
31104         frexpf: Drop assumption about library that defines frexpf.
31105         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
31106         'int *', 'float *', 'long double *', 'float', 'long double'.
31107         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
31108         AC_CHECK_FUNCS.
31109         * modules/frexpf (Files): Add m4/mathfunc.m4.
31111         Tests for module 'frexpf'.
31112         * modules/frexpf-tests: New file.
31113         * tests/test-frexpf.c: New file.
31115         New module 'frexpf'.
31116         * lib/math.in.h (frexpf): New declaration.
31117         * lib/frexpf.c: New file.
31118         * m4/frexpf.m4: New file.
31119         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
31120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
31121         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
31122         * modules/frexpf: New file.
31123         * tests/test-math-c++.cc: Check the declaration of frexpf.
31124         * doc/posix-functions/frexpf.texi: Mention the new module.
31126 2011-10-06  Bruno Haible  <bruno@clisp.org>
31128         math: Sort function declarations of math.in.h.
31129         * lib/math.in.h (frexp, logb): Move declarations.
31131 2011-10-05  Bruno Haible  <bruno@clisp.org>
31133         Tests for module 'modff'.
31134         * modules/modff-tests: New file.
31135         * tests/test-modff.c: New file.
31137         New module 'modff'.
31138         * lib/math.in.h (modff): New declaration.
31139         * lib/modff.c: New file.
31140         * m4/modff.m4: New file.
31141         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
31142         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
31143         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
31144         * modules/modff: New file.
31145         * tests/test-math-c++.cc: Check the declaration of modff.
31146         * doc/posix-functions/modff.texi: Mention the new module.
31148         modf tests: Make test sharper.
31149         * tests/test-modf.c (main): Strengthen upper bound.
31151         modf: Use a .m4 file.
31152         * m4/modf.m4: New file.
31153         * modules/modf (Files): Add it.
31154         (configure.ac): Just invoke gl_FUNC_MODF.
31156 2011-10-05  Bruno Haible  <bruno@clisp.org>
31158         Tests for module 'fmodf'.
31159         * modules/fmodf-tests: New file.
31160         * tests/test-fmodf.c: New file.
31162         New module 'fmodf'.
31163         * lib/math.in.h (fmodf): New declaration.
31164         * lib/fmodf.c: New file.
31165         * m4/fmodf.m4: New file.
31166         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
31167         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
31168         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
31169         * modules/fmodf: New file.
31170         * tests/test-math-c++.cc: Check the declaration of fmodf.
31171         * doc/posix-functions/fmodf.texi: Mention the new module.
31173         fmod: Use a .m4 file.
31174         * m4/fmod.m4: New file.
31175         * modules/fmod (Files): Add it.
31176         (configure.ac): Just invoke gl_FUNC_FMOD.
31178 2011-10-05  Bruno Haible  <bruno@clisp.org>
31180         Tests for module 'fabsf'.
31181         * modules/fabsf-tests: New file.
31182         * tests/test-fabsf.c: New file.
31184         New module 'fabsf'.
31185         * lib/math.in.h (fabsf): New declaration.
31186         * lib/fabsf.c: New file.
31187         * m4/fabsf.m4: New file.
31188         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
31189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
31190         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
31191         * modules/fabsf: New file.
31192         * tests/test-math-c++.cc: Check the declaration of fabsf.
31193         * doc/posix-functions/fabsf.texi: Mention the new module.
31195         fabs: Use a .m4 file.
31196         * m4/fabs.m4: New file.
31197         * modules/fabs (Files): Add it.
31198         (configure.ac): Just invoke gl_FUNC_FABS.
31200 2011-10-05  Jim Meyering  <meyering@redhat.com>
31202         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
31203         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
31204         ls -lL regression introduced in coreutils-8.12, it does so at the
31205         cost of an additional stat call in the common case.  Besides, now
31206         that the kernel change that prompted commit 95f7c57f has been reverted
31207         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
31208         we have no use for commit 95f7c57f, "file-has-acl: use
31209         acl_extended_file_nofollow if available".
31211 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
31213         file-has-acl: revert unintended change in behavior of ls -L
31214         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
31215         derived from...
31216         (file_has_acl): ...code here.  Call it.
31217         This problem was introduced with 2011-07-22 commit 95f7c57f,
31218         "file-has-acl: use acl_extended_file_nofollow if available".
31219         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
31221 2011-10-03  Bruno Haible  <bruno@clisp.org>
31223         poll: Avoid link errors on MSVC.
31224         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
31225         * modules/poll (Depends-on): Add sockets.
31226         (Link): New section.
31227         * NEWS: Mention the change.
31228         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
31229         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
31230         $(LIB_POLL) instead of $(LIBSOCKET).
31232 2011-10-03  Bruno Haible  <bruno@clisp.org>
31234         sys_select tests: Fix link error on MSVC 9.
31235         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
31236         with $(LIB_SELECT) instead of $(LIBSOCKET).
31238 2011-10-03  Bruno Haible  <bruno@clisp.org>
31240         sys_select: Fix compilation error on mingw.
31241         * lib/sys_select.in.h: On native Windows, include <io.h>.
31243 2011-10-03  Bruno Haible  <bruno@clisp.org>
31245         wmemset: Support for MSVC.
31246         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
31247         whether wmemset() exists.
31249 2011-10-03  Bruno Haible  <bruno@clisp.org>
31251         wmemmove: Support for MSVC.
31252         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
31253         whether wmemmove() exists.
31255 2011-10-03  Bruno Haible  <bruno@clisp.org>
31257         wmemcpy: Support for MSVC.
31258         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
31259         whether wmemcpy() exists.
31261 2011-10-03  Bruno Haible  <bruno@clisp.org>
31263         wmemcmp: Support for MSVC.
31264         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
31265         whether wmemcmp() exists.
31267 2011-10-03  Bruno Haible  <bruno@clisp.org>
31269         wmemchr: Support for MSVC.
31270         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
31271         whether wmemchr() exists.
31273 2011-10-03  Bruno Haible  <bruno@clisp.org>
31275         glthread/*, strsignal: Support for MSVC.
31276         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
31277         including <winsock.h> on MSVC 9.
31278         * lib/glthread/lock.h: Likewise.
31279         * lib/glthread/thread.h: Likewise.
31280         * lib/glthread/tls.h: Likewise.
31281         * lib/glthread/yield.h: Likewise.
31282         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
31283         if HAVE_UNISTD_H is false.
31284         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
31286 2011-10-03  Bruno Haible  <bruno@clisp.org>
31288         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
31289         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
31290         Set to 100000.
31292 2011-10-03  Bruno Haible  <bruno@clisp.org>
31294         acl: Fix specification.
31295         * lib/file-has-acl.c (file_has_acl): Fix specification.
31297 2011-10-03  Bruno Haible  <bruno@clisp.org>
31299         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
31300         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
31301         (compute_curr_prefix, shared_library_fullname,
31302         find_shared_library_fullname, get_shared_library_fullname, relocate):
31303         Use it together with PIC && INSTALLDIR.
31304         Reported by <jojelino@gmail.com>
31305         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
31307 2011-10-01  Jim Meyering  <meyering@redhat.com>
31309         maint.mk: adjust a release-related rule not to require use of gzip
31310         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
31311         Instead, check each file in $(DIST_ARCHIVES).  This is better for
31312         projects that build only .tar.xz files.  Also fix an erroneous test.
31314         test-linkat: don't leave behind a temporary file
31315         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
31316         Otherwise, coreutils' "make distcheck" would fail with this:
31317           Only in /c/cu/tests/torture/coreutils/test/\
31318             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
31319           make[2]: *** [my-distcheck] Error 1
31321         float, math: add omitted file
31322         * lib/itold.c: Add file, required for yesterday's float change.
31324 2011-10-01  Bruno Haible  <bruno@clisp.org>
31326         isinf: Fix for OpenBSD/x86.
31327         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
31328         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
31329         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
31331 2011-10-01  Bruno Haible  <bruno@clisp.org>
31333         isfinite: Fix syntax error in configure test.
31334         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
31336         isfinite: Fix typo.
31337         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
31338         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
31340 2011-10-01  Bruno Haible  <bruno@clisp.org>
31342         nonblocking tests: Fix test failure on Linux/IA-64.
31343         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
31344         Set to 270000.
31346 2011-10-01  Bruno Haible  <bruno@clisp.org>
31348         mkfifoat tests: Fix a test failure on mingw.
31349         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
31350         with error ENOSYS.
31352 2011-09-30  Bruno Haible  <bruno@clisp.org>
31354         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
31355         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
31356         'long double'. Set REPLACE_ITOLD.
31357         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
31358         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
31359         * lib/itold.c: New file.
31360         * modules/float (Files): Add lib/itold.c.
31361         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
31362         (Makefile.am): Substitute REPLACE_ITOLD.
31363         * modules/math (Depends-on): Add float.
31364         (Makefile.am): Substitute REPLACE_ITOLD.
31365         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
31366         * doc/posix-headers/math.texi: Likewise.
31367         * doc/posix-functions/logl.texi: Likewise.
31369 2011-09-30  Bruno Haible  <bruno@clisp.org>
31371         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
31372         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
31373         Set to 140000.
31375 2011-09-30  Bruno Haible  <bruno@clisp.org>
31377         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
31378         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
31379         invocation, say "right after AC_PROG_CC_STDC", not "right after
31380         AC_PROG_CC".
31381         Reported by Gary V. Vaughan <gary@gnu.org>.
31383 2011-09-30  Bruno Haible  <bruno@clisp.org>
31385         Centralize C99 requirement.
31386         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
31387         * modules/stdarg (configure.ac-early): Invoke it instead of
31388         AC_PROG_CC_STDC.
31389         Reported by Gary V. Vaughan and Paul Eggert.
31391 2011-09-29  Bruno Haible  <bruno@clisp.org>
31393         float: Fix LDBL_MAX value on Linux/PowerPC.
31394         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
31395         on Linux/PowerPC.
31396         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
31397         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
31398         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
31399         platform.
31400         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
31402 2011-09-29  Bruno Haible  <bruno@clisp.org>
31404         doc: Improve doc about gl_EARLY.
31405         * doc/gnulib-tool.texi (Initial import): Mention where to place an
31406         AC_PROG_CC_STDC invocation.
31407         Reported by Gary V. Vaughan <gary@gnu.org>.
31409 2011-09-28  Bruno Haible  <bruno@clisp.org>
31411         fgetc, fputc, fread, fwrite tests: Fix link error.
31412         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
31413         on non-MSVC platforms.
31414         * tests/test-fputc.c (main): Likewise.
31415         * tests/test-fread.c (main): Likewise.
31416         * tests/test-fwrite.c (main): Likewise.
31417         Reported by Jim Meyering.
31419 2011-09-27  Bruno Haible  <bruno@clisp.org>
31421         fputc, fwrite tests: Avoid test failure on MSVC.
31422         * tests/test-fgetc.c: Include msvc-inval.h.
31423         (main): Invoke gl_msvc_inval_ensure_handler.
31424         * tests/test-fputc.c: Include msvc-inval.h.
31425         (main): Invoke gl_msvc_inval_ensure_handler.
31426         * tests/test-fread.c: Include msvc-inval.h.
31427         (main): Invoke gl_msvc_inval_ensure_handler.
31428         * tests/test-fwrite.c: Include msvc-inval.h.
31429         (main): Invoke gl_msvc_inval_ensure_handler.
31430         * modules/fgetc-tests (Depends-on): Add msvc-inval.
31431         * modules/fputc-tests (Depends-on): Likewise.
31432         * modules/fread-tests (Depends-on): Likewise.
31433         * modules/fwrite-tests (Depends-on): Likewise.
31435 2011-09-27  Bruno Haible  <bruno@clisp.org>
31437         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
31438         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
31439         (raise): Remove older, duplicated declaration.
31440         (_gl_raise_SIGPIPE): New declaration.
31441         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
31442         (rpl_raise): Remove function.
31443         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
31444         a gnulib-defined SIGPIPE here.
31445         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
31446         'sigprocmask' has detected missing signal-blocking and the module
31447         'sigpipe' is enabled.
31448         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
31450 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
31452         base64-tests: avoid memory leak
31453         * tests/test-base64.c (main): Plug memory leak.
31455         base32: new module
31456         * modules/base32: New module.
31457         * lib/base32.c: New file.
31458         * lib/base32.h: Likewise.
31459         * m4/base32.m4: Likewise.
31460         * modules/base32-tests: New test.
31461         * tests/test-base32.c: Likewise.
31462         * MODULES.html.sh (Misc): Mention it.
31464 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
31466         gnulib: use more-standard license notice wording
31467         * gnulib-tool (func_emit_copyright_notice): When emitting a
31468         license notice into a file, use the standard wording as suggested
31469         by the current information for GNU maintainers, except say "file"
31470         rather than "program".  The new wording gives a license version
31471         number, which addresses an issue raised by Glenn Morris in
31472         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
31473         * m4/onceonly.m4: Use that same wording here, too.
31475         dup2: minor simplification
31476         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
31477         as lib/dup2.c no longer uses 'inline'.
31479 2011-09-25  Bruno Haible  <bruno@clisp.org>
31481         strings: Fix compilation error on MSVC.
31482         * lib/strings.in.h: Include <stddef.h> for size_t.
31484 2011-09-25  Bruno Haible  <bruno@clisp.org>
31486         fflush et al.: Document limitation on MSVC.
31487         * doc/posix-functions/fflush.texi: Document possible crash in handling
31488         mode other than DEFAULT_HANDLING.
31489         * doc/posix-functions/fgetc.texi: Likewise.
31490         * doc/posix-functions/fputc.texi: Likewise.
31491         * doc/posix-functions/fread.texi: Likewise.
31492         * doc/posix-functions/fwrite.texi: Likewise.
31494 2011-09-25  Bruno Haible  <bruno@clisp.org>
31496         msvc-inval: Allow three invalid parameter handling modes.
31497         * lib/msvc-inval.h: Don't include <stdlib.h> here.
31498         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
31499         macros.
31500         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
31501         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
31502         SANE_LIBRARY_HANDLING as a no-op.
31503         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
31504         <stdlib.h>.
31505         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
31507 2011-09-25  Bruno Haible  <bruno@clisp.org>
31509         msvc-inval: Make handler multithread-safe.
31510         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
31511         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
31512         declarations.
31513         (gl_msvc_inval_current): New declaration.
31514         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
31515         Operate on the structure returned by gl_msvc_inval_current().
31516         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
31517         Remove varaiables.
31518         (tls_index, tls_initialized): New variables.
31519         (not_per_thread): New variable.
31520         (gl_msvc_inval_current): New function.
31521         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
31522         returned by gl_msvc_inval_current().
31524 2011-09-25  Bruno Haible  <bruno@clisp.org>
31526         msvc-inval: Install handler globally.
31527         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
31528         !_MSC_VER.
31529         (gl_msvc_invalid_parameter_handler): Remove declaration.
31530         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
31531         declarations.
31532         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
31533         Install the handler globally, don't uninstall it.
31534         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
31535         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
31536         currently valid, call RaiseException instead.
31537         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
31538         for !_MSC_VER.
31540 2011-09-25  Bruno Haible  <bruno@clisp.org>
31542         strerror_r-posix: Fix for MSVC 9.
31543         * lib/strerror_r.c (local_snprintf): New function.
31544         (snprintf): Define to local_snprintf, not to _snprintf.
31546 2011-09-25  Bruno Haible  <bruno@clisp.org>
31548         ftruncate: Support for MSVC 9.
31549         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
31550         (chsize_nothrow): New function.
31551         (chsize): Redefine as a macro.
31552         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
31553         * modules/ftruncate (Depends-on): Add msvc-inval.
31555 2011-09-25  Bruno Haible  <bruno@clisp.org>
31557         New module 'fstat'.
31558         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
31559         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
31560         * lib/fchdir.c (rpl_fstat): Remove function.
31561         * m4/fstat.m4: New file.
31562         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
31563         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
31564         declared.
31565         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
31566         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
31567         * modules/fstat: New file.
31568         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
31569         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
31570         is set.
31571         * doc/posix-functions/fstat.texi: Mention the new module and the
31572         problem on MSVC.
31573         * NEWS: Mention the change.
31574         * modules/acl (Depends-on): Add fstat.
31575         * modules/chdir-safer (Depends-on): Likewise.
31576         * modules/chown (Depends-on): Likewise.
31577         * modules/copy-file (Depends-on): Likewise.
31578         * modules/fchdir (Depends-on): Likewise.
31579         * modules/fdopendir (Depends-on): Likewise.
31580         * modules/fopen (Depends-on): Likewise.
31581         * modules/fts (Depends-on): Likewise.
31582         * modules/getcwd (Depends-on): Likewise.
31583         * modules/isapipe (Depends-on): Likewise.
31584         * modules/linkat (Depends-on): Likewise.
31585         * modules/lseek (Depends-on): Likewise.
31586         * modules/mkdir-p (Depends-on): Likewise.
31587         * modules/open (Depends-on): Likewise.
31588         * modules/openat (Depends-on): Likewise.
31589         * modules/read-file (Depends-on): Likewise.
31590         * modules/renameat (Depends-on): Likewise.
31591         * modules/utimens (Depends-on): Likewise.
31593 2011-09-25  Bruno Haible  <bruno@clisp.org>
31595         linkat: Fix compilation on MSVC 9.
31596         * lib/linkat.c: Don't include <stdint.h>.
31598 2011-09-25  Bruno Haible  <bruno@clisp.org>
31600         fclose: Support for MSVC 9.
31601         * lib/fclose.c: Include msvc-inval.h.
31602         (fclose_nothrow): New function.
31603         (rpl_fclose): Use it.
31604         * modules/fclose (Depends-on): Add msvc-inval.
31605         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
31607 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
31609         dup2: minor simplifications
31610         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
31611         that it's a performance win.
31612         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
31613         ! defined __CYGWIN__)" to "ifdef F_GETFL".
31615 2011-09-24  Jim Meyering  <meyering@redhat.com>
31617         test-futimens: avoid a warning from gcc -Wshadow
31618         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
31619         to avoid a shadowing warning.
31621 2011-09-24  Bruno Haible  <bruno@clisp.org>
31623         fdopen: Support for MSVC 9.
31624         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
31625         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
31626         * lib/fdopen.c: Include msvc-inval.h.
31627         (fdopen_nothrow): New function.
31628         (rpl_fdopen): Use it.
31629         * modules/fdopen (Depends-on): Add msvc-inval.
31630         * modules/fclose-tests (Depends-on): Add fdopen.
31631         * modules/fflush-tests (Depends-on): Likewise.
31632         * modules/fgetc-tests (Depends-on): Likewise.
31633         * modules/fputc-tests (Depends-on): Likewise.
31634         * modules/fread-tests (Depends-on): Likewise.
31635         * modules/freopen-tests (Depends-on): Likewise.
31636         * modules/fseeko-tests (Depends-on): Likewise.
31637         * modules/ftello-tests (Depends-on): Likewise.
31638         * modules/fwrite-tests  (Depends-on): Likewise.
31639         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
31641 2011-09-24  Bruno Haible  <bruno@clisp.org>
31643         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
31644         * modules/fgetc-tests (Depends-on): Add unistd.
31645         * modules/fputc-tests (Depends-on): Likewise.
31646         * modules/fread-tests (Depends-on): Likewise.
31647         * modules/fwrite-tests (Depends-on): Likewise.
31649 2011-09-24  Bruno Haible  <bruno@clisp.org>
31651         dup: Simplify autoconf test.
31652         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
31653         on gl_MSVC_INVAL's result.
31655 2011-09-24  Bruno Haible  <bruno@clisp.org>
31657         Tests for function fwrite().
31658         * modules/fwrite-tests: New file.
31659         * tests/test-fwrite.c: New file.
31660         * modules/stdio-tests (Depends-on): Add fwrite-tests.
31662         Tests for function fread().
31663         * modules/fread-tests: New file.
31664         * tests/test-fread.c: New file.
31665         * modules/stdio-tests (Depends-on): Add fread-tests.
31667         Activate fputc tests.
31668         * modules/stdio-tests (Depends-on): Add fputc-tests.
31670         Enhance fgetc, fputc tests.
31671         * tests/test-fgetc.c (main): Also test the stream's error indicator.
31672         * tests/test-fputc.c (main): Likewise.
31674 2011-09-24  Bruno Haible  <bruno@clisp.org>
31676         write: Support for MSVC 9.
31677         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
31678         is not 1.
31679         * lib/write.c (write_nothrow): New function.
31680         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
31681         not 1. Use write_nothrow.
31682         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
31683         invalid parameter handler.
31684         (gl_PREREQ_WRITE): New macro.
31685         * modules/write (Depends-on): Add msvc-inval.
31686         (configure.ac): Invoke gl_PREREQ_WRITE.
31687         * doc/posix-functions/write.texi: Mention the problem on MSVC.
31689 2011-09-24  Bruno Haible  <bruno@clisp.org>
31691         read: Fix last commit.
31692         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
31694 2011-09-24  Bruno Haible  <bruno@clisp.org>
31696         dup2: Fix last commit.
31697         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
31698         (rpl_dup2): Disable fcntl workaround on native Windows.
31700         sigprocmask: Make code safer.
31701         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
31702         section that changes macro definitions for this compilation unit.
31704 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
31706         dup2: clarify by coalescing Windows-specific material
31707         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
31708         "msvc-nothrow.h"' to the Windows-specific section, so that the
31709         Emacs source need not contain these include files.
31710         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
31711         Windows-specific fixes into this function rather than just the
31712         nothrow fix, as this shortens and clarifies the code.  Always
31713         define as a function, as that's a bit cleaner than having it be
31714         sometimes a function and sometimes a macro.
31715         (rpl_dup2): Move the Windows-specific stuff out of here and into
31716         ms_windows_dup2.  Don't protect the Haiku-related fix with
31717         "#if !defined __linux__", as the same code also works around
31718         a Linux kernel bug, and it doesn't add any system calls on any
31719         platform.  Add comment about FreeBSD 6.1.
31721         sigprocmask: move #include directive
31722         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
31723         Windows-specific section, so that the Emacs source need not
31724         contain msvc-inval.h.
31726 2011-09-23  Bruno Haible  <bruno@clisp.org>
31728         read: Support for MSVC 9.
31729         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
31730         is not 1.
31731         * lib/read.c (read_nothrow): New function.
31732         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
31733         read_nothrow.
31734         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
31735         invalid parameter handler.
31736         (gl_PREREQ_READ): New macro.
31737         * modules/read (Depends-on): Add msvc-inval.
31738         (configure.ac): Invoke gl_PREREQ_READ.
31739         * doc/posix-functions/read.texi: Mention the problem on MSVC.
31741 2011-09-23  Bruno Haible  <bruno@clisp.org>
31743         close: Support for MSVC 9.
31744         * lib/close.c: Include <errno.h>, msvc-inval.h.
31745         (close_nothrow): New function.
31746         (rpl_close): Use it.
31747         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
31748         invalid parameter handler.
31749         * modules/close (Depends-on): Add msvc-inval.
31750         * modules/dup2-tests (Depends-on): Add close.
31751         * modules/dup3-tests (Depends-on): Likewise.
31752         * modules/fcntl-tests (Depends-on): Likewise.
31753         * modules/spawn-pipe-tests (Depends-on): Likewise.
31754         * modules/unistd-safer-tests (Depends-on): Likewise.
31755         * doc/posix-functions/close.texi: Mention the problem on MSVC.
31757 2011-09-23  Bruno Haible  <bruno@clisp.org>
31759         New module 'dup'.
31760         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
31761         Allow replacement.
31762         * lib/dup.c: New file.
31763         * lib/fchdir.c (rpl_dup): Remove function.
31764         * m4/dup.m4: New file.
31765         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
31766         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
31767         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
31768         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
31769         * modules/dup: New file.
31770         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
31771         'dup' module is in use.
31772         * modules/fdopendir (Depends-on): Add dup.
31773         * modules/fdutimensat-tests (Depends-on): Likewise.
31774         * modules/fts (Depends-on): Likewise.
31775         * modules/futimens-tests (Depends-on): Likewise.
31776         * modules/posix_spawnp-tests (Depends-on): Likewise.
31777         * modules/unistd-safer-tests (Depends-on): Likewise.
31778         * modules/utimens-tests (Depends-on): Likewise.
31779         * doc/posix-functions/dup.texi: Mention the new module and the problem
31780         on MSVC.
31782 2011-09-23  Bruno Haible  <bruno@clisp.org>
31784         getdtablesize: Support for MSVC 9.
31785         * lib/getdtablesize.c: Include msvc-inval.h.
31786         (_setmaxstdio_nothrow): New function.
31787         (_setmaxstdio): Redefine it.
31788         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
31789         * modules/getdtablesize (Depends-on): Add msvc-inval.
31790         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
31792 2011-09-23  Bruno Haible  <bruno@clisp.org>
31794         signal-h: Rename from signal.
31795         * modules/signal-h: Renamed from modules/signal.
31796         * modules/pthread_sigmask (Depends-on): Update.
31797         * modules/raise (Depends-on): Likewise.
31798         * modules/sigaction (Depends-on): Likewise.
31799         * modules/sigpipe (Depends-on): Likewise.
31800         * modules/sigprocmask (Depends-on): Likewise.
31801         * modules/sys_select (Depends-on): Likewise.
31802         * modules/signal-h-tests: Renamed from modules/signal-tests.
31803         (Files, Depends-on, Makefile.am): Update.
31804         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
31805         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
31806         (Files, Makefile.am): Update.
31807         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
31808         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
31809         * modules/signal: New placeholder file.
31810         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
31811         * doc/posix-headers/signal.texi: Update.
31812         * NEWS: Mention the change.
31814 2011-09-23  Bruno Haible  <bruno@clisp.org>
31816         sigprocmask: Avoid crashes through signal() on MSVC 9.
31817         * lib/sigprocmask.c: Include msvc-inval.h.
31818         (signal_nothrow): New function.
31819         (signal): Redefine it.
31820         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
31821         * modules/sigprocmask (Depends-on): Add msvc-inval.
31822         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
31824 2011-09-23  Bruno Haible  <bruno@clisp.org>
31826         Tests for module 'raise'.
31827         * modules/raise-tests: New file.
31828         * tests/test-raise.c: New file.
31830         raise: Support for MSVC.
31831         * lib/signal.in.h (raise): New declaration.
31832         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
31833         for native Windows platforms.
31834         * m4/raise.m4: New file.
31835         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
31836         HAVE_RAISE, REPLACE_RAISE.
31837         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
31838         REPLACE_RAISE.
31839         * modules/raise (Status, Notice): Remove fields.
31840         (Files): Add m4/raise.m4.
31841         (Depends-on): Add signal, msvc-inval.
31842         (configure.ac): Use the common idioms.
31843         (Maintainer): Add me.
31844         * tests/test-signal-c++.cc: Check the signature of raise.
31845         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
31847 2011-09-23  Bruno Haible  <bruno@clisp.org>
31849         pipe2: Fix compilation on pre-C99 compilers.
31850         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
31852 2011-09-23  Bruno Haible  <bruno@clisp.org>
31854         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
31855         * lib/msvc-nothrow.h: New file.
31856         * lib/msvc-nothrow.c: New file.
31857         * m4/msvc-nothrow.m4: New file.
31858         * modules/msvc-nothrow: New file.
31859         * lib/dup2.c: Include msvc-nothrow.h.
31860         (rpl_dup2): No need to protect _get_osfhandle call here.
31861         * lib/accept4.c: Include msvc-nothrow.h.
31862         * lib/error.c: Likewise.
31863         * lib/fcntl.c: Likewise.
31864         * lib/lseek.c: Likewise.
31865         * lib/nonblocking.c: Likewise.
31866         * lib/poll.c: Likewise.
31867         * lib/read.c: Likewise.
31868         * lib/select.c: Likewise.
31869         * lib/sockets.h: Likewise.
31870         * lib/sockets.c: Likewise.
31871         * lib/stdio-read.c: Likewise.
31872         * lib/stdio-write.c: Likewise.
31873         * lib/write.c: Likewise.
31874         * lib/w32sock.h: Likewise.
31875         * lib/w32spawn.h: Likewise.
31876         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
31877         * lib/fsync.c: Likewise.
31878         * lib/isapipe.c: Likewise.
31879         * modules/dup2 (Depends-on): Add msvc-nothrow.
31880         * modules/accept4 (Depends-on): Likewise.
31881         * modules/error (Depends-on): Likewise.
31882         * modules/fcntl (Depends-on): Likewise.
31883         * modules/lseek (Depends-on): Likewise.
31884         * modules/nonblocking (Depends-on): Likewise.
31885         * modules/poll (Depends-on): Likewise.
31886         * modules/read (Depends-on): Likewise.
31887         * modules/select (Depends-on): Likewise.
31888         * modules/sockets (Depends-on): Likewise.
31889         * modules/sigpipe (Depends-on): Likewise.
31890         * modules/write (Depends-on): Likewise.
31891         * modules/accept (Depends-on): Likewise.
31892         * modules/bind (Depends-on): Likewise.
31893         * modules/connect (Depends-on): Likewise.
31894         * modules/gethostname (Depends-on): Likewise.
31895         * modules/getpeername (Depends-on): Likewise.
31896         * modules/getsockname (Depends-on): Likewise.
31897         * modules/getsockopt (Depends-on): Likewise.
31898         * modules/ioctl (Depends-on): Likewise.
31899         * modules/listen (Depends-on): Likewise.
31900         * modules/recv (Depends-on): Likewise.
31901         * modules/recvfrom (Depends-on): Likewise.
31902         * modules/send (Depends-on): Likewise.
31903         * modules/sendto (Depends-on): Likewise.
31904         * modules/setsockopt (Depends-on): Likewise.
31905         * modules/shutdown (Depends-on): Likewise.
31906         * modules/socket (Depends-on): Likewise.
31907         * modules/execute (Depends-on): Likewise.
31908         * modules/spawn-pipe (Depends-on): Likewise.
31909         * modules/flock (Depends-on): Likewise.
31910         * modules/fsync (Depends-on): Likewise.
31911         * modules/isapipe (Depends-on): Likewise.
31912         * tests/test-cloexec.c: Include msvc-nothrow.h.
31913         * tests/test-dup-safer.c: Likewise.
31914         * tests/test-dup2.c: Likewise.
31915         * tests/test-dup3.c: Likewise.
31916         * tests/test-fcntl.c: Likewise.
31917         * tests/test-pipe.c: Likewise.
31918         * tests/test-pipe2.c: Likewise.
31919         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
31920         * modules/unistd-safer-tests (Depends-on): Likewise.
31921         * modules/dup2-tests (Depends-on): Likewise.
31922         * modules/dup3-tests (Depends-on): Likewise.
31923         * modules/fcntl-tests (Depends-on): Likewise.
31924         * modules/pipe-posix-tests (Depends-on): Likewise.
31925         * modules/pipe2-tests (Depends-on): Likewise.
31927 2011-09-23  Bruno Haible  <bruno@clisp.org>
31929         dup2: Make code more maintainable.
31930         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
31931         (rpl_dup2): Use it.
31932         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
31933         * modules/dup2 (configure.ac): Invoke it.
31934         Reported by Paul Eggert.
31936 2011-09-23  Bruno Haible  <bruno@clisp.org>
31938         msvc-inval: Fix compilation error.
31939         * lib/msvc-inval.h: Include <excpt.h>.
31941 2011-09-23  Bruno Haible  <bruno@clisp.org>
31943         mkdir: Tweak for MSVC 9.
31944         * lib/sys_stat.in.h: Update comments.
31945         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
31947         Tests for module 'chdir'.
31948         * modules/chdir-tests: New file.
31949         * tests/test-chdir.c: New file.
31951         New module 'chdir'.
31952         * modules/chdir: New file.
31953         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
31954         (chdir): New declaration.
31955         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
31956         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
31957         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
31958         * tests/test-unistd-c++.cc: Check signature of chdir.
31959         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
31960         * modules/chdir-long (Depends-on): Add chdir.
31961         * modules/fchdir (Depends-on): Likewise.
31962         * modules/rename (Depends-on): Likewise.
31963         * modules/savewd (Depends-on): Likewise.
31965         rmdir: Support for mingw, MSVC 9.
31966         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
31967         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
31969         getcwd: Tweak for MSVC 9.
31970         * lib/unistd.in.h: Update comments.
31971         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
31973 2011-09-22  Bruno Haible  <bruno@clisp.org>
31975         strerror_r-posix: Avoid a link error on MSVC.
31976         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
31977         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
31979 2011-09-22  Bruno Haible  <bruno@clisp.org>
31981         select: Avoid link errors on MSVC.
31982         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
31983         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
31984         * modules/pselect (Link): Likewise.
31985         * NEWS: Mention the change.
31986         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
31987         test-select-stdin against $(LIB_SELECT).
31988         * modules/pselect-tests (Makefile.am): Link test-pselect against
31989         $(LIB_SELECT).
31991 2011-09-22  Bruno Haible  <bruno@clisp.org>
31993         select: Avoid compilation error on MSVC.
31994         * lib/select.c: Don't include <stdbool.h>.
31996 2011-09-21  Bruno Haible  <bruno@clisp.org>
31998         Consolidate all uses of PATH_MAX in *.m4 files.
31999         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
32000         macros.
32001         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
32002         and gl_PATHMAX_SNIPPET.
32003         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
32004         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
32005         * modules/chdir-long (Files): Add m4/pathmax.m4.
32006         * modules/getcwd (Files): Likewise.
32008 2011-09-21  Bruno Haible  <bruno@clisp.org>
32010         ftruncate: Un-deprecate, concentrate on Win32 support.
32011         * modules/ftruncate (Status, Notice): Remove sections.
32012         (Depends-on): Add largefile.
32013         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
32014         non-mingw platforms.
32015         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
32016         include <io.h>.
32017         * modules/perror-tests (Depends-on): Add ftruncate.
32018         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
32019         'ftruncate' module.
32021 2011-09-21  Bruno Haible  <bruno@clisp.org>
32023         Add dependencies to new dirent related modules.
32024         * modules/opendir (Depends-on): Add closedir.
32025         * modules/getcwd (Depends-on): Add opendir, closedir.
32026         * modules/dirent-safer-tests (Depends-on): Likewise.
32027         * modules/fdopendir-tests (Depends-on): Likewise.
32028         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
32029         * modules/renameat-tests (Depends-on): Likewise.
32031 2011-09-21  Bruno Haible  <bruno@clisp.org>
32033         opendir: Avoid compilation error on mingw.
32034         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
32035         * modules/opendir (Depends-on): Add unistd.
32037 2011-09-21  Bruno Haible  <bruno@clisp.org>
32039         ftruncate tests: Avoid a test failure on mingw.
32040         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
32042 2011-09-21  Bruno Haible  <bruno@clisp.org>
32044         select tests: Avoid test failures on OSF/1 5.1 and mingw.
32045         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
32046         native Windows.
32048 2011-09-21  Bruno Haible  <bruno@clisp.org>
32050         New module 'fdopen'.
32051         * lib/stdio.in.h (fdopen): New declaration.
32052         * lib/fdopen.c: New file.
32053         * m4/fdopen.m4: New file.
32054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
32055         REPLACE_FDOPEN.
32056         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
32057         REPLACE_FDOPEN.
32058         * modules/fdopen: New file.
32059         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
32060         * tests/test-stdio-c++.cc: Check signature of fdopen.
32061         * doc/posix-functions/fdopen.texi: Mention the new module.
32063 2011-09-21  Bruno Haible  <bruno@clisp.org>
32065         unlockpt tests: Avoid test failure on NetBSD 5.1.
32066         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
32067         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
32069 2011-09-21  Bruno Haible  <bruno@clisp.org>
32071         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
32072         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
32073         * tests/test-getlogin_r.c (main): Likewise.
32075 2011-09-20  Bruno Haible  <bruno@clisp.org>
32077         time tests: Don't require pid_t.
32078         * doc/posix-headers/time.texi: Revert last change.
32079         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
32080         * tests/test-time.c: Comment out the check for pid_t.
32082 2011-09-20  Bruno Haible  <bruno@clisp.org>
32084         fsync tests: Avoid a test failure on mingw.
32085         * tests/test-fsync.c (main): Allow a failure with EIO.
32087 2011-09-20  Bruno Haible  <bruno@clisp.org>
32089         euidaccess: Update comments.
32090         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
32092 2011-09-20  Bruno Haible  <bruno@clisp.org>
32094         Ensure EBADF returns for socket functions on mingw.
32095         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
32096         descriptor is invalid.
32097         * lib/bind.c (rpl_bind): Likewise.
32098         * lib/connect.c (rpl_connect): Likewise.
32099         * lib/getpeername.c (rpl_getpeername): Likewise.
32100         * lib/getsockname.c (rpl_getsockname): Likewise.
32101         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32102         * lib/listen.c (rpl_listen): Likewise.
32103         * lib/recv.c (rpl_recv): Likewise.
32104         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32105         * lib/send.c (rpl_send): Likewise.
32106         * lib/sendto.c (rpl_sendto): Likewise.
32107         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32108         * lib/shutdown.c (rpl_shutdown): Likewise.
32110 2011-09-20  Bruno Haible  <bruno@clisp.org>
32112         select tests: EBADF tests.
32113         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
32114         test_bad_fd): New functions.
32115         (test_function): Invoke also test_bad_fd.
32117 2011-09-20  Bruno Haible  <bruno@clisp.org>
32119         Tests for module 'posix_spawn_file_actions_addopen.
32120         * modules/posix_spawn_file_actions_addopen-tests: New file.
32121         * tests/test-posix_spawn_file_actions_addopen.c: New file.
32123         Tests for module 'posix_spawn_file_actions_adddup2'.
32124         * modules/posix_spawn_file_actions_adddup2-tests: New file.
32125         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
32127         Tests for module 'posix_spawn_file_actions_addclose'.
32128         * modules/posix_spawn_file_actions_addclose-tests: New file.
32129         * tests/test-posix_spawn_file_actions_addclose.c: New file.
32131 2011-09-20  Bruno Haible  <bruno@clisp.org>
32133         Tests for module 'unlockpt'.
32134         * modules/unlockpt-tests: New file.
32135         * tests/test-unlockpt.c: New file.
32136         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
32138         Tests for module 'grantpt'.
32139         * modules/grantpt-tests: New file.
32140         * tests/test-grantpt.c: New file.
32141         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
32143 2011-09-20  Bruno Haible  <bruno@clisp.org>
32145         freopen tests: EBADF tests.
32146         * tests/test-freopen.c: Include errno.h, unistd.h.
32147         (main): Add tests for EBADF, commented out for the moment.
32149         fclose tests: EBADF tests.
32150         * tests/test-fclose.c (main): Add tests for EBADF.
32152         fflush tests: EBADF tests.
32153         * tests/test-fflush.c: Include errno.h, macros.h.
32154         (main): Add tests for EBADF.
32156         ftello tests: EBADF tests.
32157         * tests/test-ftello4.sh: New file.
32158         * tests/test-ftello4.c: New file.
32159         * modules/ftello-tests (Files): Add them.
32160         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
32162         fseeko tests: EBADF tests.
32163         * tests/test-fseeko4.sh: New file.
32164         * tests/test-fseeko4.c: New file.
32165         * modules/fseeko-tests (Files): Add them.
32166         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
32168         Tests for function fputc().
32169         * modules/fputc-tests: New file.
32170         * tests/test-fputc.c: New file.
32171         * modules/stdio-tests (Depends-on): Add fputc-tests.
32173         Tests for function fgetc().
32174         * modules/fgetc-tests: New file.
32175         * tests/test-fgetc.c: New file.
32176         * modules/stdio-tests (Depends-on): Add fgetc-tests.
32178         Tests for function fdopen().
32179         * modules/fdopen-tests: New file.
32180         * tests/test-fdopen.c: New file.
32181         * modules/stdio-tests (Depends-on): Add fdopen-tests.
32183         Tests for module 'vdprintf'.
32184         * modules/vdprintf-tests: New file.
32185         * tests/test-vdprintf.c: New file.
32187         Tests for module 'dprintf'.
32188         * modules/dprintf-tests: New file.
32189         * tests/test-dprintf.c: New file.
32191 2011-09-20  Bruno Haible  <bruno@clisp.org>
32193         Tests for module 'ioctl'.
32194         * modules/ioctl-tests: New file.
32195         * tests/test-ioctl.c: New file.
32197 2011-09-20  Bruno Haible  <bruno@clisp.org>
32199         fcntl tests: EBADF tests.
32200         * tests/test-fcntl.c (main): Add more tests for EBADF.
32202 2011-09-20  Bruno Haible  <bruno@clisp.org>
32204         utimensat tests: EBADF tests.
32205         * tests/test-utimensat.c (main): Add tests for EBADF.
32207         renameat tests: EBADF tests.
32208         * tests/test-renameat.c (main): Add tests for EBADF.
32210         mkfifoat tests: EBADF tests.
32211         * tests/test-mkfifoat.c (main): Add tests for EBADF.
32213         readlinkat tests: EBADF tests.
32214         * tests/test-readlinkat.c (main): Add tests for EBADF.
32216         symlinkat tests: EBADF tests.
32217         * tests/test-symlinkat.c (main): Add tests for EBADF.
32219         linkat tests: EBADF tests.
32220         * tests/test-linkat.c (main): Add tests for EBADF.
32222         Tests for module 'faccessat'.
32223         * modules/faccessat-tests: New file.
32224         * tests/test-faccessat.c: New file.
32226         fdopendir tests: EBADF tests.
32227         * tests/test-fdopendir.c (main): Add more tests for EBADF.
32229         openat tests: EBADF tests.
32230         * tests/test-fchownat.c (main): Add tests for EBADF.
32231         * tests/test-fstatat.c (main): Likewise.
32232         * tests/test-mkdirat.c (main): Likewise.
32233         * tests/test-openat.c (main): Likewise.
32234         * tests/test-unlinkat.c (main): Likewise.
32235         * tests/test-fchmodat.c: New file.
32236         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
32237         (Makefile.am): Also run 'test-fchmodat'.
32239 2011-09-20  Bruno Haible  <bruno@clisp.org>
32241         utimens, futimens, fdutimensat tests: EBADF tests.
32242         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
32244         Tests for function fstat().
32245         * modules/fstat-tests: New file.
32246         * tests/test-fstat.c: New file.
32247         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
32249 2011-09-20  Bruno Haible  <bruno@clisp.org>
32251         test-ttyname_r tests: EBADF tests.
32252         * tests/test-ttyname_r.c (main): Add tests for EBADF.
32254         Tests for module 'isatty'.
32255         * modules/isatty-tests: New file.
32256         * tests/test-isatty.c: New file.
32258         Tests for module 'write'.
32259         * modules/write-tests: New file.
32260         * tests/test-write.c: New file.
32262         Tests for module 'read'.
32263         * modules/read-tests: New file.
32264         * tests/test-read.c: New file.
32266         pwrite tests: EBADF tests.
32267         * tests/test-pwrite.c (main): Add tests for EBADF.
32269         pread tests: EBADF tests.
32270         * tests/test-pread.c (main): Add tests for EBADF.
32272         lseek tests: EBADF tests.
32273         * tests/test-lseek.c (main): Add more tests for EBADF.
32275         Tests for module 'ftruncate'.
32276         * modules/ftruncate-tests: New file.
32277         * tests/test-ftruncate.sh: New file.
32278         * tests/test-ftruncate.c: New file.
32280         fsync tests: EBADF tests.
32281         * tests/test-fsync.c (main): Add more tests for EBADF.
32283         fdatasync tests: EBADF tests.
32284         * tests/test-fdatasync.c (main): Add more tests for EBADF.
32286         Tests for module 'fchown'.
32287         * modules/fchown-tests: New file.
32288         * tests/test-fchown.c: New file.
32290         Tests for module 'fchmod'.
32291         * modules/fchmod-tests: New file.
32292         * tests/test-fchmod.c: New file.
32294         fchdir tests: EBADF tests.
32295         * tests/test-fchdir.c (main): Add more tests for EBADF.
32297         dup2 tests: EBADF tests.
32298         * tests/test-dup2.c (main): Add more tests for EBADF.
32300         Tests for module 'dup'.
32301         * modules/dup-tests: New file.
32302         * tests/test-dup.c: New file.
32304         Tests for module 'close'.
32305         * modules/close-tests: New file.
32306         * tests/test-close.c: New file.
32308 2011-09-20  Bruno Haible  <bruno@clisp.org>
32310         Tests for module 'shutdown'.
32311         * modules/shutdown-tests: New file.
32312         * tests/test-shutdown.c: New file.
32314         Tests for module 'setsockopt'.
32315         * modules/setsockopt-tests: New file.
32316         * tests/test-setsockopt.c: New file.
32318         Tests for module 'sendto'.
32319         * modules/sendto-tests: New file.
32320         * tests/test-sendto.c: New file.
32322         Tests for module 'send'.
32323         * modules/send-tests: New file.
32324         * tests/test-send.c: New file.
32326         Tests for module 'recvfrom'.
32327         * modules/recvfrom-tests: New file.
32328         * tests/test-recvfrom.c: New file.
32330         Tests for module 'recv'.
32331         * modules/recv-tests: New file.
32332         * tests/test-recv.c: New file.
32334         Tests for module 'listen'.
32335         * modules/listen-tests: New file.
32336         * tests/test-listen.c: New file.
32338         Tests for module 'getsockopt'.
32339         * modules/getsockopt-tests: New file.
32340         * tests/test-getsockopt.c: New file.
32342         Tests for module 'getsockname'.
32343         * modules/getsockname-tests: New file.
32344         * tests/test-getsockname.c: New file.
32346         Tests for module 'getpeername'.
32347         * modules/getpeername-tests: New file.
32348         * tests/test-getpeername.c: New file.
32350         Tests for module 'connect'.
32351         * modules/connect-tests: New file.
32352         * tests/test-connect.c: New file.
32354         Tests for module 'bind'.
32355         * modules/bind-tests: New file.
32356         * tests/test-bind.c: New file.
32358         accept4 tests: Fix for native Windows.
32359         * tests/test-accept4.c: Include sockets.h.
32360         (main): Invoke gl_sockets_startup.
32361         * modules/accept4-tests (Depends-on): Add sockets.
32363         accept tests: Fix for native Windows.
32364         * tests/test-accept.c: Include sockets.h.
32365         (main): Invoke gl_sockets_startup.
32366         * modules/accept-tests (Depends-on): Add sockets.
32368 2011-09-19  Bruno Haible  <bruno@clisp.org>
32370         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
32371         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
32372         do...while(0).
32373         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
32374         Suggested by Paul Eggert.
32376 2011-09-19  Bruno Haible  <bruno@clisp.org>
32378         sched: Ensure pid_t is defined.
32379         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
32380         not define pid_t.
32381         * lib/sched.in.h: Include <sys/types.h>.
32382         * doc/posix-headers/sched.texi: Mention the pid_t problem.
32383         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32385 2011-09-19  Bruno Haible  <bruno@clisp.org>
32387         msvc-inval: Ensure the entire expansion is a single statement.
32388         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
32389         of braces.
32391 2011-09-19  Jim Meyering  <meyering@redhat.com>
32393         tests: use printf, not echo in init.sh's warn_ function
32394         * tests/init.sh (warn_): Use printf, not echo.  The latter would
32395         misbehave when given strings containing a backslash or starting
32396         with e.g., -n.  James Youngman suggested setting IFS.
32398 2011-09-19  Eric Blake  <eblake@redhat.com>
32400         futimens: enhance test
32401         * tests/test-futimens.h (test_futimens): Also check for EBADF on
32402         closed non-negative fd.
32404         date: accept 'hence' as opposite of 'ago'
32405         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
32406         * tests/test-parse-datetime.c (main): Enhance test.
32407         Suggested by Jesse Wilson.
32409 2011-09-19  Jim Meyering  <meyering@redhat.com>
32411         getcwd: don't fail in a deep directory on a system without openat
32412         Before this change, getcwd would fail when called from a directory
32413         of depth PATH_MAX / 3 or greater.  That was due to the fact that
32414         the non-openat implementation used "..", "../..", "../../..", etc.
32415         to access ancestor directories.  With too many, that string would
32416         be longer than PATH_MAX.
32417         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
32418         using gnulib's openat replacement.
32419         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
32420         we're using the replacement function.
32422 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
32424         maint.mk: avoid warnings from perl about missing files
32425         * top/maint.mk (def_sym_regex): Ignore files listed in
32426         $(gl_other_headers_) that do not exist, say because a project
32427         does not use a corresponding module.
32429 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32431         stat: use pathmax.h only if needed
32432         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
32433         This is better for Emacs, which does not have a mingw port and
32434         therefore can avoid the pathmax module.
32436         utimens: remove dependency on dup2
32437         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
32438         to work around the Linux kernel bug.
32439         * modules/utimens (Depends-on): Remove dup2.
32441 2011-09-18  Bruno Haible  <bruno@clisp.org>
32443         inet_ntop, inet_pton: Look for it also in libresolv.
32444         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
32445         libnsl, search for it in libresolv.
32446         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
32447         Needed on Solaris 7.
32449 2011-09-18  Bruno Haible  <bruno@clisp.org>
32451         accept, accept4 tests: Avoid link error on Solaris.
32452         * modules/accept-tests (Makefile.am): Link test-accept against
32453         $(LIBSOCKET).
32454         * modules/accept4-tests (Makefile.am): Link test-accept4 against
32455         $(LIBSOCKET).
32457         accept4: Avoid link error on Solaris.
32458         * modules/accept4 (Link): New section.
32460         socket functions: Avoid link errors on Solaris.
32461         * modules/accept (Depends-on): Add socketlib.
32462         (Link): New section.
32463         * modules/bind (Depends-on): Add socketlib.
32464         (Link): New section.
32465         * modules/connect (Depends-on): Add socketlib.
32466         (Link): New section.
32467         * modules/getpeername (Depends-on): Add socketlib.
32468         (Link): New section.
32469         * modules/getsockname (Depends-on): Add socketlib.
32470         (Link): New section.
32471         * modules/getsockopt (Depends-on): Add socketlib.
32472         (Link): New section.
32473         * modules/listen (Depends-on): Add socketlib.
32474         (Link): New section.
32475         * modules/recv (Depends-on): Add socketlib.
32476         (Link): New section.
32477         * modules/recvfrom (Depends-on): Add socketlib.
32478         (Link): New section.
32479         * modules/send (Depends-on): Add socketlib.
32480         (Link): New section.
32481         * modules/sendto (Depends-on): Add socketlib.
32482         (Link): New section.
32483         * modules/setsockopt (Depends-on): Add socketlib.
32484         (Link): New section.
32485         * modules/shutdown (Depends-on): Add socketlib.
32486         (Link): New section.
32487         * modules/socket (Depends-on): Add socketlib.
32488         (Link): New section.
32490 2011-09-18  Bruno Haible  <bruno@clisp.org>
32492         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
32493         * tests/test-ptsname.c (main): Terminate the test if it takes longer
32494         than 5 seconds.
32495         * modules/ptsname-tests (configure.ac): Test for alarm.
32497 2011-09-18  Bruno Haible  <bruno@clisp.org>
32499         posix_spawn_file_actions_add*: Fix module dependencies.
32500         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
32501         posix_spawn_file_actions_init.
32502         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
32503         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
32505 2011-09-18  Bruno Haible  <bruno@clisp.org>
32507         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
32508         * tests/test-rename.h (test_rename): Allow error code EEXIST.
32509         * tests/test-renameat.c (main): Likewise.
32511 2011-09-18  Bruno Haible  <bruno@clisp.org>
32513         Tests for module 'accept4'.
32514         * modules/accept4-tests: New file.
32515         * tests/test-accept4.c: New file.
32517 2011-09-18  Bruno Haible  <bruno@clisp.org>
32519         Tests for module 'accept'.
32520         * modules/accept-tests: New file.
32521         * tests/test-accept.c: New file.
32523 2011-09-18  Bruno Haible  <bruno@clisp.org>
32525         dup2: Support for MSVC.
32526         * lib/dup2.c: Include msvc-inval.h.
32527         (rpl_dup2): Handle invalid parameter notifications during dup2 and
32528         _get_osfhandle calls.
32529         * modules/dup2 (Depends-on): Add msvc-inval.
32530         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
32532         New module 'msvc-inval'.
32533         * lib/msvc-inval.h: New file.
32534         * lib/msvc-inval.c: New file.
32535         * m4/msvc-inval.m4: New file.
32536         * modules/msvc-inval: New file.
32538 2011-09-17  Bruno Haible  <bruno@clisp.org>
32540         Tests for module 'pclose'.
32541         * modules/pclose-tests: New file.
32543         New module 'pclose'.
32544         * lib/stdio.in.h (pclose): New declaration.
32545         * lib/pclose.c: New file.
32546         * m4/pclose.m4: New file.
32547         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
32548         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
32549         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
32550         * modules/pclose: New file.
32551         * modules/popen-tests (Depends-on): Add pclose.
32552         * modules/popen-safer-tests (Depends-on): Likewise.
32553         * doc/posix-functions/pclose.texi: Mention the new module.
32555 2011-09-17  Bruno Haible  <bruno@clisp.org>
32557         popen: Support for MSVC.
32558         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
32559         * lib/popen.c (popen): Provide alternate definition for native Windows.
32560         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
32561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
32562         * modules/popen (Depends-on, configure.ac): Update condition.
32563         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
32564         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
32565         fixed.
32567 2011-09-17  Bruno Haible  <bruno@clisp.org>
32569         isnanl, isnand, isnanf: Work around MSVC bug.
32570         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
32572 2011-09-17  Bruno Haible  <bruno@clisp.org>
32574         sys_socket tests: Fix recent mistake.
32575         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
32577 2011-09-17  Bruno Haible  <bruno@clisp.org>
32579         putenv: Support for MSVC.
32580         * modules/putenv (Depends-on): Add environ.
32581         * lib/putenv.c (environ): Disable declaration.
32582         * lib/unistd.in.h: Update comment.
32584 2011-09-17  Bruno Haible  <bruno@clisp.org>
32586         math: Avoid macro redefinition warnings on MSVC.
32587         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
32588         Undefine before redefining.
32590 2011-09-17  Bruno Haible  <bruno@clisp.org>
32592         doc: Mention functions which are declared as macros.
32593         * doc/posix-functions/*[fl].texi: Mention that some functions are
32594         defined as macros with arguments only.
32596 2011-09-17  Bruno Haible  <bruno@clisp.org>
32598         Add dependencies to new dirent related modules.
32599         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
32600         * modules/fts (Depends-on): Likewise.
32601         * modules/glob (Depends-on): Likewise.
32602         * modules/savedir (Depends-on): Likewise.
32603         * modules/scandir (Depends-on): Likewise.
32604         * modules/dirent-safer (Depends-on): Add opendir, closedir.
32605         * modules/fdopendir (Depends-on): Add opendir.
32607 2011-09-17  Bruno Haible  <bruno@clisp.org>
32609         inet_pton: Support for MSVC on Windows Vista or newer.
32610         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
32611         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
32612         HAVE_DECL_INET_PTON is defined.
32613         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
32614         On platforms with <winsock2.h>, test whether inet_pton is declared in
32615         <ws2tcpip.h>. If so, arrange to replace it.
32616         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
32617         REPLACE_INET_PTON.
32618         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
32619         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
32620         (Depends-on, configure.ac): Update condition.
32621         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
32623 2011-09-17  Bruno Haible  <bruno@clisp.org>
32625         inet_ntop: Support for MSVC on Windows Vista or newer.
32626         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
32627         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
32628         HAVE_DECL_INET_NTOP is defined.
32629         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
32630         On platforms with <winsock2.h>, test whether inet_ntop is declared in
32631         <ws2tcpip.h>. If so, arrange to replace it.
32632         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
32633         REPLACE_INET_NTOP.
32634         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
32635         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
32636         (Depends-on, configure.ac): Update condition.
32637         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
32639 2011-09-16  Eric Blake  <eblake@redhat.com>
32641         test-fsync: yet another enhancement
32642         * tests/test-fsync.c (main): Also test behavior on read-only text
32643         file.
32645 2011-09-16  Bruno Haible  <bruno@clisp.org>
32647         Enhance fsync, fdatasync tests.
32648         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
32649         * tests/test-fdatasync.c (main): Likewise.
32651 2011-09-16  Bruno Haible  <bruno@clisp.org>
32653         Support for MSVC compiler: Ensure mode_t gets defined.
32654         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
32655         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32656         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32657         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
32658         * tests/test-fcntl-h.c: Check that mode_t is defined.
32659         * tests/test-sys_stat.c: Likewise.
32660         * tests/test-sys_types.c: Likewise.
32661         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
32662         * doc/posix-headers/sys_stat.texi: Likewise.
32663         * doc/posix-headers/sys_types.texi: Likewise.
32665 2011-09-16  Bruno Haible  <bruno@clisp.org>
32667         sys_stat: Support for MSVC.
32668         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
32669         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
32670         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
32671         MSVC.
32673 2011-09-16  Bruno Haible  <bruno@clisp.org>
32675         Support for MSVC compiler: Ensure off_t gets defined.
32676         * lib/unistd.in.h: Include <sys/types.h>.
32677         * tests/test-fcntl-h.c: Check that off_t is defined.
32678         * tests/test-sys_stat.c: Likewise.
32679         * tests/test-sys_types.c: Likewise.
32681 2011-09-16  Eric Blake  <eblake@redhat.com>
32683         fdatasync: port to Solaris
32684         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
32685         * modules/fdatasync (Link): Document it.
32686         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
32688         fdatasync: port to MacOS X 10.7
32689         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
32690         declared.
32691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
32692         * modules/unistd (Makefile.am): Substitute it.
32693         * lib/unistd.in.h (fdatasync): Declare on MacOS.
32694         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
32696         fdatasync: minor improvements
32697         * modules/fdatasync (Depends-on): Add condition for fsync.
32698         * lib/fdatasync.c (fdatasync): Add comment.
32699         * tests/test-unistd-c++.cc: Test fdatasync.
32701         unistd: update refs to newer POSIX
32702         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
32703         Suggested by Bruno Haible.
32705         fdatasync: new module
32706         * modules/fsync (Description): Document difference to fdatasync.
32707         * modules/fdatasync: New module.
32708         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
32709         * lib/fdatasync.c (fdatasync): Likewise.
32710         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
32711         defaults.
32712         * modules/unistd (Makefile.am): Set witnesses.
32713         * lib/unistd.in.h (fdatasync): Declare.
32714         * MODULES.html.sh: Document it.
32715         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
32716         * modules/fdatasync-tests: New test.
32717         * tests/test-fdatasync.c: Likewise.
32719 2011-09-16  Eric Blake  <eblake@redhat.com>
32721         test-fsync: enhance tests
32722         * modules/fsync-tests (Depends-on): Add errno, for mingw.
32723         * tests/test-fsync.c (main): Enhance test.
32725 2011-09-15  Bruno Haible  <bruno@clisp.org>
32727         Support for MSVC compiler: Ensure ssize_t gets defined.
32728         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
32729         * doc/posix-headers/stdio.texi: Likewise.
32730         * modules/stdio (Depends-on): Add ssize_t.
32731         * modules/sys_socket (Depends-on): Likewise.
32732         * modules/sys_types (Depends-on): Likewise.
32733         * modules/sys_uio (Depends-on): Likewise.
32734         * modules/unistd (Depends-on): Likewise.
32735         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
32736         * tests/test-sys_types.c: Check that ssize_t is defined.
32738 2011-09-14  Bruno Haible  <bruno@clisp.org>
32740         Avoid using #, the m4 comment starter character, near brackets.
32741         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
32742         delimiter character in sed expressions.
32743         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
32744         Suggested by Eric Blake.
32746         Properly quote AC_CHECK_DECLS' 4th argument.
32747         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
32748         argument.
32749         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
32750         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32751         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32752         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
32753         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32754         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
32755         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
32756         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
32757         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
32758         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
32759         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
32760         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
32761         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32762         * m4/isinf.m4 (gl_ISINF): Likewise.
32763         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
32764         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32765         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32766         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32767         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32768         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
32769         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
32770         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
32771         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
32772         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
32773         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32774         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32775         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
32776         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32777         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32778         Reported by Eric Blake.
32780         Properly quote AC_CHECK_DECL's 4th argument.
32781         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
32782         argument.
32783         * m4/argp.m4 (gl_ARGP): Likewise.
32784         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
32785         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32786         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
32787         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
32788         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
32789         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
32790         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
32791         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
32792         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32793         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
32794         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
32795         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
32796         Reported by Eric Blake.
32798 2011-09-14  Eric Blake  <eblake@redhat.com>
32800         opendir: avoid compile warning
32801         * lib/opendir.c (includes): Always include errno.h.
32802         Reported by Tatsuro MATSUOKA.
32804 2011-09-14  Jim Meyering  <meyering@redhat.com>
32806         maint.mk: sc_tight_scope: propagate failure from sub-make
32807         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
32808         Reported by Martin von Gagern.
32810 2011-09-13  Bruno Haible  <bruno@clisp.org>
32812         tempname: Support for MSVC.
32813         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
32814         MSVC.
32815         * modules/tempname (Depends-on): Add fcntl-h.
32817 2011-09-13  Bruno Haible  <bruno@clisp.org>
32819         sys_time: Support for MSVC.
32820         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
32821         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
32822         include <winsock2.h>.
32823         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
32824         function declarations that collide with POSIX.
32825         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
32826         (Makefile.am): Substitute HAVE_WINSOCK2_H.
32828 2011-09-13  Bruno Haible  <bruno@clisp.org>
32830         stat: Support for MSVC.
32831         * lib/stat.c: Include pathmax.h.
32832         * modules/stat (Depends-on): Add pathmax.
32834         pathmax: Support for native Windows.
32835         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
32837 2011-09-12  Bruno Haible  <bruno@clisp.org>
32839         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
32840         * lib/dirent.in.h (struct dirent): New type.
32841         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
32842         DT_WHT): New macros.
32843         (DIR): New type.
32844         (opendir, closedir): Declare only if the module 'opendir' is enabled.
32845         (readdir, rewinddir): New declarations.
32846         * lib/dirent-private.h: New file.
32847         * lib/opendir.c: New file.
32848         * lib/readdir.c: New file.
32849         * lib/rewinddir.c: New file.
32850         * lib/closedir.c: New file.
32851         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
32852         * m4/opendir.m4: New file.
32853         * m4/readdir.m4: New file.
32854         * m4/rewinddir.m4: New file.
32855         * m4/closedir.m4: New file.
32856         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
32857         REPLACE_CLOSEDIR here.
32858         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
32859         readdir, rewinddir are declared.
32860         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
32861         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
32862         HAVE_REWINDDIR, HAVE_CLOSEDIR.
32863         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
32864         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
32865         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
32866         * modules/opendir: New file.
32867         * modules/readdir: New file.
32868         * modules/rewinddir: New file.
32869         * modules/closedir: New file.
32870         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
32871         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
32872         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
32873         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
32874         * NEWS: Mention the 'fchdir' change.
32876 2011-09-11  Bruno Haible  <bruno@clisp.org>
32878         asm-underscore.m4: Support for MSVC.
32879         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
32880         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
32882 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
32884         Doc about crypt functions.
32885         * doc/posix-functions/crypt.texi: Expand range of glibc versions
32886         needing for _GNU_SOURCE to get crypt.
32887         * doc/posix-functions/encrypt.texi: Likewise.
32888         * doc/posix-functions/setkey.texi: Likewise.
32890 2011-09-11  Bruno Haible  <bruno@clisp.org>
32892         doc: Update regarding MSVC 9.
32893         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
32894         tested".
32895         * doc/posix-functions/*.texi: Update with info about MSVC 9.
32896         * doc/posix-headers/*.texi: Likewise.
32897         * doc/pastposix-functions/*.texi: Likewise.
32898         * doc/glibc-functions/*.texi: Likewise.
32899         * doc/glibc-headers/*.texi: Likewise.
32901 2011-09-11  Bruno Haible  <bruno@clisp.org>
32903         unistd et al.: Don't assume <unistd.h> exists.
32904         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
32905         does not exist.
32906         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
32907         exist. But include <stdlib.h>.
32908         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
32909         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
32910         symlink() does not exist.
32911         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
32912         include <io.h> instead.
32913         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
32914         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
32915         include <direct.h> instead.
32916         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
32917         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
32918         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
32919         <io.h> instead.
32920         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
32921         correctly if the system does not have hard links.
32922         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
32923         <direct.h> instead.
32924         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
32925         it when looking for function declarations.
32926         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
32927         <direct.h> and <io.h> instead.
32928         * doc/posix-headers/unistd.texi: More details about MSVC problem.
32930 2011-09-11  Bruno Haible  <bruno@clisp.org>
32932         strcase: Support for MSVC.
32933         * modules/strcase (Status, Notice): Remove obsoletion mark.
32934         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
32935         * doc/posix-functions/strncasecmp.texi: Likewise.
32937         strings: Don't assume <strings.h> exists.
32938         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
32939         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
32940         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
32941         * doc/posix-headers/strings.texi: Mention the MSVC problem.
32943 2011-09-11  Bruno Haible  <bruno@clisp.org>
32945         dirent: Don't assume <dirent.h> exists.
32946         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
32947         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
32948         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
32949         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
32951 2011-09-11  Bruno Haible  <bruno@clisp.org>
32953         Fix wint_t on MSVC.
32954         * lib/wchar.in.h (wint_t): On MSVC, override it.
32955         * lib/wctype.in.h (wint_t): Likewise.
32956         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
32957         MSVC.
32958         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
32959         * doc/posix-headers/wctype.texi: Likewise.
32961 2011-09-11  Bruno Haible  <bruno@clisp.org>
32963         sys_types: Fix typo.
32964         * lib/sys_types.in.h: Fix typo in comment.
32965         Reported by Paul Eggert.
32967         Support for MSVC compiler: Ensure size_t gets defined.
32968         * modules/strings (Depends-on): Add 'sys_types'.
32969         * modules/sys_uio (Depends-on): Likewise.
32970         * lib/sys_uio.in.h: Update comment.
32972         C++ tests for module 'sys_types'.
32973         * modules/sys_types-c++-tests: New file.
32974         * tests/test-sys_types-c++.cc: New file.
32976         Tests for module 'sys_types'.
32977         * modules/sys_types-tests: New file.
32978         * tests/test-sys_types.c: New file.
32980         New module 'sys_types'.
32981         * lib/sys_types.in.h: New file.
32982         * m4/sys_types_h.m4: New file.
32983         * modules/sys_types: New file.
32984         * doc/posix-headers/sys_types.texi: Mention the new module and the
32985         size_t problem on MSVC 9.
32987 2011-09-11  Bruno Haible  <bruno@clisp.org>
32989         Support for MSVC compiler: Avoid division by a literal 0.
32990         * lib/math.in.h (NAN): Define through a function call also on MSVC.
32991         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
32992         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
32993         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
32994         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
32995         * tests/infinity.h: New file.
32996         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
32997         on MSVC.
32998         * tests/test-ceilf1.c: Include infinity.h.
32999         (main): Use Infinityf.
33000         * tests/test-ceil1.c: Include infinity.h.
33001         (main): Use Infinityd.
33002         * tests/test-ceill.c: Include infinity.h.
33003         (main): Use Infinityl.
33004         * tests/test-dprintf-posix.c: Include infinity.h.
33005         (test_function): Use Infinityd.
33006         * tests/test-floorf1.c: Include infinity.h.
33007         (main): Use Infinityf.
33008         * tests/test-floor1.c: Include infinity.h.
33009         (main): Use Infinityd.
33010         * tests/test-floorl.c: Include infinity.h.
33011         (main): Use Infinityl.
33012         * tests/test-fprintf-posix.c: Include infinity.h.
33013         (test_function): Use Infinityd.
33014         * tests/test-frexp.c: Include infinity.h.
33015         (main): Use Infinityd.
33016         * tests/test-frexpl.c: Include infinity.h.
33017         (main): Use Infinityl.
33018         * tests/test-isfinite.c: Include infinity.h.
33019         (test_isfinitef): Use Infinityf.
33020         (test_isfinited): Use Infinityd.
33021         (test_isfinitel): Use Infinityl.
33022         * tests/test-isinf.c: Include infinity.h.
33023         (test_isinff): Use Infinityf.
33024         (test_isinfd): Use Infinityd.
33025         (test_isinfl): Use Infinityl.
33026         * tests/test-isnan.c: Include infinity.h.
33027         (test_float): Use Infinityf.
33028         (test_double): Use Infinityd.
33029         (test_long_double): Use Infinityl.
33030         * tests/test-isnanf.h: Include infinity.h.
33031         (main): Use Infinityf.
33032         * tests/test-isnand.h: Include infinity.h.
33033         (main): Use Infinityd.
33034         * tests/test-isnanl.h: Include infinity.h.
33035         (main): Use Infinityl.
33036         * tests/test-ldexpl.c: Include infinity.h.
33037         (main): Use Infinityl.
33038         * tests/test-printf-posix.h: Include infinity.h.
33039         (test_function): Use Infinityd.
33040         * tests/test-roundf1.c: Include infinity.h.
33041         (main): Use Infinityf.
33042         * tests/test-round1.c: Include infinity.h.
33043         (main): Use Infinityd.
33044         * tests/test-roundl.c: Include infinity.h.
33045         (main): Use Infinityl.
33046         * tests/test-signbit.c: Include infinity.h.
33047         (test_signbitf): Use Infinityf.
33048         (test_signbitd): Use Infinityd.
33049         (test_signbitl): Use Infinityl.
33050         * tests/test-snprintf-posix.h: Include infinity.h.
33051         (test_function): Use Infinityd, Infinityl.
33052         * tests/test-sprintf-posix.h: Include infinity.h.
33053         (test_function): Use Infinityd, Infinityl.
33054         * tests/test-truncf1.c: Include infinity.h.
33055         (main): Use Infinityf.
33056         * tests/test-trunc1.c: Include infinity.h.
33057         (main): Use Infinityd.
33058         * tests/test-truncl.c: Include infinity.h.
33059         (main): Use Infinityl.
33060         * tests/test-vasnprintf-posix.c: Include infinity.h.
33061         (test_function): Use Infinityd, Infinityl.
33062         * tests/test-vasprintf-posix.c: Include infinity.h.
33063         (test_function): Use Infinityd, Infinityl.
33064         * modules/ceilf-tests (Files): Add tests/infinity.h.
33065         * modules/ceil-tests (Files): Likewise.
33066         * modules/ceill-tests (Files): Likewise.
33067         * modules/dprintf-posix-tests (Files): Likewise.
33068         * modules/floorf-tests (Files): Likewise.
33069         * modules/floor-tests (Files): Likewise.
33070         * modules/floorl-tests (Files): Likewise.
33071         * modules/fprintf-posix-tests (Files): Likewise.
33072         * modules/frexp-tests (Files): Likewise.
33073         * modules/frexp-nolibm-tests (Files): Likewise.
33074         * modules/frexpl-tests (Files): Likewise.
33075         * modules/frexpl-nolibm-tests (Files): Likewise.
33076         * modules/isfinite-tests (Files): Likewise.
33077         * modules/isinf-tests (Files): Likewise.
33078         * modules/isnan-tests (Files): Likewise.
33079         * modules/isnanf-tests (Files): Likewise.
33080         * modules/isnanf-nolibm-tests (Files): Likewise.
33081         * modules/isnand-tests (Files): Likewise.
33082         * modules/isnand-nolibm-tests (Files): Likewise.
33083         * modules/isnanl-tests (Files): Likewise.
33084         * modules/isnanl-nolibm-tests (Files): Likewise.
33085         * modules/ldexpl-tests (Files): Likewise.
33086         * modules/printf-posix-tests (Files): Likewise.
33087         * modules/roundf-tests (Files): Likewise.
33088         * modules/round-tests (Files): Likewise.
33089         * modules/roundl-tests (Files): Likewise.
33090         * modules/signbit-tests (Files): Likewise.
33091         * modules/snprintf-posix-tests (Files): Likewise.
33092         * modules/sprintf-posix-tests (Files): Likewise.
33093         * modules/truncf-tests (Files): Likewise.
33094         * modules/trunc-tests (Files): Likewise.
33095         * modules/truncl-tests (Files): Likewise.
33096         * modules/vasnprintf-posix-tests (Files): Likewise.
33097         * modules/vasprintf-posix-tests (Files): Likewise.
33098         * modules/vdprintf-posix-tests (Files): Likewise.
33099         * modules/vfprintf-posix-tests (Files): Likewise.
33100         * modules/vprintf-posix-tests (Files): Likewise.
33101         * modules/vsnprintf-posix-tests (Files): Likewise.
33102         * modules/vsprintf-posix-tests (Files): Likewise.
33103         * modules/xprintf-posix-tests (Files): Likewise.
33105 2011-09-11  Bruno Haible  <bruno@clisp.org>
33107         Ensure pid_t gets defined.
33108         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
33109         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
33110         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33111         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33112         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33113         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
33114         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33115         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33116         * tests/test-fcntl-h.c: Check that pid_t is defined.
33117         * tests/test-sched.c: Likewise.
33118         * tests/test-termios.c: Likewise.
33119         * tests/test-time.c: Likewise.
33120         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
33121         * doc/posix-headers/signal.texi: Likewise.
33122         * doc/posix-headers/sys_types.texi: Likewise.
33123         * doc/posix-headers/time.texi: Likewise.
33125 2011-09-11  Bruno Haible  <bruno@clisp.org>
33127         acl: Fix compilation on Solaris 10 (older version).
33128         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
33129         of ACE_EVERYONE.
33130         * lib/set-mode-acl.c (qset_acl): Likewise.
33131         Reported by Christian Jullien <eligis@orange.fr>.
33133 2011-09-10  Bruno Haible  <bruno@clisp.org>
33135         iconv, unsetenv: Add support for MSVC compiler.
33136         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
33137         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
33139 2011-09-10  Bruno Haible  <bruno@clisp.org>
33141         *printf: Add support for MSVC compiler.
33142         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
33143         handles the exception caused by the %n directive. When cross-compiling,
33144         guess no on native Windows.
33145         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
33146         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
33147         emulate it through vsnprintf.
33148         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
33149         * doc/posix-functions/dprintf.texi: Update documentation regarding
33150         MSVC 9.
33151         * doc/posix-functions/fprintf.texi: Likewise.
33152         * doc/posix-functions/printf.texi: Likewise.
33153         * doc/posix-functions/snprintf.texi: Likewise.
33154         * doc/posix-functions/sprintf.texi: Likewise.
33155         * doc/posix-functions/swprintf.texi: Likewise.
33156         * doc/posix-functions/vdprintf.texi: Likewise.
33157         * doc/posix-functions/vfprintf.texi: Likewise.
33158         * doc/posix-functions/vprintf.texi: Likewise.
33159         * doc/posix-functions/vsnprintf.texi: Likewise.
33160         * doc/posix-functions/vsprintf.texi: Likewise.
33161         * doc/glibc-functions/asprintf.texi: Likewise.
33162         * doc/glibc-functions/obstack_printf.texi: Likewise.
33163         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33164         * doc/glibc-functions/vasprintf.texi: Likewise.
33166 2011-09-10  Bruno Haible  <bruno@clisp.org>
33168         nocrash: Add support for native Windows.
33169         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
33171 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
33172             Bruno Haible  <bruno@clisp.org>
33174         absolute-header, include-next: Add support for MSVC compiler.
33175         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
33176         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
33177         directory separator in #line directives.
33178         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
33179         recognize also backslash as directory separator in #line directives.
33181 2011-09-08  Jim Meyering  <meyering@redhat.com>
33183         maint.mk: mark the post-release commit log with "maint: " prefix
33184         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
33185         one-line commit-log summary.
33187 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
33188             Bruno Haible  <bruno@clisp.org>
33190         Doc about crypt functions.
33191         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
33192         systems.
33193         * doc/posix-functions/encrypt.texi: Likewise.
33194         * doc/posix-functions/setkey.texi: Likewise.
33196 2011-09-08  Simon Josefsson  <simon@josefsson.org>
33198         * lib/gc.h: Fix copyright header.
33200 2011-09-07  Bruno Haible  <bruno@clisp.org>
33202         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
33203         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
33204         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
33206 2011-09-07  Bruno Haible  <bruno@clisp.org>
33208         openat: Work around compilation error with OSF/1 5.1 DTK cc.
33209         * lib/fopen.c: Use different syntax for include of <stdio.h>.
33210         * lib/freopen.c: Likewise.
33211         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
33212         * lib/lstat.c: Likewise.
33213         * lib/stat.c: Likewise.
33214         * lib/open.c: Use different syntax for include of <fcntl.h>.
33215         * lib/openat.c: Include fcntl.h again, explicitly.
33217 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
33219         parse-datetime: document the newly accepted format
33220         * doc/parse-datetime.texi (Combined date and time of day items):
33221         New section.
33223 2011-09-06  Bruno Haible  <bruno@clisp.org>
33225         acl: Fix a test failure on newer Solaris 10 with ZFS.
33226         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
33227         ENOSYS as no ACL.
33228         Reported by Jim Meyering.
33230 2011-09-06  Bruno Haible  <bruno@clisp.org>
33232         acl: Update for AIX >= 5.3 with NFS.
33233         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
33234         ENOSYS as no ACL.
33236         acl: Fix a test failure on AIX >= 5.3 with NFS.
33237         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
33238         as no ACL.
33240 2011-09-06  Bruno Haible  <bruno@clisp.org>
33242         acl: Fix a test failure on IRIX 6.5 with NFS.
33243         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
33244         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
33245         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
33246         * lib/copy-acl.c (qcopy_acl): Likewise.
33248 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
33250         openat: port to AIX 7.1 with large files
33251         AIX 7.1 does a "#define openat open64at" if large files are in use,
33252         so we can't simply #undef openat.  Use the orig_openat trick (similar
33253         to orig_open in lib/open.c) to work around the problem.  Problem
33254         reported by Kevin Brott for GNU tar, in the thread containing
33255         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
33256         * lib/openat.c (__need_system_fcntl_h): Define first.
33257         Include <fcntl.h> and <sys/types.h> before undefining.
33258         (orig_openat) [HAVE_OPENAT]: New inline function.
33259         (openat) [HAVE_OPENAT]: Do not undef.
33260         (rpl_openat): Use orig_openat, not openat.
33262 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
33263             Bruno Haible  <bruno@clisp.org>
33265         acl: Avoid errors on NonStop Kernel.
33266         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
33267         ENOTSUP errors.
33269 2011-09-05  Bruno Haible  <bruno@clisp.org>
33271         acl: Clean up Solaris code.
33272         * lib/acl-internal.h: Remove no-op #if.
33273         * lib/file-has-acl.c: Likewise.
33274         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
33275         * lib/copy-acl.c (qcopy_acl): Likewise.
33277 2011-09-05  Bruno Haible  <bruno@clisp.org>
33279         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
33280         binaries built on the original Solaris 10.
33281         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
33282         trivial.
33284 2011-09-05  Bruno Haible  <bruno@clisp.org>
33286         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33287         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
33288         10.
33289         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
33290         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
33291         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
33292         instead of acl_get, facl_get, acl_set, facl_set.
33294 2011-09-05  Bruno Haible  <bruno@clisp.org>
33296         copy-file: Try unit tests on more file systems.
33297         * tests/test-copy-file-1.sh: New file.
33298         * tests/test-copy-file-2.sh: New file.
33299         * modules/copy-file-tests (Files): Add them.
33300         (Makefile.am): Add them to TESTS.
33302         acl: Try unit tests on more file systems.
33303         * tests/test-file-has-acl-1.sh: New file.
33304         * tests/test-file-has-acl-2.sh: New file.
33305         * tests/test-set-mode-acl-1.sh: New file.
33306         * tests/test-set-mode-acl-2.sh: New file.
33307         * tests/test-copy-acl-1.sh: New file.
33308         * tests/test-copy-acl-2.sh: New file.
33309         * modules/acl-tests (Files): Add them.
33310         (Makefile.am): Add them to TESTS.
33312 2011-09-04  Bruno Haible  <bruno@clisp.org>
33314         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33315         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
33316         10.
33317         (OLD_ALLOW, OLD_DENY): New macros.
33318         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
33319         ACE_ACCESS_ALLOWED_ACE_TYPE.
33320         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
33321         ACE_ACCESS_DENIED_ACE_TYPE.
33322         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
33323         (NEW_ACE_EXECUTE): Fix value.
33324         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
33325         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
33326         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
33327         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
33328         NEW_ACE_SYNCHRONIZE): New macros.
33329         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
33330         instead of acl_fromtext, acl_set, facl_set.
33331         Fixes a coreutils/tests/cp/perm failure.
33333 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
33335         openat: test for fstatat (..., 0) bug
33336         Further testing with tar suggests that fstatat (..., 0)
33337         does not work in general, on AIX 7.1; see
33338         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
33339         So, give up entirely on AIX 7.1's fstatat, and fall back on our
33340         replacement fstatat (which is what older AIX releases were using
33341         anyway).
33342         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
33343         use is now changed to orig_fstatat.  This was probably the right
33344         thing to do anyway.
33345         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
33346         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
33347         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
33348         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
33349         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
33350         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
33351         if the bug is found.
33353         openat: test for fstatat (AT_FDCWD, ..., 0) bug
33354         This tests for another fstatat bug on AIX 7.1:
33355         fstatat (AT_FDCWD, ..., 0) does not work.  See
33356         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
33357         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
33358         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
33359         (rpl_fstatat): Adjust so that it works around either (or both)
33360         bugs if present.
33361         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
33363 2011-09-03  Karl Berry  <karl@gnu.org>
33365         * doc/regex.texi (Character Class Operators): Avoid literal ":"
33366         in index entries.
33368 2011-09-02  Bruno Haible  <bruno@clisp.org>
33370         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
33371         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
33372         values of AR, ARFLAGS, RANLIB.
33373         Reported by John W. Eaton <jwe@gnu.org> for Octave.
33375 2011-09-02  Bruno Haible  <bruno@clisp.org>
33377         Find 'ar' program that fits with --host argument.
33378         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
33380 2011-09-02  Bruno Haible  <bruno@clisp.org>
33382         tests: init.sh: Support any non-GNU diff.
33383         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
33384         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
33385         Solaris 8.
33387 2011-09-02  Bruno Haible  <bruno@clisp.org>
33389         tests: init.sh: work also with any non-GNU diff that supports -u
33390         * tests/init.sh: Relax check for diff -u support.
33391         Rather than checking for GNU diff via --version, simply check
33392         for support for -u itself.  Useful at least on OpenBSD 4.9,
33393         AIX 7.1, IRIX 6.5, and Solaris 10.
33395 2011-09-01  Bruno Haible  <bruno@clisp.org>
33397         strtoimax, strtoumax: Document problem on HP-UX 11.
33398         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
33399         * doc/posix-functions/strtoumax.texi: Likewise.
33401 2011-09-01  Bruno Haible  <bruno@clisp.org>
33403         strtoumax: Avoid link error on OSF/1 with DTK cc.
33404         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
33405         defined as a function.
33406         * modules/strtoumax (Depends-on, configure.ac): Test only whether
33407         strtoumax is defined, not whether it is declared.
33409 2011-09-01  Bruno Haible  <bruno@clisp.org>
33411         strtoimax: Avoid link error on OSF/1 with DTK cc.
33412         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
33413         defined as a function.
33414         * modules/strtoimax (Depends-on, configure.ac): Test only whether
33415         strtoimax is defined, not whether it is declared.
33417 2011-09-01  Bruno Haible  <bruno@clisp.org>
33419         imaxdiv: Avoid link error on OSF/1 with DTK cc.
33420         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
33421         as a function.
33422         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
33423         whether it is declared.
33425 2011-09-01  Bruno Haible  <bruno@clisp.org>
33427         imaxabs: Avoid link error on OSF/1 with DTK cc.
33428         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
33429         as a function.
33430         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
33431         whether it is declared.
33433 2011-09-01  Bruno Haible  <bruno@clisp.org>
33435         Tests for module 'strtoumax'.
33436         * modules/strtoumax-tests: New file.
33437         * tests/test-strtoumax.c: New file.
33439         Tests for module 'strtoimax'.
33440         * modules/strtoimax-tests: New file.
33441         * tests/test-strtoimax.c: New file.
33443         Tests for module 'imaxdiv'.
33444         * modules/imaxdiv-tests: New file.
33445         * tests/test-imaxdiv.c: New file.
33447         Tests for module 'imaxabs'.
33448         * modules/imaxabs-tests: New file.
33449         * tests/test-imaxabs.c: New file.
33451 2011-09-01  Bruno Haible  <bruno@clisp.org>
33453         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
33454         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
33455         pthread_create.
33457 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33459         openat: work around AIX 7.1 fstatat issue
33460         This should fix the problem that was not properly fixed
33461         in the previous change, dated 2011-08-30.
33462         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
33463         __need_system_stat_h defined.
33464         (orig_fstatat) [HAVE_FSTATAT]: New function.
33465         (rpl_fstatat): Go back to the old way of doing things,
33466         except call orig_fstatat instead of fstatat.
33467         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
33468         Remove unnecessary check whether fstatat fills in st_size etc.
33470 2011-09-01  Bruno Haible  <bruno@clisp.org>
33472         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
33473         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
33474         just include the system's header.
33476 2011-08-31  Jim Meyering  <meyering@redhat.com>
33478         tests: avoid spurious assertion failure in test-float.c on ppc64
33479         * tests/test-float.c (test_long_double): Comment out an assertion,
33480         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
33481         with gcc-4.4.4.
33483         maint: indent with spaces, not TABs
33484         I need to get in the habit of running gnulib's "make check".
33485         Both of these would have been caught.
33486         * m4/largefile.m4: Indent with spaces, not TABs.
33487         * lib/parse-datetime.y (iso_8601_time): Likewise.
33488         Spotted by Pádraig Brady.
33490         test-parse-datetime.c: accommodate a relatively strict gcc warning
33491         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
33492         to avoid a warning from gcc's -Werror=missing-declarations.
33493         Insert a few spaces-before-funcall-parenthesis.
33495 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
33497         parse-datetime: accept ISO 8601 date and time rep with "T" separator
33498         The parser now accepts ISO 8601 date-time strings with "T" as the
33499         separator.  It has long parsed dates like "2004-02-29 16:21:42"
33500         with a space between the date and time strings.  Now it also parses
33501         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
33502         variants like "2004-02-29T16:21:42.333-07:00"
33503         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
33504         of day representation using the 'T' separator character.
33505         * doc/parse-datetime.texi (General date syntax): replace use of
33506         deprecated --iso-8601 option with --rfc-3339 in example of date
33507         command output formats that can be parsed.
33508         * tests/test-parse-datetime.c (tm_diff): New function, taken from
33509         lib/parse-datetime.y.
33510         (gmt_offset): New function.
33511         (main): Add additional test cases to validate ISO8601 extended
33512         date and time of day parsing.
33514 2011-08-31  Bruno Haible  <bruno@clisp.org>
33516         freopen: Documentation.
33517         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
33518         name.
33519         Reported by Claudio Bley <claudio.bley@gmail.com>.
33521 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
33523         freopen: Don't crash if the filename argument is NULL.
33524         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
33525         NULL.
33527 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33529         openat: work around AIX 7.1 fstatat bug
33530         Problem reported by Kevin Brott for GNU tar, in the thread containing
33531         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
33532         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
33533         FSTATAT_ST_SIZE_ETC_BROKEN.
33534         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
33535         rpl_fstatat.
33536         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
33537         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
33538         AC_CHECK_FUNCS_ONCE for fstatat.
33539         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
33540         fchmodat, mkdirat, openat and unlinkat.
33542 2011-08-30  Bruno Haible  <bruno@clisp.org>
33544         Avoid endless recursions if config.h includes some header files.
33545         * lib/fopen.c (__need_FILE): Define already before including config.h.
33546         * lib/freopen.c (__need_FILE): Likewise.
33547         * lib/open.c (__need_system_fcntl_h): Likewise.
33548         * lib/stat.c (__need_system_sys_stat_h): Likewise.
33549         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
33550         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
33552 2011-08-25  Karl Berry  <karl@gnu.org>
33554         * config/srclist.txt (ylwrap): new try.
33555         * build-aux/ylwrap: new file.
33557 2011-08-23  Bruno Haible  <bruno@clisp.org>
33559         tmpdir: Use a good default directory on native Windows.
33560         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
33561         (P_tmpdir): Default to _P_tmpdir on native Windows.
33562         (path_search): On native Windows, try the value returned by GetTempPath
33563         before trying P_tmpdir.
33564         * modules/tmpdir (Depends-on): Add pathmax.
33565         Suggested by John Darrington <john@darrington.wattle.id.au>.
33567 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
33569         doc: fix typo in README-release
33570         * top/README-release: Capitalize first word of a sentence.
33572 2011-08-19  Jim Meyering  <meyering@redhat.com>
33574         fts: do not exhaust memory when processing million-entry directories
33575         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
33576         directory would require about 256*N bytes of memory.  Thus, it was
33577         easy to construct a directory too large to be processed by any of
33578         those tools.  With this change, fts' maximum memory utilization is
33579         now limited to around 30MB.
33580         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
33581         (fts_read): When we've processed the final entry (i.e., when
33582         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
33583         using the parent entry to read any remaining entries.  Dispatch
33584         depending on what fts_build returns:
33585         - NULL+stop, aka failure: stop
33586         - NULL otherwise: move up in the dir hierarchy
33587         - non-NULL: handle this new entry
33588         (fts_build): Declare and use new local, continue_readdir.
33589         Prepare to be called from fts_read, when the entries
33590         from a partially-read directory have just been exhausted.
33591         In that case, we'll skip the opendir and instead use the parent's
33592         fts_dirp and derive dir_fd from that.
33593         Finally, in the readdir loop, if we read max_entries entries,
33594         exit the loop ensuring *not* to call closedir.  This is required
33595         so that fts_dirp can be reused on a subsequent call.
33596         Prompted by Ben England's report of memory exhaustion in find
33597         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
33599         maint: fts: move decl of `dp' down into while loop; split a long line
33600         * lib/fts.c (fts_build): No semantic change.
33602         fts: add/use new struct member, fts_dirp
33603         We are about to use this to manage any directory with
33604         too many entries to read all of them into memory at once.
33605         To do that, we'll need to save the DIR* pointer in each
33606         affected FTSENT struct.
33607         * lib/fts_.h: Include <dirent.h>.
33608         (struct FTSENT) [fts_dirp]: New member.
33609         * lib/fts.c (closedir_and_clear): Define.
33610         Use it in place of closedir so that we are sure to
33611         clear the new fts_dirp member when done with it.
33612         (fts_alloc): Initialize the new member.
33613         (fts_lfree): Free, if needed.
33615         maint: fts: give __opendir2 a new parameter and rename
33616         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
33617         than surreptitiously using sole caller's "dir_fd".
33618         (fts_opendir): Rename from __opendir2.
33620         maint: fts.c: remove __opendir2's now-unused parameter, oflag
33621         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
33623         maint: fts.c: correct off-by-one indentation
33624         * lib/fts.c (fts_build): Correct indentation, change style
33625         of a couple of block comments, and bracing style.
33627         maint: fts.c: move __opendir2 #define "up" out of function body
33628         * lib/fts.c (__opendir2): Move "up".  No semantic change.
33630         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
33631         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
33632         out for a long time and besides was useful only on BSD systems.
33634 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
33636         regex: port to Stratus OpenVOS
33637         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
33638         define to empty, rather than attempting nonportable optimizations.
33639         Problem reported by Paul Green in:
33640         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
33641         and fix suggested by Eric Blake in:
33642         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
33644 2011-08-17  Eric Blake  <eblake@redhat.com>
33646         getcwd: fix test failures on mingw
33647         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
33648         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
33649         test if long directory cannot be created, and allow mingw errno.
33651         getcwd-lgpl: fix m4 to match relaxed test for BSD
33652         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
33653         (gl_FUNC_GETCWD_SIGNATURE): New macro.
33654         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
33655         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
33656         signature problem.
33658         getcwd: fix compilation on mingw64
33659         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
33660         getcwd.
33661         Reported by Marc-André Lureau.
33663         pipe2: silence compiler warning
33664         * lib/pipe2.c (pipe2): Hide label if it is not used.
33666 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
33668         relocatable-prog: fix link error
33669         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
33670         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
33671         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
33672         into modules/relocatable-lib without noticing that
33673         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
33674         also needs to build relocatable.c.
33676 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33678         getaddrinfo: fix sh typo in gai_strerrorA decl checking
33679         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
33680         shell code: it contained a 'break' that was not in a loop.
33681         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
33682         via a shell-language loop; this may have been true in old Autoconf
33683         versions, but it's not true in Autoconf 2.68.  I found this bug
33684         when testing coreutils git on Solaris 8, whose shell complains
33685         about the syntax error.
33687 2011-08-12  Simon Josefsson  <simon@josefsson.org>
33689         * lib/base64.c: Fix comment to reference RFC 4648.
33690         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
33691         <gvtulder@gmail.com>.
33693 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33695         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
33697         po/Makefile.in.in: fix make -q problem
33698         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
33699         rule, since there's no file named 'check-macro-version' and its
33700         use as a file breaks make -q.
33701         (all): Don't depend on check-macro-version.
33702         (CHECK_MACRO_VERSION): New macro.
33703         (stamp-po): Use it.
33705         configmake: fix make -q problem
33706         * modules/configmake (configmake.h): Update configmake.h's time stamp
33707         even if the file does not change.  Otherwise, 'make -q' fails.
33708         Problem reported by Simon Josefsson in
33709         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
33711 2011-08-11  Jim Meyering  <meyering@redhat.com>
33713         git-version-gen: correct the advice in a comment
33714         * build-aux/git-version-gen: Correct comment.
33715         Don't recommend to list .tarball-version in .gitignore.
33717 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33719         base64: fix off-by-one buffer size bug
33720         Problem and (trivial) fix reported by Gijs van Tulder in
33721         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
33722         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
33723         * tests/test-base64.c (main): Catch the bug.
33725 2011-08-10  Eric Blake  <eblake@redhat.com>
33727         closein: correct comments
33728         * lib/closein.c (close_stdin): Improve comments.
33730 2011-08-09  Bruno Haible  <bruno@clisp.org>
33732         More tests for 'fseeko'.
33733         * tests/test-fseeko3.c: New file, from Eric Blake.
33734         * tests/test-fseeko3.sh: New file.
33735         * modules/fseeko-tests (Files): Add them.
33736         (TESTS): Add test-fseeko3.sh.
33737         (check_PROGRAMS): Add test-fseeko3.
33739 2011-08-09  Eric Blake  <eblake@redhat.com>
33741         fseeko: remove unneeded hack
33742         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
33744         fseeko: fix bug on glibc
33745         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
33746         Reported by John W. Eaton.
33748 2011-08-08  Bruno Haible  <bruno@clisp.org>
33750         unictype/base: Fix interoperability with preinstalled libunistring.
33751         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
33752         Reported by Simon Josefsson.
33754 2011-08-08  Bruno Haible  <bruno@clisp.org>
33756         iswblank: Detect declaration correctly.
33757         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
33758         AC_CHECK_DECLS invocation.
33760 2011-08-08  Bruno Haible  <bruno@clisp.org>
33762         tcgetsid: Detect declaration correctly.
33763         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
33764         AC_CHECK_DECLS invocation.
33765         Reported by Simon Josefsson.
33767 2011-08-08  Eric Blake  <eblake@redhat.com>
33769         largefile: fix typo that regressed large file support
33770         * modules/largefile (configure.ac-early): Fix section name.
33772 2011-08-06  Karl Berry  <karl@gnu.org>
33774         * MODULES.html.sh (func_all_files): _Noreturn is no longer
33775         a separate module.
33777 2011-08-05  Simon Josefsson  <simon@josefsson.org>
33779         openat: Fix warnings and commens when building unlinkat.c on Hurd.
33780         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
33781         get prototype for free.
33783 2011-08-04  Bruno Haible  <bruno@clisp.org>
33785         Tests for module 'pathmax'.
33786         * modules/pathmax-tests: New file.
33787         * tests/test-pathmax.c: New file.
33789         canonicalize-lgpl: Support larger filenames on the Hurd.
33790         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
33791         Reported by Paul Eggert.
33793         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
33794         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
33795         * lib/chdir-long.h: Include pathmax.h.
33796         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
33797         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
33798         (PATH_MAX): Remove code that is done by pathmax.h.
33799         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
33800         * lib/tmpfile.c: Add a comment.
33801         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
33802         * modules/chdir-long (Depends-on): Add pathmax.
33803         * modules/getcwd (Depends-on): Add pathmax.
33804         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
33805         is not defined.
33806         * doc/posix-headers/limits.texi: Mention the pathmax module.
33807         * NEWS: Mention the change.
33809 2011-08-02  Bruno Haible  <bruno@clisp.org>
33811         pthread_sigmask: Actually use results of gl_THREADLIB.
33812         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
33813         gl_THREADLIB, not gl_[]THREADLIB.
33814         Reported by Eric Blake.
33816 2011-08-02  Jim Meyering  <meyering@redhat.com>
33818         maint.mk: relax the default _gl_TS_function_match regexp
33819         * top/maint.mk (_gl_TS_function_match): Don't require at least one
33820         space between function name and "(" in an "extern" declaration.
33821         That would fail to match a decl with no space there: extern void foo();
33823 2011-07-31  Iain Nicol  <iain@thenicols.net>
33825         git-version-gen: document that EXTRA_DIST must include .version
33826         * build-aux/git-version-gen: In the how-to-use comment, document
33827         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
33828         will fail when run from an unpacked distribution tarball.
33830 2011-08-01  Bruno Haible  <bruno@clisp.org>
33832         wctype-h: Fix last change.
33833         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
33834         REPLACE_TOWLOWER to 0.
33835         Reported by Sam Steingold <sds@gnu.org>.
33837 2011-07-31  Bruno Haible  <bruno@clisp.org>
33839         frexpl: Update autoconf test.
33840         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
33841         according to changes of 2011-06-20.
33843 2011-07-31  Bruno Haible  <bruno@clisp.org>
33845         sys_utsname: Add support for Minix.
33846         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
33847         <sys/utsname.h>.
33848         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33849         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
33851 2011-07-31  Bruno Haible  <bruno@clisp.org>
33853         strings: Add support for Minix.
33854         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
33855         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33856         * doc/posix-headers/strings.texi: Document the Minix problem.
33858 2011-07-31  Bruno Haible  <bruno@clisp.org>
33860         wctype-h: Add support for Minix.
33861         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
33862         REPLACE_TOWLOWER.
33863         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
33864         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
33865         REPLACE_ISWCNTRL.
33867 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
33869         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
33870         This is a performance improvement for 64-bit hosts: it causes the
33871         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
33873 2011-07-31  Bruno Haible  <bruno@clisp.org>
33875         stdioext: Add support for Minix.
33876         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
33877         * lib/fpurge.c (fpurge): Likewise.
33878         * lib/freadahead.c (freadahead): Likewise.
33879         * lib/freadable.c (freadable): Likewise.
33880         * lib/freading.c (freading): Likewise.
33881         * lib/freadptr.c (freadptr): Likewise.
33882         * lib/freadseek.c (freadptrinc): Likewise.
33883         * lib/fseeko.c (rpl_fseeko): Likewise.
33884         * lib/fseterr.c (fseterr): Likewise.
33885         * lib/fwritable.c (fwritable): Likewise.
33886         * lib/fwriting.c (fwriting): Likewise.
33887         * lib/fflush.c (clear_ungetc_buffer): Update comment.
33888         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
33890 2011-07-31  Bruno Haible  <bruno@clisp.org>
33892         errno: Port to Minix.
33893         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
33894         ECONNABORTED are defined.
33895         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
33896         GNULIB_defined_ECONNABORTED): New macros.
33897         * lib/strerror-override.h (strerror_override): Test also
33898         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
33899         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
33900         ECONNABORTED.
33901         * doc/posix-headers/errno.texi: Mention the Minix problem.
33903 2011-07-31  Bruno Haible  <bruno@clisp.org>
33905         Work around declaration collisions on Minix.
33906         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
33907         defined, set REPLACE_MBSINIT.
33908         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
33909         defined, set REPLACE_MBRTOWC.
33910         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
33911         set REPLACE_MBRLEN.
33912         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
33913         defined, set REPLACE_MBSRTOWCS.
33914         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
33915         defined, set REPLACE_WCRTOMB.
33916         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
33917         defined, set REPLACE_WCSRTOMBS.
33919 2011-07-31  Bruno Haible  <bruno@clisp.org>
33921         Add support for Minix with ACK compiler.
33922         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
33923         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
33924         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
33926 2011-07-31  Bruno Haible  <bruno@clisp.org>
33928         Documentation about Minix.
33929         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
33930         * doc/glibc-headers/*.texi: Likewise.
33931         * doc/posix-functions/*.texi: Likewise.
33932         * doc/glibc-functions/*.texi: Likewise.
33934 2011-07-31  Bruno Haible  <bruno@clisp.org>
33936         snippet/warn-on-use: Fix indentation.
33937         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
33939 2011-07-25  Jim Meyering  <meyering@redhat.com>
33941         tests: test-update-copyright.sh: remove unnecessary "rm" commands
33942         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
33943         commands.
33945 2011-07-27  Jim Meyering  <meyering@redhat.com>
33947         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
33948         * top/maint.mk (gl_extract_significant_defines_): Now that
33949         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
33950         gnulib/lib/signal.in.h, and now that we recommend to
33951         define-if-undefined those two symbols in application code,
33952         we must filter them out of the "significant" list.
33953         This avoids a "make syntax-check" failure in coreutils.
33955 2011-07-26  Eric Blake  <eblake@redhat.com>
33957         warnings: add comments about previous patch
33958         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
33959         * m4/include_next.m4: Likewise.
33960         * m4/warn-on-use.m4: Likewise.
33961         * m4/warnings.m4: Likewise, and simplify use.
33962         Suggested by Stefano Lattarini.
33964         include-next, warnings: support older autoconf
33965         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
33966         AS_VAR_PUSHDEF in a way that works with older autoconf.
33967         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
33968         Reported by Daniel P. Berrange.
33970 2011-07-25  Bruno Haible  <bruno@clisp.org>
33972         fseek, ftell: Fix doc.
33973         * doc/posix-functions/fseek.texi: Reword statement about
33974         AC_SYS_LARGEFILE.
33975         * doc/posix-functions/ftell.texi: Likewise.
33977 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
33978             Bruno Haible  <bruno@clisp.org>
33980         Add dependencies to the 'largefile' module.
33981         * modules/fopen (Depends-on): Add 'largefile'.
33982         * modules/freopen (Depends-on): Likewise.
33983         * modules/fseeko (Depends-on): Likewise.
33984         * modules/ftello (Depends-on): Likewise.
33985         * modules/glob (Depends-on): Likewise.
33986         * modules/lseek (Depends-on): Likewise.
33987         * modules/lstat (Depends-on): Likewise.
33988         * modules/mkostemp (Depends-on): Likewise.
33989         * modules/mkostemps (Depends-on): Likewise.
33990         * modules/mkstemp (Depends-on): Likewise.
33991         * modules/mkstemps (Depends-on): Likewise.
33992         * modules/open (Depends-on): Likewise.
33993         * modules/openat (Depends-on): Likewise.
33994         * modules/pread (Depends-on): Likewise.
33995         * modules/pwrite (Depends-on): Likewise.
33996         * modules/scandir (Depends-on): Likewise.
33997         * modules/stat (Depends-on): Likewise.
33998         * modules/tmpfile (Depends-on): Likewise.
33999         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
34000         since the containing module now depends on the largefile module.
34001         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
34002         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
34003         off_t is fixed by gnulib.
34004         * doc/posix-functions/freopen.texi: Likewise.
34005         * doc/posix-functions/fseeko.texi: Likewise.
34006         * doc/posix-functions/fstatat.texi: Likewise.
34007         * doc/posix-functions/ftello.texi: Likewise.
34008         * doc/posix-functions/glob.texi: Likewise.
34009         * doc/posix-functions/lseek.texi: Likewise.
34010         * doc/posix-functions/lstat.texi: Likewise.
34011         * doc/posix-functions/mkstemp.texi: Likewise.
34012         * doc/posix-functions/open.texi: Likewise.
34013         * doc/posix-functions/openat.texi: Likewise.
34014         * doc/posix-functions/pread.texi: Likewise.
34015         * doc/posix-functions/pwrite.texi: Likewise.
34016         * doc/posix-functions/scandir.texi: Likewise.
34017         * doc/posix-functions/stat.texi: Likewise.
34018         * doc/posix-functions/tmpfile.texi: Likewise.
34019         * doc/glibc-functions/mkostemp.texi: Likewise.
34020         * doc/glibc-functions/mkostemps.texi: Likewise.
34021         * doc/glibc-functions/mkstemps.texi: Likewise.
34023 2011-07-25  Bruno Haible  <bruno@clisp.org>
34025         fcntl: Move AC_LIBOBJ invocation to module description.
34026         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
34027         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
34029         fcntl: Remove call-in from fchdir.m4.
34030         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
34031         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
34033         dup3: Remove potential call-in from fchdir.m4.
34034         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
34035         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
34037         dup2: Move AC_LIBOBJ invocation to module description.
34038         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
34039         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
34040         Don't invoke AC_LIBOBJ.
34041         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
34043         dup2: Remove call-in from fchdir.m4.
34044         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
34045         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
34047         fclose: Move AC_LIBOBJ invocation to module description.
34048         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
34049         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
34050         to 1.
34051         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
34053         fclose: Remove call-in from close.m4.
34054         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
34055         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
34057         close: Move AC_LIBOBJ invocation to module description.
34058         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
34059         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
34060         1.
34061         * modules/close (configure.ac): Invoke AC_LIBOBJ.
34063         close: Remove call-in from fchdir.m4.
34064         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
34065         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
34067         open: Move AC_LIBOBJ invocation to module description.
34068         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
34069         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
34070         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
34072         open: Remove call-in from fchdir.m4.
34073         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
34074         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
34076         fchdir: Start to remove gl_REPLACE_* idiom.
34077         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
34078         (gl_FUNC_FCHDIR): Invoke it.
34080 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
34082         * lib/ftell.c (ftell): Comment out cast.
34084         close: use gl_REPLACE_FCLOSE only if defined
34085         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
34086         is defined.  The close module doesn't depend on the fclose module
34087         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
34088         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
34089         I reproduced the problem with "./gnulib-tool --test close sys_socket".
34091 2011-07-24  Jim Meyering  <meyering@redhat.com>
34093         test-select.h: avoid warning when using gcc's -Wmissing-declarations
34094         * tests/test-select.h (test_function): Declare as "static".
34096 2011-07-24  Bruno Haible  <bruno@clisp.org>
34098         doc: Mention the effects of AC_SYS_LARGEFILE.
34099         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
34100         on this function.
34101         * doc/posix-functions/aio_error.texi: Likewise.
34102         * doc/posix-functions/aio_fsync.texi: Likewise.
34103         * doc/posix-functions/aio_read.texi: Likewise.
34104         * doc/posix-functions/aio_return.texi: Likewise.
34105         * doc/posix-functions/aio_suspend.texi: Likewise.
34106         * doc/posix-functions/aio_write.texi: Likewise.
34107         * doc/posix-functions/fgetpos.texi: Likewise.
34108         * doc/posix-functions/fopen.texi: Likewise.
34109         * doc/posix-functions/freopen.texi: Likewise.
34110         * doc/posix-functions/fsetpos.texi: Likewise.
34111         * doc/posix-functions/fstatvfs.texi: Likewise.
34112         * doc/posix-functions/ftruncate.texi: Likewise.
34113         * doc/posix-functions/ftw.texi: Likewise.
34114         * doc/posix-functions/getrlimit.texi: Likewise.
34115         * doc/posix-functions/glob.texi: Likewise.
34116         * doc/posix-functions/lio_listio.texi: Likewise.
34117         * doc/posix-functions/lockf.texi: Likewise.
34118         * doc/posix-functions/mkstemp.texi: Likewise.
34119         * doc/posix-functions/mmap.texi: Likewise.
34120         * doc/posix-functions/nftw.texi: Likewise.
34121         * doc/posix-functions/openat.texi: Likewise.
34122         * doc/posix-functions/opendir.texi: Likewise.
34123         * doc/posix-functions/posix_fadvise.texi: Likewise.
34124         * doc/posix-functions/posix_fallocate.texi: Likewise.
34125         * doc/posix-functions/pread.texi: Likewise.
34126         * doc/posix-functions/pwrite.texi: Likewise.
34127         * doc/posix-functions/readdir.texi: Likewise.
34128         * doc/posix-functions/readdir_r.texi: Likewise.
34129         * doc/posix-functions/rewinddir.texi: Likewise.
34130         * doc/posix-functions/scandir.texi: Likewise.
34131         * doc/posix-functions/seekdir.texi: Likewise.
34132         * doc/posix-functions/setrlimit.texi: Likewise.
34133         * doc/posix-functions/statvfs.texi: Likewise.
34134         * doc/posix-functions/telldir.texi: Likewise.
34135         * doc/posix-functions/tmpfile.texi: Likewise.
34136         * doc/posix-functions/truncate.texi: Likewise.
34137         * doc/glibc-functions/fallocate.texi: Likewise.
34138         * doc/glibc-functions/fstatfs.texi: Likewise.
34139         * doc/glibc-functions/fts_children.texi: Likewise.
34140         * doc/glibc-functions/fts_read.texi: Likewise.
34141         * doc/glibc-functions/getdirentries.texi: Likewise.
34142         * doc/glibc-functions/mkostemp.texi: Likewise.
34143         * doc/glibc-functions/mkostemps.texi: Likewise.
34144         * doc/glibc-functions/mkstemps.texi: Likewise.
34145         * doc/glibc-functions/preadv.texi: Likewise.
34146         * doc/glibc-functions/pwritev.texi: Likewise.
34147         * doc/glibc-functions/sendfile.texi: Likewise.
34148         * doc/glibc-functions/statfs.texi: Likewise.
34150 2011-07-24  Bruno Haible  <bruno@clisp.org>
34152         doc: Fix typo.
34153         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
34155 2011-07-24  Bruno Haible  <bruno@clisp.org>
34157         doc: Mention fsusage.
34158         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
34160 2011-07-24  Bruno Haible  <bruno@clisp.org>
34162         doc: Mention new glibc headers and functions.
34163         * doc/glibc-headers/gshadow.texi: New file.
34164         * doc/glibc-functions/endsgent.texi: New file.
34165         * doc/glibc-functions/fgetsgent.texi: New file.
34166         * doc/glibc-functions/fgetsgent_r.texi: New file.
34167         * doc/glibc-functions/getsgent.texi: New file.
34168         * doc/glibc-functions/getsgent_r.texi: New file.
34169         * doc/glibc-functions/getsgnam.texi: New file.
34170         * doc/glibc-functions/getsgnam_r.texi: New file.
34171         * doc/glibc-functions/putsgent.texi: New file.
34172         * doc/glibc-functions/setsgent.texi: New file.
34173         * doc/glibc-functions/sgetsgent.texi: New file.
34174         * doc/glibc-functions/sgetsgent_r.texi: New file.
34175         * doc/glibc-functions/malloc_info.texi: New file.
34176         * doc/glibc-functions/preadv.texi: New file.
34177         * doc/glibc-functions/pwritev.texi: New file.
34178         * doc/glibc-functions/register_printf_modifier.texi: New file.
34179         * doc/glibc-functions/register_printf_specifier.texi: New file.
34180         * doc/glibc-functions/register_printf_type.texi: New file.
34181         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
34182         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
34183         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
34184         * doc/glibc-functions/pthread_getname_np.texi: New file.
34185         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
34186         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
34187         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
34188         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
34189         * doc/glibc-functions/pthread_setname_np.texi: New file.
34190         * doc/glibc-functions/pthread_sigqueue.texi: New file.
34191         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
34192         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
34193         * doc/glibc-functions/qsort_r.texi: New file.
34194         * doc/glibc-functions/quick_exit.texi: New file.
34195         * doc/glibc-functions/syncfs.texi: New file.
34196         * doc/gnulib.texi: Include them.
34197         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
34198         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
34199         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
34200         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
34201         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
34202         * doc/glibc-functions/execvpe.texi: Likewise.
34204 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34206         ftell: don't include <unistd.h>
34207         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
34208         guaranteed to define off_t, and the ftell module depends on the
34209         stdio module.
34211         ftell: do not assume wraparound signed arithmetic
34212         * lib/ftell.c: Include <limits.h>.
34213         (ftell): Don't assume wraparound signed arithmetic.
34215 2011-07-24  Bruno Haible  <bruno@clisp.org>
34217         close: No longer depend on module 'fclose'.
34218         * modules/close (Depends-on): Remove fclose.
34219         * NEWS: Mention the change.
34220         Suggested by Sam Steingold <sds@gnu.org>.
34222 2011-07-24  Bruno Haible  <bruno@clisp.org>
34224         fsusage: Enable large volume support on AIX >= 5.2.
34225         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
34226         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
34227         instead of STAT_STATVFS.
34228         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
34230         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
34231         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
34232         f_blocks field only on MacOS X.
34234         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
34235         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
34236         * modules/fsusage (Depends-on): Add largefile.
34238 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34240         * README: Modernize discussion of signed integers.
34241         Assuming overflow wraparound is no longer safe.
34242         Mention ones' complement and signed magnitude.
34244 2011-07-22  Bruno Haible  <bruno@clisp.org>
34246         select tests, pselect tests: Refactor.
34247         * tests/test-select.h: New file, extracted from tests/test-select.c.
34248         (select_fn): New type.
34249         (test, do_select, do_select_nowait, do_select_wait, test_tty,
34250         test_connect_first, test_accept_first, test_pair, test_socket_pair,
34251         test_pipe): Add my_select argument.
34252         (test_function): Renamed from main. Add my_select argument.
34253         * tests/test-select.c: Move most code to tests/test-select.h. Include
34254         test-select.h.
34255         * modules/select-tests (Files): Add tests/test-select.h.
34256         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
34257         (my_select, main): New functions.
34258         * modules/pselect-tests (Files): Add tests/test-select.h,
34259         tests/macros.h, tests/signature.h.
34260         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
34261         (configure.ac): Check for <sys/wait.h>.
34263 2011-07-22  Bruno Haible  <bruno@clisp.org>
34265         sys_select tests: Check the signature of FD_*.
34266         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
34267         signature tests from here...
34268         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
34269         here.
34270         * modules/sys_select-tests (Files): Add tests/signature.h.
34272 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34274         largefile: new module, replacing large-inode
34275         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
34276         * MODULES.html.sh: Add largefile, remove large-inode.
34277         * modules/largefile, m4/largefile.m4: New files.
34278         * modules/large-inode, m4/large-inode.m4: Remove.
34280         fsusage: port to MacOS X 10.7 with 4 TiB file systems
34281         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
34282         implementations that use only 32 bits to count blocks.
34283         On typical hosts with 1024-byte blocks, this fails with file
34284         systems as small as 4 TiB.  Problem reported by Herb Wartens
34285         <http://debbugs.gnu.org/9140> and this should also fix a similar
34286         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
34288         large-inode: New module
34289         * MODULES.html.sh: Add it.
34290         * modules/large-inode, m4/large-inode.m4: New files.
34292         extensions: Enable extensions on MacOS X 10.5 and later.
34293         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
34295 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
34297         file-has-acl: use acl_extended_file_nofollow if available
34298         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
34299         (acl_extended_file): New macro.
34300         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
34301         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
34303 2011-07-21  Bruno Haible  <bruno@clisp.org>
34305         Declare system functions in a way that works with C++.
34306         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
34307         declare fdopendir as extern "C".
34308         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
34309         declare frexpl as extern "C".
34310         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
34311         declare gai_strerror as extern "C".
34312         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
34313         programs, declare gai_strerror as extern "C".
34314         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
34315         declare getlogin_r as extern "C".
34316         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
34317         as extern "C".
34318         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
34319         declare ldexpl as extern "C".
34320         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
34321         as extern "C".
34322         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
34323         program, declare getmntinfo as extern "C".
34324         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
34325         stpncpy as extern "C".
34326         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
34327         program, declare __xpg_strerror_r as extern "C".
34328         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
34329         strndup as extern "C".
34330         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
34331         declare memset and bzero as extern "C".
34332         Reported by Sam Steingold <sds@gnu.org>.
34334 2011-07-12  Jim Meyering  <meyering@redhat.com>
34336         maint.mk: prohibit inclusion of "verify.h" without use
34337         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
34339 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34341         timer-time: A new module to check for timer_settime()
34342         * m4/timer_time.m4: Check for the posix function.
34343         * modules/timer-time: Add the new module.
34344         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
34345         Mention it.
34347 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
34348             Bruno Haible  <bruno@clisp.org>
34350         pthread_sigmask: assume POSIX threads if --avoid=threadlib
34351         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
34352         not defined, assume POSIX threads and look for pthread_sigmask in
34353         $LIBS, without changing $CPPFLAGS.
34355 2011-07-19  Bruno Haible  <bruno@clisp.org>
34357         strstr: Update cross-compilation guess.
34358         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
34359         CPUs, guess no, in view of glibc
34360         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
34361         Suggested by Eric Blake. Reported by Reuben Thomas.
34363 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34365         getopt-gnu: suppress core dumps from detection code
34366         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
34367         to suppress core dumps that may well occur on glibc systems.
34368         * modules/getopt-gnu: Depend on nocrash.
34370 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34372         pthread_sigmask: ensure usleep is declared
34373         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
34374         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
34376 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34378         doc: Document NonStop portability issues.
34379         * doc/posix-functions/sigaction.texi (sigaction):
34380         * doc/posix-headers/signal.texi (signal.h):
34381         Document NonStop.  See Joachim Schmitz in
34382         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
34384 2011-07-15  Bruno Haible  <bruno@clisp.org>
34386         ffsl, ffsll: Avoid unportable behaviour.
34387         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
34389 2011-07-15  Bruno Haible  <bruno@clisp.org>
34391         ffs: More tests.
34392         * tests/test-ffs.c (NBITS): New macro.
34393         (main): Add more tests.
34394         * tests/test-ffsl.c (NBITS): New macro.
34395         (main): Add more tests.
34396         * tests/test-ffsll.c (NBITS): New macro.
34397         (main): Add more tests.
34399 2011-07-15  Eric Blake  <eblake@redhat.com>
34401         ffsl, ffsll: new modules
34402         * modules/ffsl: New file.
34403         * modules/ffsll: Likewise.
34404         * m4/ffsl.m4: Likewise.
34405         * m4/ffsll.m4: Likewise.
34406         * lib/ffsl.c: Likewise.
34407         * lib/ffsl.h: Likewise.
34408         * lib/ffsll.c: Likewise.
34409         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
34410         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
34411         * modules/string (Makefile.am): Substitute witnesses.
34412         * lib/strings.in.h (ffsl, ffsll): Declare.
34413         * modules/ffsl-tests: New test file.
34414         * modules/ffsll-tests: Likewise.
34415         * tests/test-ffsl.c: Likewise.
34416         * tests/test-ffsll.c: Likewise.
34417         * MODULES.html.sh (Integer arithmetic functions): Mention it.
34418         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
34419         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
34421         ffs: fix m4 prerequisite
34422         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
34424         ffs: avoid undefined behavior
34425         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
34426         * tests/test-ffs.c (naive, main): Avoid signed shifts.
34427         Reported by Bruno Haible.
34429 2011-07-12  Bruno Haible  <bruno@clisp.org>
34431         pthread_sigmask: Rely on module 'threadlib'.
34432         * modules/pthread_sigmask (Depends-on): Add threadlib.
34433         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
34434         is defined.
34436 2011-07-12  Bruno Haible  <bruno@clisp.org>
34438         regex: Depend on module 'strcase'.
34439         * modules/regex (Depends-on): Add strcase, for strcasecmp().
34441 2011-07-12  Jim Meyering  <meyering@redhat.com>
34443         warn-on-use: fix typo in file name
34444         * modules/snippet/warn-on-use (Files): Correct file name:
34445         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
34447 2011-07-12  Bruno Haible  <bruno@clisp.org>
34449         strings: Document module.
34450         * doc/posix-headers/strings.texi: Mention module 'strings'.
34452 2011-07-12  Bruno Haible  <bruno@clisp.org>
34454         Rename module '_Noreturn' to 'snippet/_Noreturn'.
34455         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
34456         (Files, Makefile.am): Update.
34457         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
34458         * modules/stdlib (Depends-on): Update.
34460 2011-07-12  Bruno Haible  <bruno@clisp.org>
34462         * NEWS: Mention the changes.
34464         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
34465         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
34466         (Files, Makefile.am): Update.
34467         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
34468         * modules/arpa_inet (Depends-on): Update.
34469         * modules/ctype (Depends-on): Update.
34470         * modules/dirent (Depends-on): Update.
34471         * modules/fcntl-h (Depends-on): Update.
34472         * modules/glob (Depends-on): Update.
34473         * modules/iconv-h (Depends-on): Update.
34474         * modules/inttypes-incomplete (Depends-on): Update.
34475         * modules/langinfo (Depends-on): Update.
34476         * modules/locale (Depends-on): Update.
34477         * modules/math (Depends-on): Update.
34478         * modules/netdb (Depends-on): Update.
34479         * modules/poll-h (Depends-on): Update.
34480         * modules/pty (Depends-on): Update.
34481         * modules/search (Depends-on): Update.
34482         * modules/signal (Depends-on): Update.
34483         * modules/spawn (Depends-on): Update.
34484         * modules/stdio (Depends-on): Update.
34485         * modules/stdlib (Depends-on): Update.
34486         * modules/string (Depends-on): Update.
34487         * modules/strings (Depends-on): Update.
34488         * modules/sys_file (Depends-on): Update.
34489         * modules/sys_ioctl (Depends-on): Update.
34490         * modules/sys_select (Depends-on): Update.
34491         * modules/sys_socket (Depends-on): Update.
34492         * modules/sys_stat (Depends-on): Update.
34493         * modules/sys_time (Depends-on): Update.
34494         * modules/sys_times (Depends-on): Update.
34495         * modules/sys_utsname (Depends-on): Update.
34496         * modules/sys_wait (Depends-on): Update.
34497         * modules/termios (Depends-on): Update.
34498         * modules/time (Depends-on): Update.
34499         * modules/unistd (Depends-on): Update.
34500         * modules/wchar (Depends-on): Update.
34501         * modules/wctype-h (Depends-on): Update.
34502         * MODULES.html.sh (Support for building libraries and executables):
34503         Update.
34505         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
34506         * modules/snippet/unused-parameter: Renamed from
34507         modules/unused-parameter.
34508         (Files, Makefile.am): Update.
34509         * build-aux/snippet/unused-parameter.h: Renamed from
34510         build-aux/unused-parameter.h.
34511         * modules/selinux-h (Depends-on): Update.
34512         * modules/unistr/base (Depends-on): Update.
34513         * MODULES.html.sh (Core language properties): Update.
34515         Rename module 'link-warning' to 'snippet/link-warning'.
34516         * modules/snippet/link-warning: Renamed from modules/link-warning.
34517         (Files, Makefile.am): Update.
34518         * build-aux/snippet/link-warning.h: Renamed from
34519         build-aux/link-warning.h.
34520         * MODULES.html.sh (Support for building libraries and executables):
34521         Update.
34523         Rename module 'c++defs' to 'snippet/c++defs'.
34524         * modules/snippet/c++defs: Renamed from modules/c++defs.
34525         (Files, Makefile.am): Update.
34526         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
34527         * modules/arpa_inet (Depends-on): Update.
34528         * modules/ctype (Depends-on): Update.
34529         * modules/dirent (Depends-on): Update.
34530         * modules/fcntl-h (Depends-on): Update.
34531         * modules/glob (Depends-on): Update.
34532         * modules/iconv-h (Depends-on): Update.
34533         * modules/langinfo (Depends-on): Update.
34534         * modules/locale (Depends-on): Update.
34535         * modules/math (Depends-on): Update.
34536         * modules/netdb (Depends-on): Update.
34537         * modules/poll-h (Depends-on): Update.
34538         * modules/pty (Depends-on): Update.
34539         * modules/search (Depends-on): Update.
34540         * modules/signal (Depends-on): Update.
34541         * modules/spawn (Depends-on): Update.
34542         * modules/stdio (Depends-on): Update.
34543         * modules/stdlib (Depends-on): Update.
34544         * modules/string (Depends-on): Update.
34545         * modules/strings (Depends-on): Update.
34546         * modules/sys_ioctl (Depends-on): Update.
34547         * modules/sys_select (Depends-on): Update.
34548         * modules/sys_socket (Depends-on): Update.
34549         * modules/sys_stat (Depends-on): Update.
34550         * modules/sys_time (Depends-on): Update.
34551         * modules/sys_wait (Depends-on): Update.
34552         * modules/termios (Depends-on): Update.
34553         * modules/time (Depends-on): Update.
34554         * modules/unistd (Depends-on): Update.
34555         * modules/wchar (Depends-on): Update.
34556         * modules/wctype-h (Depends-on): Update.
34558         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
34559         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
34560         (Files, Makefile.am): Update.
34561         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
34562         * modules/argv-iter (Depends-on): Update.
34563         * modules/arpa_inet (Depends-on): Update.
34564         * modules/dirent (Depends-on): Update.
34565         * modules/fcntl-h (Depends-on): Update.
34566         * modules/fnmatch (Depends-on): Update.
34567         * modules/getopt-posix (Depends-on): Update.
34568         * modules/glob (Depends-on): Update.
34569         * modules/iconv-h (Depends-on): Update.
34570         * modules/inttypes-incomplete (Depends-on): Update.
34571         * modules/locale (Depends-on): Update.
34572         * modules/math (Depends-on): Update.
34573         * modules/netdb (Depends-on): Update.
34574         * modules/search (Depends-on): Update.
34575         * modules/signal (Depends-on): Update.
34576         * modules/spawn (Depends-on): Update.
34577         * modules/stdio (Depends-on): Update.
34578         * modules/stdlib (Depends-on): Update.
34579         * modules/string (Depends-on): Update.
34580         * modules/strings (Depends-on): Update.
34581         * modules/sys_socket (Depends-on): Update.
34582         * modules/sys_stat (Depends-on): Update.
34583         * modules/sys_time (Depends-on): Update.
34584         * modules/sys_times (Depends-on): Update.
34585         * modules/sys_utsname (Depends-on): Update.
34586         * modules/time (Depends-on): Update.
34587         * modules/unistd (Depends-on): Update.
34588         * modules/wchar (Depends-on): Update.
34589         * MODULES.html.sh (Support for building libraries and executables):
34590         Update.
34592 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
34594         Improvements on _Noreturn and related modules.
34596         modules/_Exit-tests: test _Noreturn too
34597         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
34598         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
34599         (main): Use them.
34601         stdnoreturn, stdnoreturn-tests: remove modules
34602         They're not needed here and a bit premature for use elsewhere.  See
34603         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
34604         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
34605         * tests/test-stdnoreturn.c: Remove files.
34606         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
34607         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
34608         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
34609         and using noreturn.
34610         * modules/openat, modules/sigpipe-die, modules/xalloc:
34611         * modules/xmemdup0, modules/xstrtol:
34612         Remove dependency on stdnoreturn.
34614         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
34615         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
34616         Reparenthesize to avoid GCC warning.
34617         Support Microsoft's syntax.
34618         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
34620         _Noreturn-tests: remove module
34621         * modules/_Noreturn-tests: Remove.
34622         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
34623         * tests/test-_Noreturn.c: Remove.
34624         * tests/test-stdnoreturn.c: Merge from the old
34625         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
34627 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
34629         _Noreturn, stdnoreturn, and related modules.
34631         * top/maint.mk: Adjust to new noreturn support.
34632         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
34633         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
34635         xalloc: use stdnoreturn.h
34636         * lib/xalloc.h: Include <stdnoreturn.h>.
34637         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34638         * modules/xalloc (Depends-on): Add stdnoreturn.
34640         xstrtol: use stdnoreturn.h
34641         * lib/xstrtol.h: Include <stdnoreturn.h>.
34642         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34643         * modules/xstrtol (Depends-on): Add stdnoreturn.
34645         xmemdup0: use stdnoreturn.h
34646         * lib/xmemdup0.h: Include <stdnoreturn.h>.
34647         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34648         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
34650         sigpipe-die: use stdnoreturn.h
34651         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
34652         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34653         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
34655         openat: use stdnoreturn.h
34656         * lib/openat.h: Include <stdnoreturn.h>.
34657         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34658         * modules/openat (Depends-on): Add stdnoreturn.
34660         * lib/openat-die.c (openat_save_fail): Modernize comment.
34662         * lib/xalloc-die.c (xalloc_die): Modernize comment.
34664         * lib/glthread/thread.h: Modernize comment.
34666         obstack: use _Noreturn
34667         * lib/obstack.c (__attribute__): Remove macro.
34668         (print_and_abort): Use _Noreturn.
34670         c-stack: use _Noreturn
34671         * lib/c-stack.c (die, overflow_handler, segv_handler):
34672         Use _Noreturn rather than __attribute__((noreturn)).
34674         argmatch-tests, exclude_tests: use _Noreturn
34675         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
34676         Remove.
34677         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
34679         stdlib: use _Noreturn
34680         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
34681         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
34682         * modules/stdlib (Depends-on): Add _Noreturn.
34683         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
34685         stdnoreturn-tests: new module
34686         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
34688         stdnoreturn: new module
34689         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
34690         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
34692         _Noreturn-tests: new module
34693         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
34695         _Noreturn: new module
34696         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
34697         New section, mentioning it.
34698         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
34700         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
34702 2011-07-11  Eric Blake  <eblake@redhat.com>
34704         ffs: new module
34705         * modules/ffs: New file.
34706         * m4/ffs.m4: Likewise.
34707         * lib/ffs.c: Likewise.
34708         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
34709         * modules/strings (Makefile.am): Substitute witness.
34710         (Depends-on): Add c++defs.
34711         * lib/strings.in.h (ffs): Declare.
34712         * modules/ffs-tests: New test file.
34713         * tests/test-ffs.c: Test new module.
34714         * MODULES.html.sh (Integer arithmetic functions): Mention it.
34715         * doc/posix-functions/ffs.texi (ffs): Likewise.
34717         regex: avoid compiler warning
34718         * lib/regex.c (includes): Include <strings.h>, for use of
34719         strcasecmp in regcomp.c.
34720         Reported by Joachim Schmitz.
34722 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34724         stdint: respect system's intmax_t if INTMAX_MAX
34725         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
34726         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
34727         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
34728         long but int64_t is long long, and where we will clash with the
34729         system intmax_t if we override it.  See
34730         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
34731         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
34732         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
34733         similarly for UINTMAX_C.
34735 2011-07-08  Bruno Haible  <bruno@clisp.org>
34737         pthread_sigmask tests: Avoid a compiler warning.
34738         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
34739         non-zero.
34741         sigprocmask tests: A better way to avoid a compiler warning.
34742         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
34743         (main): Complain if system() returns non-zero.
34744         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
34746 2011-07-08  Bruno Haible  <bruno@clisp.org>
34748         pthread_sigmask: Work around IRIX bug.
34749         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
34750         bug.
34751         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
34752         there may be unblocked pending signals.
34753         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
34755 2011-07-08  Bruno Haible  <bruno@clisp.org>
34757         pthread_sigmask: Work around Cygwin bug.
34758         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
34759         bug.
34760         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
34761         the system's pthread_sigmask function.
34762         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
34764 2011-07-08  Bruno Haible  <bruno@clisp.org>
34766         pthread_sigmask: Work around bug in single-threaded implementation.
34767         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
34768         FreeBSD, HP-UX, Solaris bug.
34769         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
34770         * lib/pthread_sigmask.c: Include <stddef.h>.
34771         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
34772         the system's pthread_sigmask function.
34773         * modules/pthread_sigmask (configure.ac): Invoke
34774         gl_PREREQ_PTHREAD_SIGMASK.
34775         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
34776         HP-UX, Solaris.
34778 2011-07-08  Eric Blake  <eblake@redhat.com>
34780         test-sigprocmask: avoid compiler warning
34781         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
34782         * tests/test-sigprocmask.c (main): Use it to silence warning.
34783         Reported by Jim Meyering.
34785         test-snprintf: avoid compiler warning
34786         * tests/test-snprintf.c (main): Avoid shadowed declaration.
34787         * tests/test-vsnprintf.c (main): Likewise.
34788         Reported by Jim Meyering.
34790 2011-07-08  Bruno Haible  <bruno@clisp.org>
34792         Tests for module 'pthread_sigmask'.
34793         * modules/pthread_sigmask-tests: New file.
34794         * tests/test-pthread_sigmask1.c: New file, based on
34795         tests/test-sigprocmask.c.
34796         * tests/test-pthread_sigmask2.c: New file.
34798 2011-07-08  Jim Meyering  <meyering@redhat.com>
34800         test-getopt.h: avoid warning about an unused variable
34801         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
34803 2011-07-07  Jim Meyering  <meyering@redhat.com>
34805         maint: reduce list of files exempt from sc_prohibit_leading_TABs
34806         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
34807         now that it no longer contains leading TABs.
34808         Remove unused "url=FIXME" statement.
34810 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
34812         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
34813         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
34814         When gl_THREADLIB is not in use, assume that the POSIX sematics
34815         are desired.  This is better for Emacs, which uses POSIX semantics
34816         on GNUish and/or POSIXish platforms, and does not use threads at
34817         all otherwise.
34819         pthread_sigmask: fix typo when testing for libraries
34820         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
34821         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
34823 2011-07-08  Eric Blake  <eblake@redhat.com>
34825         fts: introduce FTS_NOATIME
34826         * lib/fts_.h (FTS_NOATIME): New bit flag.
34827         (FTS_OPTIONMASK): Adjust.
34828         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
34829         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
34831 2011-07-08  Bruno Haible  <bruno@clisp.org>
34833         Tests for module 'thread'.
34834         * modules/thread-tests: New file.
34835         * tests/test-thread_self.c: New file.
34836         * tests/test-thread_create.cc: New file.
34838 2011-07-08  Bruno Haible  <bruno@clisp.org>
34840         thread: Avoid gcc warnings when using gl_thread_self().
34841         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
34842         'void *'.
34843         (gl_thread_self_pointer): Update.
34845 2011-07-07  Bruno Haible  <bruno@clisp.org>
34847         signal-c++-tests: Check declaration of pthread_sigmask.
34848         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
34849         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
34850         $(LIB_PTHREAD_SIGMASK).
34852 2011-07-07  Bruno Haible  <bruno@clisp.org>
34854         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
34855         * lib/signal.in.h (pthread_sigmask): Override if
34856         REPLACE_PTHREAD_SIGMASK is 1.
34857         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
34858         REPLACE_PTHREAD_SIGMASK.
34859         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
34860         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
34861         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
34862         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
34863         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
34865 2011-07-07  Bruno Haible  <bruno@clisp.org>
34867         pthread_sigmask: Ensure declaration in <signal.h>.
34868         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
34869         include <pthread.h>.
34870         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
34871         problem.
34873 2011-07-07  Bruno Haible  <bruno@clisp.org>
34875         pthread_sigmask: Document the module.
34876         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
34878 2011-07-07  Bruno Haible  <bruno@clisp.org>
34880         pthread_sigmask: Follow gnulib conventions.
34881         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
34882         gl_PTHREAD_SIGMASK.
34883         * modules/pthread_sigmask (configure.ac): Update.
34885 2011-07-07  Bruno Haible  <bruno@clisp.org>
34887         pthread_sigmask: Make declaration C++ safe.
34888         * lib/signal.in.h: In two special conditions, just do an #include_next.
34889         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
34890         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
34891         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
34892         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
34893         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
34894         not REPLACE_PTHREAD_MASK.
34895         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
34896         not REPLACE_PTHREAD_MASK.
34897         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
34899 2011-07-07  Bruno Haible  <bruno@clisp.org>
34901         pthread_sigmask: Fix return value.
34902         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
34903         * lib/pthread_sigmask.c: New file.
34904         * modules/pthread_sigmask (Files): Add it.
34905         (configure.ac): Invoke AC_LIBOBJ.
34907 2011-07-07  Eric Blake  <eblake@redhat.com>
34909         getopt: more portable argv creation
34910         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
34911         const, use char arrays rather than strings.
34912         Suggested by Paul Eggert.
34914 2011-07-07  Bruno Haible  <bruno@clisp.org>
34916         Tests for module 'sigprocmask'.
34917         * modules/sigprocmask-tests: New file.
34918         * tests/test-sigprocmask.c: New file.
34920 2011-07-07  Bruno Haible  <bruno@clisp.org>
34922         float tests: Tweak.
34923         * tests/test-float.c (main): Tweak skip message.
34925 2011-07-07  Eric Blake  <eblake@redhat.com>
34927         getopt: avoid compiler warning during configure
34928         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
34929         assigning string literals to non-const pointer.
34931         getopt-gnu: avoid crash in glibc getopt
34932         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
34933         * tests/test-getopt.h (test_getopt): Enhance test.
34934         * tests/test-getopt_long.h (test_getopt_long): Likewise.
34935         * doc/posix-functions/getopt.texi (getopt): Document it.
34936         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34937         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34938         Likewise.
34940 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
34942         getopt: handle W; without long options in getopt [BZ #12922]
34943         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
34944         but no long options are defined, just return 'W'.
34946 2011-07-07  Bruno Haible  <bruno@clisp.org>
34948         Avoid literal tabs.
34949         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
34950         variable containing a tab instead of a literal tab.
34951         Reported by Jim Meyering.
34953 2011-07-07  Bruno Haible  <bruno@clisp.org>
34955         Comments.
34956         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
34958 2011-07-06  Bruno Haible  <bruno@clisp.org>
34960         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
34961         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
34962         <winsock2.h>.
34963         (rpl_fd_isset, FD_ISSET): New definitions, copied from
34964         lib/sys_socket.in.h.
34965         (close, gethostname): Hide declarations from <winsock2.h>.
34966         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34967         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
34968         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
34969         (select): Don't override if gnulib's <sys/select.h> was already
34970         included.
34971         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34972         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34973         setsockopt, shutdown, select): Tweak indentation.
34975 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34977         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
34978         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
34979         in an application that does not use the sys_select module.
34981 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
34983         poll: do not return 0 on timeout=-1
34984         * lib/poll.c: Loop with yield if no events occurred.
34986 2011-07-06  Eric Blake  <eblake@redhat.com>
34988         pthread_sigmask: always replace when not using pthread
34989         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
34990         replacement when using some threading other than pthread.  Fix
34991         logic bug.
34993 2011-07-06  Bruno Haible  <bruno@clisp.org>
34995         Comments.
34996         * m4/printf.m4: Update comments about mingw.
34998 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35000         sys_select: define sigset_t more portably
35001         * lib/sys_select.in.h: Always include <sys/types.h>, since
35002         we now need sigset_t and mingw defines it there.
35003         Include <signal.h> before split inclusion guard, to avoid
35004         mishaps on Solaris, whose <signal.h> eventually includes us.
35005         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
35006         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
35007         which come from ...
35008         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35009         gl_CHECK_TYPE_SIGSET_T.
35010         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
35011         does the real work.
35012         * modules/sys_select (Depends-on): Add 'signal'.
35014         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
35015         Suggested by Bruno Haible.
35017         pselect: Use pthread_sigmask, not sigprocmask.
35018         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
35019         multithreaded apps better than sigprocmask does.
35020         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
35021         sigprocmask directly.
35023 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35025         * lib/pselect.c (pselect): Use plain name, without "rpl_".
35026         Don't #undef,  since we don't need any underlying pselect.
35027         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
35028         (Depends-on): Add select.
35029         (Link): Add $(LIBSOCKET).
35030         These changes suggested by Bruno Haible.
35032         pselect: document better
35033         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
35034         * doc/posix-functions/pselect.texi (pselect): Document new module.
35036         pthread_sigmask: new module
35037         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
35038         * doc/posix-functions/pthread_sigmask.texi: Document new module.
35039         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
35040         This is done only as a macro; I don't know how well that'll
35041         work for C++.  Move <sys/types.h> include before the include_next,
35042         to avoid mishap on Solaris.
35043         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
35044         * modules/signal (Makefile.am): Substitute the check's results.
35045         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
35047         test-pselect: new module
35048         * modules/pselect-tests, tests/test-pselect.c: New files.
35049         * tests/test-select.c, tests/test-sys_select-c++.cc:
35050         If TEST_PSELECT is defined, test pselect instead of testing select.
35052         * tests/test-sys_select.c (sigset_t): Test for it, too.
35053         Suggested by Bruno Haible.
35055 2011-07-05  Eric Blake  <eblake@redhat.com>
35057         snprintf: guarantee %1$d, for libintl
35058         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
35059         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
35060         * doc/posix-functions/snprintf.texi (snprintf): Update.
35061         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
35062         * tests/test-snprintf.c (main): Enhance test.
35063         * tests/test-vsnprintf.c (main): Likewise.
35065 2011-07-05  Jim Meyering  <meyering@redhat.com>
35067         maint: exempt stdio-read.c and stdio-write.c from the cppi check
35068         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
35069         per Bruno's request, to accommodate this idiom (no space after "#")
35070         even when the function is inside an #if block:
35071         char *
35072         gets (char *s)
35073         #undef gets
35074         {
35075           ...
35076         }
35078 2011-07-04  Jim Meyering  <meyering@redhat.com>
35080         maint: indent with spaces, not TABs, and add a rule to check this
35081         * tests/test-userspec.c: Indent with spaces, not TABs.
35082         * tests/test-argp.c: Likewise.
35083         * tests/test-c-stack2.sh: Likewise.
35084         * tests/test-parse-duration.sh: Likewise
35085         * m4/strtod.m4: Likewise.
35086         * m4/alloca.m4: Likewise.
35087         * m4/pselect.m4: Likewise.
35088         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
35090 2011-07-03  Jim Meyering  <meyering@redhat.com>
35092         maint.mk: correct omissions in prohibit_argmatch_without_use check
35093         This rule would mistakenly report that argmatch.h is included without
35094         use even when both the argmatch and invalid_arg macro were used.
35095         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
35096         of argmatch and invalid_arg.
35098 2011-07-03  Bruno Haible  <bruno@clisp.org>
35100         Comments about EINTR.
35101         * lib/safe-read.h: Explain the purpose of this module.
35102         * lib/safe-write.h: Likewise.
35103         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
35104         module.
35105         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
35106         module.
35107         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35109 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
35111         xnanosleep: Rewrite to use new dtotimespec module.
35112         It has the conversion code that used to be in xnanosleep.
35113         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
35114         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
35115         (TIME_T_MAX): Remove.
35116         (xnanosleep): Rewrite in terms of dtotimespec.
35117         * modules/xnanosleep (Depends-on): Add dtotimespec.
35118         Remove intprops, stdbool.
35120         timespec-add, timespec-sub: new modules
35121         * lib/timespec.h (timespec_add, timespec_sub): New decls.
35122         * lib/timespec-add.c, lib/timespec-sub.c:
35123         * modules/timespec-add, modules/timespec-sub: New files.
35125         dtotimespec: new module
35126         * lib/timespec.h (dtotimespec): New decl.
35127         * lib/dtotimespec.c, modules/dtotimespec: New files.
35129         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
35131         pselect: new module
35132         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
35133         (pselect): New decls.
35134         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
35135         since the standard pselect decl uses 'restrict'.
35136         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
35137         HAVE_PSELECT, REPLACE_PSELECT.
35138         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
35139         HAVE_PSELECT, REPLACE_PSELECT.
35140         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
35142         sys_select: don't depend on sys_socket
35143         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
35144         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
35145         This fix works on GNU and GNU-like platforms, but has not been tested
35146         on native Windows.
35147         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
35148         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
35149         gl_HEADER_SYS_SOCKET.
35150         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
35151         gl_PREREQ_SYS_H_WINSOCK2.
35153 2011-06-29  Eric Blake  <eblake@redhat.com>
35155         pipe2: fix C89 compile problem
35156         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
35157         Reported by Bruno Haible.
35159         pipe, pipe2: don't corrupt fd on error
35160         * lib/pipe.c (pipe): Leave fd unchanged on error.
35161         * lib/pipe2.c (pipe2): Likewise.
35162         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
35163         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
35165 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
35167         mmap-anon: do not use regular expressions inadvertently
35168         * m4/mmap-anon.m4: Remove trailing period from strings sought
35169         in the output.
35171 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
35173         nanosleep: fix integer overflow problem
35174         * lib/nanosleep.c (my_usleep): Don't assume signed integer
35175         arithmetic wraps around on overflow.
35177         nanosleep: simplify carrying
35178         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
35179         first call to the underyling nanosleep, not for the last one.
35180         This doesn't fix any bugs, but it simplifies the computation of
35181         the remaining delay.  Found while auditing integer overflow issues.
35183         dup2: remove test for existence of fcntl
35184         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
35185         "#if HAVE_FCNTL", in the configure-time test program.
35186         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
35187         and therefore speeds up "configure" a bit.  Found while
35188         adding the dup2 module to Emacs.
35190 2011-06-24  Eric Blake  <eblake@redhat.com>
35192         maint.mk: enhance useless header checks
35193         * top/maint.mk (_sc_header_without_use): Check both include
35194         styles.
35195         (sc_prohibit_assert_without_use)
35196         (sc_prohibit_close_stream_without_use)
35197         (sc_prohibit_getopt_without_use)
35198         (sc_prohibit_quotearg_without_use)
35199         (sc_prohibit_quote_without_use)
35200         (sc_prohibit_long_options_without_use)
35201         (sc_prohibit_inttostr_without_use)
35202         (sc_prohibit_ignore_value_without_use)
35203         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
35204         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
35205         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
35206         (sc_prohibit_hash_pjw_without_use)
35207         (sc_prohibit_safe_read_without_use)
35208         (sc_prohibit_argmatch_without_use)
35209         (sc_prohibit_canonicalize_without_use)
35210         (sc_prohibit_root_dev_ino_without_use)
35211         (sc_prohibit_openat_without_use)
35212         (sc_prohibit_c_ctype_without_use)
35213         (sc_prohibit_signal_without_use)
35214         (sc_prohibit_stdio--_without_use)
35215         (sc_prohibit_stdio-safer_without_use)
35216         (sc_prohibit_strings_without_use)
35217         (sc_prohibit_intprops_without_use)
35218         (sc_prohibit_stddef_without_use)
35219         (sc_prohibit_xfreopen_without_use): Update clients.
35221 2011-06-24  Jim Meyering  <meyering@redhat.com>
35223         syntax-check: keep one maint.mk rule in sync with its header
35224         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
35225         of the bug Eric has just fixed, with today's commit 25e4c2ec.
35226         I prefer to avoid temporary files here, so use <(...), but that
35227         is not supported by /bin/sh, so...
35228         (SHELL): Define to /bin/bash.
35230 2011-06-24  Eric Blake  <eblake@redhat.com>
35232         maint.mk: update sc_prohibit_intprops_without_use
35233         * top/maint.mk (_intprops_names): Match recent changes.
35235 2011-06-24  Bruno Haible  <bruno@clisp.org>
35237         strerror-override: No-op tweak.
35238         * lib/strerror-override.h (strerror_override): Reorder conditions,
35239         for consistency with lib/strerror-override.c.
35241 2011-06-23  Eric Blake  <eblake@redhat.com>
35243         maint.mk: test further PATH_MAX issues
35244         * top/maint.mk (sc_prohibit_path_max_array): Rename...
35245         (sc_prohibit_path_max_allocation): ...and also test alloca.
35246         Suggested by Jim Meyering.
35248 2011-06-22  Eric Blake  <eblake@redhat.com>
35250         maint.mk: add syntax-check to avoid char[PATH_MAX]
35251         * top/maint.mk (sc_prohibit_path_max_array): New rule.
35253         stat: be robust to PATH_MAX definition
35254         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
35255         * modules/stat (Depends-on): Add verify.
35257         link: work around IRIX bug
35258         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
35259         * lib/link.c (rpl_link): Work around it.
35260         * tests/test-link.h (test_link): Enhance test.
35261         * doc/posix-functions/link.texi (link): Document the bug.
35263         getopt: silence clang warning
35264         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
35265         dereference.
35266         Reported by Gustavo Martin Domato.
35268 2011-06-22  Jim Meyering  <meyering@redhat.com>
35270         bootstrap: do not insert a blank line into each .gitignore file
35271         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
35273 2011-06-21  Eric Blake  <eblake@redhat.com>
35275         perror: test for output mismatch
35276         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
35277         perror on IRIX.
35279         strerror_r: fix OpenBSD behavior on out-of-range
35280         * lib/strerror_r.c (strerror_r): Always use maximal string.
35281         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
35283         strerror_r: fix OpenBSD behavior on 0
35284         * lib/strerror-override.c (strerror_override): Also override 0
35285         when needed.
35286         * lib/strerror-override.h (strerror_override): Likewise.
35287         * lib/strerror.c (strerror): Simplify, now that 0 override is done
35288         earlier.
35289         * lib/strerror_r.c (strerror_r): Likewise.
35290         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
35291         behavior...
35292         (gl_FUNC_STRERROR_0): ...into new macro.
35293         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
35294         is overridden.
35295         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
35296         * modules/strerror-override (Files): Add strerror.m4.
35297         (configure.ac): Also provide override for 0 when needed.
35298         * doc/posix-functions/strerror.texi (strerror): Document this.
35299         * doc/posix-functions/perror.texi (perror): Likewise.
35301         perror: adjust array size
35302         * modules/perror (Depends-on): Add strerror-override.
35303         * lib/perror.c (perror): Use it to avoid magic number.
35305         strerror-override: reduce size
35306         * lib/strerror-override.c (strerror_override): Use fewer lines.
35308 2011-06-20  Bruno Haible  <bruno@clisp.org>
35310         pathmax: Ensure correct value for PATH_MAX on HP-UX.
35311         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
35313 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35315         alloca: port to compilers that can optimize like GCC 4.6.0
35316         * lib/alloca.c (find_stack_direction): New signature, taken from
35317         Autoconf git.  This works with GCC 4.6.0.  This code should never
35318         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
35319         be used with other compilers that optimize as well as GCC 4.6.0 does.
35320         (alloca): Adjust to new signature.
35321         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
35322         New macro, which patches Autoconf in a similar way.
35324         c-stack: stop worrying about stack direction
35325         * lib/c-stack.c (find_stack_direction): Remove.
35326         (segv_handler): Don't worry about stack direction growth, as it's
35327         too much of a pain to configure this correctly, given how compilers
35328         are optimizing-away our stack-growth detection code.  Instead, assume
35329         that any access to just before or just after the stack is OK.
35330         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
35331         Don't require AC_FUNC_ALLOCA; no longer needed.
35333 2011-06-20  Eric Blake  <eblake@redhat.com>
35335         test-stat: don't allocate PATH_MAX bytes
35336         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
35337         PATH_MAX-sized buffer.
35338         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
35339         * modules/stat-tests (Depends-on): Likewise.
35340         * tests/test-fstatat.c (includes): Drop pathmax.h.
35341         * tests/test-stat.c (includes): Likewise.
35342         Reported by Bruno Haible.
35344 2011-06-20  Bruno Haible  <bruno@clisp.org>
35346         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
35347         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
35348         * lib/float.c: New file.
35349         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
35350         REPLACE_FLOAT_LDBL.
35351         * modules/float (Files): Add lib/float.c.
35352         (configure.ac): Invoke AC_LIBOBJ.
35353         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
35355 2011-06-20  Bruno Haible  <bruno@clisp.org>
35357         Tests for module 'float'.
35358         * modules/float-tests: New file.
35359         * tests/test-float.c: New file.
35361 2011-06-19  Bruno Haible  <bruno@clisp.org>
35363         isinf: Coding style.
35364         * lib/isinf.c: Use GNU coding style.
35366 2011-06-19  Bruno Haible  <bruno@clisp.org>
35368         linkat test: Avoid test failure on AIX 7.1.
35369         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
35370         * tests/test-link.h (test_link): Likewise.
35372 2011-06-19  Bruno Haible  <bruno@clisp.org>
35374         pread test: Avoid test failure on OpenBSD 4.9.
35375         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
35377 2011-06-19  Bruno Haible  <bruno@clisp.org>
35379         sprintf-posix: Fix test failure on AIX 7.1.
35380         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
35381         * doc/posix-functions/dprintf.texi: Mention limited precision problem
35382         on AIX.
35383         * doc/posix-functions/fprintf.texi: Likewise.
35384         * doc/posix-functions/printf.texi: Likewise.
35385         * doc/posix-functions/snprintf.texi: Likewise.
35386         * doc/posix-functions/sprintf.texi: Likewise.
35387         * doc/posix-functions/vdprintf.texi: Likewise.
35388         * doc/posix-functions/vfprintf.texi: Likewise.
35389         * doc/posix-functions/vprintf.texi: Likewise.
35390         * doc/posix-functions/vsnprintf.texi: Likewise.
35391         * doc/posix-functions/vsprintf.texi: Likewise.
35393 2011-06-19  Bruno Haible  <bruno@clisp.org>
35395         roundl-ieee: Fix test failure on AIX 7.1.
35396         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
35397         * doc/posix-functions/roundl.texi: Mention problem with negative
35398         arguments.
35400 2011-06-19  Bruno Haible  <bruno@clisp.org>
35402         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35403         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
35404         * doc/posix-functions/round.texi: Mention problem with negative
35405         arguments.
35406         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
35408 2011-06-19  Bruno Haible  <bruno@clisp.org>
35410         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35411         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
35412         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
35413         * doc/posix-functions/roundf.texi: Mention problem with negative
35414         arguments.
35415         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
35417 2011-06-19  Bruno Haible  <bruno@clisp.org>
35419         ceilf-ieee: Work around bug on MacOS X 10.5.
35420         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
35422         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
35423         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
35424         IEEE compliant, avoid compiler optimizations.
35425         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
35426         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
35427         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
35428         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35429         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35430         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
35431         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35432         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35433         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35434         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
35436 2011-06-19  Bruno Haible  <bruno@clisp.org>
35438         ceilf-ieee: Work around bug on AIX 7.1.
35439         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
35440         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
35442 2011-06-19  Bruno Haible  <bruno@clisp.org>
35444         ceil-ieee: Work around bug on AIX 7.1.
35445         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
35446         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
35448 2011-06-18  Bruno Haible  <bruno@clisp.org>
35450         fsync test: Avoid test failure on MacOS X and AIX.
35451         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
35452         EINVAL.
35454 2011-06-18  Bruno Haible  <bruno@clisp.org>
35456         openat, fdopendir tests: Fix link errors.
35457         * modules/openat-tests (Depends-on): Add progname.
35458         * modules/fdopendir-tests (Depends-on): Likewise.
35459         * tests/test-fchownat.c: Include progname.h.
35460         (main): Call set_program_name.
35461         * tests/test-fstatat.c: Include progname.h.
35462         (main): Call set_program_name.
35463         * tests/test-mkdirat.c: Include progname.h.
35464         (main): Call set_program_name.
35465         * tests/test-openat.c: Include progname.h.
35466         (main): Call set_program_name.
35467         * tests/test-unlinkat.c: Include progname.h.
35468         (main): Call set_program_name.
35469         * tests/test-fdopendir.c: Include progname.h.
35470         (main): Call set_program_name.
35472 2011-06-18  Bruno Haible  <bruno@clisp.org>
35474         Doc update.
35475         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
35476         HP-UX.
35477         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
35479 2011-06-18  Bruno Haible  <bruno@clisp.org>
35481         getcwd tests: Avoid compilation error on HP-UX 11.31.
35482         * modules/getcwd-tests (Depends-on): Add pathmax.
35483         * tests/test-getcwd.c: Include pathmax.h.
35485 2011-06-18  Bruno Haible  <bruno@clisp.org>
35487         isfinite, isinf: Fix link error on AIX 6 and 7.
35488         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
35489         needed, also test the macro with a 'float' argument.
35490         * m4/isinf.m4 (gl_ISINF): Likewise.
35492 2011-06-18  Bruno Haible  <bruno@clisp.org>
35494         getloadavg: Don't clobber LIBS. Regression from previous commit.
35495         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
35496         AC_CHECK_LIB from here...
35497         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
35498         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
35499         gl_func_getloadavg_done.
35500         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35502 2011-06-18  Bruno Haible  <bruno@clisp.org>
35504         clean-temp: Improve documentation.
35505         * lib/clean-temp.h: Explain better how to use this module.
35506         Reported by John Darrington <john@darrington.wattle.id.au>.
35508 2011-06-17  Bruno Haible  <bruno@clisp.org>
35510         pread, pwrite: Avoid cc warning on AIX.
35511         * lib/unistd.in.h (pread): Undefine before defining as a macro.
35512         (pwrite): Likewise.
35514 2011-06-17  Bruno Haible  <bruno@clisp.org>
35516         spawn-pipe tests: Fix link error.
35517         * tests/test-spawn-pipe-child.c: Undefine fprintf.
35518         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35520 2011-06-17  Bruno Haible  <bruno@clisp.org>
35522         Tests: Remove unnecessary dependency.
35523         * modules/canonicalize-tests (Depends-on): Remove progname.
35524         * modules/chown-tests (Depends-on): Likewise.
35525         * modules/dirname-tests (Depends-on): Likewise.
35526         * modules/fdopendir-tests (Depends-on): Likewise.
35527         * modules/fdutimensat-tests (Depends-on): Likewise.
35528         * modules/hash-tests (Depends-on): Likewise.
35529         * modules/lchown-tests (Depends-on): Likewise.
35530         * modules/linkat-tests (Depends-on): Likewise.
35531         * modules/renameat-tests (Depends-on): Likewise.
35532         * modules/spawn-pipe-tests (Depends-on): Likewise.
35533         * modules/utimensat-tests (Depends-on): Likewise.
35535 2011-06-17  Bruno Haible  <bruno@clisp.org>
35537         spawn-pipe tests: Fix link error.
35538         * tests/test-spawn-pipe-child.c: Undefine fflush.
35540 2011-06-17  Bruno Haible  <bruno@clisp.org>
35542         Fix tests link errors.
35543         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
35544         * modules/chown-tests (Makefile.am): Don't link test-chown with
35545         LIBINTL.
35546         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
35547         LIBINTL.
35548         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
35549         LIBINTL.
35550         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
35551         LIBINTL.
35553 2011-06-16  Bruno Haible  <bruno@clisp.org>
35555         crypto/gc-sha1: Fix recent regression.
35556         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
35557         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
35559         crypto/gc-md5: Fix recent regression.
35560         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
35562         crypto/gc-md4: Fix recent regression.
35563         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
35564         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
35566         crypto/gc-arctwo: Fix recent regression.
35567         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
35568         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
35570         crypto/gc-rijndael: Fix recent regression.
35571         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
35572         (configure.ac): Invoke AC_LIBOBJ here.
35573         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
35574         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35576         crypto/gc-hmac-sha1: Fix recent regression.
35577         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
35578         (configure.ac): Invoke AC_LIBOBJ here.
35579         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
35580         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35582         crypto/gc-hmac-md5: Fix recent regression.
35583         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
35584         (configure.ac): Invoke AC_LIBOBJ here.
35585         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
35586         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35588         crypto/gc-des: Fix recent regression.
35589         * modules/crypto/gc-des (Files): Remove m4/des.m4.
35590         (configure.ac): Invoke AC_LIBOBJ here.
35591         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
35592         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35594         crypto/gc-arcfour: Fix recent regression.
35595         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
35596         (configure.ac): Invoke AC_LIBOBJ here.
35597         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
35598         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35600 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
35602         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
35603         After the 2011-05-21 change, this macro requires
35604         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
35605         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35607 2011-06-16  Bruno Haible  <bruno@clisp.org>
35609         fprintftime: Move AC_LIBOBJ invocations to module description.
35610         * m4/fprintftime.m4: Remove file.
35611         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
35612         (configure.ac): Remove gl_FPRINTFTIME call.
35613         (Makefile.am): Augment lib_SOURCES.
35614         Reported by Jim Meyering.
35616 2011-06-16  Bruno Haible  <bruno@clisp.org>
35618         tmpfile-safer: Finish 2011-05-23 commit.
35619         * m4/stdio-safer.m4: Really remove file.
35620         Reported by Jim Meyering.
35622 2011-06-16  Bruno Haible  <bruno@clisp.org>
35624         syntax-check: Fix typo.
35625         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
35626         printf-posix.m4.
35627         Reported by Jim Meyering.
35629 2011-06-13  Jim Meyering  <meyering@redhat.com>
35631         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
35632         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
35634 2011-05-23  Bruno Haible  <bruno@clisp.org>
35636         yesno: Move AC_LIBOBJ invocations to module description.
35637         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
35638         * modules/yesno (Makefile.am): Augment lib_SOURCES.
35640 2011-05-23  Bruno Haible  <bruno@clisp.org>
35642         xstrtol: Move AC_LIBOBJ invocations to module description.
35643         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
35644         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
35646 2011-05-23  Bruno Haible  <bruno@clisp.org>
35648         xstrtold: Move AC_LIBOBJ invocations to module description.
35649         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
35650         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
35652 2011-05-23  Bruno Haible  <bruno@clisp.org>
35654         xstrtod: Move AC_LIBOBJ invocations to module description.
35655         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
35656         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
35658 2011-05-23  Bruno Haible  <bruno@clisp.org>
35660         xnanosleep: Move AC_LIBOBJ invocations to module description.
35661         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
35662         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
35664 2011-05-23  Bruno Haible  <bruno@clisp.org>
35666         xgetcwd: Move AC_LIBOBJ invocations to module description.
35667         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
35668         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
35670 2011-05-23  Bruno Haible  <bruno@clisp.org>
35672         xalloc: Move AC_LIBOBJ invocations to module description.
35673         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
35674         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
35676 2011-05-23  Bruno Haible  <bruno@clisp.org>
35678         write-any-file: Move AC_LIBOBJ invocations to module description.
35679         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
35680         invocation.
35681         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
35683 2011-05-23  Bruno Haible  <bruno@clisp.org>
35685         utimens: Move AC_LIBOBJ invocations to module description.
35686         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
35687         * modules/utimens (Makefile.am): Augment lib_SOURCES.
35689 2011-05-23  Bruno Haible  <bruno@clisp.org>
35691         utimecmp: Move AC_LIBOBJ invocations to module description.
35692         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
35693         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
35695 2011-05-23  Bruno Haible  <bruno@clisp.org>
35697         userspec: Move AC_LIBOBJ invocations to module description.
35698         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
35699         * modules/userspec (Makefile.am): Augment lib_SOURCES.
35701 2011-05-23  Bruno Haible  <bruno@clisp.org>
35703         unlinkdir: Move AC_LIBOBJ invocations to module description.
35704         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
35705         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
35707 2011-05-23  Bruno Haible  <bruno@clisp.org>
35709         unistd-safer: Move AC_LIBOBJ invocations to module description.
35710         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
35711         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
35713 2011-05-23  Bruno Haible  <bruno@clisp.org>
35715         tempname: Move AC_LIBOBJ invocations to module description.
35716         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
35717         * modules/tempname (Makefile.am): Augment lib_SOURCES.
35719 2011-05-23  Bruno Haible  <bruno@clisp.org>
35721         strftime: Move AC_LIBOBJ invocations to module description.
35722         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
35723         * modules/strftime (Makefile.am): Augment lib_SOURCES.
35725 2011-05-23  Bruno Haible  <bruno@clisp.org>
35727         stdlib-safer: Move AC_LIBOBJ invocations to module description.
35728         * m4/stdlib-safer.m4: Remove file.
35729         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
35730         (configure.ac): Remove gl_STDLIB_SAFER call.
35731         (Makefile.am): Augment lib_SOURCES.
35733 2011-05-23  Bruno Haible  <bruno@clisp.org>
35735         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
35736         * m4/stdio-safer.m4: Remove file.
35737         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
35738         (configure.ac): Remove gl_TMPFILE_SAFER call.
35739         (Makefile.am): Augment lib_SOURCES.
35741 2011-05-23  Bruno Haible  <bruno@clisp.org>
35743         popen-safer: Move AC_LIBOBJ invocations to module description.
35744         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
35745         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
35746         (configure.ac): Remove gl_POPEN_SAFER call.
35747         (Makefile.am): Augment lib_SOURCES.
35749 2011-05-23  Bruno Haible  <bruno@clisp.org>
35751         freopen-safer: Move AC_LIBOBJ invocations to module description.
35752         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
35753         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
35754         (configure.ac): Remove gl_FREOPEN_SAFER call.
35755         (Makefile.am): Augment lib_SOURCES.
35757 2011-05-23  Bruno Haible  <bruno@clisp.org>
35759         fopen-safer: Move AC_LIBOBJ invocations to module description.
35760         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
35761         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
35762         (configure.ac): Remove gl_FOPEN_SAFER call.
35763         (Makefile.am): Augment lib_SOURCES.
35765 2011-05-23  Bruno Haible  <bruno@clisp.org>
35767         crypto/sha512: Move AC_LIBOBJ invocations to module description.
35768         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
35769         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
35771 2011-05-23  Bruno Haible  <bruno@clisp.org>
35773         crypto/sha256: Move AC_LIBOBJ invocations to module description.
35774         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
35775         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
35777 2011-05-23  Bruno Haible  <bruno@clisp.org>
35779         crypto/sha1: Move AC_LIBOBJ invocations to module description.
35780         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
35781         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
35783 2011-05-23  Bruno Haible  <bruno@clisp.org>
35785         settime: Move AC_LIBOBJ invocations to module description.
35786         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
35787         * modules/settime (Makefile.am): Augment lib_SOURCES.
35789 2011-05-23  Bruno Haible  <bruno@clisp.org>
35791         savedir: Move AC_LIBOBJ invocations to module description.
35792         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
35793         * modules/savedir (Makefile.am): Augment lib_SOURCES.
35795 2011-05-23  Bruno Haible  <bruno@clisp.org>
35797         save-cwd: Move AC_LIBOBJ invocations to module description.
35798         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
35799         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
35801 2011-05-23  Bruno Haible  <bruno@clisp.org>
35803         same: Move AC_LIBOBJ invocations to module description.
35804         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
35805         * modules/same (Makefile.am): Augment lib_SOURCES.
35807 2011-05-23  Bruno Haible  <bruno@clisp.org>
35809         safe-write: Move AC_LIBOBJ invocations to module description.
35810         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
35811         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
35812         instead of gl_SAFE_WRITE.
35813         (Makefile.am): Augment lib_SOURCES.
35815 2011-05-23  Bruno Haible  <bruno@clisp.org>
35817         safe-read: Move AC_LIBOBJ invocations to module description.
35818         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
35819         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
35820         of gl_SAFE_READ.
35821         (Makefile.am): Augment lib_SOURCES.
35823 2011-05-23  Bruno Haible  <bruno@clisp.org>
35825         safe-alloc: Move AC_LIBOBJ invocations to module description.
35826         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
35827         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
35829 2011-05-23  Bruno Haible  <bruno@clisp.org>
35831         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
35832         * m4/rijndael.m4: Remove file.
35833         * modules/crypto/rijndael (Files): Remove it.
35834         (configure.ac): Remove gl_RIJNDAEL call.
35835         (Makefile.am): Augment lib_SOURCES.
35837 2011-05-23  Bruno Haible  <bruno@clisp.org>
35839         readtokens: Move AC_LIBOBJ invocations to module description.
35840         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
35841         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
35843 2011-05-23  Bruno Haible  <bruno@clisp.org>
35845         read-file: Move AC_LIBOBJ invocations to module description.
35846         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
35847         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
35848         of gl_FUNC_READ_FILE.
35849         (Makefile.am): Augment lib_SOURCES.
35851 2011-05-23  Bruno Haible  <bruno@clisp.org>
35853         quotearg: Move AC_LIBOBJ invocations to module description.
35854         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
35855         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
35857 2011-05-23  Bruno Haible  <bruno@clisp.org>
35859         quote: Move AC_LIBOBJ invocations to module description.
35860         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
35861         * modules/quote (Makefile.am): Augment lib_SOURCES.
35863 2011-05-23  Bruno Haible  <bruno@clisp.org>
35865         posixver: Move AC_LIBOBJ invocations to module description.
35866         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
35867         * modules/posixver (Makefile.am): Augment lib_SOURCES.
35869 2011-05-23  Bruno Haible  <bruno@clisp.org>
35871         posixtm: Move AC_LIBOBJ invocations to module description.
35872         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
35873         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
35875 2011-05-23  Bruno Haible  <bruno@clisp.org>
35877         physmem: Move AC_LIBOBJ invocations to module description.
35878         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
35879         * modules/physmem (Makefile.am): Augment lib_SOURCES.
35881 2011-05-23  Bruno Haible  <bruno@clisp.org>
35883         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
35884         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
35885         invocation.
35886         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
35888 2011-05-23  Bruno Haible  <bruno@clisp.org>
35890         mpsort: Move AC_LIBOBJ invocations to module description.
35891         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
35892         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
35894 2011-05-23  Bruno Haible  <bruno@clisp.org>
35896         modechange: Move AC_LIBOBJ invocations to module description.
35897         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
35898         * modules/modechange (Makefile.am): Augment lib_SOURCES.
35900 2011-05-23  Bruno Haible  <bruno@clisp.org>
35902         mkdir-p: Move AC_LIBOBJ invocations to module description.
35903         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
35904         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
35906 2011-05-23  Bruno Haible  <bruno@clisp.org>
35908         mkancesdirs: Move AC_LIBOBJ invocations to module description.
35909         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
35910         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
35912 2011-05-23  Bruno Haible  <bruno@clisp.org>
35914         mgetgroups: Move AC_LIBOBJ invocations to module description.
35915         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
35916         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
35918 2011-05-23  Bruno Haible  <bruno@clisp.org>
35920         memxor: Move AC_LIBOBJ invocations to module description.
35921         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
35922         * modules/memxor (Makefile.am): Augment lib_SOURCES.
35924 2011-05-23  Bruno Haible  <bruno@clisp.org>
35926         memcoll: Move AC_LIBOBJ invocations to module description.
35927         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
35928         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
35930 2011-05-23  Bruno Haible  <bruno@clisp.org>
35932         memcasecmp: Move AC_LIBOBJ invocations to module description.
35933         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
35934         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
35936 2011-05-23  Bruno Haible  <bruno@clisp.org>
35938         crypto/md5: Move AC_LIBOBJ invocations to module description.
35939         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
35940         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
35942 2011-05-23  Bruno Haible  <bruno@clisp.org>
35944         crypto/md4: Move AC_LIBOBJ invocations to module description.
35945         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
35946         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
35948 2011-05-23  Bruno Haible  <bruno@clisp.org>
35950         crypto/md2: Move AC_LIBOBJ invocations to module description.
35951         * m4/md2.m4: Remove file.
35952         * modules/crypto/md2 (Files): Remove it.
35953         (configure.ac): Remove gl_MD2 call.
35954         (Makefile.am): Augment lib_SOURCES.
35956 2011-05-23  Bruno Haible  <bruno@clisp.org>
35958         long-options: Move AC_LIBOBJ invocations to module description.
35959         * m4/long-options.m4: Remove file.
35960         * modules/long-options (Files): Remove it.
35961         (configure.ac): Remove gl_LONG_OPTIONS call.
35962         (Makefile.am): Augment lib_SOURCES.
35964 2011-05-23  Bruno Haible  <bruno@clisp.org>
35966         i-ring: Move AC_LIBOBJ invocations to module description.
35967         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
35968         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
35970 2011-05-23  Bruno Haible  <bruno@clisp.org>
35972         idcache: Move AC_LIBOBJ invocations to module description.
35973         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
35974         * modules/idcache (Makefile.am): Augment lib_SOURCES.
35976 2011-05-23  Bruno Haible  <bruno@clisp.org>
35978         human: Move AC_LIBOBJ invocations to module description.
35979         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
35980         * modules/human (Makefile.am): Augment lib_SOURCES.
35982 2011-05-23  Bruno Haible  <bruno@clisp.org>
35984         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
35985         * m4/hmac-sha1.m4: Remove file.
35986         * modules/crypto/hmac-sha1 (Files): Remove it.
35987         (configure.ac): Remove gl_HMAC_SHA1 call.
35988         (Makefile.am): Augment lib_SOURCES.
35990 2011-05-23  Bruno Haible  <bruno@clisp.org>
35992         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
35993         * m4/hmac-md5.m4: Remove file.
35994         * modules/crypto/hmac-md5 (Files): Remove it.
35995         (configure.ac): Remove gl_HMAC_MD5 call.
35996         (Makefile.am): Augment lib_SOURCES.
35998 2011-05-23  Bruno Haible  <bruno@clisp.org>
36000         hash: Move AC_LIBOBJ invocations to module description.
36001         * m4/hash.m4: Remove file.
36002         * modules/hash (Files): Remove it.
36003         (configure.ac): Remove gl_HASH call.
36004         (Makefile.am): Augment lib_SOURCES.
36006 2011-05-23  Bruno Haible  <bruno@clisp.org>
36008         hard-locale: Move AC_LIBOBJ invocations to module description.
36009         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
36010         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
36012 2011-05-23  Bruno Haible  <bruno@clisp.org>
36014         getugroups: Move AC_LIBOBJ invocations to module description.
36015         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
36016         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
36018 2011-05-23  Bruno Haible  <bruno@clisp.org>
36020         gettime: Move AC_LIBOBJ invocations to module description.
36021         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
36022         * modules/gettime (Makefile.am): Augment lib_SOURCES.
36024 2011-05-23  Bruno Haible  <bruno@clisp.org>
36026         getndelim2: Move AC_LIBOBJ invocations to module description.
36027         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
36028         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
36030 2011-05-23  Bruno Haible  <bruno@clisp.org>
36032         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
36033         * m4/gc-pbkdf2-sha1.m4: Remove file.
36034         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
36035         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
36036         (Makefile.am): Augment lib_SOURCES.
36038 2011-05-23  Bruno Haible  <bruno@clisp.org>
36040         fts: Move AC_LIBOBJ invocations to module description.
36041         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
36042         * modules/fts (configure.ac): ... to here.
36044 2011-05-23  Bruno Haible  <bruno@clisp.org>
36046         file-type: Move AC_LIBOBJ invocations to module description.
36047         * m4/file-type.m4: Remove file.
36048         * modules/file-type (Files): Remove it.
36049         (configure.ac): Remove gl_FILE_TYPE call.
36050         (Makefile.am): Augment lib_SOURCES.
36052 2011-05-23  Bruno Haible  <bruno@clisp.org>
36054         filenamecat*: Respect rules for use of AC_LIBOBJ.
36055         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
36056         Remove AC_LIBOBJ invocation.
36057         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
36058         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
36060 2011-05-23  Bruno Haible  <bruno@clisp.org>
36062         filemode: Move AC_LIBOBJ invocations to module description.
36063         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
36064         * modules/filemode (Makefile.am): Augment lib_SOURCES.
36066 2011-05-23  Bruno Haible  <bruno@clisp.org>
36068         openat-safer: Move AC_LIBOBJ invocations to module description.
36069         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
36070         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
36072 2011-05-23  Bruno Haible  <bruno@clisp.org>
36074         fcntl-safer: Move AC_LIBOBJ invocations to module description.
36075         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
36076         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
36078 2011-05-23  Bruno Haible  <bruno@clisp.org>
36080         exclude: Move AC_LIBOBJ invocations to module description.
36081         * m4/exclude.m4: Remove file.
36082         * modules/exclude (Files): Remove it.
36083         (configure.ac): Remove gl_EXCLUDE call.
36084         (Makefile.am): Augment lib_SOURCES.
36086 2011-05-23  Bruno Haible  <bruno@clisp.org>
36088         dirname*: Respect rules for use of AC_LIBOBJ.
36089         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
36090         invocations.
36091         * modules/dirname (Makefile.am): Augment lib_SOURCES.
36092         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
36094 2011-05-23  Bruno Haible  <bruno@clisp.org>
36096         dirent-safer: Move AC_LIBOBJ invocations to module description.
36097         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
36098         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
36100 2011-05-23  Bruno Haible  <bruno@clisp.org>
36102         crypto/des: Move AC_LIBOBJ invocations to module description.
36103         * m4/des.m4: Remove file.
36104         * modules/crypto/des (Files): Remove it.
36105         (configure.ac): Remove gl_DES call.
36106         (Makefile.am): Augment lib_SOURCES.
36108 2011-05-23  Bruno Haible  <bruno@clisp.org>
36110         cycle-check: Move AC_LIBOBJ invocations to module description.
36111         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
36112         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
36114 2011-05-23  Bruno Haible  <bruno@clisp.org>
36116         c-strtold: Move AC_LIBOBJ invocations to module description.
36117         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
36118         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
36120 2011-05-23  Bruno Haible  <bruno@clisp.org>
36122         c-strtod: Move AC_LIBOBJ invocations to module description.
36123         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
36124         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
36126 2011-05-23  Bruno Haible  <bruno@clisp.org>
36128         crc: Move AC_LIBOBJ invocations to module description.
36129         * m4/crc.m4: Remove file.
36130         * modules/crc (Files): Remove it.
36131         (configure.ac): Remove gl_CRC call.
36132         (Makefile.am): Augment lib_SOURCES.
36134 2011-05-23  Bruno Haible  <bruno@clisp.org>
36136         close-stream: Move AC_LIBOBJ invocations to module description.
36137         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
36138         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
36140 2011-05-23  Bruno Haible  <bruno@clisp.org>
36142         closeout: Move AC_LIBOBJ invocations to module description.
36143         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
36144         * modules/closeout (Makefile.am): Augment lib_SOURCES.
36146 2011-05-23  Bruno Haible  <bruno@clisp.org>
36148         closein: Move AC_LIBOBJ invocations to module description.
36149         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
36150         * modules/closein (Makefile.am): Augment lib_SOURCES.
36152 2011-05-23  Bruno Haible  <bruno@clisp.org>
36154         cloexec: Move AC_LIBOBJ invocations to module description.
36155         * m4/cloexec.m4: Remove file.
36156         * modules/cloexec (Files): Remove it.
36157         (configure.ac): Remove gl_CLOEXEC call.
36158         (Makefile.am): Augment lib_SOURCES.
36160 2011-05-23  Bruno Haible  <bruno@clisp.org>
36162         check-version: Move AC_LIBOBJ invocations to module description.
36163         * m4/check-version.m4: Remove file.
36164         * modules/check-version (Files): Remove it.
36165         (configure.ac): Remove gl_CHECK_VERSION call.
36166         (Makefile.am): Augment lib_SOURCES.
36168 2011-05-23  Bruno Haible  <bruno@clisp.org>
36170         chdir-safer: Move AC_LIBOBJ invocations to module description.
36171         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
36172         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
36174 2011-05-23  Bruno Haible  <bruno@clisp.org>
36176         canonicalize: Move AC_LIBOBJ invocations to module description.
36177         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
36178         AC_LIBOBJ invocation.
36179         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
36181 2011-05-23  Bruno Haible  <bruno@clisp.org>
36183         canon-host: Move AC_LIBOBJ invocations to module description.
36184         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
36185         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
36186         instead of gl_CANON_HOST.
36187         (Makefile.am): Augment lib_SOURCES.
36189 2011-05-23  Bruno Haible  <bruno@clisp.org>
36191         backupfile: Move AC_LIBOBJ invocations to module description.
36192         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
36193         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
36195 2011-05-23  Bruno Haible  <bruno@clisp.org>
36197         argmatch: Move AC_LIBOBJ invocations to module description.
36198         * m4/argmatch.m4: Remove file.
36199         * modules/argmatch (Files): Remove it.
36200         (configure.ac): Remove gl_ARGMATCH call.
36201         (Makefile.am): Augment lib_SOURCES.
36203 2011-05-23  Bruno Haible  <bruno@clisp.org>
36205         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
36206         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
36207         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
36209 2011-05-23  Bruno Haible  <bruno@clisp.org>
36211         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
36212         * m4/arcfour.m4: Remove file.
36213         * modules/crypto/arcfour (Files): Remove it.
36214         (configure.ac): Remove gl_ARCFOUR call.
36215         (Makefile.am): Augment lib_SOURCES.
36217 2011-05-22  Bruno Haible  <bruno@clisp.org>
36219         write: Move AC_LIBOBJ invocations to module description.
36220         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
36221         * modules/write (configure.ac): ... to here.
36223 2011-05-22  Bruno Haible  <bruno@clisp.org>
36225         wmemset: Move AC_LIBOBJ invocations to module description.
36226         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
36227         here...
36228         * modules/wmemset (configure.ac): ... to here.
36230 2011-05-22  Bruno Haible  <bruno@clisp.org>
36232         wmemmove: Move AC_LIBOBJ invocations to module description.
36233         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
36234         here...
36235         * modules/wmemmove (configure.ac): ... to here.
36237 2011-05-22  Bruno Haible  <bruno@clisp.org>
36239         wmemcpy: Move AC_LIBOBJ invocations to module description.
36240         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
36241         here...
36242         * modules/wmemcpy (configure.ac): ... to here.
36244 2011-05-22  Bruno Haible  <bruno@clisp.org>
36246         wmemcmp: Move AC_LIBOBJ invocations to module description.
36247         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
36248         here...
36249         * modules/wmemcmp (configure.ac): ... to here.
36251 2011-05-22  Bruno Haible  <bruno@clisp.org>
36253         wmemchr: Move AC_LIBOBJ invocations to module description.
36254         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
36255         here...
36256         * modules/wmemchr (configure.ac): ... to here.
36258 2011-05-22  Bruno Haible  <bruno@clisp.org>
36260         wcswidth: Move AC_LIBOBJ invocations to module description.
36261         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
36262         here...
36263         * modules/wcswidth (configure.ac): ... to here.
36265 2011-05-22  Bruno Haible  <bruno@clisp.org>
36267         wcwidth: Respect rules for use of AC_LIBOBJ.
36268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
36269         invocation from here...
36270         * modules/wcwidth (configure.ac): ... to here.
36271         (Depends-on): Update conditions.
36273 2011-05-22  Bruno Haible  <bruno@clisp.org>
36275         wctype: Move AC_LIBOBJ invocations to module description.
36276         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
36277         invocation from here...
36278         * modules/wctype (configure.ac): ... to here.
36279         (Depends-on): Update conditions.
36281 2011-05-22  Bruno Haible  <bruno@clisp.org>
36283         wctrans: Move AC_LIBOBJ invocations to module description.
36284         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
36285         invocation from here...
36286         * modules/wctrans (configure.ac): ... to here.
36288 2011-05-22  Bruno Haible  <bruno@clisp.org>
36290         wctomb: Move AC_LIBOBJ invocations to module description.
36291         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
36292         invocations from here...
36293         * modules/wctomb (configure.ac): ... to here.
36295 2011-05-22  Bruno Haible  <bruno@clisp.org>
36297         wctob: Move AC_LIBOBJ invocations to module description.
36298         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
36299         gl_PREREQ_WCTOB invocations from here...
36300         * modules/wctob (configure.ac): ... to here.
36301         (Depends-on): Update conditions.
36303 2011-05-22  Bruno Haible  <bruno@clisp.org>
36305         wcsxfrm: Move AC_LIBOBJ invocations to module description.
36306         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
36307         here...
36308         * modules/wcsxfrm (configure.ac): ... to here.
36310 2011-05-22  Bruno Haible  <bruno@clisp.org>
36312         wcstok: Move AC_LIBOBJ invocations to module description.
36313         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
36314         * modules/wcstok (configure.ac): ... to here.
36316 2011-05-22  Bruno Haible  <bruno@clisp.org>
36318         wcsstr: Move AC_LIBOBJ invocations to module description.
36319         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
36320         * modules/wcsstr (configure.ac): ... to here.
36322 2011-05-22  Bruno Haible  <bruno@clisp.org>
36324         wcsspn: Move AC_LIBOBJ invocations to module description.
36325         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
36326         * modules/wcsspn (configure.ac): ... to here.
36328 2011-05-22  Bruno Haible  <bruno@clisp.org>
36330         wcsrtombs: Move AC_LIBOBJ invocations to module description.
36331         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
36332         gl_PREREQ_WCSRTOMBS invocations from here...
36333         * modules/wcsrtombs (configure.ac): ... to here.
36335 2011-05-22  Bruno Haible  <bruno@clisp.org>
36337         wcsrchr: Move AC_LIBOBJ invocations to module description.
36338         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
36339         here...
36340         * modules/wcsrchr (configure.ac): ... to here.
36342 2011-05-22  Bruno Haible  <bruno@clisp.org>
36344         wcspbrk: Move AC_LIBOBJ invocations to module description.
36345         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
36346         here...
36347         * modules/wcspbrk (configure.ac): ... to here.
36349 2011-05-22  Bruno Haible  <bruno@clisp.org>
36351         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
36352         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
36353         gl_PREREQ_WCSNRTOMBS invocations from here...
36354         * modules/wcsnrtombs (configure.ac): ... to here.
36356 2011-05-22  Bruno Haible  <bruno@clisp.org>
36358         wcsnlen: Move AC_LIBOBJ invocations to module description.
36359         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
36360         here...
36361         * modules/wcsnlen (configure.ac): ... to here.
36363 2011-05-22  Bruno Haible  <bruno@clisp.org>
36365         wcsncpy: Move AC_LIBOBJ invocations to module description.
36366         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
36367         here...
36368         * modules/wcsncpy (configure.ac): ... to here.
36370 2011-05-22  Bruno Haible  <bruno@clisp.org>
36372         wcsncmp: Move AC_LIBOBJ invocations to module description.
36373         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
36374         here...
36375         * modules/wcsncmp (configure.ac): ... to here.
36377 2011-05-22  Bruno Haible  <bruno@clisp.org>
36379         wcsncat: Move AC_LIBOBJ invocations to module description.
36380         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
36381         here...
36382         * modules/wcsncat (configure.ac): ... to here.
36384 2011-05-22  Bruno Haible  <bruno@clisp.org>
36386         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
36387         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
36388         from here...
36389         * modules/wcsncasecmp (configure.ac): ... to here.
36391 2011-05-22  Bruno Haible  <bruno@clisp.org>
36393         wcslen: Move AC_LIBOBJ invocations to module description.
36394         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
36395         * modules/wcslen (configure.ac): ... to here.
36397 2011-05-22  Bruno Haible  <bruno@clisp.org>
36399         wcsdup: Move AC_LIBOBJ invocations to module description.
36400         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
36401         * modules/wcsdup (configure.ac): ... to here.
36403 2011-05-22  Bruno Haible  <bruno@clisp.org>
36405         wcscspn: Move AC_LIBOBJ invocations to module description.
36406         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
36407         here...
36408         * modules/wcscspn (configure.ac): ... to here.
36410 2011-05-22  Bruno Haible  <bruno@clisp.org>
36412         wcscpy: Move AC_LIBOBJ invocations to module description.
36413         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
36414         * modules/wcscpy (configure.ac): ... to here.
36416 2011-05-22  Bruno Haible  <bruno@clisp.org>
36418         wcscoll: Move AC_LIBOBJ invocations to module description.
36419         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
36420         here...
36421         * modules/wcscoll (configure.ac): ... to here.
36423 2011-05-22  Bruno Haible  <bruno@clisp.org>
36425         wcscmp: Move AC_LIBOBJ invocations to module description.
36426         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
36427         * modules/wcscmp (configure.ac): ... to here.
36429 2011-05-22  Bruno Haible  <bruno@clisp.org>
36431         wcschr: Move AC_LIBOBJ invocations to module description.
36432         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
36433         * modules/wcschr (configure.ac): ... to here.
36435 2011-05-22  Bruno Haible  <bruno@clisp.org>
36437         wcscat: Move AC_LIBOBJ invocations to module description.
36438         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
36439         * modules/wcscat (configure.ac): ... to here.
36441 2011-05-22  Bruno Haible  <bruno@clisp.org>
36443         wcscasecmp: Move AC_LIBOBJ invocations to module description.
36444         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
36445         here...
36446         * modules/wcscasecmp (configure.ac): ... to here.
36448 2011-05-22  Bruno Haible  <bruno@clisp.org>
36450         wcrtomb: Move AC_LIBOBJ invocations to module description.
36451         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
36452         invocations from here...
36453         * modules/wcrtomb (configure.ac): ... to here.
36455 2011-05-22  Bruno Haible  <bruno@clisp.org>
36457         wcpncpy: Move AC_LIBOBJ invocations to module description.
36458         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
36459         here...
36460         * modules/wcpncpy (configure.ac): ... to here.
36462 2011-05-22  Bruno Haible  <bruno@clisp.org>
36464         wcpcpy: Move AC_LIBOBJ invocations to module description.
36465         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
36466         * modules/wcpcpy (configure.ac): ... to here.
36468 2011-05-22  Bruno Haible  <bruno@clisp.org>
36470         waitpid: Move AC_LIBOBJ invocations to module description.
36471         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
36472         invocation from here...
36473         * modules/waitpid (configure.ac): ... to here.
36475 2011-05-22  Bruno Haible  <bruno@clisp.org>
36477         utimensat: Move AC_LIBOBJ invocations to module description.
36478         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
36479         here...
36480         * modules/utimensat (configure.ac): ... to here.
36482 2011-05-22  Bruno Haible  <bruno@clisp.org>
36484         usleep: Move AC_LIBOBJ invocations to module description.
36485         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
36486         here...
36487         * modules/usleep (configure.ac): ... to here.
36489 2011-05-22  Bruno Haible  <bruno@clisp.org>
36491         unlockpt: Move AC_LIBOBJ invocations to module description.
36492         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
36493         gl_PREREQ_UNLOCKPT invocations from here...
36494         * modules/unlockpt (configure.ac): ... to here.
36496 2011-05-22  Bruno Haible  <bruno@clisp.org>
36498         unlink: Respect rules for use of AC_LIBOBJ.
36499         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
36500         * modules/unlink (configure.ac): ... to here.
36502 2011-05-22  Bruno Haible  <bruno@clisp.org>
36504         uname: Move AC_LIBOBJ invocations to module description.
36505         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
36506         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
36507         here...
36508         * modules/uname (configure.ac): ... to here.
36510 2011-05-22  Bruno Haible  <bruno@clisp.org>
36512         ttyname_r: Move AC_LIBOBJ invocations to module description.
36513         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
36514         gl_PREREQ_TTYNAME_R invocations from here...
36515         * modules/ttyname_r (configure.ac): ... to here.
36517 2011-05-22  Bruno Haible  <bruno@clisp.org>
36519         tsearch: Move AC_LIBOBJ invocations to module description.
36520         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
36521         invocations from here...
36522         * modules/tsearch (configure.ac): ... to here.
36524 2011-05-22  Bruno Haible  <bruno@clisp.org>
36526         towctrans: Move AC_LIBOBJ invocations to module description.
36527         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
36528         AC_LIBOBJ invocation from here...
36529         * modules/towctrans (configure.ac): ... to here.
36531 2011-05-22  Bruno Haible  <bruno@clisp.org>
36533         tmpfile: Move AC_LIBOBJ invocations to module description.
36534         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
36535         invocations from here...
36536         * modules/tmpfile (configure.ac): ... to here.
36538 2011-05-22  Bruno Haible  <bruno@clisp.org>
36540         times: Move AC_LIBOBJ invocations to module description.
36541         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
36542         * modules/times (configure.ac): ... to here.
36544 2011-05-22  Bruno Haible  <bruno@clisp.org>
36546         time_r: Move AC_LIBOBJ invocations to module description.
36547         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
36548         invocations from here...
36549         * modules/time_r (configure.ac): ... to here.
36551 2011-05-22  Bruno Haible  <bruno@clisp.org>
36553         timegm: Move AC_LIBOBJ invocations to module description.
36554         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
36555         invocations from here...
36556         * modules/timegm (configure.ac): ... to here.
36558 2011-05-22  Bruno Haible  <bruno@clisp.org>
36560         tcgetsid: Move AC_LIBOBJ invocations to module description.
36561         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
36562         and gl_PREREQ_TCGETSID invocations from here...
36563         * modules/tcgetsid (configure.ac): ... to here.
36564         (Depends-on): Update conditions.
36566 2011-05-22  Bruno Haible  <bruno@clisp.org>
36568         symlinkat: Move AC_LIBOBJ invocations to module description.
36569         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
36570         here...
36571         * modules/symlinkat (configure.ac): ... to here.
36573 2011-05-22  Bruno Haible  <bruno@clisp.org>
36575         symlink: Move AC_LIBOBJ invocations to module description.
36576         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
36577         here...
36578         * modules/symlink (configure.ac): ... to here.
36580 2011-05-22  Bruno Haible  <bruno@clisp.org>
36582         strverscmp: Move AC_LIBOBJ invocations to module description.
36583         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
36584         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
36585         from here...
36586         * modules/strverscmp (configure.ac): ... to here.
36588 2011-05-22  Bruno Haible  <bruno@clisp.org>
36590         strtok_r: Move AC_LIBOBJ invocations to module description.
36591         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
36592         and gl_PREREQ_STRTOK_R invocations from here...
36593         * modules/strtok_r (configure.ac): ... to here.
36594         (Depends-on): Update conditions.
36596 2011-05-22  Bruno Haible  <bruno@clisp.org>
36598         strtoumax: Move AC_LIBOBJ invocations to module description.
36599         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
36600         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
36601         from here...
36602         * modules/strtoumax (configure.ac): ... to here.
36604 2011-05-22  Bruno Haible  <bruno@clisp.org>
36606         strtoimax: Move AC_LIBOBJ invocations to module description.
36607         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
36608         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
36609         from here...
36610         * modules/strtoimax (configure.ac): ... to here.
36612 2011-05-22  Bruno Haible  <bruno@clisp.org>
36614         strtoull: Move AC_LIBOBJ invocations to module description.
36615         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
36616         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
36617         from here...
36618         * modules/strtoull (configure.ac): ... to here.
36620 2011-05-22  Bruno Haible  <bruno@clisp.org>
36622         strtoll: Move AC_LIBOBJ invocations to module description.
36623         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
36624         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
36625         here...
36626         * modules/strtoll (configure.ac): ... to here.
36628 2011-05-22  Bruno Haible  <bruno@clisp.org>
36630         strtoul: Move AC_LIBOBJ invocations to module description.
36631         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
36632         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
36633         * modules/strtoul (configure.ac): ... to here.
36635 2011-05-22  Bruno Haible  <bruno@clisp.org>
36637         strtol: Move AC_LIBOBJ invocations to module description.
36638         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
36639         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
36640         * modules/strtol (configure.ac): ... to here.
36642 2011-05-22  Bruno Haible  <bruno@clisp.org>
36644         strtod: Move AC_LIBOBJ invocations to module description.
36645         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
36646         invocations from here...
36647         * modules/strtod (configure.ac): ... to here.
36649 2011-05-22  Bruno Haible  <bruno@clisp.org>
36651         strstr*: Move AC_LIBOBJ invocations to module description.
36652         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
36653         invocations from here...
36654         * modules/strstr-simple (configure.ac): ... to here.
36655         * modules/strstr (configure.ac): ... and here.
36657 2011-05-22  Bruno Haible  <bruno@clisp.org>
36659         strsignal: Move AC_LIBOBJ invocations to module description.
36660         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
36661         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
36662         * modules/strsignal (configure.ac): ... to here.
36663         (Depends-on): Update conditions.
36665 2011-05-22  Bruno Haible  <bruno@clisp.org>
36667         strsep: Move AC_LIBOBJ invocations to module description.
36668         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
36669         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
36670         here...
36671         * modules/strsep (configure.ac): ... to here.
36673 2011-05-22  Bruno Haible  <bruno@clisp.org>
36675         strptime: Move AC_LIBOBJ invocations to module description.
36676         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
36677         gl_PREREQ_STRPTIME invocations from here...
36678         * modules/strptime (configure.ac): ... to here.
36680 2011-05-22  Bruno Haible  <bruno@clisp.org>
36682         strpbrk: Move AC_LIBOBJ invocations to module description.
36683         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
36684         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
36685         here...
36686         * modules/strpbrk (configure.ac): ... to here.
36688 2011-05-22  Bruno Haible  <bruno@clisp.org>
36690         strnlen: Move AC_LIBOBJ invocations to module description.
36691         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
36692         invocations from here...
36693         * modules/strnlen (configure.ac): ... to here.
36695 2011-05-22  Bruno Haible  <bruno@clisp.org>
36697         strndup: Move AC_LIBOBJ invocations to module description.
36698         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
36699         invocations from here...
36700         * modules/strndup (configure.ac): ... to here.
36701         (Depends-on): Update conditions.
36703 2011-05-22  Bruno Haible  <bruno@clisp.org>
36705         strncat: Move AC_LIBOBJ invocations to module description.
36706         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
36707         invocations from here...
36708         * modules/strncat (configure.ac): ... to here.
36710 2011-05-22  Bruno Haible  <bruno@clisp.org>
36712         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
36713         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
36714         invocations from here...
36715         * modules/strdup (configure.ac): ... to here.
36716         * modules/strdup-posix (configure.ac): ... and here.
36718 2011-05-22  Bruno Haible  <bruno@clisp.org>
36720         strcspn: Move AC_LIBOBJ invocations to module description.
36721         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
36722         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
36723         here...
36724         * modules/strcspn (configure.ac): ... to here.
36726 2011-05-22  Bruno Haible  <bruno@clisp.org>
36728         strchrnul: Move AC_LIBOBJ invocations to module description.
36729         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
36730         gl_PREREQ_STRCHRNUL invocations from here...
36731         * modules/strchrnul (configure.ac): ... to here.
36733 2011-05-22  Bruno Haible  <bruno@clisp.org>
36735         strcasestr*: Move AC_LIBOBJ invocations to module description.
36736         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
36737         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
36738         * modules/strcasestr-simple (configure.ac): ... to here.
36739         * modules/strcasestr (configure.ac): ... and here.
36741 2011-05-22  Bruno Haible  <bruno@clisp.org>
36743         strcase: Move AC_LIBOBJ invocations to module description.
36744         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
36745         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
36746         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
36747         gl_PREREQ_STRNCASECMP invocations from here...
36748         * modules/strcase (configure.ac): ... to here.
36750 2011-05-22  Bruno Haible  <bruno@clisp.org>
36752         stpncpy: Move AC_LIBOBJ invocations to module description.
36753         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
36754         here...
36755         * modules/stpncpy (configure.ac): ... to here.
36757 2011-05-22  Bruno Haible  <bruno@clisp.org>
36759         stpcpy: Move AC_LIBOBJ invocations to module description.
36760         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
36761         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
36762         here...
36763         * modules/stpcpy (configure.ac): ... to here.
36765 2011-05-21  Bruno Haible  <bruno@clisp.org>
36767         stat: Move AC_LIBOBJ invocations to module description.
36768         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
36769         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
36770         here...
36771         * modules/stat (configure.ac): ... to here.
36773 2011-05-21  Bruno Haible  <bruno@clisp.org>
36775         sleep: Move AC_LIBOBJ invocations to module description.
36776         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
36777         * modules/sleep (configure.ac): ... to here.
36779 2011-05-21  Bruno Haible  <bruno@clisp.org>
36781         signbit: Move AC_LIBOBJ invocations to module description.
36782         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
36783         * modules/signbit (configure.ac): ... to here.
36785 2011-05-21  Bruno Haible  <bruno@clisp.org>
36787         sigprocmask: Move AC_LIBOBJ invocations to module description.
36788         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
36789         gl_PREREQ_SIGPROMASK invocations from here...
36790         * modules/sigprocmask (configure.ac): ... to here.
36792 2011-05-21  Bruno Haible  <bruno@clisp.org>
36794         sigaction: Move AC_LIBOBJ invocations to module description.
36795         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
36796         gl_PREREQ_SIGACTION invocations from here...
36797         * modules/sigaction (configure.ac): ... to here.
36799 2011-05-21  Bruno Haible  <bruno@clisp.org>
36801         sig2str: Move AC_LIBOBJ invocations to module description.
36802         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
36803         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
36804         here...
36805         * modules/sig2str (configure.ac): ... to here.
36807 2011-05-21  Bruno Haible  <bruno@clisp.org>
36809         setlocale: Move AC_LIBOBJ invocations to module description.
36810         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
36811         gl_PREREQ_SETLOCALE invocations from here...
36812         * modules/setlocale (configure.ac): ... to here.
36814 2011-05-21  Bruno Haible  <bruno@clisp.org>
36816         unsetenv: Move AC_LIBOBJ invocations to module description.
36817         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
36818         and gl_PREREQ_UNSETENV invocations from here...
36819         * modules/unsetenv (configure.ac): ... to here.
36820         (Depends-on): Update.
36822 2011-05-21  Bruno Haible  <bruno@clisp.org>
36824         setenv: Move AC_LIBOBJ invocations to module description.
36825         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
36826         here...
36827         * modules/setenv (configure.ac): ... to here.
36829 2011-05-21  Bruno Haible  <bruno@clisp.org>
36831         selinux-h: Move AC_LIBOBJ invocations to module description.
36832         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
36833         AC_LIBOBJ invocation from here...
36834         * modules/selinux-h (configure.ac): ... to here.
36836 2011-05-21  Bruno Haible  <bruno@clisp.org>
36838         select: Respect rules for use of AC_LIBOBJ.
36839         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
36840         here...
36841         * modules/select (configure.ac): ... to here.
36843 2011-05-21  Bruno Haible  <bruno@clisp.org>
36845         scandir: Move AC_LIBOBJ invocations to module description.
36846         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
36847         invocations from here...
36848         * modules/scandir (configure.ac): ... to here.
36850 2011-05-21  Bruno Haible  <bruno@clisp.org>
36852         rpmatch: Move AC_LIBOBJ invocations to module description.
36853         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
36854         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
36855         here...
36856         * modules/rpmatch (configure.ac): ... to here.
36858 2011-05-21  Bruno Haible  <bruno@clisp.org>
36860         rmdir: Respect rules for use of AC_LIBOBJ.
36861         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
36862         * modules/rmdir (configure.ac): ... to here.
36864 2011-05-21  Bruno Haible  <bruno@clisp.org>
36866         renameat: Move AC_LIBOBJ invocations to module description.
36867         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
36868         here...
36869         * modules/renameat (configure.ac): ... to here.
36871 2011-05-21  Bruno Haible  <bruno@clisp.org>
36873         rename: Respect rules for use of AC_LIBOBJ.
36874         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
36875         here...
36876         * modules/rename (configure.ac): ... to here.
36878 2011-05-21  Bruno Haible  <bruno@clisp.org>
36880         remove: Move AC_LIBOBJ invocations to module description.
36881         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
36882         here...
36883         * modules/remove (configure.ac): ... to here.
36885 2011-05-21  Bruno Haible  <bruno@clisp.org>
36887         relocatable-lib: Move AC_LIBOBJ invocations to module description.
36888         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
36889         macro.
36890         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
36891         * modules/relocatable-lib (configure.ac): ... to here.
36892         * modules/relocatable-prog-wrapper (configure.ac): Invoke
36893         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
36895 2011-05-21  Bruno Haible  <bruno@clisp.org>
36897         relocatable-prog: Move AC_LIBOBJ invocations to module description.
36898         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
36899         here...
36900         * modules/relocatable-prog (configure.ac): ... to here.
36902 2011-05-21  Bruno Haible  <bruno@clisp.org>
36904         regex: Move AC_LIBOBJ invocations to module description.
36905         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
36906         invocations from here...
36907         * modules/regex (configure.ac): ... to here.
36909 2011-05-21  Bruno Haible  <bruno@clisp.org>
36911         realloc-*: Move AC_LIBOBJ invocations to module description.
36912         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
36913         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
36914         AC_LIBOBJ invocations from here...
36915         * modules/realloc-gnu (configure.ac): ... to here.
36916         * modules/realloc-posix (configure.ac): ... and here.
36918 2011-05-21  Bruno Haible  <bruno@clisp.org>
36920         readutmp: Move AC_LIBOBJ invocations to module description.
36921         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
36922         * modules/readutmp (configure.ac): ... to here.
36924 2011-05-21  Bruno Haible  <bruno@clisp.org>
36926         readlinkat: Move AC_LIBOBJ invocations to module description.
36927         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
36928         here...
36929         * modules/readlinkat (configure.ac): ... to here.
36931 2011-05-21  Bruno Haible  <bruno@clisp.org>
36933         readlink: Move AC_LIBOBJ invocations to module description.
36934         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
36935         gl_PREREQ_READLINK invocations from here...
36936         * modules/readlink (configure.ac): ... to here.
36938 2011-05-21  Bruno Haible  <bruno@clisp.org>
36940         readline: Move AC_LIBOBJ invocations to module description.
36941         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
36942         gl_PREREQ_READLINE invocations from here...
36943         * modules/readline (configure.ac): ... to here.
36945 2011-05-21  Bruno Haible  <bruno@clisp.org>
36947         read: Move AC_LIBOBJ invocations to module description.
36948         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
36949         * modules/read (configure.ac): ... to here.
36951 2011-05-21  Bruno Haible  <bruno@clisp.org>
36953         rawmemchr: Move AC_LIBOBJ invocations to module description.
36954         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
36955         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
36956         from here...
36957         * modules/rawmemchr (configure.ac): ... to here.
36959 2011-05-21  Bruno Haible  <bruno@clisp.org>
36961         random_r: Move AC_LIBOBJ invocations to module description.
36962         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
36963         gl_PREREQ_RANDOM_R invocations from here...
36964         * modules/random_r (configure.ac): ... to here.
36966 2011-05-21  Bruno Haible  <bruno@clisp.org>
36968         pwrite: Move AC_LIBOBJ invocations to module description.
36969         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
36970         * modules/pwrite (configure.ac): ... to here.
36972 2011-05-21  Bruno Haible  <bruno@clisp.org>
36974         putenv: Move AC_LIBOBJ invocations to module description.
36975         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
36976         * modules/putenv (configure.ac): ... to here.
36978 2011-05-21  Bruno Haible  <bruno@clisp.org>
36980         login_tty: Move AC_LIBOBJ invocations to module description.
36981         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
36982         * modules/login_tty (configure.ac): ... to here.
36984 2011-05-21  Bruno Haible  <bruno@clisp.org>
36986         openpty: Move AC_LIBOBJ invocations to module description.
36987         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
36988         * modules/openpty (configure.ac): ... to here.
36990 2011-05-21  Bruno Haible  <bruno@clisp.org>
36992         forkpty: Move AC_LIBOBJ invocations to module description.
36993         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
36994         * modules/forkpty (configure.ac): ... to here.
36996 2011-05-21  Bruno Haible  <bruno@clisp.org>
36998         ptsname: Move AC_LIBOBJ invocations to module description.
36999         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
37000         invocations from here...
37001         * modules/ptsname (configure.ac): ... to here.
37003 2011-05-21  Bruno Haible  <bruno@clisp.org>
37005         pread: Move AC_LIBOBJ invocations to module description.
37006         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
37007         * modules/pread (configure.ac): ... to here.
37009 2011-05-21  Bruno Haible  <bruno@clisp.org>
37011         posix_spawn*: Move AC_LIBOBJ invocations to module description.
37012         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
37013         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
37014         * modules/posix_spawn (configure.ac): ... to here.
37015         * modules/posix_spawnp (configure.ac): ... and here.
37017 2011-05-21  Bruno Haible  <bruno@clisp.org>
37019         popen: Move AC_LIBOBJ invocations to module description.
37020         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
37021         invocations from here...
37022         * modules/popen (configure.ac): ... to here.
37024 2011-05-21  Bruno Haible  <bruno@clisp.org>
37026         poll: Move AC_LIBOBJ invocations to module description.
37027         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
37028         invocations from here...
37029         * modules/poll (configure.ac): ... to here.
37031 2011-05-21  Bruno Haible  <bruno@clisp.org>
37033         pipe-posix: Move AC_LIBOBJ invocations to module description.
37034         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
37035         * modules/pipe-posix (configure.ac): ... to here.
37037 2011-05-21  Bruno Haible  <bruno@clisp.org>
37039         openat: Respect rules for use of AC_LIBOBJ.
37040         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
37041         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
37042         * modules/openat (configure.ac): ... to here.
37044 2011-05-21  Bruno Haible  <bruno@clisp.org>
37046         obstack-printf*: Move AC_LIBOBJ invocations to module description.
37047         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
37048         invocation from here...
37049         * modules/obstack-printf (configure.ac): ... to here.
37050         * modules/obstack-printf-posix (configure.ac): ... and here.
37052 2011-05-21  Bruno Haible  <bruno@clisp.org>
37054         nl_langinfo: Move AC_LIBOBJ invocations to module description.
37055         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
37056         from here...
37057         * modules/nl_langinfo (configure.ac): ... to here.
37059 2011-05-21  Bruno Haible  <bruno@clisp.org>
37061         nanosleep: Move AC_LIBOBJ invocations to module description.
37062         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
37063         gl_PREREQ_NANOSLEEP invocations from here...
37064         * modules/nanosleep (configure.ac): ... to here.
37066 2011-05-21  Bruno Haible  <bruno@clisp.org>
37068         mountlist: Move AC_LIBOBJ invocations to module description.
37069         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
37070         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
37071         * modules/mountlist (configure.ac): ... to here.
37073 2011-05-21  Bruno Haible  <bruno@clisp.org>
37075         mktime: Respect rules for use of AC_LIBOBJ.
37076         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
37077         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
37078         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
37079         (gl_FUNC_MKTIME_INTERNAL): ... and here...
37080         * modules/mktime (configure.ac): ... to here.
37081         * modules/mktime-internal (configure.ac): ... and here.
37082         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
37084 2011-05-21  Bruno Haible  <bruno@clisp.org>
37086         mkstemps: Move AC_LIBOBJ invocations to module description.
37087         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
37088         here...
37089         * modules/mkstemps (configure.ac): ... to here.
37091 2011-05-21  Bruno Haible  <bruno@clisp.org>
37093         mkstemp: Move AC_LIBOBJ invocations to module description.
37094         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
37095         gl_PREREQ_MKSTEMP invocations from here...
37096         * modules/mkstemp (configure.ac): ... to here.
37098 2011-05-21  Bruno Haible  <bruno@clisp.org>
37100         mkostemps: Move AC_LIBOBJ invocations to module description.
37101         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
37102         here...
37103         * modules/mkostemps (configure.ac): ... to here.
37105 2011-05-21  Bruno Haible  <bruno@clisp.org>
37107         mkostemp: Move AC_LIBOBJ invocations to module description.
37108         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
37109         gl_PREREQ_MKOSTEMP invocations from here...
37110         * modules/mkostemp (configure.ac): ... to here.
37112 2011-05-21  Bruno Haible  <bruno@clisp.org>
37114         mknod: Move AC_LIBOBJ invocations to module description.
37115         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
37116         * modules/mknod (configure.ac): ... to here.
37118 2011-05-21  Bruno Haible  <bruno@clisp.org>
37120         mkfifoat: Move AC_LIBOBJ invocations to module description.
37121         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
37122         here...
37123         * modules/mkfifoat (configure.ac): ... to here.
37125 2011-05-21  Bruno Haible  <bruno@clisp.org>
37127         mkfifo: Respect rules for use of AC_LIBOBJ.
37128         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
37129         here...
37130         * modules/mkfifo (configure.ac): ... to here.
37132 2011-05-21  Bruno Haible  <bruno@clisp.org>
37134         mkdtemp: Move AC_LIBOBJ invocations to module description.
37135         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
37136         invocations from here...
37137         * modules/mkdtemp (configure.ac): ... to here.
37139 2011-05-21  Bruno Haible  <bruno@clisp.org>
37141         mkdir: Move AC_LIBOBJ invocations to module description.
37142         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
37143         * modules/mkdir (configure.ac): ... to here.
37145 2011-05-21  Bruno Haible  <bruno@clisp.org>
37147         memset: Move AC_LIBOBJ invocations to module description.
37148         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
37149         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
37150         here...
37151         * modules/memset (configure.ac): ... to here.
37153 2011-05-21  Bruno Haible  <bruno@clisp.org>
37155         memrchr: Move AC_LIBOBJ invocations to module description.
37156         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
37157         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
37158         here...
37159         * modules/memrchr (configure.ac): ... to here.
37161 2011-05-21  Bruno Haible  <bruno@clisp.org>
37163         mempcpy: Move AC_LIBOBJ invocations to module description.
37164         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
37165         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
37166         here...
37167         * modules/mempcpy (configure.ac): ... to here.
37169 2011-05-21  Bruno Haible  <bruno@clisp.org>
37171         memmove: Move AC_LIBOBJ invocations to module description.
37172         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
37173         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
37174         here...
37175         * modules/memmove (configure.ac): ... to here.
37177 2011-05-21  Bruno Haible  <bruno@clisp.org>
37179         memmem*: Move AC_LIBOBJ invocations to module description.
37180         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
37181         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
37182         here...
37183         (gl_FUNC_MEMMEM): ... and here...
37184         * modules/memmem-simple (configure.ac): ... to here.
37185         * modules/memmem (configure.ac): ... and here.
37187 2011-05-21  Bruno Haible  <bruno@clisp.org>
37189         memcpy: Move AC_LIBOBJ invocations to module description.
37190         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
37191         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
37192         here...
37193         * modules/memcpy (configure.ac): ... to here.
37195 2011-05-21  Bruno Haible  <bruno@clisp.org>
37197         memcmp: Simplify autoconf macro.
37198         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
37199         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
37200         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
37202 2011-05-21  Bruno Haible  <bruno@clisp.org>
37204         memcmp: Move AC_LIBOBJ invocations to module description.
37205         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
37206         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
37207         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
37208         * modules/memcmp (configure.ac): ... to here.
37209         (Depends-on): Update conditions.
37211 2011-05-21  Bruno Haible  <bruno@clisp.org>
37213         memchr: Respect rules for use of AC_LIBOBJ.
37214         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
37215         invocations from here...
37216         * modules/memchr (configure.ac): ... to here.
37218 2011-05-21  Bruno Haible  <bruno@clisp.org>
37220         mbtowc: Move AC_LIBOBJ invocations to module description.
37221         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
37222         invocations from here...
37223         * modules/mbtowc (configure.ac): ... to here.
37225 2011-05-21  Bruno Haible  <bruno@clisp.org>
37227         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
37228         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
37229         gl_PREREQ_MBSRTOWCS invocations from here...
37230         * modules/mbsrtowcs (configure.ac): ... to here.
37232 2011-05-21  Bruno Haible  <bruno@clisp.org>
37234         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
37235         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
37236         gl_PREREQ_MBSNRTOWCS invocations from here...
37237         * modules/mbsnrtowcs (configure.ac): ... to here.
37239 2011-05-21  Bruno Haible  <bruno@clisp.org>
37241         mbsinit: Move AC_LIBOBJ invocations to module description.
37242         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
37243         invocations from here...
37244         * modules/mbsinit (configure.ac): ... to here.
37246 2011-05-21  Bruno Haible  <bruno@clisp.org>
37248         mbrlen: Move AC_LIBOBJ invocations to module description.
37249         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
37250         invocations from here...
37251         * modules/mbrlen (configure.ac): ... to here.
37253 2011-05-21  Bruno Haible  <bruno@clisp.org>
37255         mbrtowc: Respect rules for use of AC_LIBOBJ.
37256         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
37257         invocations from here...
37258         * modules/mbrtowc (configure.ac): ... to here.
37260 2011-05-21  Bruno Haible  <bruno@clisp.org>
37262         malloc-*: Move AC_LIBOBJ invocations to module description.
37263         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
37264         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
37265         AC_LIBOBJ invocations from here...
37266         * modules/malloc-gnu (configure.ac): ... to here.
37267         * modules/malloc-posix (configure.ac): ... and here.
37269 2011-05-21  Bruno Haible  <bruno@clisp.org>
37271         lstat, openat: Respect rules for use of AC_LIBOBJ.
37272         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
37273         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
37274         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
37275         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
37276         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
37277         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
37278         here.
37279         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
37281 2011-05-21  Bruno Haible  <bruno@clisp.org>
37283         lseek: Move AC_LIBOBJ invocations to module description.
37284         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
37285         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
37286         * modules/lseek (configure.ac): ... to here.
37288 2011-05-21  Bruno Haible  <bruno@clisp.org>
37290         linkat: Move AC_LIBOBJ invocations to module description.
37291         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
37292         here...
37293         * modules/linkat (configure.ac): ... to here.
37295 2011-05-21  Bruno Haible  <bruno@clisp.org>
37297         link: Respect rules for use of AC_LIBOBJ.
37298         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
37299         * modules/link (configure.ac): ... to here.
37301 2011-05-21  Bruno Haible  <bruno@clisp.org>
37303         lchown: Move AC_LIBOBJ invocations to module description.
37304         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
37305         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
37306         * modules/lchown (configure.ac): ... to here.
37308 2011-05-21  Bruno Haible  <bruno@clisp.org>
37310         iswctype: Move AC_LIBOBJ invocations to module description.
37311         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
37312         here...
37313         * modules/iswctype (configure.ac): ... to here.
37315 2011-05-21  Bruno Haible  <bruno@clisp.org>
37317         iswblank: Move AC_LIBOBJ invocations to module description.
37318         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
37319         here...
37320         * modules/iswblank (configure.ac): ... to here.
37322 2011-05-21  Bruno Haible  <bruno@clisp.org>
37324         atanl: Move AC_LIBOBJ invocations to module description.
37325         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
37326         * modules/atanl (configure.ac): ... to here.
37328 2011-05-21  Bruno Haible  <bruno@clisp.org>
37330         acosl: Move AC_LIBOBJ invocations to module description.
37331         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
37332         * modules/acosl (configure.ac): ... to here.
37334 2011-05-21  Bruno Haible  <bruno@clisp.org>
37336         asinl: Respect rules for use of AC_LIBOBJ.
37337         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
37338         * modules/asinl (configure.ac): ... to here.
37340 2011-05-21  Bruno Haible  <bruno@clisp.org>
37342         tanl: Move AC_LIBOBJ invocations to module description.
37343         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
37344         * modules/tanl (configure.ac): ... to here.
37346 2011-05-21  Bruno Haible  <bruno@clisp.org>
37348         cosl: Move AC_LIBOBJ invocations to module description.
37349         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
37350         * modules/cosl (configure.ac): ... to here.
37352 2011-05-21  Bruno Haible  <bruno@clisp.org>
37354         sinl: Move AC_LIBOBJ invocations to module description.
37355         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
37356         * modules/sinl (configure.ac): ... to here.
37358 2011-05-21  Bruno Haible  <bruno@clisp.org>
37360         logl: Move AC_LIBOBJ invocations to module description.
37361         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
37362         * modules/logl (configure.ac): ... to here.
37364 2011-05-21  Bruno Haible  <bruno@clisp.org>
37366         expl: Move AC_LIBOBJ invocations to module description.
37367         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
37368         * modules/expl (configure.ac): ... to here.
37370 2011-05-21  Bruno Haible  <bruno@clisp.org>
37372         roundl: Move AC_LIBOBJ invocations to module description.
37373         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
37374         * modules/roundl (configure.ac): ... to here.
37376 2011-05-21  Bruno Haible  <bruno@clisp.org>
37378         round: Move AC_LIBOBJ invocations to module description.
37379         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
37380         * modules/round (configure.ac): ... to here.
37382 2011-05-21  Bruno Haible  <bruno@clisp.org>
37384         roundf: Move AC_LIBOBJ invocations to module description.
37385         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
37386         * modules/roundf (configure.ac): ... to here.
37388 2011-05-21  Bruno Haible  <bruno@clisp.org>
37390         truncl: Move AC_LIBOBJ invocations to module description.
37391         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
37392         * modules/truncl (configure.ac): ... to here.
37394 2011-05-21  Bruno Haible  <bruno@clisp.org>
37396         trunc: Move AC_LIBOBJ invocations to module description.
37397         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
37398         * modules/trunc (configure.ac): ... to here.
37400 2011-05-21  Bruno Haible  <bruno@clisp.org>
37402         truncf: Move AC_LIBOBJ invocations to module description.
37403         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
37404         * modules/truncf (configure.ac): ... to here.
37406 2011-05-21  Bruno Haible  <bruno@clisp.org>
37408         ceill: Move AC_LIBOBJ invocations to module description.
37409         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
37410         * modules/ceill (configure.ac): ... to here.
37412 2011-05-21  Bruno Haible  <bruno@clisp.org>
37414         ceil: Move AC_LIBOBJ invocations to module description.
37415         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
37416         * modules/ceil (configure.ac): ... to here.
37418 2011-05-21  Bruno Haible  <bruno@clisp.org>
37420         ceilf: Move AC_LIBOBJ invocations to module description.
37421         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
37422         * modules/ceilf (configure.ac): ... to here.
37424 2011-05-21  Bruno Haible  <bruno@clisp.org>
37426         floorl: Respect rules for use of AC_LIBOBJ.
37427         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
37428         * modules/floorl (configure.ac): ... to here.
37430 2011-05-21  Bruno Haible  <bruno@clisp.org>
37432         floor: Respect rules for use of AC_LIBOBJ.
37433         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
37434         * modules/floor (configure.ac): ... to here.
37436 2011-05-21  Bruno Haible  <bruno@clisp.org>
37438         floorf: Move AC_LIBOBJ invocations to module description.
37439         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
37440         * modules/floorf (configure.ac): ... to here.
37442 2011-05-20  Bruno Haible  <bruno@clisp.org>
37444         sqrtl: Respect rules for use of AC_LIBOBJ.
37445         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
37446         * modules/sqrtl (configure.ac): ... to here.
37448 2011-05-20  Bruno Haible  <bruno@clisp.org>
37450         ldexpl: Respect rules for use of AC_LIBOBJ.
37451         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
37452         * modules/ldexpl (configure.ac): ... to here.
37454 2011-05-20  Bruno Haible  <bruno@clisp.org>
37456         frexpl*: Respect rules for use of AC_LIBOBJ.
37457         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
37458         invocation from here...
37459         * modules/frexpl (configure.ac): ... to here.
37460         * modules/frexpl-nolibm (configure.ac): ... and here.
37462 2011-05-20  Bruno Haible  <bruno@clisp.org>
37464         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
37465         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
37466         invocation from here...
37467         * modules/frexp (configure.ac): ... to here.
37468         * modules/frexp-nolibm (configure.ac): ... and here.
37470 2011-05-20  Bruno Haible  <bruno@clisp.org>
37472         isnan: Respect rules for use of AC_LIBOBJ.
37473         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
37474         invocations here.
37475         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
37476         REPLACE_ISNAN.
37477         * modules/isnand (configure.ac): Likewise.
37478         * modules/isnanl (configure.ac): Likewise.
37480 2011-05-20  Bruno Haible  <bruno@clisp.org>
37482         isnanl*: Respect rules for use of AC_LIBOBJ.
37483         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
37484         invocation from here...
37485         * modules/isnanl (configure.ac): ... to here.
37486         * modules/isnanl-nolibm (configure.ac): ... and here.
37488 2011-05-20  Bruno Haible  <bruno@clisp.org>
37490         isnand*: Move AC_LIBOBJ invocations to module description.
37491         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
37492         invocation from here...
37493         * modules/isnand (configure.ac): ... to here.
37494         * modules/isnand-nolibm (configure.ac): ... and here.
37496 2011-05-20  Bruno Haible  <bruno@clisp.org>
37498         isnanf*: Move AC_LIBOBJ invocations to module description.
37499         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
37500         invocation from here...
37501         * modules/isnanf (configure.ac): ... to here.
37502         * modules/isnanf-nolibm (configure.ac): ... and here.
37504 2011-05-20  Bruno Haible  <bruno@clisp.org>
37506         isnan*: Separate the AC_LIBOBJ invocations.
37507         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
37508         AC_LIBOBJ invocation.
37509         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
37510         here.
37511         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
37512         AC_LIBOBJ invocation.
37513         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
37514         here.
37515         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
37516         AC_LIBOBJ invocation.
37517         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
37518         here.
37519         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
37521 2011-05-08  Bruno Haible  <bruno@clisp.org>
37523         isinf: Move AC_LIBOBJ invocations to module description.
37524         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
37525         * modules/isinf (configure.ac): ... to here.
37527 2011-05-08  Bruno Haible  <bruno@clisp.org>
37529         isfinite: Move AC_LIBOBJ invocations to module description.
37530         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
37531         * modules/isfinite (configure.ac): ... to here.
37533 2011-05-08  Bruno Haible  <bruno@clisp.org>
37535         isblank: Move AC_LIBOBJ invocations to module description.
37536         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
37537         here...
37538         * modules/isblank (configure.ac): ... to here.
37540 2011-05-08  Bruno Haible  <bruno@clisp.org>
37542         isapipe: Move AC_LIBOBJ invocations to module description.
37543         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
37544         gl_PREREQ_ISAPIPE invocations from here...
37545         * modules/isapipe (configure.ac): ... to here.
37546         (Depends-on): Update condition.
37548 2011-05-08  Bruno Haible  <bruno@clisp.org>
37550         ioctl: Move AC_LIBOBJ invocations to module description.
37551         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
37552         invocations from here...
37553         * modules/ioctl (configure.ac): ... to here.
37554         (Depends-on): Update condition.
37556 2011-05-08  Bruno Haible  <bruno@clisp.org>
37558         imaxdiv: Move AC_LIBOBJ invocations to module description.
37559         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
37560         invocations from here...
37561         * modules/imaxdiv (configure.ac): ... to here.
37563 2011-05-08  Bruno Haible  <bruno@clisp.org>
37565         imaxabs: Move AC_LIBOBJ invocations to module description.
37566         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
37567         invocations from here...
37568         * modules/imaxabs (configure.ac): ... to here.
37570 2011-05-08  Bruno Haible  <bruno@clisp.org>
37572         getaddrinfo: Move AC_LIBOBJ invocations to module description.
37573         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
37574         AC_LIBOBJ invocations from here...
37575         * modules/getaddrinfo (configure.ac): ... to here.
37576         (Depends-on): Add conditions.
37578 2011-05-08  Bruno Haible  <bruno@clisp.org>
37580         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
37581         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
37582         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
37583         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
37584         (gl_PREREQ_INET_PTON): ... from here.
37585         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
37586         gl_PREREQ_INET_PTON here.
37587         (Depends-on): Update condition.
37589 2011-05-08  Bruno Haible  <bruno@clisp.org>
37591         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
37592         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
37593         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
37594         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
37595         (gl_PREREQ_INET_NTOP): ... from here.
37596         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
37597         gl_PREREQ_INET_NTOP here.
37598         (Depends-on): Update condition.
37600 2011-05-08  Bruno Haible  <bruno@clisp.org>
37602         iconv_open: Move AC_LIBOBJ invocations to module description.
37603         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
37604         AC_LIBOBJ invocations from here...
37605         * modules/iconv_open (configure.ac): ... to here.
37607 2011-05-08  Bruno Haible  <bruno@clisp.org>
37609         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
37610         If module 'iconv_open' is among the main modules and module
37611         'iconv_open-utf' is among the tests dependencies, then
37612         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
37613         return the special iconv_t values. Therefore iconv() and iconv_close()
37614         must support these special iconv_t values, already in lib, not only in
37615         tests.
37616         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
37617         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
37618         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
37619         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
37620         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
37621         (Depends-on): Add the dependencies of iconv_open-utf.
37622         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
37623         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
37624         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
37626 2011-05-08  Bruno Haible  <bruno@clisp.org>
37628         group-member: Move AC_LIBOBJ invocations to module description.
37629         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
37630         gl_PREREQ_GROUP_MEMBER invocations from here...
37631         * modules/group-member (configure.ac): ... to here.
37633 2011-05-08  Bruno Haible  <bruno@clisp.org>
37635         grantpt: Move AC_LIBOBJ invocations to module description.
37636         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
37637         invocations from here...
37638         * modules/grantpt (configure.ac): ... to here.
37640 2011-05-08  Bruno Haible  <bruno@clisp.org>
37642         glob: Move AC_LIBOBJ invocations to module description.
37643         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
37644         from here...
37645         * modules/glob (configure.ac): ... to here.
37647 2011-05-08  Bruno Haible  <bruno@clisp.org>
37649         getusershell: Move AC_LIBOBJ invocations to module description.
37650         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
37651         Move AC_LIBOBJ invocation from here...
37652         * modules/getusershell (configure.ac): ... to here.
37653         (Depends-on): Update condition.
37655 2011-05-08  Bruno Haible  <bruno@clisp.org>
37657         gettimeofday: Move AC_LIBOBJ invocations to module description.
37658         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
37659         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
37660         gl_PREREQ_GETTIMEOFDAY invocations from here...
37661         * modules/gettimeofday (configure.ac): ... to here.
37663 2011-05-08  Bruno Haible  <bruno@clisp.org>
37665         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
37666         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
37667         just gl_FUNC_TZSET.
37668         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
37669         (gl_FUNC_TZSET_CLOBBER): Remove actions.
37670         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
37671         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
37673 2011-05-08  Bruno Haible  <bruno@clisp.org>
37675         getsubopt: Move AC_LIBOBJ invocations to module description.
37676         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
37677         gl_PREREQ_GETSUBOPT invocations from here...
37678         * modules/getsubopt (configure.ac): ... to here.
37680 2011-05-08  Bruno Haible  <bruno@clisp.org>
37682         getpass-gnu: Move AC_LIBOBJ invocations to module description.
37683         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
37684         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
37685         * modules/getpass-gnu (configure.ac): ... to here.
37687 2011-05-08  Bruno Haible  <bruno@clisp.org>
37689         getpass: Move AC_LIBOBJ invocations to module description.
37690         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
37691         gl_PREREQ_GETPASS invocations from here...
37692         * modules/getpass (configure.ac): ... to here.
37694 2011-05-08  Bruno Haible  <bruno@clisp.org>
37696         getpagesize: Move AC_LIBOBJ invocations to module description.
37697         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
37698         from here...
37699         * modules/getpagesize (configure.ac): ... to here.
37701 2011-05-08  Bruno Haible  <bruno@clisp.org>
37703         getopt: Move AC_LIBOBJ invocations to module description.
37704         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
37705         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
37706         invocations from here...
37707         * modules/getopt-gnu (configure.ac): ... to here.
37708         * modules/getopt-posix (configure.ac): ... and here.
37709         (Depends-on): Update condition.
37711 2011-05-08  Bruno Haible  <bruno@clisp.org>
37713         getopt, argp: Respect rules for use of AC_LIBOBJ.
37714         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
37715         (gl_REPLACE_GETOPT_ALWAYS): New macro.
37716         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
37717         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
37719 2011-05-08  Bruno Haible  <bruno@clisp.org>
37721         getlogin_r: Move AC_LIBOBJ invocations to module description.
37722         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
37723         gl_PREREQ_GETLOGIN_R invocations from here...
37724         * modules/getlogin_r (configure.ac): ... to here.
37726 2011-05-08  Bruno Haible  <bruno@clisp.org>
37728         getlogin: Move AC_LIBOBJ invocations to module description.
37729         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
37730         here...
37731         * modules/getlogin (configure.ac): ... to here.
37733 2011-05-08  Bruno Haible  <bruno@clisp.org>
37735         getloadavg: Move AC_LIBOBJ invocations to module description.
37736         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
37737         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
37738         * modules/getloadavg (configure.ac): ... to here.
37740 2011-05-08  Bruno Haible  <bruno@clisp.org>
37742         gethrxtime: Move AC_LIBOBJ invocations to module description.
37743         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
37744         LIB_GETHRXTIME from here...
37745         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
37746         invocations from here...
37747         * modules/gethrxtime (configure.ac): ... to here.
37749 2011-05-08  Bruno Haible  <bruno@clisp.org>
37751         gethostname: Move AC_LIBOBJ invocations to module description.
37752         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
37753         gl_PREREQ_GETHOSTNAME invocations from here...
37754         * modules/gethostname (configure.ac): ... to here.
37756 2011-05-08  Bruno Haible  <bruno@clisp.org>
37758         getgroups: Move AC_LIBOBJ invocations to module description.
37759         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
37760         here...
37761         * modules/getgroups (configure.ac): ... to here.
37763 2011-05-08  Bruno Haible  <bruno@clisp.org>
37765         getdtablesize: Move AC_LIBOBJ invocations to module description.
37766         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
37767         invocation from here...
37768         * modules/getdtablesize (configure.ac): ... to here.
37770 2011-05-08  Bruno Haible  <bruno@clisp.org>
37772         getdomainname: Move AC_LIBOBJ invocations to module description.
37773         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
37774         gl_PREREQ_GETDOMAINNAME invocations from here...
37775         * modules/getdomainname (configure.ac): ... to here.
37777 2011-05-08  Bruno Haible  <bruno@clisp.org>
37779         getline: Move AC_LIBOBJ invocations to module description.
37780         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
37781         invocations from here...
37782         * modules/getline (configure.ac): ... to here.
37784 2011-05-08  Bruno Haible  <bruno@clisp.org>
37786         getline: Simplify.
37787         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
37788         It's already handled through the module dependency.
37790 2011-05-08  Bruno Haible  <bruno@clisp.org>
37792         getdelim: Move AC_LIBOBJ invocations to module description.
37793         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
37794         and gl_PREREQ_GETDELIM invocations from here...
37795         * modules/getdelim (configure.ac): ... to here.
37796         (Depends-on): Fix condition.
37798 2011-05-08  Bruno Haible  <bruno@clisp.org>
37800         getcwd: Move AC_LIBOBJ invocations to module description.
37801         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
37802         invocations from here...
37803         * modules/getcwd (configure.ac): ... to here.
37805 2011-05-08  Bruno Haible  <bruno@clisp.org>
37807         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
37808         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
37809         here...
37810         * modules/getcwd-lgpl (configure.ac): ... to here.
37812 2011-05-07  Bruno Haible  <bruno@clisp.org>
37814         crypto/gc: Move AC_LIBOBJ invocations to module description.
37815         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
37816         * modules/crypto/gc (configure.ac): ... to here.
37818 2011-05-07  Bruno Haible  <bruno@clisp.org>
37820         fwriting: Move AC_LIBOBJ invocations to module description.
37821         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
37822         here...
37823         * modules/fwriting (configure.ac): ... to here.
37825 2011-05-07  Bruno Haible  <bruno@clisp.org>
37827         fwritable: Move AC_LIBOBJ invocations to module description.
37828         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
37829         here...
37830         * modules/fwritable (configure.ac): ... to here.
37832 2011-05-07  Bruno Haible  <bruno@clisp.org>
37834         futimens: Move AC_LIBOBJ invocations to module description.
37835         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
37836         here...
37837         * modules/futimens (configure.ac): ... to here.
37839 2011-05-07  Bruno Haible  <bruno@clisp.org>
37841         ftruncate: Move AC_LIBOBJ invocations to module description.
37842         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
37843         gl_PREREQ_FTRUNCATE invocations from here...
37844         * modules/ftruncate (configure.ac): ... to here.
37846 2011-05-07  Bruno Haible  <bruno@clisp.org>
37848         fsync: Move AC_LIBOBJ invocations to module description.
37849         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
37850         invocations from here...
37851         * modules/fsync (configure.ac): ... to here.
37853 2011-05-07  Bruno Haible  <bruno@clisp.org>
37855         fsusage: Move AC_LIBOBJ invocations to module description.
37856         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
37857         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
37858         * modules/fsusage (configure.ac): ... to here.
37860 2011-05-07  Bruno Haible  <bruno@clisp.org>
37862         freopen: Move AC_LIBOBJ invocations to module description.
37863         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
37864         invocations from here...
37865         * modules/freopen (configure.ac): ... to here.
37867 2011-05-07  Bruno Haible  <bruno@clisp.org>
37869         free: Move AC_LIBOBJ invocations to module description.
37870         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
37871         invocations from here...
37872         * modules/free (configure.ac): ... to here.
37874 2011-05-07  Bruno Haible  <bruno@clisp.org>
37876         freadable: Move AC_LIBOBJ invocations to module description.
37877         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
37878         here...
37879         * modules/freadable (configure.ac): ... to here.
37881 2011-05-07  Bruno Haible  <bruno@clisp.org>
37883         fpurge: Move AC_LIBOBJ invocations to module description.
37884         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
37885         invocations from here...
37886         * modules/fpurge (configure.ac): ... to here.
37888 2011-05-07  Bruno Haible  <bruno@clisp.org>
37890         fpending: Move AC_LIBOBJ invocations to module description.
37891         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
37892         gl_FUNC_FPENDING.
37893         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
37894         invocations from here...
37895         * modules/fpending (configure.ac): ... to here.
37897 2011-05-07  Bruno Haible  <bruno@clisp.org>
37899         fopen: Move AC_LIBOBJ invocations to module description.
37900         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
37901         invocations from here...
37902         * modules/fopen (configure.ac): ... to here.
37904 2011-05-07  Bruno Haible  <bruno@clisp.org>
37906         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
37907         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
37908         gl_FUNC_FNMATCH_POSIX.
37909         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
37910         invocations from here...
37911         * modules/fnmatch (configure.ac): ... to here.
37912         * modules/fnmatch-gnu (configure.ac): ... and here.
37914 2011-05-07  Bruno Haible  <bruno@clisp.org>
37916         flock: Move AC_LIBOBJ invocations to module description.
37917         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
37918         invocations from here...
37919         * modules/flock (configure.ac): ... to here.
37921 2011-05-07  Bruno Haible  <bruno@clisp.org>
37923         fileblocks: Move AC_LIBOBJ invocations to module description.
37924         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
37925         gl_PREREQ_FILEBLOCKS invocations from here...
37926         * modules/fileblocks (configure.ac): ... to here.
37928 2011-05-06  Bruno Haible  <bruno@clisp.org>
37930         fflush: Move AC_LIBOBJ invocations to module description.
37931         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
37932         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
37933         invocations from here...
37934         * modules/fflush (configure.ac): ... to here.
37936 2011-05-06  Bruno Haible  <bruno@clisp.org>
37938         fdopendir: Move AC_LIBOBJ invocations to module description.
37939         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
37940         here...
37941         * modules/fdopendir (configure.ac): ... to here.
37942         (Depends-on): Improve conditions.
37944 2011-05-06  Bruno Haible  <bruno@clisp.org>
37946         _Exit: Move AC_LIBOBJ invocations to module description.
37947         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
37948         invocations from here...
37949         * modules/_Exit (configure.ac): ... to here.
37951 2011-05-21  Bruno Haible  <bruno@clisp.org>
37953         euidaccess: Respect rules for use of AC_LIBOBJ.
37954         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
37955         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
37956         from here...
37957         * modules/euidaccess (configure.ac): ... to here.
37959 2011-05-06  Bruno Haible  <bruno@clisp.org>
37961         error: Move AC_LIBOBJ invocations to module description.
37962         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
37963         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
37964         invocations from here...
37965         * modules/error (configure.ac): ... to here.
37967 2011-05-06  Bruno Haible  <bruno@clisp.org>
37969         duplocale: Move AC_LIBOBJ invocations to module description.
37970         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
37971         gl_PREREQ_DUPLOCALE invocations from here...
37972         * modules/duplocale (configure.ac): ... to here.
37974 2011-05-05  Bruno Haible  <bruno@clisp.org>
37976         dirfd: Move AC_LIBOBJ invocations to module description.
37977         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
37978         gl_FUNC_DIRFD.
37979         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
37980         here...
37981         * modules/dirfd (configure.ac): ... to here.
37982         (Depends-on): Fix condition.
37984 2011-05-05  Bruno Haible  <bruno@clisp.org>
37986         chown: Respect rules for use of AC_LIBOBJ.
37987         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
37988         * modules/chown (configure.ac): ... to here.
37990 2011-05-05  Bruno Haible  <bruno@clisp.org>
37992         chdir-long: Move AC_LIBOBJ invocations to module description.
37993         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
37994         gl_PREREQ_CHDIR_LONG invocations from here...
37995         * modules/chdir-long (configure.ac): ... to here.
37997 2011-05-05  Bruno Haible  <bruno@clisp.org>
37999         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
38000         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
38001         from here...
38002         * modules/canonicalize-lgpl (configure.ac): ... to here.
38004 2011-05-05  Bruno Haible  <bruno@clisp.org>
38006         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
38007         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
38008         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
38009         REPLACE_CALLOC.
38010         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
38011         * modules/calloc-gnu (configure.ac): Likewise.
38013 2011-05-05  Bruno Haible  <bruno@clisp.org>
38015         btowc: Move AC_LIBOBJ invocations to module description.
38016         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
38017         invocations from here...
38018         * modules/btowc (configure.ac): ... to here.
38020 2011-05-21  Bruno Haible  <bruno@clisp.org>
38022         atexit: Move AC_LIBOBJ invocations to module description.
38023         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
38024         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
38025         here...
38026         * modules/atexit (configure.ac): ... to here.
38028 2011-05-05  Bruno Haible  <bruno@clisp.org>
38030         atoll: Move AC_LIBOBJ invocations to module description.
38031         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
38032         invocations from here...
38033         * modules/atoll (configure.ac): ... to here.
38035 2011-05-05  Bruno Haible  <bruno@clisp.org>
38037         argz: Move AC_LIBOBJ invocations to module description.
38038         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
38039         * modules/argz (configure.ac): ... to here.
38041 2011-05-05  Bruno Haible  <bruno@clisp.org>
38043         alphasort: Move AC_LIBOBJ invocations to module description.
38044         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
38045         gl_PREREQ_ALPHASORT invocations from here...
38046         * modules/alphasort (configure.ac): ... to here.
38048 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38050         verify: new macro verify_expr; verify_true deprecated
38051         * NEWS: Mention this.
38052         * doc/verify.texi (Compile-time Assertions): Document this.
38053         * lib/verify.h (verify_true): Deprecate.
38054         (verify_expr): New macro.
38055         * tests/test-verify.c (function): Test verify_expr.
38057 2011-06-14  Jim Meyering  <meyering@redhat.com>
38059         init.sh: give more portable redirection-related advice in a comment
38060         * tests/init.sh (stderr_fileno_): Update the advice in comments.
38061         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
38062         for lots of discussion.  Stefano Lattarini suggested the solution
38063         of putting "9>&2" after the command.  Reported by Bruno Haible.
38065 2011-06-13  Bruno Haible  <bruno@clisp.org>
38067         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
38068         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
38069         'none'.
38071 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
38073         ftoastr: use strtof only if HAVE_STRTOF
38074         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
38075         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
38076         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
38077         * modules/ftoastr (configure.ac): Check for strtof.
38079 2011-06-13  Bruno Haible  <bruno@clisp.org>
38081         gnulib-tool: Addendum to 2011-06-08 commit.
38082         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
38083         and --witness-c-macro have been given, augment AM_CPPFLAGS.
38085 2011-06-13  Bruno Haible  <bruno@clisp.org>
38087         fseeko: Provide a non-inline replacement of fseek().
38088         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
38089         * modules/fseeko (Depends-on): Add fseek.
38090         * modules/fseek (License): Change to LGPLv2+.
38092 2011-06-13  Bruno Haible  <bruno@clisp.org>
38094         ftello: Provide a non-inline replacement of ftell().
38095         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
38096         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
38097         not have ftello() (such as on mingw).
38098         * modules/ftello (Depends-on): Add ftell.
38099         * modules/ftell (License): Change to LGPLv2+.
38101 2011-05-07  Bruno Haible  <bruno@clisp.org>
38103         ftell: Move AC_LIBOBJ invocations to module description.
38104         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
38105         * modules/ftell (configure.ac): ... to here.
38107 2011-05-07  Bruno Haible  <bruno@clisp.org>
38109         ftello: Respect rules for use of AC_LIBOBJ.
38110         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
38111         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
38112         here...
38113         * modules/ftello (configure.ac): ... to here.
38115 2011-05-07  Bruno Haible  <bruno@clisp.org>
38117         fseeko: Simplify.
38118         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
38119         (gl_FUNC_FSEEKO): Inline it here.
38121 2011-05-07  Bruno Haible  <bruno@clisp.org>
38123         fseek: Move AC_LIBOBJ invocations to module description.
38124         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
38125         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
38126         * modules/fseek (configure.ac): ... to here.
38128 2011-05-07  Bruno Haible  <bruno@clisp.org>
38130         fseek: Respect rules for use of AC_LIBOBJ.
38131         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
38132         here...
38133         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
38135 2011-05-07  Bruno Haible  <bruno@clisp.org>
38137         fseeko: Respect rules for use of AC_LIBOBJ.
38138         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
38139         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
38140         here...
38141         * modules/fseeko (configure.ac): ... to here.
38143 2011-06-13  Bruno Haible  <bruno@clisp.org>
38145         gnulib-tool: Allow comments in the 'Depends-on' section.
38146         * doc/gnulib.texi (Module description): Mention comment syntax in the
38147         Depends-on section.
38148         * gnulib-tool (func_get_dependencies): Filter out comment lines.
38150 2011-06-13  Bruno Haible  <bruno@clisp.org>
38152         file-set.h: guard __attibute__ use, now that it's not always defined
38153         * lib/file-set.h (record_file): Use __attribute__ only with compiler
38154         versions that support it.  This fixes a coreutils build failure with
38155         the vendor cc on HP-UX 11.31.
38157 2011-06-12  Bruno Haible  <bruno@clisp.org>
38159         acl: Add support for HP-UX >= 11.11 JFS ACLs.
38160         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
38161         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
38162         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
38163         (acl, aclsort): New declarations.
38164         (aclv_nontrivial): New declaration.
38165         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
38166         (file_has_acl): Read also the second kind of HP-UX ACLs.
38167         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
38168         kind of HP-UX ACLs if the first kind fails.
38169         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
38170         second kind of HP-UX ACLs.
38171         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
38172         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
38173         agree.
38174         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
38175         hpuxjfs.
38176         Handle hpuxjfs.
38177         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
38178         hpuxjfs.
38179         Handle hpuxjfs.
38180         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
38181         (func_test_same_acls): Use both lsacl and getacl.
38182         Handle hpuxjfs.
38183         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
38184         (func_test_same_acls): Use both lsacl and getacl.
38185         Handle hpuxjfs.
38187 2011-06-12  Bruno Haible  <bruno@clisp.org>
38189         acl: Complete the 2010-08-10 fix.
38190         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
38191         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
38192         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
38193         explicitly.
38194         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
38195         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
38197 2011-06-12  Bruno Haible  <bruno@clisp.org>
38199         spawn-pipe tests: Comments.
38200         * tests/test-spawn-pipe-child.c (main): Update comment.
38201         Reported by James Youngman <jay@gnu.org>.
38203 2011-06-11  James Youngman  <jay@gnu.org>
38205         New module 'stat-size'.
38206         * modules/stat-size: New module.  Provides macros for accessing
38207         file size information in instances of struct stat.  Depends on the
38208         fileblocks module because it calls st_blocks.
38209         * lib/stat-size.h: New file, adapted from coreutils' system.h.
38210         * doc/gnulib.texi: Include stat-size.texi.
38211         * doc/stat-size.texi: Documentation for this module.
38212         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
38213         * m4/fileblocks.m4: Mention that stat-size depends on the call to
38214         AC_STRUCT_ST_BLOCKS.
38216 2011-06-09  Bruno Haible  <bruno@clisp.org>
38218         thread: Support pthreads-win32.
38219         * lib/glthread/thread.h (gl_thread_self): Define differently on
38220         pthreads-win32.
38221         (gl_null_thread): New declaration.
38222         (gl_thread_self_pointer): New macro.
38223         * lib/glthread/thread.c (gl_null_thread): New constant.
38224         * tests/test-lock.c: Use gl_thread_self_pointer instead of
38225         gl_thread_self.
38226         * tests/test-tls.c: Likewise.
38227         Suggested by Paul Eggert. Reported by Eric Blake.
38229 2011-06-09  Bruno Haible  <bruno@clisp.org>
38231         thread: Fix confusion between NULL and 0.
38232         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
38233         Reported by Paul Eggert.
38235 2011-06-09  Bruno Haible  <bruno@clisp.org>
38237         spawn-pipe tests: Avoid test failure on HP-UX 11.
38238         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
38239         is closed.
38241 2011-06-09  Bruno Haible  <bruno@clisp.org>
38243         acl tests: Fix compilation error on HP-UX 11.
38244         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
38246 2011-06-09  Bruno Haible  <bruno@clisp.org>
38248         rmdir: Avoid test failure on HP-UX 10.20.
38249         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
38250         EEXIST.
38252 2011-06-08  Eric Blake  <eblake@redhat.com>
38254         perror: fix test on mingw
38255         * modules/perror-tests (Depends-on): Add dup2.
38257         strerror_r-posix: fix on MacOS
38258         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
38259         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
38260         logic bug.
38261         * lib/strerror_r.c (strerror_r): Fix the bug.
38262         * lib/strerror.c (strerror): Likewise.
38263         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
38264         problem.
38265         * doc/posix-functions/strerror.texi (strerror): Likewise.
38266         * doc/posix-functions/perror.texi (perror): Likewise.
38267         * tests/test-strerror.c (main): Enhance test.
38268         * tests/test-strerror_r.c (main): Likewise.
38270 2011-06-08  Bruno Haible  <bruno@clisp.org>
38272         gnulib-tool: Better isolation between different gnulib-tool invocations.
38273         * gnulib-tool: New option --witness-c-macro.
38274         (witness_c_macro): New variable.
38275         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
38276         AM_CPPFLAGS define it as a C macro.
38277         (func_emit_tests_Makefile_am): Likewise.
38278         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
38279         read it from there.
38280         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
38281         m4_define, not AC_DEFUN.
38282         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
38283         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
38284         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
38285         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
38286         s|...|...|, to substitute the values of the GNULIB_* module indicator
38287         variables.
38288         * modules/dirent (Makefile.am): Likewise.
38289         * modules/fcntl-h (Makefile.am): Likewise.
38290         * modules/iconv-h (Makefile.am): Likewise.
38291         * modules/langinfo (Makefile.am): Likewise.
38292         * modules/locale (Makefile.am): Likewise.
38293         * modules/math (Makefile.am): Likewise.
38294         * modules/netdb (Makefile.am): Likewise.
38295         * modules/poll-h (Makefile.am): Likewise.
38296         * modules/pty (Makefile.am): Likewise.
38297         * modules/search (Makefile.am): Likewise.
38298         * modules/signal (Makefile.am): Likewise.
38299         * modules/spawn (Makefile.am): Likewise.
38300         * modules/stdio (Makefile.am): Likewise.
38301         * modules/stdlib (Makefile.am): Likewise.
38302         * modules/string (Makefile.am): Likewise.
38303         * modules/sys_ioctl (Makefile.am): Likewise.
38304         * modules/sys_select (Makefile.am): Likewise.
38305         * modules/sys_socket (Makefile.am): Likewise.
38306         * modules/sys_stat (Makefile.am): Likewise.
38307         * modules/sys_times (Makefile.am): Likewise.
38308         * modules/sys_utsname (Makefile.am): Likewise.
38309         * modules/sys_wait (Makefile.am): Likewise.
38310         * modules/termios (Makefile.am): Likewise.
38311         * modules/time (Makefile.am): Likewise.
38312         * modules/unistd (Makefile.am): Likewise.
38313         * modules/wchar (Makefile.am): Likewise.
38315 2011-06-08  Eric Blake  <eblake@redhat.com>
38317         strerror: simplify replacement
38318         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
38319         * modules/strerror (configure.ac): No prereqs needed here...
38320         * modules/strerror-override (configure.ac): ...but this needs it.
38321         (Files): Add file for needed prereq macro.
38323 2011-06-08  Bruno Haible  <bruno@clisp.org>
38325         strerror_r-posix: Tweaks.
38326         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
38327         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
38328         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
38329         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
38330         (gl_FUNC_STRERROR_R): ... to here.
38331         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
38333 2011-06-07  Eric Blake  <eblake@redhat.com>
38335         perror: document fixed bugs
38336         * doc/posix-functions/perror.texi (perror): Document recent
38337         patches.
38339 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
38341         stat-time: get_stat_birthtime failure is better-defined
38342         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
38343         return a timestamp whose tv_sec and tv_nsec values are both -1.
38344         Previously, the spec said only that the tv_nsec value was negative.
38345         This upward-compatible change simplifies GNU tar a bit.
38347 2011-06-07  Eric Blake  <eblake@redhat.com>
38349         strerror_r-posix: work around cygwin 1.7.9
38350         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
38351         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
38352         bug without replacing strerror_r.
38353         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
38354         strerror_r is buggy, but without requiring strerror_r compilation.
38355         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
38357         test-perror: relax test to ignore cygwin bug
38358         * tests/test-perror2.c (main): Relax test on requiring detection
38359         of stream errors, and use unbuffered stream.
38360         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
38361         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
38362         * doc/posix-functions/fputc.texi (fputc): Likewise.
38363         * doc/posix-functions/fputs.texi (fputs): Likewise.
38364         * doc/posix-functions/fputws.texi (fputws): Likewise.
38365         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
38366         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
38367         * doc/posix-functions/getopt.texi (getopt): Likewise.
38368         * doc/posix-functions/perror.texi (perror): Likewise.
38369         * doc/posix-functions/printf.texi (printf): Likewise.
38370         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
38371         * doc/posix-functions/psignal.texi (psignal): Likewise.
38372         * doc/posix-functions/putc.texi (putc): Likewise.
38373         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
38374         Likewise.
38375         * doc/posix-functions/putchar.texi (putchar): Likewise.
38376         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
38377         Likewise.
38378         * doc/posix-functions/puts.texi (puts): Likewise.
38379         * doc/posix-functions/putwc.texi (putwc): Likewise.
38380         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38381         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38382         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38383         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
38384         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38385         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38386         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38387         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
38389 2011-05-22  Bruno Haible  <bruno@clisp.org>
38391         strerror: Move AC_LIBOBJ invocations to module description.
38392         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
38393         gl_PREREQ_STRERROR invocations from here...
38394         * modules/strerror (configure.ac): ... to here.
38396 2011-05-21  Bruno Haible  <bruno@clisp.org>
38398         perror: Use common idiom.
38399         * modules/perror (configure.ac): Reorder statements.
38401 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38403         tests: fix usage message in 'mktempd_'
38404         * tests/init.sh (mktempd_): In the usage message, use literal
38405         'mktempd_', not '$ME' (which is even undefined), as the name of
38406         the subroutine.
38408 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38410         tests init: new function 'fatal_', for hard errors
38411         Before this patch, the only way offered by tests/init.sh to
38412         properly signal a hard error was the `framework_failure_'
38413         function.  But the error message issued by that function,
38414         as its name would suggest, refers to a set-up failure in the
38415         testsuite, while hard errors can obviously also be due to
38416         other reasons.  The best way to fix this inconsistency is to
38417         introduce a new function with a more general error message.
38418         * tests/init.sh (fatal_): New function.
38420 2011-06-06  Eric Blake  <eblake@redhat.com>
38422         canonicalize-lgpl: use common idiom
38423         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
38424         over newer POSIX -Rf.
38425         Reported by Bruno Haible.
38427         canonicalize-lgpl: work around AIX realpath bug
38428         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
38429         * doc/posix-functions/realpath.texi (realpath): Document it.
38430         Reported by Bruno Haible.
38432         strerror: work around FreeBSD bug
38433         * lib/strerror.c (strerror): Special case 0.
38434         Reported by Bruno Haible.
38436         strerror-override: avoid bloating errno module
38437         * modules/errno (Files, configure.ac): Move replacement strings...
38438         * modules/strerror-override: ...to new module.
38439         * modules/strerror (Depends-on): Add strerror-override.
38440         * modules/strerror_r-posix (Depends-on): Likewise.
38441         * MODULES.html.sh: Document new module.
38442         Reported by Bruno Haible.
38444 2011-06-06  Bruno Haible  <bruno@clisp.org>
38446         spawn-pipe tests: Rename program.
38447         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
38448         * tests/test-spawn-pipe-child.c: Update comment.
38449         * tests/test-spawn-pipe.sh: Update.
38450         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
38452         spawn-pipe tests: Link the child program only against libc.
38453         * tests/test-spawn-pipe-child.c: New file, extracted from
38454         tests/test-spawn-pipe.c.
38455         (main): Expect only one argument.
38456         (is_open): New function, copied from tests/test-pipe.c.
38457         * tests/test-spawn-pipe.c: Don't include <errno.h>.
38458         (child_main): Remove function.
38459         (test_pipe): Pass only one argument to the child program.
38460         (main): Remove child process code. Expect the child program's name as
38461         first argument.
38462         * tests/test-spawn-pipe.sh: Pass the child program's name as first
38463         argument.
38464         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
38465         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
38466         test-spawn-pipe-child against no libraries.
38468 2011-06-06  Bruno Haible  <bruno@clisp.org>
38470         careadlinkat: Avoid mismatch between ssize_t and int.
38471         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
38472         * lib/careadlinkat.c (careadlinkatcwd): Define always.
38474 2011-06-06  Jim Meyering  <meyering@redhat.com>
38476         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
38477         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
38478         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
38480 2011-06-05  Bruno Haible  <bruno@clisp.org>
38482         ansi-c++-opt: Interoperability with libtool.
38483         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
38484         set the variable to "no", not to ":".
38485         * NEWS: Mention the change.
38487 2011-06-05  Bruno Haible  <bruno@clisp.org>
38489         acl: Fix test failure on AIX 7.
38490         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
38491         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
38493 2011-06-05  Bruno Haible  <bruno@clisp.org>
38495         pipe-filter-ii: Fix test failure on AIX and IRIX.
38496         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
38497         with EAGAIN, retry with a smaller buffer size.
38499 2011-06-05  Bruno Haible  <bruno@clisp.org>
38501         localename: Fix link dependencies.
38502         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
38503         * modules/localename-tests (Makefile.am): Link test-localename with
38504         $(LIBTHREAD).
38506 2011-06-05  Bruno Haible  <bruno@clisp.org>
38508         error: Avoid gcc warning.
38509         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
38511 2011-06-05  Bruno Haible  <bruno@clisp.org>
38513         unsetenv: Avoid gcc warning.
38514         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
38516 2011-06-05  Bruno Haible  <bruno@clisp.org>
38518         setenv: Avoid gcc warning.
38519         * lib/setenv.c (setenv): Provide declaration if system lacks it.
38521 2011-06-05  Bruno Haible  <bruno@clisp.org>
38523         sys_select: Ensure memset is declared also on AIX 7.
38524         * lib/sys_select.in.h: Include <string.h> also on AIX.
38525         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
38526         self-contained also on AIX 7.1.
38528 2011-06-04  Jim Meyering  <meyering@redhat.com>
38530         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
38531         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
38532         function name, "error".
38533         (_gl_translatable_diag_func_re): New configurable variable.
38535 2011-06-04  Bruno Haible  <bruno@clisp.org>
38537         getopt: Avoid gcc warning.
38538         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
38540 2011-06-04  Bruno Haible  <bruno@clisp.org>
38542         strerror_r: Fix comments.
38543         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
38544         commit.
38546 2011-06-04  Bruno Haible  <bruno@clisp.org>
38548         perror: Fix compilation error.
38549         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
38550         Undefine fprintf, not sprintf.
38551         * modules/perror (Depends-on): Remove intprops, verify.
38553 2011-06-04  Bruno Haible  <bruno@clisp.org>
38555         setlocale: Enable replacement on Cygwin 1.5.
38556         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
38557         Cygwin 1.5.x.
38558         * doc/posix-functions/setlocale.texi: Mention that the problem with the
38559         LC_CTYPE category also exists on Cygwin 1.5.x.
38561 2011-06-04  Bruno Haible  <bruno@clisp.org>
38563         strerror-override: Don't disable symbol renamings.
38564         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
38565         * lib/strerror-override.c: Include config.h.
38566         (strerror_override): Don't undefine.
38568 2011-06-03  Bruno Haible  <bruno@clisp.org>
38570         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
38571         * lib/localename.h: Update copyright header.
38572         * lib/localename.c: Likewise.
38573         * lib/relocatable.h: Likewise.
38574         * lib/relocatable.c: Likewise.
38576 2011-06-02  Bruno Haible  <bruno@clisp.org>
38578         doc: Fix a module name.
38579         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
38581 2011-06-02  Bruno Haible  <bruno@clisp.org>
38583         pipe2: Remove dependency on 'nonblocking' module.
38584         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
38585         O_NONBLOCK is defined by gnulib.
38586         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
38587         is zero.
38588         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
38589         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
38590         defined by gnulib.
38591         (get_nonblocking_flag): New function.
38592         (main): Test O_NONBLOCK flag only if it is nonzero.
38593         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
38595 2011-06-03  Jim Meyering  <meyering@redhat.com>
38597         maint: three new prohibit-header-without-use rules
38598         Prohibit use of cloexec.h, posixver.h, same.h without use.
38599         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
38600         (sc_prohibit_posixver_without_use): Likewise.
38601         (sc_prohibit_same_without_use): Likewise.
38603 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
38605         allocator: 'die' routine is now given requested size
38606         * lib/allocator.h (struct allocator.die): New size arg.
38607         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
38608         If the actual problem is an ssize_t limitation, not a size_t or
38609         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
38611 2011-06-01  Eric Blake  <eblake@redhat.com>
38613         strerror: drop strerror_r dependency
38614         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
38615         * lib/strerror-override.c (strerror_override): ...to new file.
38616         * lib/strerror-override.h: Add prototype.
38617         * lib/strerror-impl.h: Delete.
38618         * lib/strerror.c (strerror): New implementation.
38619         * modules/errno (Files): Add new files.
38620         (configure.ac): Compile new file as appropriate.
38621         * modules/strerror (Files): Drop unused file.
38622         (Depends-on): Drop strerror_r-posix.
38623         * MODULES.html.sh: Document strerror_r-posix.
38624         Requested by Sam Steingold.
38626         perror: call strerror_r directly
38627         * modules/perror (Files): Drop strerror-impl.h.
38628         * lib/perror.c (perror): Use our own stack buffer, rather than
38629         calling a wrapper that uses static storage.
38630         * doc/posix-functions/perror.texi (perror): Document a limitation
38631         of our replacement.
38633         strerror_r: fix includes for FreeBSD
38634         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
38635         since we use abort on some platforms.
38636         Reported by Matthias Bolte.
38638 2011-05-31  Bruno Haible  <bruno@clisp.org>
38640         Fix link errors in tests: openat-die uses gettext-h.
38641         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
38642         against $(LIBINTL).
38643         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
38644         against $(LIBINTL).
38645         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
38646         $(LIBINTL).
38647         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
38648         against $(LIBINTL).
38649         * modules/linkat-tests (Makefile.am): Link test-linkat against
38650         $(LIBINTL).
38651         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
38652         $(LIBINTL).
38653         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
38654         against $(LIBINTL).
38655         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
38656         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
38657         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
38658         $(LIBINTL).
38659         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
38660         $(LIBINTL).
38661         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
38662         $(LIBINTL).
38663         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38665 2011-05-31  Bruno Haible  <bruno@clisp.org>
38667         Fix link errors in tests: wait-process uses gettext-h.
38668         * modules/nonblocking-pipe-tests (Makefile.am): Set
38669         test_nonblocking_pipe_main_LDADD.
38670         * modules/nonblocking-socket-tests (Makefile.am): Link
38671         test-nonblocking-socket-main against $(LIBINTL).
38672         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38674 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
38676         assert-h: work around 'verify' incompatibility
38677         * lib/verify.h: Use @...@ directives, not ifdef.
38678         * modules/assert-h (assert.h): Implement the directives.
38679         (assert.h): Substitute the symbol-prefix more consistently.
38681 2011-05-29  Jim Meyering  <meyering@redhat.com>
38683         trim: remove three superfluous assignments
38684         * lib/trim.c (trim2): Remove three superfluous assignments
38685         and correct brace positioning.
38687 2011-05-29  Bruno Haible  <bruno@clisp.org>
38689         wctype-h: Avoid namespace pollution on Solaris 2.6.
38690         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
38691         identifiers.
38692         * doc/posix-headers/wctype.texi: Mention the problem.
38693         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38695 2011-05-28  Jim Meyering  <meyering@redhat.com>
38697         parse-datetime.y: accommodate -Wstrict-overflow
38698         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
38699         placate -Wstrict-overflow.
38701         trim: avoid a warning from -O2 -Wstrict-overflow
38702         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
38704 2011-05-29  Bruno Haible  <bruno@clisp.org>
38706         gnulib-tool: Fix bug in yesterday's commit.
38707         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
38708         twice.
38710 2011-05-29  Bruno Haible  <bruno@clisp.org>
38712         Allow multiple gnulib generated include files to be combined.
38713         * gnulib-tool (func_compute_include_guard_prefix): New function.
38714         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
38715         ${gl_include_guard_prefix} references.
38716         (func_import, func_create_testdir): Invoke
38717         func_compute_include_guard_prefix.
38718         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
38719         * lib/ctype.in.h: Likewise.
38720         * lib/dirent.in.h: Likewise.
38721         * lib/errno.in.h: Likewise.
38722         * lib/fcntl.in.h: Likewise.
38723         * lib/float.in.h: Likewise.
38724         * lib/getopt.in.h: Likewise.
38725         * lib/iconv.in.h: Likewise.
38726         * lib/langinfo.in.h: Likewise.
38727         * lib/locale.in.h: Likewise.
38728         * lib/math.in.h: Likewise.
38729         * lib/netdb.in.h: Likewise.
38730         * lib/netinet_in.in.h: Likewise.
38731         * lib/poll.in.h: Likewise.
38732         * lib/pthread.in.h: Likewise.
38733         * lib/pty.in.h: Likewise.
38734         * lib/sched.in.h: Likewise.
38735         * lib/se-selinux.in.h: Likewise.
38736         * lib/search.in.h: Likewise.
38737         * lib/signal.in.h: Likewise.
38738         * lib/spawn.in.h: Likewise.
38739         * lib/stdarg.in.h: Likewise.
38740         * lib/stddef.in.h: Likewise.
38741         * lib/stdint.in.h: Likewise.
38742         * lib/stdio.in.h: Likewise.
38743         * lib/stdlib.in.h: Likewise.
38744         * lib/string.in.h: Likewise.
38745         * lib/strings.in.h: Likewise.
38746         * lib/sys_file.in.h: Likewise.
38747         * lib/sys_ioctl.in.h: Likewise.
38748         * lib/sys_select.in.h: Likewise.
38749         * lib/sys_socket.in.h: Likewise.
38750         * lib/sys_stat.in.h: Likewise.
38751         * lib/sys_time.in.h: Likewise.
38752         * lib/sys_times.in.h: Likewise.
38753         * lib/sys_uio.in.h: Likewise.
38754         * lib/sys_utsname.in.h: Likewise.
38755         * lib/sys_wait.in.h: Likewise.
38756         * lib/sysexits.in.h: Likewise.
38757         * lib/termios.in.h: Likewise.
38758         * lib/time.in.h: Likewise.
38759         * lib/unistd.in.h: Likewise.
38760         * lib/wchar.in.h: Likewise.
38761         * lib/wctype.in.h: Likewise.
38762         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
38763         * modules/ctype (Makefile.am): Likewise.
38764         * modules/dirent (Makefile.am): Likewise.
38765         * modules/errno (Makefile.am): Likewise.
38766         * modules/fcntl-h (Makefile.am): Likewise.
38767         * modules/float (Makefile.am): Likewise.
38768         * modules/getopt-posix (Makefile.am): Likewise.
38769         * modules/iconv-h (Makefile.am): Likewise.
38770         * modules/langinfo (Makefile.am): Likewise.
38771         * modules/locale (Makefile.am): Likewise.
38772         * modules/math (Makefile.am): Likewise.
38773         * modules/netdb (Makefile.am): Likewise.
38774         * modules/netinet_in (Makefile.am): Likewise.
38775         * modules/poll-h (Makefile.am): Likewise.
38776         * modules/pthread (Makefile.am): Likewise.
38777         * modules/pty (Makefile.am): Likewise.
38778         * modules/sched (Makefile.am): Likewise.
38779         * modules/search (Makefile.am): Likewise.
38780         * modules/selinux-h (Makefile.am): Likewise.
38781         * modules/signal (Makefile.am): Likewise.
38782         * modules/spawn (Makefile.am): Likewise.
38783         * modules/stdarg (Makefile.am): Likewise.
38784         * modules/stddef (Makefile.am): Likewise.
38785         * modules/stdint (Makefile.am): Likewise.
38786         * modules/stdio (Makefile.am): Likewise.
38787         * modules/stdlib (Makefile.am): Likewise.
38788         * modules/string (Makefile.am): Likewise.
38789         * modules/strings (Makefile.am): Likewise.
38790         * modules/sys_file (Makefile.am): Likewise.
38791         * modules/sys_ioctl (Makefile.am): Likewise.
38792         * modules/sys_select (Makefile.am): Likewise.
38793         * modules/sys_socket (Makefile.am): Likewise.
38794         * modules/sys_stat (Makefile.am): Likewise.
38795         * modules/sys_time (Makefile.am): Likewise.
38796         * modules/sys_times (Makefile.am): Likewise.
38797         * modules/sys_uio (Makefile.am): Likewise.
38798         * modules/sys_utsname (Makefile.am): Likewise.
38799         * modules/sys_wait (Makefile.am): Likewise.
38800         * modules/sysexits (Makefile.am): Likewise.
38801         * modules/termios (Makefile.am): Likewise.
38802         * modules/time (Makefile.am): Likewise.
38803         * modules/unistd (Makefile.am): Likewise.
38804         * modules/wchar (Makefile.am): Likewise.
38805         * modules/wctype-h (Makefile.am): Likewise.
38806         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
38808 2011-05-29  Bruno Haible  <bruno@clisp.org>
38810         assert-h: Allow multiple gnulib generated replacements to coexist.
38811         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
38813 2011-05-29  Bruno Haible  <bruno@clisp.org>
38815         argp: Allow coexistence with strerror_r-posix module.
38816         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
38817         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
38818         by gnulib's <string.h> replacement), assume it has the POSIX signature,
38819         not the glibc signature.
38821 2011-05-28  Bruno Haible  <bruno@clisp.org>
38823         gnulib-tool: Alternative structure of testdirs, similar to --import.
38824         * gnulib-tool: New option --single-configure.
38825         (func_usage): Document it.
38826         (single_configure): New variable.
38827         (func_modules_transitive_closure_separately,
38828         func_modules_transitive_closure_separately,
38829         func_determine_use_libtests, func_modules_add_dummy_separately,
38830         func_modules_to_filelist_separately): New functions, extracted from
38831         func_import.
38832         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
38833         (func_import): Use the new functions.
38834         (func_create_testdir): Set final_modules. Handle $single_configure =
38835         true case.
38837 2011-05-28  Bruno Haible  <bruno@clisp.org>
38839         getloadavg: Remove an unreliable safety check.
38840         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
38841         getloadavg.c is in place.
38842         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
38843         Reported by Sam Steingold <sds@gnu.org>.
38845 2011-05-28  Bruno Haible  <bruno@clisp.org>
38847         doc: Cleanup yet another file produced by texinfo.tex.
38848         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
38850 2011-05-28  Bruno Haible  <bruno@clisp.org>
38852         Finish the conditional dependencies mechanism.
38853         * gnulib-tool: New option --no-conditional-dependencies.
38854         (func_usage): Document it. Don't mark --conditional-dependencies as
38855         experimental.
38856         (cond_dependencies): The possible values can now be true, false, empty.
38857         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
38858         (func_import): Store setting in gnulib-cache.m4 and read it from there.
38859         * doc/gnulib-tool.texi (Conditional dependencies): New section.
38861 2011-05-28  Bruno Haible  <bruno@clisp.org>
38863         doc: Use a recent texinfo.tex.
38864         * doc/Makefile (tex_opts): New variable.
38865         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
38867 2011-05-28  Jim Meyering  <meyering@redhat.com>
38869         intprops.h: adjust comment to match code change
38870         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
38871         only once, it *may* have side effects.  Also fix an unrelated typo.
38872         (_GL_INT_SIGNED): Likewise.
38874 2011-05-26  Simon Josefsson  <simon@josefsson.org>
38876         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
38878 2011-05-26  Bruno Haible  <bruno@clisp.org>
38880         mbsrchr: Avoid collision with system function on Interix.
38881         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
38882         Reported by Markus Duft <mduft@gentoo.org>.
38884 2011-05-15  James Youngman  <jay@gnu.org>
38886         getopt: for ambiguous options, enumerate the possibilities.
38887         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
38888         the ambiguous options when an ambiguous prefix is given. This was
38889         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
38890         glibc change was
38891         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
38893 2011-05-25  Eric Blake  <eblake@redhat.com>
38895         getcwd: work around mingw bug
38896         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
38897         * doc/posix-functions/getcwd.texi (getcwd): Document it.
38898         Reported by Matthias Bolte.
38900 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
38902         test-intprops: disable -Wtype-limits diagnostics
38903         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
38904         diagnostics.  Otherwise, the integer overflow macros generate many
38905         diagnostics.  Reported by Jim Meyering in
38906         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
38908         intprops: shorten, to pacify gcc -Woverlength-strings
38909         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
38910         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
38911         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
38912         likely to run afoul of C compiler limits for string constant lengths.
38913         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
38915 2011-05-24  Eric Blake  <eblake@redhat.com>
38917         docs: document recently fixed glibc printf bug
38918         * doc/posix-functions/fprintf.texi (fprintf): Document it.
38919         * doc/posix-functions/printf.texi (printf): Likewise.
38920         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38921         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38923         closein-tests: convert to init.sh
38924         * modules/closein-tests (Files): Add init.sh
38925         * tests/test-closein.sh Use it.
38927         yesno-tests: convert to init.sh
38928         * modules/yesno-tests (Files): Add init.sh.
38929         * tests/test-yesno.sh: Use it.
38931         atexit-tests: ensure reliable exit status
38932         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
38933         Reported by Bruno Haible.
38935 2011-05-24  Bruno Haible  <bruno@clisp.org>
38937         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
38938         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
38939         gl_PREREQ_STRERROR_R invocations from here...
38940         * modules/strerror_r-posix (configure.ac): ... to here.
38942 2011-05-24  Eric Blake  <eblake@redhat.com>
38944         strerror_r: fix missing header
38945         * lib/strerror_r.c: Avoid compiler warning about snprintf.
38947         strerror_r: fix AIX test failures
38948         * lib/strerror_r.c (strerror_r): Convert silent truncation to
38949         ERANGE failure.
38951         strerror_r: fix Solaris test failures
38952         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
38953         failures.
38954         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
38956         strerror_r: enforce POSIX recommendations
38957         * lib/strerror_r.c (safe_copy): New helper method.
38958         (strerror_r): Guarantee a non-empty string.
38959         * tests/test-strerror_r.c (main): Enhance tests to incorporate
38960         recent POSIX rulings and to match our strerror guarantees.
38961         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
38963 2011-05-24  Jim Meyering  <meyering@redhat.com>
38965         test-perror2.c: avoid warning about unused variable
38966         * tests/test-perror2.c (main): Remove declaration of unused "fp".
38968 2011-05-24  Eric Blake  <eblake@redhat.com>
38970         perror: avoid spurious test failure on HP-UX
38971         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
38973         tests: fix logic bug in init.sh
38974         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
38975         shell.
38977 2011-05-24  Jim Meyering  <meyering@redhat.com>
38979         utimensat: do not reference an out-of-scope buffer
38980         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
38981         declared in an inner scope, yet "times" would be dereferenced outside
38982         the scope in which "ts" was valid.
38983         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
38984         of ts[2] "out/up", so that the use of aliased "times" (via
38985         "times = ts;") does not end up referencing an out-of-scope "ts"
38987         opendir-safer.c: don't clobber errno; don't close negative FD
38988         * lib/opendir-safer.c (opendir_safer):
38989         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
38990         file descriptor, and more importantly, don't clobber the
38991         offending errno value with EINVAL.  Before, upon failure
38992         of dup_safer, we would pass the negative file descriptor to
38993         fdopendir, which would clobber errno.
38995 2011-05-23  Bruno Haible  <bruno@clisp.org>
38997         idcache: Fix module description.
38998         * modules/idcache (Include): Set to "idcache.h".
39000 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
39002         gnulib-tool: fix portability problem with MacOS sed
39003         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
39004         before the "}".  Problem reported by Leo in
39005         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
39006         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
39007         sed_extract_condition1, sed_extract_condition2.
39009 2011-05-23  Bruno Haible  <bruno@clisp.org>
39011         hash: Simplify autoconf macro.
39012         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
39014 2011-05-23  Bruno Haible  <bruno@clisp.org>
39016         getugroups: Fix module description.
39017         * modules/getugroups (Include): Set to "getugroups.h".
39019 2011-05-23  Bruno Haible  <bruno@clisp.org>
39021         linkat: Simplify autoconf macro.
39022         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
39024 2011-05-23  Bruno Haible  <bruno@clisp.org>
39025             Eric Blake  <eblake@redhat.com>
39027         linkat, renameat: Update dependencies.
39028         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
39029         * modules/linkat (Depends-on): Likewise. Remove also readlink,
39030         symlinkat.
39032 2011-05-23  Jim Meyering  <meyering@redhat.com>
39034         maint.mk: more tight_scope improvements
39035         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
39036         (_gl_TS_headers): Define only in if-0'd block.
39037         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
39038         sometimes we must *not* use it.  Adjust uses accordingly.
39039         (sc_tight_scope): Use much simpler grep-based test to determine
39040         whether we skip this rule.
39042         maint.mk: generalize/improve the tight-scope rule
39043         * top/maint.mk: Emit a warning when the test is skipped.
39044         (_gl_TS_dir): Add $(srcdir)/ prefix.
39045         (_gl_TS_function_match): Simplify, rather than trying
39046         to enumerate common types.  Otherwise, it would fail to match an
39047         "extern unsigned char const *" declaration in idutils.
39048         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
39049         a way to support use of that type of macro.
39050         (_gl_TS_var_match): Simplify regexp.
39051         (_gl_TS_obj_files): New configurable variable.
39052         (_gl_TS_headers): Likewise.
39054 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
39056         verify: fix bug when gnulib <assert.h> is also included
39057         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
39058         is defined, not if _GL_STATIC_ASSERT_H is not defined.
39059         Perhaps there's a better way, but this fixes the immediate problem.
39060         Problem reported by Bruno Haible in
39061         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
39063 2011-05-22  Bruno Haible  <bruno@clisp.org>
39065         xgetcwd: Simplify autoconf macro.
39066         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
39068 2011-05-22  Bruno Haible  <bruno@clisp.org>
39070         New module 'mktime-internal'.
39071         * modules/mktime-internal: New file.
39072         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
39073         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
39074         mktime_internal as a C macro if libc has __mktime_internal.
39075         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
39076         conditions.
39077         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
39079 2011-05-22  Bruno Haible  <bruno@clisp.org>
39081         timegm: Correct mktime replacement statements.
39082         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
39083         defining mktime as a C macro. This completes a 2009-07-28 commit.
39085 2011-05-22  Bruno Haible  <bruno@clisp.org>
39087         timegm: Simplify autoconf macro.
39088         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
39090 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
39092         clock-time: change to LGPLv2+.
39093         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
39094         BSD-like but we have no mark for that; this is good enough for now.
39096 2011-05-21  Bruno Haible  <bruno@clisp.org>
39098         strerror_r: Fix comments.
39099         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
39101 2011-05-21  Bruno Haible  <bruno@clisp.org>
39103         relocatable-prog-wrapper: Fix possible link error.
39104         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
39105         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
39106         (gl_FUNC_SETENV): ... to here.
39107         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
39108         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
39110 2011-05-21  Bruno Haible  <bruno@clisp.org>
39112         relocatable-prog-wrapper: Assume strerror() exists.
39113         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
39114         m4/strerror.m4.
39115         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
39116         * lib/relocwrapper.c: Remove mention of strerror module.
39117         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
39118         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
39119         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
39120         C macro.
39122 2011-05-21  Bruno Haible  <bruno@clisp.org>
39124         select: Simplify replacement idiom.
39125         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
39126         Win32 platforms.
39127         * lib/sys_select.in.h (select): Simplify accordingly.
39128         * modules/select (Depends-on): Likewise.
39130 2011-05-21  Bruno Haible  <bruno@clisp.org>
39132         mkdir-p: Simplify autoconf macro.
39133         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
39134         gl_FUNC_LCHOWN.
39136 2011-05-21  Eric Blake  <eblake@redhat.com>
39138         strerror_r: avoid clobbering strerror on cygwin
39139         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
39140         fall back instead to sys_errlist.
39141         * modules/strerror (configure.ac): Add witness.
39142         * tests/test-strerror_r.c (main): Enhance test.
39143         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
39144         * tests/test-perror2.c (main): Free memory before exit.
39146 2011-05-21  Bruno Haible  <bruno@clisp.org>
39148         mkdtemp: Use gnulib naming conventions.
39149         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
39150         * modules/mkdtemp (configure.ac): Update.
39152 2011-05-20  Eric Blake  <eblake@redhat.com>
39154         strerror_r: avoid corrupting errno on Solaris
39155         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
39156         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
39158         strerror_r: avoid compiler warning
39159         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
39161         strerror_r: simplify AIX code
39162         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
39164         test-perror: avoid spurious failure on FreeBSD
39165         * modules/perror-tests (Depends-on): Add strerror, now that
39166         strerror_r no longer pulls it in.
39168 2011-05-20  Bruno Haible  <bruno@clisp.org>
39170         strerror_r-posix: Remove unused dependencies.
39171         * modules/strerror_r-posix (Depends-on): Remove strerror.
39172         Reported by Eric Blake.
39174 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
39176         intprops: remove assumption about A|B representation
39177         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
39178         is a valid integer if both A and B are.  Although this is true for
39179         all known practical hosts, the C standard doesn't guarantee it,
39180         and the code need not assume it.  Also, this change may work around
39181         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
39182         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
39184 2011-05-20  Eric Blake  <eblake@redhat.com>
39186         perror: work around FreeBSD bug
39187         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
39188         is broken.  Move AC_LIBOBJ...
39189         * modules/perror (configure.ac): Here.
39190         * doc/posix-functions/perror.texi (perror): Document this.
39191         * tests/test-perror2.c (main): Enhance test.
39193         test-perror: check for strerror interactions
39194         * tests/macros.h (STREQ): Add macro.
39195         * modules/perror-tests (Files): Add second test.
39196         * tests/test-perror2.c (main): New file.
39197         * doc/posix-functions/perror.texi (perror): Document glibc bug.
39199         test-perror: rewrite to use init script
39200         * modules/perror-tests (Files): Add init.sh.
39201         * tests/test-perror.sh: Use temporary directory.
39203 2011-05-20  Jim Meyering  <meyering@redhat.com>
39205         maint: replace misused "a" with "an"
39206         * doc/intprops.texi: "a integer"
39207         * doc/regex.texi: "a explanation"
39208         * lib/alignof.h: "a object"
39209         * lib/argmatch.h: "a explanation"
39210         * lib/argp-help.c: "a option" and "a OPTION_DOC"
39211         * lib/stdint.in.h: "a integer"
39212         * lib/userspec.c: "a owner"
39213         * doc/gnulib.texi: Fix "a idea", and reword.
39215 2011-05-19  Jim Meyering  <meyering@redhat.com>
39217         maint: correct misuse of "a" and "an"
39218         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
39219         * lib/argp-help.c: "an docum...": s/an/a/
39220         * lib/argp-parse.c: "An vector": s/An/A/
39221         * lib/execute.c: "an native": s/an/a/
39222         * lib/spawn-pipe.c: Likewise.
39223         * lib/gc.h: "an Gc_rc": s/an/a/
39224         * lib/unigbrk.in.h: "an grapheme": s/an/a/
39225         * lib/fts.c: "an stat.st_dev": s/an/a/
39227 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39229         intprops-tests: work around HP-UX 11.23 cc bug with constants
39230         * tests/test-intprops.c (VERIFY): New macro.
39231         (main): Use it, instead of verify, to work around the compiler bug; see
39232         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39234         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
39235         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
39236         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
39237         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
39238         (_GL_REMAINDER_OVERFLOW): Use it.
39240         intprops-tests: revert unsigned part of previous change
39241         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
39242         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
39243         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
39244         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
39246 2011-05-19  Bruno Haible  <bruno@clisp.org>
39248         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
39249         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
39250         strerror_r() returned without filling the buffer.
39251         Reported by Eric Blake.
39253 2011-05-19  Eric Blake  <eblake@redhat.com>
39255         strerror_r: guarantee unchanged errno
39256         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
39257         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
39258         failure.
39259         * tests/test-strerror_r.c (main): Enhance test.
39261 2011-05-19  Bruno Haible  <bruno@clisp.org>
39263         strerror_r: Reorder #if blocks.
39264         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
39265         for consistency with the previous commit.
39267 2011-05-19  Bruno Haible  <bruno@clisp.org>
39269         perror: Avoid clobbering the strerror buffer when possible.
39270         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
39271         * lib/strerror.c: Include it.
39272         * modules/strerror (Files): Add lib/strerror-impl.h.
39273         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
39274         (my_strerror): New function, defined through lib/strerror-impl.h.
39275         (perror): Use it instead of strerror.
39276         * modules/perror (Files): Add lib/strerror-impl.h.
39277         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
39279 2011-05-19  Eric Blake  <eblake@redhat.com>
39281         strerror_r: fix on newer cygwin
39282         * lib/strerror_r.c (strerror_r): Cygwin now has
39283         __xpg_strerror_r, use it.
39285 2011-05-19  Bruno Haible  <bruno@clisp.org>
39287         strerror_r: Avoid clobbering the strerror buffer when possible.
39288         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
39289         (sys_nerr, sys_errlist): New declarations.
39290         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
39291         HP-UX, native Win32, IRIX, and 32-bit Solaris.
39292         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
39294 2011-05-19  Bruno Haible  <bruno@clisp.org>
39296         strerror_r: Fix test failure on mingw.
39297         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
39298         EXTEND_STRERROR_R.
39299         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
39300         macros from errno.in.h instead.
39302 2011-05-19  Eric Blake  <eblake@redhat.com>
39304         strerror: relax test for Solaris
39305         * tests/test-strerror.c (main): Permit Solaris behavior.
39306         * tests/test-strerror_r.c (main): Likewise.
39308         strerror: enforce POSIX ruling on strerror(0)
39309         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
39310         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
39311         * lib/strerror_r.c (rpl_strerror_r): Work around it.
39312         * doc/posix-functions/strerror.texi (strerror): Document it.
39313         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
39314         * tests/test-strerror.c (main): Strengthen test.
39315         * tests/test-strerror_r.c (main): Likewise.
39317 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39319         intprop-tests: port to older and more-pedantic compilers
39320         * modules/intprops-tests (Files): Add tests/macros.h.
39321         * tests/test-intprops.c: Include macros.h.
39322         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
39323         it's no longer documented to expand to an integer constant expression.
39324         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
39325         argument is floating point, as it's no longer documented to expand
39326         to an integer constant expression in that case.
39327         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
39328         compiler bugs reported by Bruno Haible.  See
39329         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39330         (U0, U1): New constants, to work around the same bugs.  Also,
39331         in tests, use e.g., "(unsigned int) 39" rather than "39u".
39333         intprops: work around C compiler bugs
39334         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
39335         bug in Sun C 5.11 2010/08/13 and other compilers; see
39336         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39338         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
39339         * doc/intprops.texi (Integer Type Determination): Fix
39340         documentation for TYPE_IS_INTEGER: it returns an constant
39341         expression, not an integer constant expression.  Fix doc for
39342         TYPE_SIGNED: it returns an integer constant expression only if its
39343         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
39344         hardly worth documented that way....)
39346 2011-05-18  Bruno Haible  <bruno@clisp.org>
39348         strerror_r: Avoid clobbering the strerror buffer when possible.
39349         * lib/strerror_r.c (strerror_r): Merge the three implementations.
39350         Handle gnulib defined errno values here. When strerror() returns NULL
39351         or an empty string, return EINVAL.
39352         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
39353         gnulib defined errno values here.
39354         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
39356 2011-05-18  Eric Blake  <eblake@redhat.com>
39358         fnmatch: avoid compiler warning
39359         * lib/fnmatch_loop.c (FCT): Use correct type.
39360         Reported by Matthias Bolte.
39362 2011-05-13  Jim Meyering  <meyering@redhat.com>
39364         maint.mk: three new prohibit_<HDR>_without_use rules
39365         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
39366         (sc_prohibit_stdio-safer_without_use): Likewise.
39367         (sc_prohibit_xfreopen_without_use): Likewise.
39369 2011-05-17  Jim Meyering  <meyering@redhat.com>
39371         announce-gen: fail if the NEWS delta is empty
39372         If there's nothing noteworthy in NEWS, then either you forgot
39373         or you shouldn't be releasing.
39374         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
39376 2011-05-17  Pádraig Brady  <P@draigBrady.com>
39378         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
39379         reserved symbols starting with double underscore from the check.
39381 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39383         intprops: add doc
39384         * doc/intprops.texi: New file, documenting intprops.
39385         * doc/gnulib.texi (Particular Modules): Include it.
39387         verify: add doc to gnulib manual and fix example
39388         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
39389         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
39390         (Compile-time Assertions): Fix example so it can't overflow.
39392 2011-05-17  Jim Meyering  <meyering@redhat.com>
39394         warnings.m4: don't usurp save_CPPFLAGS variable name
39395         * m4/warnings.m4: Prefix local temporary variable name with gl_.
39397         doc: fix typo
39398         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
39400 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39401             Bruno Haible  <bruno@clisp.org>
39403         doc: Tweak recent change.
39404         * README (Portability guidelines): Tweak new text.
39405         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
39406         Interix 6.1.
39408 2011-05-16  Eric Blake  <eblake@redhat.com>
39410         inttypes: avoid autoconf warning
39411         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
39412         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39414 2011-05-16  Sam Steingold  <sds@gnu.org>
39415         and Eric Blake  <eblake@redhat.com>
39417         vc-list-files: accept multiple directory operands
39418         * build-aux/vc-list-files: Iterate over all remaining operands.
39420 2011-05-16  Bruno Haible  <bruno@clisp.org>
39422         Fix confusion regarding deprecated modules.
39423         * modules/calloc (Status, Notice): Mark module as deprecated, not
39424         obsolete.
39425         * modules/fnmatch-posix (Status, Notice): Likewise.
39426         * modules/getdate (Status, Notice): Likewise.
39427         * modules/getopt (Status, Notice): Likewise.
39428         * modules/malloc (Status, Notice): Likewise.
39429         * modules/pipe (Status, Notice): Likewise.
39430         * modules/realloc (Status, Notice): Likewise.
39431         * modules/rename-dest-slash (Status, Notice): Likewise.
39432         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
39433         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
39434         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
39435         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
39436         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
39438 2011-05-16  Bruno Haible  <bruno@clisp.org>
39440         doc: List the target platforms.
39441         * doc/gnulib-intro.texi (Target Platforms): New section.
39442         * doc/gnulib.texi (Introduction): Update menu.
39443         * README (Portability guidelines): Refer to the new section. Update
39444         statement about oldest supported environment. Remove rationale why
39445         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
39446         unportable C89 function.
39447         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
39448         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
39450 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39452         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
39454 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
39456         intprops-tests: new module
39457         * modules/intprops-tests, tests/test-intprops.c: New files.
39459         intprops: add safe, portable integer overflow checking
39460         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
39461         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
39462         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
39463         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
39464         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
39465         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
39466         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
39467         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
39468         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
39469         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
39470         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
39472 2011-05-12  James Youngman  <jay@gnu.org>
39474         Add a test for glibc's Bugzilla bug #12378.
39475         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
39476         doesn't allow the literal matching of a lone "[" (which is
39477         required by POSIX).
39478         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
39480 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
39482         Sync glibc change fixing Bugzilla bug #12378.
39483         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
39484         beginning and fall back to matching as normal character if the
39485         string ends before the matching ']' is found.  This is what POSIX
39486         requires.
39488 2011-05-13  Eric Blake  <eblake@redhat.com>
39490         getcwd-lgpl: relax test for FreeBSD
39491         * doc/posix-functions/getcwd.texi (getcwd): Document portability
39492         issue.
39493         * tests/test-getcwd-lgpl.c (main): Relax test.
39494         Reported by Matthias Bolte.
39496 2011-05-11  Eric Blake  <eblake@redhat.com>
39498         test-fflush: silence compiler warning
39499         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
39501 2011-05-11  Bruno Haible  <bruno@clisp.org>
39503         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
39504         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
39505         * modules/canonicalize (Depends-on): Add 'nocrash'.
39506         * modules/canonicalize-lgpl (Depends-on): Likewise.
39507         * doc/posix-functions/realpath.texi: Update platforms list.
39508         Reported by Ryan Schmidt <ryandesign@macports.org>.
39510 2011-05-11  Bruno Haible  <bruno@clisp.org>
39512         group-member: Declare function in <unistd.h>.
39513         * lib/unistd.in.h (group_member): New declaration.
39514         * lib/group-member.h: Remove file.
39515         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
39516         * tests/test-unistd-c++.cc: Check signature of group_member.
39517         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
39518         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
39519         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
39520         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
39521         HAVE_GROUP_MEMBER.
39522         * modules/group-member (Files): Remove lib/group-member.h.
39523         (Depends-on): Add unistd. Specify conditions.
39524         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39525         (Include): Change to <unistd.h>.
39526         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
39527         HAVE_GROUP_MEMBER.
39528         * NEWS: Mention the change.
39529         * lib/euidaccess.c: Don't include group-member.h.
39531 2011-05-11  Bruno Haible  <bruno@clisp.org>
39533         group-member: Document module.
39534         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
39535         module.
39537 2011-05-11  Bruno Haible  <bruno@clisp.org>
39539         fclose: Fix mistake earlier today.
39540         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
39542 2011-05-11  Eric Blake  <eblake@redhat.com>
39544         fclose: preserve fflush errors
39545         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
39546         Reported by Jim Meyering.
39548         bootstrap: support a prereq of 'rpcgen -' on RHEL5
39549         * build-aux/bootstrap (check_versions): When no specific version
39550         is required, merely check that the app produces an exit status
39551         that indicates its existence.
39553         maint.mk: drop redundant check
39554         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
39555         the same but better.
39557 2011-05-11  Bruno Haible  <bruno@clisp.org>
39559         fclose: Fix possible link error.
39560         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
39561         unregister_shadow_fd. Improve comments.
39562         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
39563         Eric Blake.
39565 2011-05-11  Jim Meyering  <meyering@redhat.com>
39567         maint.mk: improve "can not" detection and generalize rule name
39568         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
39569         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
39570         Use the same technique as in sc_prohibit_doubled_word, so that
39571         we recognize "can not" also when the words are separated by a newline.
39572         Suggested by Eric Blake.
39573         (perl_filename_lineno_text_): Define.  Factored out of...
39574         (prohibit_doubled_word_): ...here.  Use the new definition.
39575         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
39576         (prohibit_undesirable_word_seq_RE_): New overridable variable.
39577         (ignore_undesirable_word_sequence_RE_): New overridable variable.
39579 2011-05-10  Eric Blake  <eblake@redhat.com>
39581         fclose: avoid double close race when possible
39582         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
39583         all but WINDOWS_SOCKETS.
39585 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
39587         openat: correct new comment
39588         * lib/openat-proc.c (openat_proc_name): Correct the comment.
39590 2011-05-10  Jim Meyering  <meyering@redhat.com>
39592         openat: add comments
39593         * lib/openat-proc.c (openat_proc_name): Add comments,
39594         mostly from Eric Blake.
39596 2011-05-09  Eric Blake  <eblake@redhat.com>
39598         openat: reduce syscalls in first probe of /proc
39599         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
39600         be a directory.  Simplify the probe for .. bugs.
39601         * modules/openat (Depends-on): Drop same-inode.
39602         Reported by Bastien ROUCARIES.
39604 2011-05-09  Jim Meyering  <meyering@redhat.com>
39606         maint.mk: change semantics/name of tight_scope variables
39607         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
39608         Rename variables to align with semantics that make them more useful.
39610         maint.mk: tweak new rule's name not to impinge
39611         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
39612         (sc_tight_scope): Use new rule name rather than $@-0.
39614         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
39615         * top/maint.mk (sc_tight_scope): New rule.
39616         (sc_tight_scope-0): New rule, ifdef'd out.
39617         (_gl_TS_dir): Default.
39618         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
39619         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
39621 2011-05-09  Simon Josefsson  <simon@josefsson.org>
39623         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
39624         Haible <bruno@clisp.org>.
39626 2011-05-08  Bruno Haible  <bruno@clisp.org>
39628         Comments.
39629         * m4/isnanf.m4: Add comment.
39630         * m4/isnanl.m4: Likewise.
39632 2011-05-08  Bruno Haible  <bruno@clisp.org>
39634         glob: Remove obsolete macro.
39635         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
39637 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
39639         intprops: Sun C 5.11 supports __typeof__
39640         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
39641         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
39642         which is new.
39643         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
39645         intprops: switch to usual gnulib indenting and naming
39646         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
39647         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
39649         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
39651 2011-05-08  Jim Meyering  <meyering@redhat.com>
39653         maint.mk: suppress "Entering/Leaving directory" diag in announcement
39654         * top/maint.mk (release-prep): Use make's --no-print-directory
39655         option when generating the announcement.  This eliminates the
39656         pesky "make[2]: Entering/Leaving directory" diagnostics in the
39657         generated announcement template.
39659 2011-05-08  Bruno Haible  <bruno@clisp.org>
39661         tzset: Fix gettimeofday wrapper on Solaris 2.6.
39662         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
39663         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
39665 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
39667         ignore-value, verify: Omit include files from lib_SOURCES.
39668         * modules/ignore-value, modules/verify (Makefile.am):
39669         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
39670         that leads Automake to duplicate use of am__objects_... variables
39671         in Makefile.in.  See
39672         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
39674 2011-05-07  Bruno Haible  <bruno@clisp.org>
39676         fclose: Simplify autoconf macro.
39677         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
39678         defined.
39680 2011-05-07  Bruno Haible  <bruno@clisp.org>
39682         canonicalize-lgpl: Fix autoconf macro ordering bug.
39683         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
39684         gl_STDLIB_H_DEFAULTS.
39686 2011-05-06  Eric Blake  <eblake@redhat.com>
39688         maintainer-makefile: make sc_po_check easier to tune
39689         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
39690         to probe for strings, such as an alternate location for gnulib.
39692         fclose: guarantee behavior on seekable stdin
39693         * modules/fclose (Depends-on): Add fflush.
39694         * doc/posix-functions/fclose.texi (fclose): Document this.
39695         * tests/test-fclose.c (main): Make test for this unconditional.
39697 2011-05-06  Bruno Haible  <bruno@clisp.org>
39699         fflush, fpurge: Relicense under LGPLv2+.
39700         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
39701         * modules/fpurge (License): Likewise.
39702         With permission from Eric Blake and Jim Meyering.
39703         Suggested by Eric Blake.
39705 2011-05-06  Karl Berry  <karl@gnu.org>
39707         * MODULES.html.sh (func_all_modules): remove exit.
39709 2011-05-06  Jim Meyering  <meyering@redhat.com>
39711         maint.mk: use info-gnu@ as the default only for a stable release
39712         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
39713         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
39714         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
39715         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
39717 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
39719         assert-h: new module, which supports C1X-style static_assert
39720         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
39721         * lib/verify.h: Revamp so that this can be copied into assert.h,
39722         while retaining the ability to use it standalone as before.
39723         Rename private identifiers so as not to encroach on the
39724         standard C namespace, since this is now used by assert.h.
39725         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
39726         the old verify_true.
39727         (_GL_VERIFY_TRUE): New macro, with much of the contents of
39728         the old verify_true.  Use _GL_VERIFY_TYPE.
39729         (_GL_VERIFY): New macro, with much of the contents of the old verify.
39730         (static_assert): New macro, if _GL_STATIC_ASSERT_H
39731         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
39732         defined when this file is copied into the replacement assert.h.
39733         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
39734         and _Static_assert is not built in.
39735         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
39736         defined, and use the new macros mentioned above.
39737         * doc/posix-headers/assert.texi: Document this.
39739 2011-05-05  Bruno Haible  <bruno@clisp.org>
39741         fclose, fflush: Respect rules for use of AC_LIBOBJ.
39742         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
39743         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
39744         gl_REPLACE_FCLOSE here.
39745         * modules/fflush (Depends-on): Remove fclose.
39746         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
39747         combination with module 'fclose'.
39749 2011-05-05  Bruno Haible  <bruno@clisp.org>
39751         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
39752         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
39753         gl_FUNC_FFLUSH.
39754         (gl_FUNC_FFLUSH): Use it.
39755         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
39756         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
39757         gl_REPLACE_FSEEKO here.
39759 2011-05-05  Bruno Haible  <bruno@clisp.org>
39761         tzset: Relicense under LGPL.
39762         * modules/tzset (License): Change to LGPL.
39763         No agreement needed; it's a no-op.
39765         strtoimax, strtoumax: Relicense under LGPL.
39766         * modules/strtoimax (License): Change to LGPL.
39767         * modules/strtoumax (License): Likewise.
39768         With permission from Jim Meyering, Paul Eggert:
39769         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
39770         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
39772         getgroups: Relicense under LGPL.
39773         * modules/getgroups (License): Change to LGPL.
39774         With permission from Jim Meyering, Paul Eggert, Eric Blake:
39775         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
39776         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
39777         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39779         nanosleep: Relicense under LGPL.
39780         * modules/nanosleep (License): Change to LGPL.
39781         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
39782         Haible:
39783         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
39784         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
39785         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39786         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
39788         futimens: Relicense under LGPL.
39789         * modules/futimens (License): Change to LGPL.
39790         With permission from Eric Blake:
39791         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39793         fflush: Relicense under LGPL.
39794         * modules/fflush (License): Change to LGPL.
39795         With permission from Eric Blake, Bruno Haible, Jim Meyering:
39796         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39797         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
39798         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
39800         tmpfile: Relicense under LGPL.
39801         * modules/tmpfile (License): Change to LGPL.
39802         With permission from Ben Pfaff:
39803         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
39805         isfinite: Relicense under LGPL.
39806         * modules/isfinite (License): Change to LGPL.
39807         With permission from Ben Pfaff, Bruno Haible:
39808         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
39809         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
39811         acosl..tanl: Relicense under LGPL.
39812         * modules/acosl (License): Change to LGPL.
39813         * modules/asinl (License): Likewise.
39814         * modules/atanl (License): Likewise.
39815         * modules/cosl (License): Likewise.
39816         * modules/expl (License): Likewise.
39817         * modules/logl (License): Likewise.
39818         * modules/sinl (License): Likewise.
39819         * modules/sqrtl (License): Likewise.
39820         * modules/tanl (License): Likewise.
39821         Source code originally from glibc and Paolo Bonzini. Agreements:
39822         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
39823         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
39825 2011-05-05  Bruno Haible  <bruno@clisp.org>
39827         signal: Define sighandler_t.
39828         * lib/signal.in.h (sighandler_t): New type.
39829         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
39830         whether sighandler_t is defined.
39831         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
39832         * modules/signal (Depends-on): Add extensions.
39833         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
39834         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
39835         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
39837 2011-05-05  Eric Blake  <eblake@redhat.com>
39839         maint: remove useless REPLACE_*_H macros
39840         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
39841         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
39842         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
39843         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
39844         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
39845         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
39846         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
39847         * m4/btowc.m4: Update callers.
39848         * m4/dirfd.m4: Likewise.
39849         * m4/duplocale.m4: Likewise.
39850         * m4/fchdir.m4: Likewise.
39851         * m4/fdopendir.m4: Likewise.
39852         * m4/inet_ntop.m4: Likewise.
39853         * m4/inet_pton.m4: Likewise.
39854         * m4/ioctl.m4: Likewise.
39855         * m4/mbrlen.m4: Likewise.
39856         * m4/mbrtowc.m4: Likewise.
39857         * m4/mbsinit.m4: Likewise.
39858         * m4/mbsnrtowcs.m4: Likewise.
39859         * m4/mbsrtowcs.m4: Likewise.
39860         * m4/poll.m4: Likewise.
39861         * m4/setlocale.m4: Likewise.
39862         * m4/wcrtomb.m4: Likewise.
39863         * m4/wcsnrtombs.m4: Likewise.
39864         * m4/wcsrtombs.m4: Likewise.
39865         * m4/wctob.m4: Likewise.
39866         * m4/wcwidth.m4: Likewise.
39867         * modules/posix_spawn: Likewise.
39868         * modules/posix_spawn_file_actions_addclose: Likewise.
39869         * modules/posix_spawn_file_actions_adddup2: Likewise.
39870         * modules/posix_spawn_file_actions_addopen: Likewise.
39871         * modules/posix_spawn_file_actions_destroy: Likewise.
39872         * modules/posix_spawn_file_actions_init: Likewise.
39873         * modules/posix_spawnattr_destroy: Likewise.
39874         * modules/posix_spawnattr_getflags: Likewise.
39875         * modules/posix_spawnattr_getpgroup: Likewise.
39876         * modules/posix_spawnattr_getschedparam: Likewise.
39877         * modules/posix_spawnattr_getschedpolicy: Likewise.
39878         * modules/posix_spawnattr_getsigdefault: Likewise.
39879         * modules/posix_spawnattr_getsigmask: Likewise.
39880         * modules/posix_spawnattr_init: Likewise.
39881         * modules/posix_spawnattr_setflags: Likewise.
39882         * modules/posix_spawnattr_setpgroup: Likewise.
39883         * modules/posix_spawnattr_setschedparam: Likewise.
39884         * modules/posix_spawnattr_setschedpolicy: Likewise.
39885         * modules/posix_spawnattr_setsigdefault: Likewise.
39886         * modules/posix_spawnattr_setsigmask: Likewise.
39887         * modules/posix_spawnp: Likewise.
39889 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
39891         Add option to do-release-commit-and-tag to specify branch.
39892         * build-aux/do-release-commit-and-tag: Add --branch.
39894 2011-05-03  Bruno Haible  <bruno@clisp.org>
39896         Avoid unnecessary compilation units, through conditional dependencies.
39897         * modules/accept (Depends-on): Add conditions to the dependencies.
39898         * modules/acosl (Depends-on): Likewise.
39899         * modules/argz (Depends-on): Likewise.
39900         * modules/asinl (Depends-on): Likewise.
39901         * modules/atanl (Depends-on): Likewise.
39902         * modules/atoll (Depends-on): Likewise.
39903         * modules/bind (Depends-on): Likewise.
39904         * modules/btowc (Depends-on): Likewise.
39905         * modules/canonicalize-lgpl (Depends-on): Likewise.
39906         * modules/ceil (Depends-on): Likewise.
39907         * modules/ceilf (Depends-on): Likewise.
39908         * modules/ceill (Depends-on): Likewise.
39909         * modules/chdir-long (Depends-on): Likewise.
39910         * modules/chown (Depends-on): Likewise.
39911         * modules/close (Depends-on): Likewise.
39912         * modules/connect (Depends-on): Likewise.
39913         * modules/cosl (Depends-on): Likewise.
39914         * modules/dirfd (Depends-on): Likewise.
39915         * modules/dprintf (Depends-on): Likewise.
39916         * modules/dprintf-posix (Depends-on): Likewise.
39917         * modules/error (Depends-on): Likewise.
39918         * modules/euidaccess (Depends-on): Likewise.
39919         * modules/expl (Depends-on): Likewise.
39920         * modules/faccessat (Depends-on): Likewise.
39921         * modules/fchdir (Depends-on): Likewise.
39922         * modules/fclose (Depends-on): Likewise.
39923         * modules/fcntl (Depends-on): Likewise.
39924         * modules/fdopendir (Depends-on): Likewise.
39925         * modules/fflush (Depends-on): Likewise.
39926         * modules/floor (Depends-on): Likewise.
39927         * modules/floorf (Depends-on): Likewise.
39928         * modules/floorl (Depends-on): Likewise.
39929         * modules/fnmatch (Depends-on): Likewise.
39930         * modules/fopen (Depends-on): Likewise.
39931         * modules/fprintf-posix (Depends-on): Likewise.
39932         * modules/frexp (Depends-on): Likewise.
39933         * modules/frexp-nolibm (Depends-on): Likewise.
39934         * modules/frexpl (Depends-on): Likewise.
39935         * modules/frexpl-nolibm (Depends-on): Likewise.
39936         * modules/fseek (Depends-on): Likewise.
39937         * modules/fsusage (Depends-on): Likewise.
39938         * modules/ftell (Depends-on): Likewise.
39939         * modules/ftello (Depends-on): Likewise.
39940         * modules/futimens (Depends-on): Likewise.
39941         * modules/getcwd (Depends-on): Likewise.
39942         * modules/getcwd-lgpl (Depends-on): Likewise.
39943         * modules/getdelim (Depends-on): Likewise.
39944         * modules/getdomainname (Depends-on): Likewise.
39945         * modules/getgroups (Depends-on): Likewise.
39946         * modules/gethostname (Depends-on): Likewise.
39947         * modules/getline (Depends-on): Likewise.
39948         * modules/getlogin_r (Depends-on): Likewise.
39949         * modules/getopt-posix (Depends-on): Likewise.
39950         * modules/getpeername (Depends-on): Likewise.
39951         * modules/getsockname (Depends-on): Likewise.
39952         * modules/getsockopt (Depends-on): Likewise.
39953         * modules/getsubopt (Depends-on): Likewise.
39954         * modules/getusershell (Depends-on): Likewise.
39955         * modules/glob (Depends-on): Likewise.
39956         * modules/grantpt (Depends-on): Likewise.
39957         * modules/iconv_open (Depends-on): Likewise.
39958         * modules/iconv_open-utf (Depends-on): Likewise.
39959         * modules/inet_ntop (Depends-on): Likewise.
39960         * modules/inet_pton (Depends-on): Likewise.
39961         * modules/ioctl (Depends-on): Likewise.
39962         * modules/isapipe (Depends-on): Likewise.
39963         * modules/isfinite (Depends-on): Likewise.
39964         * modules/isinf (Depends-on): Likewise.
39965         * modules/lchown (Depends-on): Likewise.
39966         * modules/ldexpl (Depends-on): Likewise.
39967         * modules/link (Depends-on): Likewise.
39968         * modules/linkat (Depends-on): Likewise.
39969         * modules/listen (Depends-on): Likewise.
39970         * modules/logl (Depends-on): Likewise.
39971         * modules/lstat (Depends-on): Likewise.
39972         * modules/mbrlen (Depends-on): Likewise.
39973         * modules/mbrtowc (Depends-on): Likewise.
39974         * modules/mbsinit (Depends-on): Likewise.
39975         * modules/mbsnrtowcs (Depends-on): Likewise.
39976         * modules/mbsrtowcs (Depends-on): Likewise.
39977         * modules/mbtowc (Depends-on): Likewise.
39978         * modules/memcmp (Depends-on): Likewise.
39979         * modules/mkdir (Depends-on): Likewise.
39980         * modules/mkdtemp (Depends-on): Likewise.
39981         * modules/mkfifo (Depends-on): Likewise.
39982         * modules/mkfifoat (Depends-on): Likewise.
39983         * modules/mknod (Depends-on): Likewise.
39984         * modules/mkostemp (Depends-on): Likewise.
39985         * modules/mkostemps (Depends-on): Likewise.
39986         * modules/mkstemp (Depends-on): Likewise.
39987         * modules/mkstemps (Depends-on): Likewise.
39988         * modules/mktime (Depends-on): Likewise.
39989         * modules/nanosleep (Depends-on): Likewise.
39990         * modules/open (Depends-on): Likewise.
39991         * modules/openat (Depends-on): Likewise.
39992         * modules/perror (Depends-on): Likewise.
39993         * modules/poll (Depends-on): Likewise.
39994         * modules/popen (Depends-on): Likewise.
39995         * modules/posix_spawn (Depends-on): Likewise.
39996         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
39997         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
39998         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
39999         * modules/posix_spawnp (Depends-on): Likewise.
40000         * modules/pread (Depends-on): Likewise.
40001         * modules/printf-posix (Depends-on): Likewise.
40002         * modules/ptsname (Depends-on): Likewise.
40003         * modules/putenv (Depends-on): Likewise.
40004         * modules/pwrite (Depends-on): Likewise.
40005         * modules/readline (Depends-on): Likewise.
40006         * modules/readlink (Depends-on): Likewise.
40007         * modules/readlinkat (Depends-on): Likewise.
40008         * modules/recv (Depends-on): Likewise.
40009         * modules/recvfrom (Depends-on): Likewise.
40010         * modules/regex (Depends-on): Likewise.
40011         * modules/remove (Depends-on): Likewise.
40012         * modules/rename (Depends-on): Likewise.
40013         * modules/renameat (Depends-on): Likewise.
40014         * modules/rmdir (Depends-on): Likewise.
40015         * modules/round (Depends-on): Likewise.
40016         * modules/roundf (Depends-on): Likewise.
40017         * modules/roundl (Depends-on): Likewise.
40018         * modules/rpmatch (Depends-on): Likewise.
40019         * modules/select (Depends-on): Likewise.
40020         * modules/send (Depends-on): Likewise.
40021         * modules/sendto (Depends-on): Likewise.
40022         * modules/setenv (Depends-on): Likewise.
40023         * modules/setlocale (Depends-on): Likewise.
40024         * modules/setsockopt (Depends-on): Likewise.
40025         * modules/shutdown (Depends-on): Likewise.
40026         * modules/sigaction (Depends-on): Likewise.
40027         * modules/signbit (Depends-on): Likewise.
40028         * modules/sigprocmask (Depends-on): Likewise.
40029         * modules/sinl (Depends-on): Likewise.
40030         * modules/sleep (Depends-on): Likewise.
40031         * modules/snprintf (Depends-on): Likewise.
40032         * modules/snprintf-posix (Depends-on): Likewise.
40033         * modules/socket (Depends-on): Likewise.
40034         * modules/sprintf-posix (Depends-on): Likewise.
40035         * modules/sqrtl (Depends-on): Likewise.
40036         * modules/stat (Depends-on): Likewise.
40037         * modules/strchrnul (Depends-on): Likewise.
40038         * modules/strdup-posix (Depends-on): Likewise.
40039         * modules/strerror (Depends-on): Likewise.
40040         * modules/strerror_r-posix (Depends-on): Likewise.
40041         * modules/strndup (Depends-on): Likewise.
40042         * modules/strnlen (Depends-on): Likewise.
40043         * modules/strptime (Depends-on): Likewise.
40044         * modules/strsep (Depends-on): Likewise.
40045         * modules/strsignal (Depends-on): Likewise.
40046         * modules/strstr-simple (Depends-on): Likewise.
40047         * modules/strtod (Depends-on): Likewise.
40048         * modules/strtoimax (Depends-on): Likewise.
40049         * modules/strtok_r (Depends-on): Likewise.
40050         * modules/strtoumax (Depends-on): Likewise.
40051         * modules/symlink (Depends-on): Likewise.
40052         * modules/symlinkat (Depends-on): Likewise.
40053         * modules/tanl (Depends-on): Likewise.
40054         * modules/tcgetsid (Depends-on): Likewise.
40055         * modules/tmpfile (Depends-on): Likewise.
40056         * modules/trunc (Depends-on): Likewise.
40057         * modules/truncf (Depends-on): Likewise.
40058         * modules/truncl (Depends-on): Likewise.
40059         * modules/uname (Depends-on): Likewise.
40060         * modules/unlink (Depends-on): Likewise.
40061         * modules/unlockpt (Depends-on): Likewise.
40062         * modules/unsetenv (Depends-on): Likewise.
40063         * modules/usleep (Depends-on): Likewise.
40064         * modules/utimensat (Depends-on): Likewise.
40065         * modules/vasprintf (Depends-on): Likewise.
40066         * modules/vdprintf (Depends-on): Likewise.
40067         * modules/vdprintf-posix (Depends-on): Likewise.
40068         * modules/vfprintf-posix (Depends-on): Likewise.
40069         * modules/vprintf-posix (Depends-on): Likewise.
40070         * modules/vsnprintf (Depends-on): Likewise.
40071         * modules/vsnprintf-posix (Depends-on): Likewise.
40072         * modules/vsprintf-posix (Depends-on): Likewise.
40073         * modules/wcrtomb (Depends-on): Likewise.
40074         * modules/wcscasecmp (Depends-on): Likewise.
40075         * modules/wcscspn (Depends-on): Likewise.
40076         * modules/wcsdup (Depends-on): Likewise.
40077         * modules/wcsncasecmp (Depends-on): Likewise.
40078         * modules/wcsnrtombs (Depends-on): Likewise.
40079         * modules/wcspbrk (Depends-on): Likewise.
40080         * modules/wcsrtombs (Depends-on): Likewise.
40081         * modules/wcsspn (Depends-on): Likewise.
40082         * modules/wcsstr (Depends-on): Likewise.
40083         * modules/wcstok (Depends-on): Likewise.
40084         * modules/wcswidth (Depends-on): Likewise.
40085         * modules/wctob (Depends-on): Likewise.
40086         * modules/wctomb (Depends-on): Likewise.
40087         * modules/wctype (Depends-on): Likewise.
40088         * modules/wcwidth (Depends-on): Likewise.
40089         * modules/write (Depends-on): Likewise.
40091 2011-05-03  Bruno Haible  <bruno@clisp.org>
40093         Support for conditional dependencies.
40094         * doc/gnulib.texi (Module description): Document the syntax of
40095         conditional dependencies.
40096         * gnulib-tool: New option --conditional-dependencies.
40097         (func_usage): Document it.
40098         (cond_dependencies): New variable.
40099         (func_get_automake_snippet_conditional,
40100         func_get_automake_snippet_unconditional): New functions, extracted from
40101         func_get_automake_snippet.
40102         (func_get_automake_snippet): Use them.
40103         (sed_first_32_chars): New variable.
40104         (func_module_shellfunc_name): New function.
40105         (func_module_shellvar_name): New function.
40106         (func_module_conditional_name): New function.
40107         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
40108         func_cond_module_condition): New functions.
40109         (func_modules_transitive_closure): Add support for conditional
40110         dependencies.
40111         (func_emit_lib_Makefile_am): For a conditional module, enclose the
40112         conditional automake snippet in an automake conditional.
40113         (func_emit_autoconf_snippets): Emit shell functions that contain the
40114         code for conditional modules.
40115         (func_import, func_create_testdir): Update specification.
40117 2011-05-03  Eric Blake  <eblake@redhat.com>
40119         test-getaddrinfo: report error information
40120         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
40122 2011-05-03  Jim Meyering  <meyering@redhat.com>
40124         bootstrap: avoid build failure when $GZIP is set
40125         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
40126         program name.  If defined at all, it is supposed to list gzip options.
40127         Reported by Alan Curry in http://debbugs.gnu.org/8609
40129 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
40131         readme-release: new module with release instructions
40132         * modules/readme-release: New module.
40133         * top/README-release: New file, from coreutils, grep, diffutils.
40134         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40136 2011-05-02  Eric Blake  <eblake@redhat.com>
40138         fflush: also replace fclose when fixing fflush
40139         * modules/fflush (Depends-on): Add fclose.
40140         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
40141         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
40142         memstreams with no backing fd.
40143         * doc/posix-functions/fclose.texi (fclose): Document the use of
40144         fflush module to fix the bug.
40145         * tests/test-fclose.c (main): Relax test when fclose is used in
40146         isolation.
40148         fclose: add some tests
40149         * modules/fclose-tests: New test module.
40150         * tests/test-fclose.c: New file.
40151         * doc/posix-functions/fclose.texi (fclose): Document the bug.
40153         fclose: reduced dependencies
40154         * modules/fclose (Depends-on): Switch from fflush/fseeko to
40155         simpler lseek.
40156         * lib/fclose.c (rpl_fclose): Likewise.
40157         Reported by Simon Josefsson.
40159         exit: drop remaining clients
40160         * modules/argmatch (Depends-on): Replace exit with stdlib.
40161         * modules/copy-file (Depends-on): Likewise.
40162         * modules/execute (Depends-on): Likewise.
40163         * modules/exitfail (Depends-on): Likewise.
40164         * modules/obstack (Depends-on): Likewise.
40165         * modules/pagealign_alloc (Depends-on): Likewise.
40166         * modules/pipe-filter-gi (Depends-on): Likewise.
40167         * modules/pipe-filter-ii (Depends-on): Likewise.
40168         * modules/savewd (Depends-on): Likewise.
40169         * modules/spawn-pipe (Depends-on): Likewise.
40170         * modules/wait-process (Depends-on): Likewise.
40171         * modules/xsetenv (Depends-on): Likewise.
40172         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
40173         * modules/git-merge-changelog (Depends-on): Likewise.
40174         * modules/long-options (Depends-on): Likewise.
40175         * modules/pt_chown (Depends-on): Likewise.
40176         * modules/sysexits (Depends-on): Likewise.
40178         freading: relax license from LGPLv3+ to LGPLv2+
40179         * modules/freading (License): Relax LGPL version.
40181 2011-05-02  Bruno Haible  <bruno@clisp.org>
40183         fchdir: Remove unused dependencies.
40184         * modules/fchdir (Depends-on): Remove include_next.
40186 2011-05-02  Bruno Haible  <bruno@clisp.org>
40188         gnulib-tool: Refactor.
40189         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
40190         from func_emit_autoconf_snippets.
40191         (func_emit_autoconf_snippets): Use it.
40193 2011-05-02  Simon Josefsson  <simon@josefsson.org>
40195         * NEWS: Document removal of 'exit'.
40196         * modules/exit: Remove file.
40198 2011-05-01  Bruno Haible  <bruno@clisp.org>
40200         Update DEPENDENCIES.
40201         * DEPENDENCIES (gettext): Recommend the newest release.
40202         Reported by Simon Josefsson.
40204 2011-05-01  Bruno Haible  <bruno@clisp.org>
40206         gnulib-tool: Reduce code duplication.
40207         * gnulib-tool (func_emit_autoconf_snippets): New function.
40208         (func_import, func_create_testdir): Use it.
40210 2011-04-30  Eric Blake  <eblake@redhat.com>
40212         fclose: don't fail on non-seekable input stream
40213         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
40214         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
40215         since fflush is allowed to fail in that case.
40217 2011-04-30  Bruno Haible  <bruno@clisp.org>
40219         dup3: cleanup
40220         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
40222 2011-04-30  Bruno Haible  <bruno@clisp.org>
40224         netdb: Make it work in C++ mode.
40225         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
40226         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
40227         module.
40228         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
40229         gl_MODULE_INDICATOR_FOR_TESTS.
40230         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
40231         * modules/netdb-c++-tests: New file.
40232         * tests/test-netdb-c++.cc: New file.
40234 2011-04-30  Bruno Haible  <bruno@clisp.org>
40236         New modules 'vfscanf', 'vscanf'.
40237         * modules/vfscanf: New file.
40238         * modules/vscanf: New file.
40239         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
40240         here.
40241         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
40242         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
40244 2011-04-30  Bruno Haible  <bruno@clisp.org>
40246         passfd: Add comments.
40247         * lib/passfd.c: Add comments about platforms.
40249 2011-04-30  Bruno Haible  <bruno@clisp.org>
40251         sys_uio: Make <sys/uio.h> self-contained.
40252         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
40253         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
40255 2011-04-30  Bruno Haible  <bruno@clisp.org>
40257         sys_socket: Ensure 'struct iovec' definition.
40258         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
40259         <sys/socket.h>.
40260         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
40262 2011-04-30  Bruno Haible  <bruno@clisp.org>
40264         sys_uio: Protect definition of 'struct iovec'.
40265         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
40266         it as a C struct.
40268 2011-04-30  Bruno Haible  <bruno@clisp.org>
40270         manywarnings: fix indentation
40271         * m4/manywarnings.m4: Indent by 2 spaces consistently.
40273 2011-04-30  Pádraig Brady  <P@draigBrady.com>
40275         manywarnings: add -Wno-missing-field-initializers if needed.
40276         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
40277         option if it's needed to allow initialization with { 0, }
40279 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
40281         announce-gen: cosmetic improvement
40282         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
40284 2011-04-29  Jim Meyering  <meyering@redhat.com>
40286         vc-list-files: indent with spaces, not TABs
40287         * build-aux/vc-list-files: Convert leading TABs to spaces,
40288         to match the style of most other files in gnulib.
40290         announce-gen: indent with spaces, not TABs
40291         * build-aux/announce-gen: Convert all TABs to spaces, to match
40292         the style of most other files in gnulib.
40294 2011-04-29  Eric Blake  <eblake@redhat.com>
40296         quotearg: avoid uninitialized variable use
40297         * lib/quotearg.c (quoting_options_from_style): Initialize
40298         remaining fields, and ensure that custom styles are only used via
40299         quoting_options rather than quoting_style.
40301 2011-04-29  Jim Meyering  <meyering@redhat.com>
40303         maint.mk: remove unused VC-tag variable
40304         * top/maint.mk (VC-tag): Remove unused variable.
40306 2011-04-29  Bruno Haible  <bruno@clisp.org>
40308         netdb: fix gai_strerror replacements
40309         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
40310         * modules/netdb: Substitute it.
40312 2011-04-29  Jim Meyering  <meyering@redhat.com>
40314         test-getcwd.c: avoid new set-but-not-used warning
40315         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
40316         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
40317         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
40318         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
40320         test-hash.c: avoid a new shadowing warning
40321         * tests/test-hash.c (main): Don't shadow "dup".
40323 2011-04-28  Eric Blake  <eblake@redhat.com>
40325         getaddrinfo: fix gai_strerror signature
40326         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
40327         and work around mingw with UNICODE defined.
40328         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
40329         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
40330         * modules/netdb (Makefile.am): Substitute it.
40331         * lib/netdb.in.h (gai_strerror): Declare replacement.
40332         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
40333         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
40334         the fix.
40336         getsockopt: avoid compiler warning
40337         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
40338         Reported by Matthias Bolte.
40340         tests: drop unused link dependency
40341         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
40342         * modules/dirent-safer-tests (Makefile.am): Likewise.
40343         * modules/fdopendir-tests (Makefile.am): Likewise.
40344         * modules/mkfifoat-tests (Makefile.am): Likewise.
40345         * modules/openat-safer-tests (Makefile.am): Likewise.
40346         * modules/openat-tests (Makefile.am): Likewise.
40347         * modules/readlinkat-tests (Makefile.am): Likewise.
40348         * modules/symlinkat-tests (Makefile.am): Likewise.
40349         * modules/linkat-tests (Makefile.am): Likewise.
40350         (Depends-on): Switch to filenamecat-lgpl.
40351         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
40352         LIBINTL.
40353         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
40354         * tests/test-linkat.c (main): Don't require xalloc.
40356         hash, mgetgroups: drop xalloc dependency
40357         * lib/hash.c (includes): Adjust includes.
40358         * lib/mgetgroups.c (includes): Likewise.
40359         (xgetgroups): Move...
40360         * lib/xgetgroups.c: ...to new file.
40361         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
40362         * modules/xgetgroups: New file, split from...
40363         * modules/mgetgroups: ...here.
40364         (Depends-on): Add xalloc-oversized.
40365         * modules/hash (Depends-on): Likewise.
40366         * modules/hash-tests (Depends-on): Drop xalloc.
40367         (test_hash_LDADD): Drop unused library.
40368         * tests/test-hash.c (main): Break xalloc dependency.
40369         (includes): Drop unused include.
40371         xalloc-oversized: new module
40372         * modules/xalloc-oversized: New module.
40373         * modules/xalloc (Depends-on): Add it.
40374         * lib/xalloc.h (xalloc_oversized): Move...
40375         * lib/xalloc-oversized.h: ...into new file.
40377         utimecmp: drop dependency on xmalloc
40378         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
40379         due to memory pressure.
40380         * modules/utimecmp (Depends-on): Drop xalloc.
40382 2011-04-27  Eric Blake  <eblake@redhat.com>
40384         getcwd: fix mingw bugs
40385         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
40386         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
40387         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
40389 2011-04-27  Bruno Haible  <bruno@clisp.org>
40391         mkstemps: Ensure declaration on MacOS X 10.5.
40392         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
40393         * doc/glibc-functions/mkstemps.texi: Document header file problem on
40394         MacOS X.
40396 2011-04-27  Bruno Haible  <bruno@clisp.org>
40398         mkstemp: More documentation.
40399         * doc/posix-functions/mkstemp.texi: Document header file problem on
40400         MacOS X.
40402 2011-04-27  Bruno Haible  <bruno@clisp.org>
40404         mkstemp: Tweak configure message when cross-compiling.
40405         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
40406         result as a guess.
40408 2011-04-27  Bruno Haible  <bruno@clisp.org>
40410         clean-temp: Clarify what it does.
40411         * lib/clean-temp.h: Add more comments.
40412         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
40413         module.
40414         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
40415         * doc/glibc-functions/mkstemps.texi: Likewise.
40416         * doc/glibc-functions/mkostemps.texi: Likewise.
40418 2011-04-27  Eric Blake  <eblake@redhat.com>
40420         fchdir: avoid extra chdir and fix test
40421         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
40422         getcwd-lgpl.
40423         * lib/fchdir.c (get_name): Any absolute name will do; it does not
40424         have to be canonical.
40425         (canonicalize_file_name): Drop unused macro.
40426         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
40428         filenamecat-lgpl: fix licence
40429         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
40430         when it was first created.
40432         linkat, renameat: add missing dependency
40433         * modules/linkat (Depends-on): Require getcwd-lgpl.
40434         * modules/renameat (Depends-on): Likewise.
40436         tests: reduce dependencies
40437         * tests/test-linkat.c (main): Use lighter-weight getcwd.
40438         * tests/test-renameat.c (main): Likewise.
40439         * modules/linkat-tests (Depends-on): Relax dependency.
40440         * modules/renameat-tests (Depends-on): Likewise.
40441         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
40442         dependency explicit.
40444         save-cwd: reduce default dependency
40445         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
40446         * lib/save-cwd.c: Update comments.
40447         * NEWS: Document the semantic change.
40449         getcwd: enhance tests
40450         * tests/test-getcwd-lgpl.c: New file, taken from...
40451         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
40452         repeat long path stress tests from m4 probe.
40453         * modules/getcwd-lgpl-tests: New module.
40454         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
40455         * m4/getcwd-abort-bug.m4: Update comment.
40456         * m4/getcwd-path-max.m4: Likewise.
40458         getcwd-lgpl: new module
40459         * modules/getcwd-lgpl: New module.
40460         * lib/getcwd-lgpl.c: New file.
40461         * doc/posix-functions/getcwd.texi (getcwd): Document it.
40462         * MODULES.html.sh (lacking POSIX:2008): Likewise.
40463         * modules/getcwd (configure.ac): Set C witness.
40464         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
40466         getcwd: tweak comments
40467         * m4/getcwd-abort-bug.m4: Fix comments.
40468         * m4/getcwd-path-max.m4: Likewise.
40469         * m4/getcwd.m4: Likewise.
40471 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
40472         and Eric Blake  <eblake@redhat.com>
40474         mkstemp: replace if system version uses wrong permissions
40475         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
40476         read/write mode bits set in file created by mkstemp.
40477         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
40479 2011-04-27  Eric Blake  <eblake@redhat.com>
40481         passfd: avoid compiler warning
40482         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
40483         Reported by Laine Stump.
40485 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
40487         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
40488         required by the NetBSD (and perhaps other 4.4BSD derived) join.
40490 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
40491         and Eric Blake  <eblake@redhat.com>
40493         mkstemp: mention clean-temp module
40494         * lib/mkstemp.c: Add comment.
40495         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
40497 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
40499         inttypes: also provide default values for 32-bit tests
40500         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
40501         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
40503 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
40505         strtoumax: remove dependency on strtoimax
40506         This is like the strtoull change of yesterday.
40507         * modules/strtoumax (Files): Add lib/strtoimax.c.
40508         (Depends-on): Remove strtoimax and add verify.
40510         inttypes-incomplete: new module
40511         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
40512         all but the PRI* and SCN* parts of gl_INTTYPES_H.
40513         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
40514         of gl_INTTYPES_H.
40515         (gl_INTTYPES_H): Rewrite in terms of these new macros.
40516         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
40517         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
40518         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
40519         * modules/strtoumax, modules/xstrtol (Depends-on):
40520         Depend on inttypes-incomplete, not inttypes.
40521         * modules/inttypes-incomplete: New module, containing the contents
40522         of the old modules/inttypes module, except that the Files: section
40523         omits m4/inttypes-pri.m4, and the configure.ac section invokes
40524         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
40525         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
40526         (Depends-on): Depend only on inttypes-incomplete.
40527         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
40529         inttypes: omit now-redundant strtoimax and strtoumax work
40530         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
40531         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
40533         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
40534         This supports apps that need pointers to strtoimax and strtoumax,
40535         and ports to HP-UX 11.00 64.bit, which has macros that expand to
40536         nonexistent functions.  See
40537         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
40538         et seq.
40539         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
40540         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
40541         a macro.
40542         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
40544 2011-04-25  Simon Josefsson  <simon@josefsson.org>
40546         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
40548 2011-04-25  Bruno Haible  <bruno@clisp.org>
40550         strtol, strtoul: Mark modules as obsolete.
40551         * modules/strtol (Status, Notice): New sections.
40552         * modules/strtoul (Status, Notice): New sections.
40554 2011-04-25  Bruno Haible  <bruno@clisp.org>
40556         strtod: Remove check for strtod, unless supporting old platforms.
40557         * modules/strtod-obsolete: New file.
40558         * m4/strtod-obsolete.m4: New file.
40559         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
40560         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
40561         * modules/strtod (Depends-on): Add strtod-obsolete.
40562         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
40564 2011-04-25  Bruno Haible  <bruno@clisp.org>
40566         strcase: Make module obsolete.
40567         * modules/strcase (Status, Notice): New sections.
40569 2011-04-25  Bruno Haible  <bruno@clisp.org>
40571         dup2: Remove check for dup2, unless supporting old obsolete platforms.
40572         * modules/dup2-obsolete: New file.
40573         * m4/dup2-obsolete.m4: New file.
40574         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
40575         gl_FUNC_DUP2_OBSOLETE is not also defined.
40576         * modules/dup2 (Depends-on): Add dup2-obsolete.
40577         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
40579 2011-04-25  Bruno Haible  <bruno@clisp.org>
40581         strnlen: Avoid memchr related link error on old obsolete platforms.
40582         * modules/memchr-obsolete: New file.
40583         * m4/memchr-obsolete.m4: New file.
40584         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
40585         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
40586         * modules/memchr (Depends-on): Add memchr-obsolete.
40587         * modules/strnlen (Depends-on): Likewise.
40588         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
40590 2011-04-25  Jim Meyering  <meyering@redhat.com>
40592         maint.mk: makefile_at_at_check extend and clean up
40593         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
40594         in addition to */Makefile.am.
40595         Exempt legitimate uses of @VAR@ notation, e.g.,
40596         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
40597         Remove obsolete coreutils-specific comment.
40598         Prompted by discussion here:
40599         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
40601 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
40603         strtoul: remove dependency on strtol
40604         This is so that 'configure' need not check for strtol merely because
40605         the application needs strtoul.
40606         * modules/strtoul (Files): Add lib/strtol.c.
40607         (Depends-on): Remove strtol.
40609         strtoull: remove dependency on strtoul
40610         This is like the strtoll change.
40611         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
40612         (Depends-on): Remove strtoul.
40614         strtoll: remove dependency on strtol
40615         This is so that 'configure' need not check for strtol merely because
40616         the application needs strtoll.
40617         * modules/strtoll (Files): Add lib/strtol.c.
40618         (Depends-on): Remove strtol.
40620 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40622         inttypes: Move some configure check to module 'imaxdiv'.
40623         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
40624         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
40625         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
40627 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40629         inttypes: Move some configure check to module 'imaxabs'.
40630         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
40631         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
40632         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
40634 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40636         inttypes: Remove configure tests that are not needed since 2009-12-31.
40637         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
40638         gl_cv_header_working_inttypes_h.
40640 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40642         * modules/strnlen (Depends-on): Remove memchr.
40643         The strnlen implementation doesn't need the memchr module's fixes; see
40644         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
40646         strtol: remove dependency on wchar
40647         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
40648         * modules/strtol (Depends-on): Remove wchar.
40650 2011-04-21  Eric Blake  <eblake@redhat.com>
40652         passfd: fix test regression on Linux
40653         * modules/passfd-tests (configure.ac): Correct socketpair check.
40655         passfd: speed up configure and drop unused code
40656         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
40657         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
40658         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
40659         Instead of probing at configure for unix_scm_rights_bsd44_way,
40660         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
40661         check to a struct member probe.
40662         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
40663         (sendfd, recvfd): Update preprocessor checks.
40664         * modules/passfd (Files): Reflect rename, and drop unused file.
40665         (Depends-on): Drop unused dependency.
40667         passfd: allow compilation on mingw
40668         * modules/sys_socket (Depends-on): Add sys_uio.
40669         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
40670         iovec and a minimal struct msghdr.
40671         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
40672         * tests/test-sys_socket.c (main): Enhance test.
40673         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
40674         guaranteed to provide what we need.
40675         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
40676         * modules/passfd-tests (Depends-on): Add sys_wait.
40677         * tests/test-passfd.c (main): Skip test on mingw, for now.
40678         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
40679         partial 'struct msghdr' implementation.
40681         sys_uio: new module
40682         * modules/sys_uio: New module.
40683         * modules/sys_uio-tests: Likewise.
40684         * lib/sys_uio.in.h: New file.
40685         * m4/sys_uio_h.m4: Likewise.
40686         * tests/test-sys_uio.c: Likewise.
40687         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
40688         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
40690 2011-04-20  Jim Meyering  <meyering@redhat.com>
40692         useless-if-before-free: avoid false-positive
40693         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
40694         disjunct so that it too requires a terminating ";".  Without that,
40695         this script would identify as useless one statement from gcc that
40696         was not:
40697           if (aligned_ptr)
40698             free (((void **) aligned_ptr) [-1]);
40700 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
40702         doc: update users.txt.
40703         * users.txt: Add barcode.
40705 2011-04-19  Bruno Haible  <bruno@clisp.org>
40707         ioctl: Remove link dependency on native Windows.
40708         * lib/fd-hook.h: Renamed from lib/close-hook.h.
40709         (gl_close_fn, gl_ioctl_fn): New types.
40710         (struct fd_hook): Renamed from struct close_hook. Change type of
40711         private_close_fn field. Add private_ioctl_fn field.
40712         (close_hook_fn): Add parameter for primary close method.
40713         (execute_close_hooks, execute_all_close_hooks): Likewise.
40714         (ioctl_hook_fn): New type.
40715         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
40716         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
40717         argument.
40718         (unregister_fd_hook): Renamed from unregister_close_hook.
40719         * lib/fd-hook.c: Renamed from lib/close-hook.c.
40720         Don't include <unistd.h>.
40721         (close): Remove undef.
40722         (anchor): Update.
40723         (execute_close_hooks): Add argument for primary close method.
40724         (execute_all_close_hooks): Likewise.
40725         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
40726         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
40727         argument. Allow each argument to be NULL.
40728         (unregister_fd_hook): Renamed from unregister_close_hook.
40729         * lib/close.c (rpl_close): Pass 'close' function pointer to
40730         execute_all_close_hooks.
40731         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
40732         (primary_ioctl): New function.
40733         (ioctl): Don't call ioctlsocket here. Instead, call
40734         execute_all_ioctl_hooks.
40735         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
40736         close method.
40737         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
40738         (fd_sockets_hook): Renamed from close_sockets_hook.
40739         (gl_sockets_startup, gl_sockets_cleanup): Update.
40740         * modules/fd-hook: Renamed from modules/close-hook. Update.
40741         * modules/close (Depends-on): Add fd-hook, remove close-hook.
40742         * modules/sockets (Depends-on): Likewise.
40743         * modules/ioctl (Depends-on): Add fd-hook.
40744         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
40745         GNULIB_SOCKET.
40747 2011-04-19  Bruno Haible  <bruno@clisp.org>
40749         Move the support of O_NONBLOCK in open() to the 'open' module.
40750         * modules/nonblocking (Depends-on): Remove 'open'.
40751         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
40752         gl_cv_have_open_O_NONBLOCK.
40753         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
40754         O_NONBLOCK support.
40755         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
40757 2011-04-17  Bruno Haible  <bruno@clisp.org>
40759         pipe2: Simplify code.
40760         * lib/pipe2.c (pipe2): Reduce code duplication.
40762 2011-04-17  Bruno Haible  <bruno@clisp.org>
40764         nonblocking: Add comment.
40765         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
40767 2011-04-17  Bruno Haible  <bruno@clisp.org>
40769         nonblocking: Add tests for sockets.
40770         * tests/test-nonblocking-socket.sh: New file.
40771         * tests/test-nonblocking-socket-main.c: New file.
40772         * tests/test-nonblocking-socket-child.c: New file.
40773         * tests/test-nonblocking-socket.h: New file.
40774         * tests/socket-server.h: New file.
40775         * tests/socket-client.h: New file.
40776         * modules/nonblocking-socket-tests: New file.
40777         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
40779 2011-04-17  Bruno Haible  <bruno@clisp.org>
40781         nonblocking: Add tests for pipes.
40782         * tests/test-nonblocking-pipe.sh: New file.
40783         * tests/test-nonblocking-pipe-main.c: New file.
40784         * tests/test-nonblocking-pipe-child.c: New file.
40785         * tests/test-nonblocking-pipe.h: New file.
40786         * tests/test-nonblocking-writer.h: New file.
40787         * tests/test-nonblocking-reader.h: New file.
40788         * tests/test-nonblocking-misc.h: New file.
40789         * modules/nonblocking-pipe-tests: New file.
40790         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
40792 2011-04-16  Bruno Haible  <bruno@clisp.org>
40794         gettext: Clarify the needed programmer actions.
40795         * modules/gettext (Notice): New field.
40796         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
40798 2011-04-16  Bruno Haible  <bruno@clisp.org>
40800         strchrnul: Tweak last commit.
40801         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
40802         bug.
40803         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
40804         as in _GL_FUNCDECL_SYS.
40805         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
40806         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
40808 2011-04-15  Eric Blake  <eblake@redhat.com>
40810         strchrnul: work around cygwin bug
40811         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
40812         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
40813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
40814         * modules/string (Makefile.am): Substitute it.
40815         * lib/string.in.h (strchrnul): Use it.
40817 2011-04-15  Bruno Haible  <bruno@clisp.org>
40819         Don't require lib/stdio-write.c when only module 'stdio' is used.
40820         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
40821         invocation.
40822         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
40824 2011-04-14  Bruno Haible  <bruno@clisp.org>
40826         Support non-blocking pipe I/O in read() on native Windows.
40827         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
40828         (read): New declaration.
40829         * lib/read.c: New file.
40830         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
40831         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
40832         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
40833         vscanf): New declarations.
40834         * lib/stdio-read.c: New file.
40835         * m4/read.m4: New file.
40836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
40837         REPLACE_READ.
40838         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
40839         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
40840         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
40841         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
40842         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
40843         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
40844         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
40845         * modules/read: New file.
40846         * modules/nonblocking (Files): Add lib/stdio-read.c.
40847         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
40848         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
40849         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
40850         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
40851         * modules/pread (Depends-on): Add read.
40852         * modules/safe-read (Depends-on): Likewise.
40853         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
40854         gets, scanf, vfscanf, vscanf): Verify signatures.
40855         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
40856         problem with non-blocking pipes.
40857         * doc/posix-functions/fgetc.texi: Likewise.
40858         * doc/posix-functions/fgets.texi: Likewise.
40859         * doc/posix-functions/fread.texi: Likewise.
40860         * doc/posix-functions/fscanf.texi: Likewise.
40861         * doc/posix-functions/getc.texi: Likewise.
40862         * doc/posix-functions/getchar.texi: Likewise.
40863         * doc/posix-functions/gets.texi: Likewise.
40864         * doc/posix-functions/scanf.texi: Likewise.
40865         * doc/posix-functions/vfscanf.texi: Likewise.
40866         * doc/posix-functions/vscanf.texi: Likewise.
40868 2011-04-14  Bruno Haible  <bruno@clisp.org>
40870         Support non-blocking pipe I/O in write() on native Windows.
40871         * lib/write.c (rpl_write): Split a write request that failed merely
40872         because the byte count was larger than the pipe buffer's size.
40873         * doc/posix-functions/write.texi: Mention the problem with large byte
40874         counts.
40876 2011-04-14  Bruno Haible  <bruno@clisp.org>
40878         wchar: Ensure that wchar_t gets defined on uClibc.
40879         * lib/wchar.in.h: On uClibc, include <stddef.h>.
40880         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
40882 2011-04-13  Bruno Haible  <bruno@clisp.org>
40884         safe-write, full-read: Avoid unnecessary compilation units.
40885         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
40886         (Depends-on): Remove safe-read. Add ssize_t.
40887         * modules/full-read (Files): Add lib/full-write.c.
40888         (Depends-on): Add full-write.
40890 2011-04-13  Bruno Haible  <bruno@clisp.org>
40892         Support non-blocking pipe I/O and SIGPIPE in pwrite().
40893         * modules/pwrite (Depends-on): Add 'write'.
40895 2011-04-13  Bruno Haible  <bruno@clisp.org>
40897         Support non-blocking pipe I/O in write() on native Windows.
40898         * lib/unistd.in.h (write): Enable replacement also if
40899         GNULIB_UNISTD_H_NONBLOCKING is 1.
40900         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
40901         (rpl_write): When failing to write on a non-blocking pipe, change
40902         errno from ENOSPC to EAGAIN.
40903         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
40904         putchar, puts, vfprintf, vprintf): Enable replacement also if
40905         GNULIB_STDIO_H_NONBLOCKING is 1.
40906         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
40907         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
40908         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
40909         CALL_WITH_SIGPIPE_EMULATION.
40910         (CALL_WITH_SIGPIPE_EMULATION): Use them.
40911         * m4/nonblocking.m4: New file.
40912         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
40913         for non-blocking I/O support.
40914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40915         GNULIB_UNISTD_H_NONBLOCKING.
40916         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
40917         required for non-blocking I/O support.
40918         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
40919         * modules/nonblocking (Files): Add m4/nonblocking.m4,
40920         lib/stdio-write.c, m4/asm-underscore.m4.
40921         (Depends-on): Add stdio, unistd.
40922         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
40923         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
40924         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
40925         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
40926         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
40927         problem with non-blocking pipes.
40928         * doc/posix-functions/fputc.texi: Likewise.
40929         * doc/posix-functions/fputs.texi: Likewise.
40930         * doc/posix-functions/fwrite.texi: Likewise.
40931         * doc/posix-functions/printf.texi: Likewise.
40932         * doc/posix-functions/putc.texi: Likewise.
40933         * doc/posix-functions/putchar.texi: Likewise.
40934         * doc/posix-functions/puts.texi: Likewise.
40935         * doc/posix-functions/vfprintf.texi: Likewise.
40936         * doc/posix-functions/vprintf.texi: Likewise.
40937         * doc/posix-functions/write.texi: Likewise.
40939 2011-04-10  Jim Meyering  <meyering@redhat.com>
40941         maint.mk: prohibit doubled words
40942         Detect them also when they're separated by a newline.
40943         There are 3 ways to customize it:
40944           - disable the test on a per file basis, as usual with rules using
40945             $(VC_LIST_EXCEPT)
40946           - replace the default doubled-word-selecting regexp (affects all files)
40947           - ignore a particular file-vs-doubled-word match
40948         I nearly used that last one to ignore the "is is" match in
40949         coreutils' NEWS file, since the text was "ls -is is ..."
40950         To do that, I would have added this line to cfg.mk:
40951           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
40952         but it would have ignored any "is is" match in NEWS.
40953         Low probability, but still...
40954         Instead, I changed the text, slightly:
40955           -  ls -is is now consistent with ls -lis in ignoring values returned
40956           +  "ls -is" is now consistent with ls -lis in ignoring values returned
40957         * top/maint.mk (prohibit_double_word_RE_): Provide default.
40958         (prohibit_doubled_word_): Define.
40959         (sc_prohibit_doubled_word): New rule.
40960         (sc_prohibit_the_the): Remove.  Subsumed by the above.
40962 2011-04-10  Jim Meyering  <meyering@redhat.com>
40964         maint: fix doubled-word typo in comment
40965         * m4/gethostname.m4: s/is is/it is/
40966         * m4/getdomainname.m4: Likewise.
40968 2011-04-10  Jim Meyering  <meyering@redhat.com>
40970         maint: remove doubled word: s/it it/it/
40971         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
40973 2011-04-10  Jim Meyering  <meyering@redhat.com>
40975         maint.mk: remove useless semicolon and backslash
40976         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
40977         semicolon and backslash.
40979 2011-04-10  Bruno Haible  <bruno@clisp.org>
40981         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
40982         * modules/stdint-tests (Depends-on): Add wchar.
40984 2011-04-10  Jim Meyering  <meyering@redhat.com>
40986         maint: remove doubled words in comments, e.g., s/a a/a/
40987         * lib/strptime.c (day_of_the_week): s/the the/the/
40988         * tests/test-chown.h (test_chown): s/a a/a/
40990         test-chown.h: correct a cast
40991         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
40992         when the destination is a stat.st_gid.
40994 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
40996         getaddrinfo: Fix test for sa_len member.
40997         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
40998         include <sys/types.h> before <sys/socket.h>.
41000 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
41002         maint: change "can not" to "cannot"
41003         * doc/posix-functions/iconv.texi (iconv): This one crossed line
41004         boundaries.
41006 2011-04-09  Jim Meyering  <meyering@redhat.com>
41008         maint: change "a a" to "a"
41009         * tests/test-lchown.h (test_lchown): s/a a/a/
41011         maint.mk: prohibit \<the the\>
41012         * top/maint.mk (sc_prohibit_the_the): New rule.
41014         maint: fix "the the" in comment
41015         * lib/count-one-bits.h: s/the the/the/
41017         maint: change "can not" to "cannot"
41018         But do not change the occurrences in maintain.texi or in
41019         build-aux/po/Makefile.in.in, which I presume comes from gettext.
41020         * doc/gnulib-tool.texi: s/can not/cannot/
41021         * doc/posix-functions/accept.texi (accept): Likewise.
41022         * doc/posix-functions/socket.texi (socket): Likewise.
41023         * lib/mbrtowc.c: Likewise.
41025         maint.mk: prohibit use of "can not"
41026         * top/maint.mk (sc_prohibit_can_not): New rule.
41027         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
41029 2011-04-09  Bruno Haible  <bruno@clisp.org>
41031         careadlinkat: Guard against misuse of careadlinkatcwd.
41032         * lib/careadlinkat.c: Include <stdlib.h>.
41033         (careadlinkatcwd): Check that the fd argument is as expected.
41035 2011-04-09  Bruno Haible  <bruno@clisp.org>
41037         careadlinkat: Use common coding style.
41038         * lib/careadlinkat.c: Move gnulib includes after system includes.
41040 2011-04-09  Bruno Haible  <bruno@clisp.org>
41042         careadlinkat: Clarify specification.
41043         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
41044         (careadlinkatcwd): Add comment.
41045         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
41047 2011-04-09  Bruno Haible  <bruno@clisp.org>
41049         areadlinkat: Avoid link error on many platforms.
41050         * modules/areadlinkat (Depends-on): Add areadlink.
41052 2011-04-09  Bruno Haible  <bruno@clisp.org>
41054         allocator, careadlinkat: Fix double-inclusion guard.
41055         * lib/allocator.h: Fix double-inclusion guard.
41056         * lib/careadlinkat.h: Likewise.
41058 2011-04-09  Bruno Haible  <bruno@clisp.org>
41060         relocatable-prog-wrapper: Update after module 'areadlink' changed.
41061         * lib/relocwrapper.c: Update dependencies hierarchy.
41062         * build-aux/install-reloc: Update list of files to be compiled.
41063         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
41064         lib/allocator.[hc].
41066 2011-04-08  Eric Blake  <eblake@redhat.com>
41068         strftime: silence gnulib-tool warning
41069         * modules/strftime-tests (Depends-on): Drop automatic dependency.
41071 2011-04-08  Bruno Haible  <bruno@clisp.org>
41073         verify: Fix syntax error with GCC 4.6 in C++ mode.
41074         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
41075         (HAVE_STATIC_ASSERT): New macro.
41076         (verify_true, verify): Use 'static_assert' if it is supported and
41077         '_Static_assert' is not supported.
41079 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
41081         allocator: New module.
41082         * modules/allocator, lib/allocator.c: New files.
41083         * lib/allocator.h (stdlib_allocator): New decl.
41084         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
41085         Remove.  Do not include <stdlib.h>.
41086         (careadlinkat): Use stdlib_allocator instead of rolling our own.
41087         * modules/careadlinkat (Files): Remove lib/allocator.h.
41088         (Depends-on): Add allocator.
41090         stdlib: let modules use system malloc, realloc
41091         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
41092         if !_GL_USE_STDLIB_ALLOC.
41093         (malloc, realloc): Limit this change to a smaller scope.
41095         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
41096         (malloc, realloc): Don't #undef; no longer needed.
41097         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41098         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41099         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
41100         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41101         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41102         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41103         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41104         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
41106         careadlinkat: rename members to avoid problem
41107         * lib/allocator.h (struct allocator): Rename members from
41108         malloc/realloc to allocate/reallocate, to avoid problems if malloc
41109         and realloc are #define'd.  Reported by Eric Blake in
41110         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
41111         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
41113 2011-04-08  Eric Blake  <eblake@redhat.com>
41115         nonblocking: reduce dependency
41116         * tests/test-nonblocking.c: Only test sockets when in use.
41117         * modules/nonblocking-tests (Depends-on): Drop socket.
41118         (Makefile.am): Link even if sockets are not present.
41119         * modules/pipe2-tests (Makefile.am): Likewise.
41120         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
41122         pipe2: fix O_NONBLOCK support on mingw
41123         * modules/pipe2 (Depends-on): Add nonblocking.
41124         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
41125         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
41126         * tests/test-nonblocking.c (main): Likewise.
41127         * modules/pipe2-tests (Makefile.am): Avoid link failure.
41129         fcntl-h: fix O_ACCMODE on cygwin
41130         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
41131         * lib/fcntl.in.h (O_ACCMODE): Fix it.
41133         pipe-filter: drop O_NONBLOCK workarounds
41134         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
41135         * modules/pipe-filter-ii (Depends-on): Likewise.
41136         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
41138         nonblocking: provide O_NONBLOCK for mingw
41139         * modules/nonblocking (Depends-on): Add open.
41140         (configure.ac): Set new witness macro.
41141         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
41142         * modules/fcntl-h (Makefile.am): Substitute it.
41143         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
41144         nonblocking module is in use.
41145         * lib/nonblocking.c: Adjust portability test.
41146         * lib/open.c (open): Don't let native open see gnulib flag.
41147         * tests/test-fcntl-h.c (main): Enhance test.
41148         * tests/test-open.h (test_open): Likewise.
41149         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
41151         careadlinkat: fix compilation error on mingw
41152         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
41153         within struct allocator.
41155 2011-04-06  Eric Blake  <eblake@redhat.com>
41157         binary-io: relicense under LGPLv2+
41158         * modules/binary-io (License): Relax to LGPLv2+.
41159         Requested for libvirt, and required by pipe2.
41161 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
41163         verify: use _Static_assert if available
41164         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
41165         (verify_true, verify): Use it if available.  This generates better
41166         diagnostics with GCC 4.6.0 and later.
41168 2011-04-05  Bruno Haible  <bruno@clisp.org>
41170         Remove leftover generated .h files after config.status changed.
41172         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
41173         GL_GENERATE_ALLOCA_H.
41174         * modules/alloca-opt (Makefile.am): Remove alloca.h if
41175         GL_GENERATE_ALLOCA_H evaluates to false.
41177         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
41178         GL_GENERATE_ARGZ_H.
41179         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
41180         evaluates to false.
41182         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
41183         GL_GENERATE_BYTESWAP_H.
41184         * modules/byteswap (Makefile.am): Remove byteswap.h if
41185         GL_GENERATE_BYTESWAP_H evaluates to false.
41187         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
41188         GL_GENERATE_ERRNO_H.
41189         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
41190         evaluates to false.
41192         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
41193         GL_GENERATE_FLOAT_H.
41194         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
41195         evaluates to false.
41197         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
41198         GL_GENERATE_FNMATCH_H.
41199         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
41200         GL_GENERATE_FNMATCH_H evaluates to false.
41202         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
41203         GL_GENERATE_GLOB_H.
41204         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
41205         evaluates to false.
41207         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
41208         automake conditional GL_GENERATE_ICONV_H.
41209         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
41210         evaluates to false.
41212         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
41213         GL_GENERATE_NETINET_IN_H.
41214         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
41215         GL_GENERATE_NETINET_IN_H evaluates to false.
41217         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
41218         conditional GL_GENERATE_PTHREAD_H.
41219         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
41220         * modules/pthread (Makefile.am): Remove pthread.h if
41221         GL_GENERATE_PTHREAD_H evaluates to false.
41223         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
41224         GL_GENERATE_SCHED_H.
41225         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
41226         evaluates to false.
41228         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
41229         conditional GL_GENERATE_SELINUX_CONTEXT_H.
41230         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
41231         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
41233         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
41234         GL_GENERATE_STDARG_H.
41235         * modules/stdarg (Makefile.am): Remove stdarg.h if
41236         GL_GENERATE_STDARG_H evaluates to false.
41238         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
41239         GL_GENERATE_STDBOOL_H.
41240         * modules/stdbool (Makefile.am): Remove stdbool.h if
41241         GL_GENERATE_STDBOOL_H evaluates to false.
41243         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
41244         conditional GL_GENERATE_STDDEF_H.
41245         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
41246         * modules/stddef (Makefile.am): Remove stddef.h if
41247         GL_GENERATE_STDDEF_H evaluates to false.
41249         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
41250         GL_GENERATE_STDINT_H.
41251         * modules/stdint (Makefile.am): Remove stdint.h if
41252         GL_GENERATE_STDINT_H evaluates to false.
41254         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
41255         GL_GENERATE_SYSEXITS_H.
41256         * modules/sysexits (Makefile.am): Remove sysexits.h if
41257         GL_GENERATE_SYSEXITS_H evaluates to false.
41259         Reported by Karl Berry and Ralf Wildenhues.
41261 2011-04-05  Bruno Haible  <bruno@clisp.org>
41263         Ensure to rebuild generated .h files when config.status has changed.
41264         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
41265         config.status.
41266         * modules/ctype (Makefile.am): Likewise.
41267         * modules/dirent (Makefile.am): Likewise.
41268         * modules/errno (Makefile.am): Likewise.
41269         * modules/fcntl-h (Makefile.am): Likewise.
41270         * modules/float (Makefile.am): Likewise.
41271         * modules/getopt-posix (Makefile.am): Likewise.
41272         * modules/glob (Makefile.am): Likewise.
41273         * modules/iconv-h (Makefile.am): Likewise.
41274         * modules/inttypes (Makefile.am): Likewise.
41275         * modules/langinfo (Makefile.am): Likewise.
41276         * modules/locale (Makefile.am): Likewise.
41277         * modules/math (Makefile.am): Likewise.
41278         * modules/netdb (Makefile.am): Likewise.
41279         * modules/netinet_in (Makefile.am): Likewise.
41280         * modules/poll-h (Makefile.am): Likewise.
41281         * modules/pthread (Makefile.am): Likewise.
41282         * modules/pty (Makefile.am): Likewise.
41283         * modules/sched (Makefile.am): Likewise.
41284         * modules/search (Makefile.am): Likewise.
41285         * modules/selinux-h (Makefile.am): Likewise.
41286         * modules/signal (Makefile.am): Likewise.
41287         * modules/spawn (Makefile.am): Likewise.
41288         * modules/stdarg (Makefile.am): Likewise.
41289         * modules/stdbool (Makefile.am): Likewise.
41290         * modules/stddef (Makefile.am): Likewise.
41291         * modules/stdint (Makefile.am): Likewise.
41292         * modules/stdio (Makefile.am): Likewise.
41293         * modules/stdlib (Makefile.am): Likewise.
41294         * modules/string (Makefile.am): Likewise.
41295         * modules/strings (Makefile.am): Likewise.
41296         * modules/sys_file (Makefile.am): Likewise.
41297         * modules/sys_ioctl (Makefile.am): Likewise.
41298         * modules/sys_select (Makefile.am): Likewise.
41299         * modules/sys_socket (Makefile.am): Likewise.
41300         * modules/sys_stat (Makefile.am): Likewise.
41301         * modules/sys_time (Makefile.am): Likewise.
41302         * modules/sys_times (Makefile.am): Likewise.
41303         * modules/sys_utsname (Makefile.am): Likewise.
41304         * modules/sys_wait (Makefile.am): Likewise.
41305         * modules/sysexits (Makefile.am): Likewise.
41306         * modules/termios (Makefile.am): Likewise.
41307         * modules/time (Makefile.am): Likewise.
41308         * modules/unistd (Makefile.am): Likewise.
41309         * modules/wchar (Makefile.am): Likewise.
41310         * modules/wctype-h (Makefile.am): Likewise.
41311         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
41313 2011-04-05  Bruno Haible  <bruno@clisp.org>
41315         pipe2: Relicense under LGPLv2+.
41316         * modules/pipe2 (License): Change to LGPLv2+.
41317         Requested by Eric Blake, for libvirt.
41319 2011-04-05  Bruce Korb  <bkorb@gnu.org>
41321         bootstrap: compute gnulib_extra_files after updating build_aux
41322         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
41323         change build_aux or also supply gnulib_extra_files.  Handle correctly.
41325 2011-04-05  Eric Blake  <eblake@redhat.com>
41327         bootstrap: preserve git whitelist item sorting
41328         * build-aux/bootstrap (sort_patterns): New function.
41329         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
41331 2011-04-05  Simon Josefsson  <simon@josefsson.org>
41333         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
41334         sc_space_tab check.
41336 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
41338         areadlink, areadlinkat: rewrite in terms of careadlinkat
41339         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
41340         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
41341         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
41342         (malloc, realloc): Remove #undefs.
41343         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
41344         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
41345         readlink, ssize_t, stdint, unistd.
41346         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
41347         areadlink, stdint.
41349         careadlinkat: new module
41350         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
41351         * modules/careadlinkat: New files, written by me with
41352         a review and feedback from Ben Pfaff in
41353         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
41355 2011-04-01  Bruno Haible  <bruno@clisp.org>
41357         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
41358         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
41359         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
41360         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
41361         Reported by Bruce Korb <bruce.korb@gmail.com>.
41363 2011-04-01  Bruno Haible  <bruno@clisp.org>
41365         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
41366         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
41367         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
41368         * modules/wcpcpy (Depends-on): Add extensions.
41369         * modules/wcpncpy (Depends-on): Likewise.
41370         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
41371         systems.
41372         * doc/posix-functions/wcpncpy.texi: Likewise.
41373         * doc/posix-functions/wcwidth.texi: Likewise.
41375 2011-03-31  Eric Blake  <eblake@redhat.com>
41377         nonblocking: fix mingw test failures
41378         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
41379         non-blocking flag on regular file.
41380         (get_nonblocking_flag): Set errno on invalid fd.
41381         * tests/test-nonblocking.c (main): Avoid test failure on
41382         directories if fchdir is not active.
41383         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
41385 2011-03-31  Bruno Haible  <bruno@clisp.org>
41387         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
41388         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
41389         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
41390         Reported by Simon Josefsson <simon@josefsson.org>.
41392 2011-03-31  Bruno Haible  <bruno@clisp.org>
41393         and Eric Blake  <eblake@redhat.com>
41395         nonblocking: new module
41396         * modules/nonblocking: New module.
41397         * modules/nonblocking-tests: Likewise.
41398         * lib/nonblocking.h: New file.
41399         * lib/nonblocking.c: Likewise.
41400         * tests/test-nonblocking.c: New test.
41401         * lib/ioctl.c (ioctl) [mingw]: Update comment.
41403 2011-03-30  Bruno Haible  <bruno@clisp.org>
41405         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
41406         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
41407         instead of 'printf' format for GCC >= 4.4.
41408         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
41409         (fprintf, printf, vfprintf, vprintf): Declare with
41410         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
41411         the system's vfprintf() function.
41412         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
41414 2011-03-30  Eric Blake  <eblake@redhat.com>
41416         passfd: fix scoping bug
41417         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
41418         before sendmsg/recvmsg.
41420         passfd: standardize coding conventions
41421         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
41422         can be learned at compile time.
41423         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
41424         ifdefs.
41425         (sendfd, recvfd): Follow gnulib code conventions.
41427         passfd: fix incorrect sendmsg arguments
41428         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
41429         incorrect msg_controllen value.
41430         * modules/passfd-tests (Depends-on): Check for alarm.
41431         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
41432         Reported by Bastien ROUCARIES.
41434 2011-03-30  Bruno Haible  <bruno@clisp.org>
41436         c-strcasestr: Relicense under LGPLv2+.
41437         * modules/c-strcasestr (License): Change to LGPLv2+.
41438         Requested by Eric Blake, for libvirt.
41440 2011-03-30  Simon Josefsson  <simon@josefsson.org>
41442         * users.txt: Add libidn2.  Fix libtasn1 link.
41444 2011-03-30  Jim Meyering  <meyering@redhat.com>
41446         tests: readlink* ("",... fails with EINVAL on newer kernels
41447         readlink and readlinkat have typically failed with ENOENT for
41448         the invalid, empty file name,  "".  However, with the advent
41449         of linux-2.6.39, they fail with EINVAL.
41450         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
41451         when operating on the empty file name.
41452         * tests/test-readlink.h (test_readlink): Likewise.
41454 2011-03-29  Bruno Haible  <bruno@clisp.org>
41456         Relicense some modules under LGPLv2+, for libidn2.
41457         * modules/array-mergesort (License): Change to LGPLv2+.
41458         * modules/c-strcaseeq (License): Likewise.
41459         * modules/striconveh (License): Likewise.
41460         * modules/striconveha (License): Likewise.
41461         * modules/uniconv/base (License): Likewise.
41462         * modules/uniconv/u8-conv-from-enc (License): Likewise.
41463         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
41464         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
41465         * modules/unictype/base (License): Likewise.
41466         * modules/unictype/bidiclass-of (License): Likewise.
41467         * modules/unictype/category-M (License): Likewise.
41468         * modules/unictype/category-none (License): Likewise.
41469         * modules/unictype/category-of (License): Likewise.
41470         * modules/unictype/category-test (License): Likewise.
41471         * modules/unictype/category-test-withtable (License): Likewise.
41472         * modules/unictype/combining-class (License): Likewise.
41473         * modules/unictype/joiningtype-of (License): Likewise.
41474         * modules/unictype/scripts (License): Likewise.
41475         * modules/uninorm/base (License): Likewise.
41476         * modules/uninorm/canonical-decomposition (License): Likewise.
41477         * modules/uninorm/composition (License): Likewise.
41478         * modules/uninorm/decompose-internal (License): Likewise.
41479         * modules/uninorm/decomposition-table (License): Likewise.
41480         * modules/uninorm/nfc (License): Likewise.
41481         * modules/uninorm/nfd (License): Likewise.
41482         * modules/uninorm/u32-normalize (License): Likewise.
41483         * modules/unistr/base (License): Likewise.
41484         * modules/unistr/u32-cpy (License): Likewise.
41485         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
41486         * modules/unistr/u32-to-u8 (License): Likewise.
41487         * modules/unistr/u32-uctomb (License): Likewise.
41488         * modules/unistr/u8-check (License): Likewise.
41489         * modules/unistr/u8-mblen (License): Likewise.
41490         * modules/unistr/u8-mbtouc (License): Likewise.
41491         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
41492         * modules/unistr/u8-mbtoucr (License): Likewise.
41493         * modules/unistr/u8-prev (License): Likewise.
41494         * modules/unistr/u8-strlen (License): Likewise.
41495         * modules/unistr/u8-to-u32 (License): Likewise.
41496         * modules/unistr/u8-uctomb (License): Likewise.
41497         * modules/unitypes (License): Likewise.
41498         Requested by Simon Josefsson.
41500 2011-03-29  Simon Josefsson  <simon@josefsson.org>
41502         lib-symbol-visibility: Add a notice.
41503         * modules/lib-symbol-visibility (Notice): New field.
41505 2011-03-29  Bruno Haible  <bruno@clisp.org>
41507         getaddrinfo: Doc fix.
41508         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
41509         section "fixed in Gnulib".
41511 2011-03-28  Simon Josefsson  <simon@josefsson.org>
41513         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
41514         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
41516 2011-03-26  Bruno Haible  <bruno@clisp.org>
41518         unictype/property-byname: Reduce the number of load-time relocations.
41519         * lib/unictype/pr_byname.c: Include <stdlib.h>.
41520         (UC_PROPERTY_INDEX_*): New enumeration values.
41521         (uc_property_byname): Convert an index from the lookup table to an
41522         uc_property_t.
41523         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
41524         values.
41526 2011-03-26  Bruno Haible  <bruno@clisp.org>
41528         unictype/property-byname: Allow omitted word separators and aliases.
41529         * lib/unictype/pr_byname.gperf: Add property names without word
41530         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
41531         for 'space'.
41533 2011-03-26  Bruno Haible  <bruno@clisp.org>
41535         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
41536         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
41537         also hyphens to space.
41538         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
41539         without spaces.
41540         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
41542 2011-03-26  Bruno Haible  <bruno@clisp.org>
41544         unictype/joiningtype-byname: Recognize long names as well.
41545         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
41546         a long name.
41547         * lib/unictype/joiningtype_byname.c: Include <string.h>,
41548         unictype/joiningtype_byname.h.
41549         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
41550         * lib/unictype/joiningtype_byname.gperf: New file.
41551         * modules/unictype/joiningtype-byname (Files): Add
41552         lib/unictype/joiningtype_byname.gperf.
41553         (Depends-on): Add gperf.
41554         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
41555         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
41556         long names.
41558         Tests for module 'unictype/joiningtype-longname'.
41559         * modules/unictype/joiningtype-longname-tests: New file.
41560         * tests/unictype/test-joiningtype_longname.c: New file.
41562         New module 'unictype/joiningtype-longname'.
41563         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
41564         * lib/unictype/joiningtype_longname.c: New file.
41565         * modules/unictype/joiningtype-longname: New file.
41566         * modules/unictype/joiningtype-all (Depends-on): Add
41567         unictype/joiningtype-longname.
41569 2011-03-26  Bruno Haible  <bruno@clisp.org>
41571         unictype/bidiclass-byname: Recognize long names as well.
41572         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
41573         name.
41574         * lib/unictype/bidi_byname.c: Include <string.h>,
41575         unictype/bidi_byname.h.
41576         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
41577         * lib/unictype/bidi_byname.gperf: New file.
41578         * modules/unictype/bidiclass-byname (Files): Add
41579         lib/unictype/bidi_byname.gperf.
41580         (Depends-on): Add gperf.
41581         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
41582         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
41583         long names.
41585         Tests for module 'unictype/bidiclass-longname'.
41586         * modules/unictype/bidiclass-longname-tests: New file.
41587         * tests/unictype/test-bidi_longname.c: New file.
41589         New module 'unictype/bidiclass-longname'.
41590         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
41591         * lib/unictype/bidi_longname.c: New file.
41592         * modules/unictype/bidiclass-longname: New file.
41593         * modules/unictype/bidiclass-all (Depends-on): Add
41594         unictype/bidiclass-longname.
41596 2011-03-26  Bruno Haible  <bruno@clisp.org>
41598         unictype/bidi*: Rename modules.
41599         * modules/unictype/bidiclass-all: Renamed from
41600         modules/unictype/bidicategory-all.
41601         * modules/unictype/bidiclass-name: Renamed from
41602         modules/unictype/bidiclass-name.
41603         (Description): Update.
41604         * modules/unictype/bidiclass-name-tests: Renamed from
41605         modules/unictype/bidicategory-name-tests.
41606         * modules/unictype/bidiclass-byname: Renamed from
41607         modules/unictype/bidicategory-byname.
41608         (Description): Update.
41609         * modules/unictype/bidiclass-byname-tests: Renamed from
41610         modules/unictype/bidicategory-byname-tests.
41611         * modules/unictype/bidiclass-of: Renamed from
41612         modules/unictype/bidicategory-of.
41613         (Description): Update.
41614         * modules/unictype/bidiclass-of-tests: Renamed from
41615         modules/unictype/bidicategory-of-tests.
41616         * modules/unictype/bidiclass-test: Renamed from
41617         modules/unictype/bidicategory-test.
41618         (Description): Update.
41619         * modules/unictype/bidiclass-test-tests: Renamed from
41620         modules/unictype/bidicategory-test-tests.
41621         * modules/unictype/bidicategory-all: New file, a simple redirection.
41622         * modules/unictype/bidicategory-name: Likewise.
41623         * modules/unictype/bidicategory-byname: Likewise.
41624         * modules/unictype/bidicategory-of: Likewise.
41625         * modules/unictype/bidicategory-test: Likewise.
41626         * modules/unictype/property-bidi-* (Dependencies): Update.
41627         * lib/unictype/bidi_*.c: Update comment.
41629 2011-03-26  Bruno Haible  <bruno@clisp.org>
41631         unictype/bidi*: Rename functions, part 2.
41632         * modules/unictype/bidicategory-name (configure.ac): Update required
41633         libunistring version.
41634         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
41636 2011-03-25  Bruno Haible  <bruno@clisp.org>
41638         New module 'unictype/combining-class-all'.
41639         * modules/unictype/combining-class-all: New file.
41641         Tests for module 'unictype/combining-class-byname'.
41642         * modules/unictype/combining-class-byname-tests: New file.
41643         * tests/unictype/test-combiningclass_byname.c: New file.
41645         New module 'unictype/combining-class-byname'.
41646         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
41647         * lib/unictype/combiningclass_byname.c: New file.
41648         * lib/unictype/combiningclass_byname.gperf: New file.
41649         * modules/unictype/combining-class-byname: New file.
41651         Tests for module 'unictype/combining-class-longname'.
41652         * modules/unictype/combining-class-longname-tests: New file.
41653         * tests/unictype/test-combiningclass_longname.c: New file.
41655         New module 'unictype/combining-class-longname'.
41656         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
41657         * lib/unictype/combiningclass_longname.c: New file.
41658         * modules/unictype/combining-class-longname: New file.
41660         Tests for module 'unictype/combining-class-name'.
41661         * modules/unictype/combining-class-name-tests: New file.
41662         * tests/unictype/test-combiningclass_name.c: New file.
41664         New module 'unictype/combining-class-name'.
41665         * lib/unictype.in.h (uc_combining_class_name): New declaration.
41666         * lib/unictype/combiningclass_name.c: New file.
41667         * modules/unictype/combining-class-name: New file.
41669 2011-03-25  Bruno Haible  <bruno@clisp.org>
41671         unictype/combining-class: Rename source files.
41672         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
41673         of unictype/combining.h.
41674         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
41675         Update.
41676         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
41677         * modules/unictype/combining-class (Description): Fix.
41678         (Files, Makefile.am): Update.
41679         * tests/unictype/test-combiningclass.c: Renamed from
41680         tests/unictype/test-combining.c.
41681         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
41683 2011-03-25  Bruno Haible  <bruno@clisp.org>
41685         unictype: Update list of canonical combining classes.
41686         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
41688 2011-03-25  Bruno Haible  <bruno@clisp.org>
41690         unictype/category-byname: Recognize long names as well.
41691         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
41692         a long name.
41693         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
41694         unictype/categ_byname.h.
41695         (UC_CATEGORY_INDEX_*): New enumeration values.
41696         (uc_general_category_byname): Use uc_general_category_lookup and
41697         convert from index to value.
41698         * lib/unictype/categ_byname.gperf: New file.
41699         * modules/unictype/category-byname (Files): Add
41700         lib/unictype/categ_byname.gperf.
41701         (Depends-on): Add gperf.
41702         (Makefile.am): Add rule for generating unictype/categ_byname.h.
41703         * tests/unictype/test-categ_byname.c (main): Test the recognition of
41704         long names.
41706         Tests for module 'unictype/category-longname'.
41707         * modules/unictype/category-longname-tests: New file.
41708         * tests/unictype/test-categ_longname.c: New file.
41710         New module 'unictype/category-longname'.
41711         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
41712         * lib/unictype/categ_longname.c: New file.
41713         * modules/unictype/category-longname: New file.
41714         * modules/unictype/category-all (Depends-on): Add it.
41716 2011-03-25  Bruno Haible  <bruno@clisp.org>
41718         Tests for module 'unictype/category-LC'.
41719         * modules/unictype/category-LC-tests: New file.
41720         * tests/unictype/test-categ_LC.c: New file, automatically generated.
41722         New module 'unictype/category-LC'.
41723         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
41724         (UC_CATEGORY_LC): New declaration.
41725         (UC_CASED_LETTER): New macro.
41726         * lib/gen-uni-tables.c (is_category_LC): New function.
41727         (output_categories): Also handle category LC.
41728         (UC_CATEGORY_MASK_LC): New enumeration value.
41729         (general_category_byname): Also handle category LC.
41730         * lib/unictype/categ_LC.c: New file.
41731         * lib/unictype/categ_LC.h: New file, automatically generated.
41732         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
41733         category LC.
41734         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
41735         * modules/unictype/category-LC: New file.
41736         * modules/unictype/category-byname (Depends-on): Add
41737         unictype/category-LC.
41738         * modules/unictype/category-all (Depends-on): Likewise.
41740 2011-03-25  Eric Blake  <eblake@redhat.com>
41742         xmalloc: revert yesterday's regression
41743         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
41744         realloc's underlying behavior (allowing allocation of zero-size
41745         objects, especially if malloc-gnu is also in use).
41747 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
41749         maint.mk: add missing version to VC-tag
41750         * top/maint.mk: git tag was missing actual tag name; add it.
41752         valgrind: do leak checking, and exit with code 1 on error (not 0)
41753         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
41754         to VALGRIND.
41756 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
41758         posix-modules: say what it does.
41759         * posix-modules: Add a line to the --help output saying what it does.
41761 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
41763         xmalloc: Do not leak if underlying realloc is C99 compatible.
41764         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
41765         This avoids a leak on C99-based systems.  See
41766         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
41768 2011-03-24  Eric Blake  <eblake@redhat.com>
41770         realloc: document portability problem
41771         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
41772         passing 0 size to realloc.
41774 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
41776         doc: update users.txt
41777         * users.txt: Add cvsps, tmpwatch
41779 2011-03-23  Matt Rice  <ratmice@gmail.com>
41781         doc: update users.txt
41782         * users.txt: Add gdb.
41784 2011-03-23  Jim Meyering  <meyering@redhat.com>
41786         doc: update users.txt
41787         Looking through matches up to the following URL (there are still
41788         several more pages), I found several projects that use gnulib:
41789         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
41790         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
41791         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
41793 2011-03-22  Bruno Haible  <bruno@clisp.org>
41795         unictype/bidi*: Rename functions.
41796         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
41797         uc_bidi_class, uc_is_bidi_class): New declarations.
41798         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
41799         uc_bidi_category_byname.
41800         (uc_bidi_category_byname): New function.
41801         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
41802         u_bidi_category_name.
41803         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
41804         (uc_bidi_category_name): New function.
41805         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
41806         uc_bidi_category.
41807         (uc_bidi_category): New function.
41808         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
41809         uc_is_bidi_category. Invoke uc_bidi_class.
41810         (uc_is_bidi_category): New function.
41811         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
41812         instead of uc_bidi_category_byname.
41813         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
41814         instead of uc_bidi_category_name.
41815         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
41816         uc_bidi_category.
41817         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
41818         instead of uc_is_bidi_category.
41820 2011-03-21  Bruno Haible  <bruno@clisp.org>
41822         New module 'unictype/joininggroup-all'.
41823         * modules/unictype/joininggroup-all: New file.
41825         Tests for module 'unictype/joininggroup-of'.
41826         * modules/unictype/joininggroup-of-tests: New file.
41827         * tests/unictype/test-joininggroup_of.c: New file.
41828         * tests/unictype/test-joininggroup_of.h: New file, automatically
41829         generated by gen-uni-tables.
41831         New module 'unictype/joininggroup-of'.
41832         * modules/unictype/joininggroup-of: New file.
41833         * lib/unictype/joininggroup_of.c: New file.
41834         * lib/unictype/joininggroup_of.h: New file, automatically generated by
41835         gen-uni-tables.
41837         Tests for module 'unictype/joininggroup-byname'.
41838         * modules/unictype/joininggroup-byname-tests: New file.
41839         * tests/unictype/test-joininggroup_byname.c: New file.
41841         New module 'unictype/joininggroup-byname'.
41842         * modules/unictype/joininggroup-byname: New file.
41843         * lib/unictype/joininggroup_byname.c: New file.
41844         * lib/unictype/joininggroup_byname.gperf: New file.
41846         Tests for module 'unictype/joininggroup-name'.
41847         * modules/unictype/joininggroup-name-tests: New file.
41848         * tests/unictype/test-joininggroup_name.c: New file.
41850         New module 'unictype/joininggroup-name'.
41851         * modules/unictype/joininggroup-name: New file.
41852         * lib/unictype/joininggroup_name.c: New file.
41853         * lib/unictype/joininggroup_name.h: New file.
41855         New module 'unictype/joiningtype-all'.
41856         * modules/unictype/joiningtype-all: New file.
41858         Tests for module 'unictype/joiningtype-of'.
41859         * modules/unictype/joiningtype-of-tests: New file.
41860         * tests/unictype/test-joiningtype_of.c: New file.
41861         * tests/unictype/test-joiningtype_of.h: New file, automatically
41862         generated by gen-uni-tables.
41864         New module 'unictype/joiningtype-of'.
41865         * modules/unictype/joiningtype-of: New file.
41866         * lib/unictype/joiningtype_of.c: New file.
41867         * lib/unictype/joiningtype_of.h: New file, automatically generated by
41868         gen-uni-tables.
41870         Tests for module 'unictype/joiningtype-byname'.
41871         * modules/unictype/joiningtype-byname-tests: New file.
41872         * tests/unictype/test-joiningtype_byname.c: New file.
41874         New module 'unictype/joiningtype-byname'.
41875         * modules/unictype/joiningtype-byname: New file.
41876         * lib/unictype/joiningtype_byname.c: New file.
41878         Tests for module 'unictype/joiningtype-name'.
41879         * modules/unictype/joiningtype-name-tests: New file.
41880         * tests/unictype/test-joiningtype_name.c: New file.
41882         New module 'unictype/joiningtype-name'.
41883         * modules/unictype/joiningtype-name: New file.
41884         * lib/unictype/joiningtype_name.c: New file.
41886         unictype: Add support for Arabic shaping properties.
41887         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
41888         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
41889         declarations.
41890         (UC_JOINING_GROUP_*): New enumeration values.
41891         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
41892         declarations.
41893         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
41894         (unicode_joining_type): New variable.
41895         (UC_JOINING_GROUP_*): New enumeration values.
41896         (unicode_joining_group): New variable.
41897         (fill_arabicshaping, joining_type_as_c_identifier,
41898         output_joining_type_test, output_joining_type,
41899         joining_group_as_c_identifier, output_joining_group_test,
41900         output_joining_group): New functions.
41901         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
41902         fill_arabicshaping and output_joining_type_test, output_joining_type,
41903         output_joining_group_test, output_joining_group.
41904         Reported by Simon Josefsson.
41906 2011-03-21  Jim Meyering  <meyering@redhat.com>
41908         strftime: fix a bug in yesterday's change
41909         * lib/strftime.c (add): Accommodate width's initial value of -1.
41910         Otherwise, nstrftime would copy uninitialized data into
41911         the result buffer.
41913 2011-03-21  Jim Meyering  <meyering@redhat.com>
41915         tests: add strftime-tests module
41916         * tests/test-strftime.c: New file.
41917         * modules/strftime-tests: New module.
41919 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
41921         strftime: don't assume a byte count fits in 'int'
41922         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
41923         found this problem by static analysis, using gcc -Wstrict-overflow
41924         (GCC 4.5.2, x86-64).  This reported an optimization that depended
41925         on an integer overflow having undefined behavior, but it turns out
41926         that the argument is a size, which might not fit in 'int' anyway,
41928 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
41930         stdio: don't require ignore_value around fwrite
41932         This patch works around libc bug 11959
41933         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
41934         Without this patch, applications must often write
41935         ignore_value (fwrite (...)) even though the ignore_value is
41936         not helpful here.  It's common to write many objects, using
41937         fwrite/printf/etc., and then use ferror to detect output error.
41939         I considered making this patch optional, but decided against it,
41940         because libc is obviously being inconsistent here: there is no
41941         reason libc should insist that user code must inspect fwrite
41942         return's value without also insisting that it inspect printf's,
41943         putchar's, etc.  If user code wants to have a strict style where
41944         all these functions' values are checked (so that ferror need not
41945         be checked), we could add support for that style in a new gnulib
41946         module, but in the meantime it's better to be consistent and to
41947         support common usage.
41949         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
41950         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
41951         that we are compiling in checking mode, and if not C++, and
41952         if not already wrapping fwrite for some other reason.
41953         (fwrite): #define to rpl_fwrite if the latter is defined.
41955 2011-03-20  Bruno Haible  <bruno@clisp.org>
41957         verror: Fix compilation error introduced on 2011-02-13.
41958         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
41959         instead of __attribute__.
41960         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41962 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
41963             Bruno Haible  <bruno@clisp.org>
41965         socklen: do not depend on sys_socket
41966         While trying to modify Emacs to use gnulib's socklen module,
41967         I discovered a circular dependency: socklen depends on sys_socket
41968         and vice versa.  Emacs can use socklen, but it does not need
41969         sys_socket because it has its own substitute for sys/socket.h.
41970         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
41971         gl_TYPE_SOCKLEN_T.
41972         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
41973         gl_PREREQ_SYS_H_SOCKET.
41974         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
41975         gl_PREREQ_SYS_H_SOCKET.
41976         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
41977         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
41978         * modules/socklen (Depends-on): Do not depend on sys_socket.
41979         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
41981 2011-03-20  Jim Meyering  <meyering@redhat.com>
41983         maint.mk: sort file names *after* new transformation
41984         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
41985         prefix would have led to an unwarranted failure in GNU parted.
41986         Sort after that transformation.
41988 2011-03-19  Jim Meyering  <meyering@redhat.com>
41990         maint.mk: fix po-file syntax-check rule
41991         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
41992         Patch by Bruno Haible.
41994 2011-03-19  Bruno Haible  <bruno@clisp.org>
41996         socklen: Update comment.
41997         * m4/socklen.m4: Update comment about platforms.
41999 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42000             Bruno Haible  <bruno@clisp.org>
42002         inet_ntop, inet_pton: Simplify.
42003         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
42004         documented to provide socklen_t and we already depend on sys_socket.
42005         * modules/inet_pton (Depends-on): Likewise.
42006         * lib/arpa_inet.in.h: Adjust comment.
42008 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42009             Bruno Haible  <bruno@clisp.org>
42011         netdb: Simplify.
42012         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
42013         documented to provide socklen_t and we already depend on sys_socket.
42014         * lib/netdb.in.h: Adjust comment.
42016 2011-03-19  Bruno Haible  <bruno@clisp.org>
42018         sys_socket, netdb: Document problem with socklen_t.
42019         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
42020         platforms.
42021         * doc/posix-headers/netdb.texi: Likewise.
42023 2011-03-18  Eric Blake  <eblake@redhat.com>
42025         maint.mk: let po check work in VPATH build
42026         * top/maint.mk (po_file): Allow cfg.mk override.
42027         (sc_po_check): Allow VPATH use.
42028         Reported by Jiri Denemark.
42030 2011-03-16  Jim Meyering  <meyering@redhat.com>
42032         maint.mk: allow fine-grained syntax-check exclusion via Make variables
42033         Before, you would have had to create one .x-sc_ file per rule in order
42034         to exempt offending files.  Now, you may instead use a Make variable --
42035         usually defined in cfg.mk -- whose name identifies the affected rule.
42036         * top/maint.mk (_sc_excl): Define.
42037         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
42038         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
42040 2011-03-13  Bruno Haible  <bruno@clisp.org>
42042         ignore-value tests: Avoid warnings.
42043         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
42044         empty for gcc < 3.4.
42046 2011-03-13  Bruno Haible  <bruno@clisp.org>
42048         passfd: Fix link error on Solaris.
42049         * modules/passfd (Description): Correct.
42050         (Depends-on): Add socketlib.
42051         (Link): New section.
42052         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
42054 2011-03-13  Bruno Haible  <bruno@clisp.org>
42056         passfd: Fix link error on AIX 5.2.
42057         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
42059 2011-03-13  Bruno Haible  <bruno@clisp.org>
42061         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
42062         * lib/sys_socket.in.h: Include <stddef.h>.
42063         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
42064         CMSG_FIRSTHDR. Remove unused variable.
42066 2011-03-13  Bruno Haible  <bruno@clisp.org>
42068         passfd: Fix compilation error on OpenBSD.
42069         * lib/passfd.c: Include <sys/uio.h>.
42071 2011-03-13  Bruno Haible  <bruno@clisp.org>
42073         passfd test: Fix warnings.
42074         * tests/test-passfd.c: Include <sys/wait.h>.
42075         (main): Fix typo.
42077 2011-03-13  Bruno Haible  <bruno@clisp.org>
42079         passfd module, part 4, tweaks.
42080         * tests/test-passfd.c: Reorder includes.
42081         (main): Fix perror and printf calls.
42083 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42085         passfd module, part 4.
42086         * modules/passfd-tests: New file.
42087         * tests/test-passfd.c: New file.
42089 2011-03-13  Jim Meyering  <meyering@redhat.com>
42091         Makefile: rely on GNU make; derive syntax-check rule names
42092         Rather than requiring that each sc_ rule be listed as a dependent
42093         of "check", use features of GNU make to derive the list.
42094         * Makefile (syntax-check-rules): Define.
42095         (check): Depend on the new variable, not the hard-coded list.
42097 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
42098             Bruno Haible  <bruno@clisp.org>
42100         passfd module, part 3.
42101         * lib/passfd.h (recvfd): Add a flags argument.
42102         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
42103         (recvfd): Add a flags argument.
42104         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
42105         exists.
42106         * modules/passfd (Depends-on): Add cloexec.
42107         Suggested by Eric Blake.
42109 2011-03-13  Bruno Haible  <bruno@clisp.org>
42111         passfd module, part 2, tweaks.
42112         * modules/passfd (Files): Reorder.
42113         (Depends-on): Remove errno.
42114         (Include): Remove <sys/socket.h>, <sys/un.h>.
42115         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
42116         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
42117         specification header. Include <sys/socket.h> always. Don't include
42118         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
42119         (sendfd): Clarify that it sets errno when it fails.
42120         (recvfd): Fix specification.
42122 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42124         passfd module, part 2.
42125         * modules/passfd: New file.
42126         * lib/passfd.h: New file.
42127         * lib/passfd.c: New file.
42129 2011-03-12  Bruno Haible  <bruno@clisp.org>
42131         wcswidth, mbswidth: Avoid integer overflow.
42132         * lib/wcswidth.c: Include <limits.h>.
42133         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
42134         * lib/mbswidth.c: Include <limits.h>.
42135         (mbsnwidth): Avoid 'int' overflow.
42136         Reported by Jim Meyering.
42138 2011-03-12  Bruno Haible  <bruno@clisp.org>
42140         futimens, utimensat: Avoid endless recursion on Solaris 10.
42141         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
42142         Solaris.
42143         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
42144         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
42146 2011-03-11  Jim Meyering  <meyering@redhat.com>
42148         maint.mk: relax a regexp to accommodate other formatting styles
42149         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
42150         between "ngettext" and the following "(".
42152 2011-03-11  Pádraig Brady  <P@draigBrady.com>
42154         maint.mk: suppress a false positive warning
42155         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
42156         diagnostics are marked with ngettext.
42158 2011-03-10  Eric Blake  <eblake@redhat.com>
42160         wchar: add explicit dependencies, for Tru64
42161         * modules/mbmemcasecoll (Depends-on): Add wchar.
42162         * modules/mbtowc (Depends-on): Likewise.
42163         * modules/vasnprintf (Depends-on): Likewise.
42164         * modules/unistdio/u-printf-args (Depends-on): Likewise.
42165         * modules/wctomb (Depends-on): Likewise.
42166         Reported by Peter O'Gorman.
42168 2011-03-08  Bruno Haible  <bruno@clisp.org>
42170         passfd module, part 1, tweaks.
42171         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
42172         Improve indentation. Improve AC_MSG_CHECKING messages.
42173         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
42174         gl_SOCKET_FAMILIES.
42176 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42178         passfd module, part 1.
42179         * m4/afunix.m4: New file.
42180         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
42181         sockets.
42183 2011-03-08  Bruno Haible  <bruno@clisp.org>
42185         regex-quote: New API.
42186         * lib/regex-quote.h: Include <stdbool.h>.
42187         (struct regex_quote_spec): New type.
42188         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
42189         New declarations.
42190         (regex_quote_length, regex_quote_copy, regex_quote): Take a
42191         'const struct regex_quote_spec *' argument.
42192         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
42193         (pcre_special): New constant.
42194         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
42195         New functions.
42196         (regex_quote_length, regex_quote_copy, regex_quote): Take a
42197         'const struct regex_quote_spec *' argument.
42198         * modules/regex-quote (Depends-on): Add stdbool.
42199         * tests/test-regex-quote.c (check): Update for new API. Add test for
42200         anchored results.
42201         * NEWS: Mention the API change.
42202         Reported by Reuben Thomas and Eric Blake.
42204 2011-03-06  Bruno Haible  <bruno@clisp.org>
42206         regex-quote: Fix creation of POSIX extended regular expressions.
42207         * lib/regex-quote.c (ere_special): Add grouping and alternation
42208         operators.
42210 2011-03-05  Bruno Haible  <bruno@clisp.org>
42212         doc: Improve doc regarding autopoint vs. gnulib.
42213         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
42214         disable autopoint while running autoreconf.
42215         Suggested by Ralf Wildenhues.
42217 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42219         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
42220         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
42222 2011-03-03  Bruce Korb  <bkorb@gnu.org>
42224         parse-duration: remove xalloc.h dependency
42225         * lib/parse-duration.c (parse_period): handle NULL return from
42226         strdup instead of calling xstrdup().
42227         * modules/parse-duration: remove "xalloc" dependency
42229 2011-03-03  Matthew Booth  <mbooth@redhat.com>
42231         bootstrap: honor m4_base when running aclocal
42232         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
42234 2011-03-02  Jim Meyering  <meyering@redhat.com>
42236         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
42237         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
42238         on request from Matt Booth.
42240 2011-03-01  Eric Blake  <eblake@redhat.com>
42242         test-link: work on Hurd
42243         * tests/test-link.h (test_link): Hurd rejects linking directories
42244         with EISDIR instead of the POSIX-mandated EPERM.
42246 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
42248         stdio: simplify by moving files to printf-posix, sigpipe
42249         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
42250         since this symbol is needed only if printf is replaced.
42251         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
42252         Require gl_ASM_SYMBOL_PREFIX.
42253         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
42254         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
42255         (Depends-on): Add 'raise'.
42256         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
42257         * modules/stdio (Files): Remove lib/stdio-write.c,
42258         m4/asm-underscore.m4.
42259         (Depends-on): Remove 'raise'.
42261         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
42262         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
42263         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
42264         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
42266 2011-02-28  Bruno Haible  <bruno@clisp.org>
42268         localcharset: Assume ANSI C behaviour of free().
42269         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
42270         calling free().
42271         Suggested by Simon Josefsson <simon@josefsson.org>.
42273 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
42274             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
42275             Bruno Haible  <bruno@clisp.org>  (tiny change)
42277         On Cygwin, use /proc file system instead of win32 API.
42278         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
42279         Win32 file names.
42280         (DllMain): Simplify by removing Cygwin specific code.
42281         (find_shared_library_fullname): Use Linux specific implementation also
42282         for Cygwin.
42283         (get_shared_library_fullname): Update accordingly.
42284         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
42285         Win32 file names.
42286         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
42287         Cygwin specific code.
42289 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
42290             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
42292         Fix OpenMP flag detection for various Fortran compilers.
42293         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
42294         OpenMP-conditional compilation construct, to force compile
42295         failure with missing OpenMP flag.
42296         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
42298 2011-02-25  Eric Blake  <eblake@redhat.com>
42300         strstr: expand test coverage
42301         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
42302         compilation.
42303         * tests/test-memmem.c (main): Duplicate tests.
42304         * tests/test-strcasestr.c (main): Likewise.
42305         * tests/test-c-strcasestr.c (main): Likewise.
42307 2011-02-25  Jim Meyering  <meyering@redhat.com>
42309         maint.mk: detect missing-NL-at-EOF, too
42310         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
42311         it also detects when a file lacks a newline at EOF.
42312         (require_exactly_one_NL_at_EOF_): Renamed from
42313         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
42314         since people may well have .x-sc_... file names tied to the
42315         existing name.  Suggested by Eric Blake.
42317 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42319         dirname: move m4/dos.m4 functionality into lib/dosname.h
42321         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
42322         extracts symbols from it, puts them into config.h; but it's much
42323         easier to use the symbols directly.  filename.h already does this,
42324         but it disagrees with dos.m4 in some respects.  This patch
42325         introduces a different include file dosname.h that packages up
42326         dos.m4, and then later we can work on merging filename.h and
42327         dosname.h.  Applications that need only the easy-to-configure
42328         symbols should consider including dosname.h rather than dirname.h.
42329         * NEWS: Mention incompatible changes.
42330         * m4/dos.m4: Remove.
42331         * lib/dosname.h, modules/dosname: New files.
42332         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
42333         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
42334         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
42335         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
42336         Include dosname.h, not dirname.h.
42337         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
42338         Include dosname.h, for definitions of symbols like ISSLASH
42339         that used to be in config.h.
42340         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
42341         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
42342         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42343         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42344         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
42345         * modules/rmdir (Files): Likewise.
42346         * modules/stat (Files): Likewise.
42347         * modules/unlink (Files): Likewise.
42348         * modules/dirname-lgpl (Depends-on): Add dosname.
42349         * modules/lstat (Depends-on): Likewise.
42350         * modules/openat (Depends-on): Likewise.
42351         * modules/rmdir (Depends-on): Likewise.
42352         * modules/savewd (Depends-on): Likewise.
42353         * modules/stat (Depends-on): Likewise.
42354         * modules/unlink (Depends-on): Likewise.
42355         * modules/openat (Depends-on): Remove dirname-lgpl.
42356         * modules/savewd (Depends-on): Likewise.
42357         * tests/test-dirname.c: Do not use removed symbols like
42358         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
42359         the remaining symbols, e.g., ISSLASH ('\\').
42361 2011-02-25  Eric Blake  <eblake@redhat.com>
42363         strstr: revert patches that introduced bug and pessimization
42364         * lib/str-two-way.h: Add another reference.
42365         (two_way_short_needle, two_way_long_needle): Revert changes from
42366         2011-02-24; they pessimize search speed.
42367         (critical_factorization): Partially revert changes from
42368         2010-06-22; they violate the requirement that the left half of the
42369         needle be smaller than the period of the needle.
42371 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42373         filenamecat: remove unnecessary dependency on dirname-lgpl
42374         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
42375         is no direct dependency, just an indirect one via filenamecat-lgpl.
42377         remove: remove unnecessary use of m4/dos.m4
42378         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
42379         * modules/remove (FILES): Remove m4/dos.m4.
42381         * lib/openat-proc.c: Don't include dirname.h; not needed.
42383         backupfile: remove unnecessary use of m4/dos.m4
42384         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
42385         of its symbols are used by the backupfile code.  backupfile.c does
42386         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
42387         for the rare case of programs that want all their backup file
42388         names to live within 8+3 limits, and dos.m4 doesn't address that.
42389         * modules/backupfile (Files): Remove m4/dos.m4.
42391 2011-02-24  Jim Meyering  <meyering@redhat.com>
42393         strstr: fix a bug whereby strstr would mistakenly return NULL
42394         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
42395         in period calculation.
42396         (two_way_long_needle): Likewise.
42397         The original problem was reported by Mike Stump in
42398         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
42399         Ralf Wildenhues provided the short needle and haystack.
42400         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
42401         Add a more involved test to trigger the bug in two_way_long_needle.
42403 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42405         gnulib-tool: remove use of bold display in help screen
42406         * gnulib-tool (func_usage): Do not use bold display anymore in the
42407         help screen.  That was just meant to be a temporary emphasis for a
42408         backward-incompatible change.
42410 2011-02-23  Bruno Haible  <bruno@clisp.org>
42412         Fix misindentation of preprocessor directives.
42413         * lib/argp-namefrob.h: Reindent preprocessor directives.
42414         * lib/getopt_int.h (struct _getopt_data): Likewise.
42415         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
42416         * lib/vasnprintf.c (decode_long_double): Likewise.
42417         * tests/test-argmatch.c: Insert blank lines, for clarity.
42418         * tests/test-exclude.c: Likewise.
42420 2011-02-22  Bruno Haible  <bruno@clisp.org>
42422         ioctl: Fix for MacOS X in 64-bit mode.
42423         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
42424         value.
42425         Suggested by Eric Blake.
42426         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
42428 2011-02-22  Jim Meyering  <meyering@redhat.com>
42430         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
42431         * Makefile (sc_cpp_indent_check): Don't limit the check to files
42432         in lib/.
42434 2011-02-22  Eric Blake  <eblake@redhat.com>
42436         maint: avoid any CDPATH issue
42437         * Makefile (sc_cpp_indent_check): Anchor cd argument.
42439         maint: adjust cpp indentation for my modules, as well
42440         * Makefile (sc_cpp_indent_check): Add my name.
42441         * lib/fbufmode.c: Filter through cppi.
42442         * lib/fpurge.c: Likewise.
42443         * lib/freadable.c: Likewise.
42444         * lib/freading.c: Likewise.
42445         * lib/fwritable.c: Likewise.
42446         * lib/fwriting.c: Likewise.
42447         * lib/sigaction.c: Likewise.
42449 2011-02-22  Jim Meyering  <meyering@redhat.com>
42451         maint: adjust cpp indentation to reflect nesting depth
42452         I.e., in a block of code that begins with an unnested "#if",
42453         put one space between the "#" in column 1 and following token.
42454         For example,
42455         -#include <sys/vfs.h>
42456         +# include <sys/vfs.h>
42457         Do this only in .c files that are part of a module I maintain.
42458         * lib/linkat.c: Filter through cppi.
42459         * lib/nanosleep.c: Likewise.
42460         * lib/openat.c: Likewise.
42461         * lib/openat-die.c: Likewise.
42462         * lib/dup3.c: Likewise.
42463         * lib/fchownat.c: Likewise.
42464         * lib/flock.c: Likewise.
42465         * lib/fsync.c: Likewise.
42466         * lib/fts.c: Likewise.
42467         * lib/getpass.c: Likewise.
42468         * lib/gettimeofday.c: Likewise.
42469         * lib/userspec.c: Likewise.
42470         * Makefile (sc_cpp_indent_check): New rule, to check this.
42472 2011-02-22  Bruno Haible  <bruno@clisp.org>
42474         New module 'wctomb'.
42475         * lib/stdlib.in.h (wctomb): New declaration.
42476         * lib/wctomb.c: New file.
42477         * lib/wctomb-impl.h: New file.
42478         * m4/wctomb.m4: New file.
42479         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
42480         REPLACE_WCTOMB.
42481         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
42482         REPLACE_WCTOMB.
42483         * modules/wctomb: New file.
42484         * tests/test-stdlib-c++.cc: Test signature of wctomb.
42485         * doc/posix-functions/wctomb.texi: Mention the new module.
42486         * modules/wctob (Depends-on): Add wctomb.
42488 2011-02-22  Bruno Haible  <bruno@clisp.org>
42490         New module 'mbtowc'.
42491         * lib/stdlib.in.h (mbtowc): New declaration.
42492         * lib/mbtowc.c: New file.
42493         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
42494         * m4/mbtowc.m4: New file.
42495         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
42496         REPLACE_MBTOWC.
42497         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
42498         REPLACE_MBTOWC.
42499         * modules/mbtowc: New file.
42500         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
42501         * doc/posix-functions/mbtowc.texi: Mention the new module.
42502         * modules/btowc (Depends-on): Add mbtowc.
42504 2011-02-22  Bruno Haible  <bruno@clisp.org>
42506         wcrtomb: Add more tests for native Windows platforms.
42507         * tests/test-wcrtomb-w32-1.sh: New file.
42508         * tests/test-wcrtomb-w32-2.sh: New file.
42509         * tests/test-wcrtomb-w32-3.sh: New file.
42510         * tests/test-wcrtomb-w32-4.sh: New file.
42511         * tests/test-wcrtomb-w32-5.sh: New file.
42512         * tests/test-wcrtomb-w32.c: New file.
42513         * modules/wcrtomb-tests (Files): Add them.
42514         (Makefile.am): Arrange to run these tests.
42515         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
42516         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
42518 2011-02-20  Bruno Haible  <bruno@clisp.org>
42520         wcrtomb: Enhance test.
42521         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
42523 2011-02-20  Bruno Haible  <bruno@clisp.org>
42525         mbrtowc: Tiny optimization.
42526         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
42528 2011-02-20  Jim Meyering  <meyering@redhat.com>
42530         test-exclude.c: remove unmatched #endif
42531         * tests/test-exclude.c: Remove stray #endif, left over from
42532         the change of a week ago.
42534 2011-02-19  Jim Meyering  <meyering@redhat.com>
42536         git-version-gen: skip "-dirty" check when appropriate
42537         * build-aux/git-version-gen: Don't run any git commands when the
42538         version string comes from .tarball-version.  Prior to this, we
42539         would run git update-index --refresh even from a just-unpacked
42540         tarball directory, and that could affect a .git/ directory in a
42541         parent of the build directory.  Reported by Mike Frysinger.
42543 2011-02-19  Bruno Haible  <bruno@clisp.org>
42545         unictype/property-byname: Reduce the size of the 'data' segment.
42546         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
42548 2011-02-19  Bruno Haible  <bruno@clisp.org>
42550         unictype/scripts: Reduce the size of the 'data' segment.
42551         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
42552         '%pic'.
42553         * lib/unictype/scripts_byname.gperf: Regenerated.
42555 2011-02-19  Bruno Haible  <bruno@clisp.org>
42557         stdint: Update documentation.
42558         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
42560 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
42562         stdint: omit redundant check for wchar.h
42563         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
42564         always tests whether wchar.h exists, so remove the now-redundant test.
42566 2011-02-18  Bruno Haible  <bruno@clisp.org>
42568         stdint: Cut dependency to module 'wchar'.
42569         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
42570         include the necessary prerequisites.
42571         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
42572         * modules/stdint (Depends-on): Remove wchar.
42573         (Makefile.am): Substitute HAVE_WCHAR_H.
42574         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
42576 2011-02-18  Eric Blake  <eblake@redhat.com>
42578         longlong: skip, rather than fail, on cross-compilation
42579         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
42580         when cross-compiling; regression from 2011-02-16.
42582 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
42584         * NEWS: Mention 2011-02-08 change to stdlib.
42586 2011-02-17  Bruno Haible  <bruno@clisp.org>
42588         getloadavg: Add comments about platforms.
42589         * m4/getloadavg.m4: Add comment.
42590         * lib/getloadavg.c: Likewise.
42592 2011-02-17  Bruno Haible  <bruno@clisp.org>
42594         getloadavg: Fix link error on Solaris 2.6.
42595         * modules/getloadavg (Link): New section.
42596         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
42597         linking test-getloadavg.
42598         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
42599         getloadavg.
42601 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
42603         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
42604         It was 'int', but this doesn't match the IRIX 6.5 manual.
42605         Suggested by Bruno Haible in
42606         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
42608 2011-02-17  Bruno Haible  <bruno@clisp.org>
42610         havelib: Fix comments.
42611         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
42612         change.
42614 2011-02-17  Bruno Haible  <bruno@clisp.org>
42616         havelib: Update config.rpath.
42617         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
42619 2011-02-17  Bruno Haible  <bruno@clisp.org>
42621         getloadavg test: Add some plausibility checks.
42622         * tests/test-getloadavg.c (check_avg): Print a warning when the value
42623         is improbable.
42625 2011-02-16  Eric Blake  <eblake@redhat.com>
42627         maintainer-makefile: make syntax-check a no-op from tarballs
42628         * top/maint.mk (no-vc-detected): New rule.
42629         (local-checks-available): Use it to avoid hanging if someone tries
42630         'make syntax-check' from a tarball.  Also append to any non-syntax
42631         checks already defined in cfg.mk.
42633 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
42635         longlong: tune, particularly for common case of c99
42637         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
42638         or running anything if c99, or if unsigned long long int does not
42639         work.  In either case, we know the answer without further tests.
42640         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
42641         it at most once, and use its results for both long long int and
42642         unsigned long long int.  This is more likely to be efficient in
42643         the common case where the program wants to check for both long
42644         long int and unsigned long long int.
42645         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
42646         since the answer is already known.
42648 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
42650         getloadavg: set errno
42651         * lib/getloadavg.c: Set errno when returning -1.  If no other
42652         error number looks appropriate, set it to ENOSYS if the getloadavg
42653         looks like it can't possibly ever work, ENOTSUP otherwise.
42654         Suggested by Bruno Haible in
42655         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
42657         getloadavg: trim unused parts and speed up 'configure'
42658         * NEWS: Document this.
42659         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
42660         always compiled if getloadavg is absent.
42661         Move test code to ...
42662         * tests/test-getloadavg.c: New file, containing previous
42663         contents of test from lib/getloadavg.c.  It also contains
42664         suggestions by Bruno Haible in
42665         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
42666         * modules/getloadavg-tests: New file.
42667         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
42668         Do tests in the same order as they're needed for getloadavg.c.
42669         Omit setgid-related tests that generate symbols KMEM_GROUP,
42670         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
42671         Do only the tests that are needed to see whether the system has
42672         getloadavg, moving the other tests into ...
42673         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
42674         NLIST_NAME_UNION; nobody should be using it.  Do not define
42675         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
42676         relevant, as the user of this module shouldn't care how getloadavg
42677         is implemented.
42679         getloadavg: omit unused var
42680         * lib/getloadavg.c (getloadavg): Omit unused local variable.
42682 2011-02-15  Jim Meyering  <meyering@redhat.com>
42684         doc: update users.txt
42685         * users.txt: Update iwhd's URL.
42687 2011-02-13  Bruno Haible  <bruno@clisp.org>
42689         Consistent macro naming for macros that use GCC __attribute__.
42690         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
42691         _ATTRIBUTE_NONNULL_.
42692         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
42693         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
42694         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
42695         ATTRIBUTE_DEPRECATED.
42696         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
42697         ATTRIBUTE_NORETURN.
42698         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42699         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42700         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42701         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42702         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
42703         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
42704         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
42705         ATTRIBUTE_SENTINEL.
42706         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
42707         ATTRIBUTE_RETURN_CHECK.
42708         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
42709         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
42710         ATTRIBUTE_NORETURN.
42711         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
42712         Reported by Paul Eggert.
42714 2011-02-13  Bruno Haible  <bruno@clisp.org>
42716         Don't interfere with a program's definition of __attribute__.
42717         * lib/argp.h (__attribute__): Remove definition.
42718         (_GL_ATTRIBUTE_FORMAT): New macro.
42719         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
42720         * lib/argp-fmtstream.h (__attribute__): Remove definition.
42721         (_GL_ATTRIBUTE_FORMAT): New macro.
42722         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
42723         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
42724         GCC 3 or newer.
42725         * lib/error.h (__attribute__): Remove definition.
42726         (_GL_ATTRIBUTE_FORMAT): New macro.
42727         (error, error_at_line): Use it.
42728         * lib/hash.h (__attribute__): Remove definition.
42729         (ATTRIBUTE_WUR): Update definition. Define always.
42730         * lib/openat.h (__attribute__): Remove definition.
42731         (ATTRIBUTE_NORETURN): Update definition. Define always.
42732         * lib/sigpipe-die.h (__attribute__): Remove definition.
42733         (ATTRIBUTE_NORETURN): Update definition. Define always.
42734         * lib/vasnprintf.h (__attribute__): Remove definition.
42735         (_GL_ATTRIBUTE_FORMAT): New macro.
42736         (asnprintf, vasnprintf): Use it.
42737         * lib/xalloc.h (__attribute__): Remove definition.
42738         (ATTRIBUTE_NORETURN): Update definition. Define always.
42739         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
42740         * lib/xmemdup0.h (__attribute__): Remove definition.
42741         (ATTRIBUTE_NORETURN): Update definition. Define always.
42742         * lib/xprintf.h (__attribute__): Remove definition.
42743         (_GL_ATTRIBUTE_FORMAT): New macro.
42744         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
42745         * lib/xstrtol.h (__attribute__): Remove definition.
42746         (ATTRIBUTE_NORETURN): Update definition. Define always.
42747         * lib/xvasprintf.h (__attribute__): Remove definition.
42748         (_GL_ATTRIBUTE_FORMAT): New macro.
42749         (xasprintf, xvasprintf): Use it.
42750         * tests/test-argmatch.c (__attribute__): Remove definition.
42751         (ATTRIBUTE_NORETURN): Update definition. Define always.
42752         * tests/test-exclude.c (__attribute__): Remove definition.
42753         (ATTRIBUTE_NORETURN): Update definition. Define always.
42754         Reported by Paul Eggert.
42756 2011-02-13  Bruno Haible  <bruno@clisp.org>
42758         mbrtowc: Add more tests for native Windows platforms.
42759         * tests/test-mbrtowc-w32-1.sh: New file.
42760         * tests/test-mbrtowc-w32-2.sh: New file.
42761         * tests/test-mbrtowc-w32-3.sh: New file.
42762         * tests/test-mbrtowc-w32-4.sh: New file.
42763         * tests/test-mbrtowc-w32-5.sh: New file.
42764         * tests/test-mbrtowc-w32.c: New file.
42765         * modules/mbrtowc-tests (Files): Add them.
42766         (Makefile.am): Arrange to run these tests.
42767         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
42768         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
42770 2011-02-13  Bruno Haible  <bruno@clisp.org>
42772         mbrtowc: Work around native Windows bug.
42773         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
42774         guess when no suitable locale for testing was found.
42775         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
42777 2011-02-13  Bruno Haible  <bruno@clisp.org>
42779         mbsinit: Work around mingw bug.
42780         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
42781         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
42782         Windows.
42783         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
42785 2011-02-13  Bruno Haible  <bruno@clisp.org>
42787         mbsinit: Don't crash for a NULL argument.
42788         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
42789         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
42791 2011-02-13  Bruno Haible  <bruno@clisp.org>
42793         Don't interfere with a program's definition of __attribute__.
42794         * lib/stdio.in.h (__attribute__): Remove definition.
42795         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
42796         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
42797         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
42798         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
42799         * lib/string.in.h (__attribute__): Remove definition.
42800         Reported by Paul Eggert.
42802 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42804         stdlib: don't get in the way of non-GCC __attribute__
42805         See thread starting at
42806         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
42807         Revert previous stdlib change, installing the following instead:
42808         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
42809         to get in the way of a non-GCC compiler that supports __attribute__.
42810         (_GL_ATTRIBUTE_RETURN): New macro.
42811         (_Exit): Use it instead of __attribute__.
42813 2011-02-12  Bruno Haible  <bruno@clisp.org>
42815         quotearg test: Avoid test failure on mingw.
42816         * tests/test-quotearg.sh: Convert the locale identifier from native
42817         Windows syntax to Unix syntax.
42819 2011-02-12  Bruno Haible  <bruno@clisp.org>
42821         setlocale: Prefer gnulib's override over libintl's override.
42822         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
42823         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
42824         GNULIB_defined_setlocale is set.
42826 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42828         stdlib: support non-GCC __attribute__
42830         Fix a serious and tricky problem encountered when attempting to
42831         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
42832         5.5, but it crashed due to memory corruption on Solaris 10 with
42833         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
42834         bits that are otherwise zero.  This tagging is optional inside
42835         Emacs but is preferred and is used when __attribute__ ((__aligned
42836         (8))) works, as it does with both recent-enough GCC and with Sun C
42837         5.11.  However, Sun C 5.11 is not GCC and does not #define
42838         __GNUC__ and __GNUC_MINOR__.
42840         When I added the getloadavg module to Emacs, it brought in
42841         stdlib.in.h, which contained this fragment:
42843            #ifndef __attribute__
42844            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
42845            #  define __attribute__(Spec)   /* empty */
42846            # endif
42847            #endif
42849         When files that include <stdlib.h> were compiled with Sun C 5.11,
42850         the above code disabled __attribute__ ((__aligned (8))), which
42851         caused variables to not be properly aligned, which eventually led
42852         to the pointer corruption mentioned above.  (This was a bit hard
42853         to diagnose, unfortunately.)
42855         Several "#define __attribute__(X) /* empty */" code snippets need
42856         to be eradicated from Gnulib to work with non-GCC compilers that
42857         support __attribute__.  The Autoconf way to do this is to test for
42858         each kind of attribute that we want support for, and selectively
42859         enable that in source code.
42861         Fix this problem just for stdlib.h, by adding a test for the
42862         __noreturn__ attribute, and change stdlib.in.h to use that test
42863         when needed.  This technique can be easily generalized to the
42864         other *.in.h files and attributes, and a similar technique can be
42865         used for *.h and *.c files.  This patch is enough to solve the
42866         problem for Emacs + getloadavg, and I thought I'd publish it for
42867         feedback before undertaking further, similar fixes in other
42868         modules.
42870         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
42871         because it's not needed for stdlib.h.  It merely substitutes the
42872         value directly into stdlib.h.  We may well need to #define it, or
42873         similar symbols, for other modules, but it's nice to also have an
42874         option to not #define it for applications like Emacs that do not
42875         need it.
42877         * lib/stdlib.in.h (__attribute__): Do not #define.
42878         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
42879         be defined only if the _Exit module is also used.
42880         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
42881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
42882         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
42883         platforms.
42884         * modules/_Exit (Files): Add m4/attribute.m4.
42885         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
42886         * m4/attribute.m4: New file.
42888 2011-02-12  Bruno Haible  <bruno@clisp.org>
42890         wcsrtombs: Work around bug on native Windows.
42891         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
42892         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
42893         instead of len.
42894         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
42896 2011-02-12  Bruno Haible  <bruno@clisp.org>
42898         mbsrtowcs: Work around bug on native Windows.
42899         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
42900         against mingw bug.
42901         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
42903 2011-02-12  Bruno Haible  <bruno@clisp.org>
42905         Avoid setlocale bugs in tests.
42906         * modules/btowc (Dependencies): Add setlocale.
42907         * modules/c-strcase (Dependencies): Likewise.
42908         * modules/mbmemcasecmp (Dependencies): Likewise.
42909         * modules/mbmemcasecoll (Dependencies): Likewise.
42910         * modules/mbrtowc (Dependencies): Likewise.
42911         * modules/mbscasecmp (Dependencies): Likewise.
42912         * modules/mbscasestr (Dependencies): Likewise.
42913         * modules/mbschr (Dependencies): Likewise.
42914         * modules/mbscspn (Dependencies): Likewise.
42915         * modules/mbsinit (Dependencies): Likewise.
42916         * modules/mbsncasecmp (Dependencies): Likewise.
42917         * modules/mbsnrtowcs (Dependencies): Likewise.
42918         * modules/mbspbrk (Dependencies): Likewise.
42919         * modules/mbspcasecmp (Dependencies): Likewise.
42920         * modules/mbsrchr (Dependencies): Likewise.
42921         * modules/mbsrtowcs (Dependencies): Likewise.
42922         * modules/mbsspn (Dependencies): Likewise.
42923         * modules/mbsstr (Dependencies): Likewise.
42924         * modules/nl_langinfo (Dependencies): Likewise.
42925         * modules/quotearg (Dependencies): Likewise.
42926         * modules/unicase/locale-language (Dependencies): Likewise.
42927         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
42928         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
42929         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
42930         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
42931         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
42932         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
42933         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
42934         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
42935         * modules/vasnprintf-posix (Dependencies): Likewise.
42936         * modules/wcrtomb (Dependencies): Likewise.
42937         * modules/wcsnrtombs (Dependencies): Likewise.
42938         * modules/wcsrtombs (Dependencies): Likewise.
42940 2011-02-12  Bruno Haible  <bruno@clisp.org>
42942         setlocale: Workaround native Windows bug.
42943         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
42944         succeeds but sets LC_CTYPE to "C", report a failure.
42945         * tests/test-setlocale2.sh: New file.
42946         * tests/test-setlocale2.c: New file.
42947         * modules/setlocale-tests (Files): Add the new files.
42948         (Makefile.am): Enable test-setlocale2.sh test.
42949         * doc/posix-functions/setlocale.texi: Mention workaround.
42951 2011-02-11  Bruno Haible  <bruno@clisp.org>
42953         Tests for module 'setlocale'.
42954         * modules/setlocale-tests: New file.
42955         * tests/test-setlocale1.sh: New file.
42956         * tests/test-setlocale1.c: New file.
42958         New module 'setlocale'.
42959         * lib/locale.in.h (setlocale): New declaration.
42960         * lib/setlocale.c: New file, based on
42961         gettext/gettext-runtime/intl/setlocale.c.
42962         * m4/setlocale.m4: New file.
42963         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
42964         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
42965         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
42966         REPLACE_SETLOCALE.
42967         * modules/setlocale: New file.
42968         * tests/test-locale-c++.cc: Test the declaration of setlocale.
42969         * doc/posix-functions/setlocale.texi: Mention the new module.
42971 2011-02-11  Bruno Haible  <bruno@clisp.org>
42973         Prepare for locale dependent tests on mingw.
42974         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
42975         because it has the wrong locale encoding.
42976         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
42977         French_France.1252 instead of "fr".
42978         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
42979         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
42980         because it has the wrong locale encoding.
42981         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
42982         native Windows, try Turkish_Turkey.65001.
42983         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
42984         Chinese_China.54936.
42986         Prepare for locale dependent tests on mingw.
42987         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
42988         differently.
42989         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
42990         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
42991         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42992         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42994 2011-02-11  Eric Blake  <eblake@redhat.com>
42996         strptime: avoid compiler warnings
42997         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
42998         compiler warnings about dead code.
42999         Reported by Daniel P. Berrange.
43001 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
43003         doc: update users.txt
43004         * users.txt: Add rcs.
43006 2011-02-10  John W. Eaton  <jwe@gnu.org>
43008         doc: update users.txt
43009         * users.txt: Add octave.
43011 2011-02-10  Jim Meyering  <meyering@redhat.com>
43013         doc: update users.txt
43014         * users.txt: Add iwhd.
43016 2011-02-09  Bruno Haible  <bruno@clisp.org>
43018         gnulib-tool: Make copyright notice adjustment more robust.
43019         * gnulib-tool (func_import): In sed_transform_main_lib_file,
43020         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
43021         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
43022         License".
43023         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
43025 2011-02-06  Bruno Haible  <bruno@clisp.org>
43027         New module 'towctrans'.
43028         * modules/towctrans: New file.
43029         * lib/wctype.in.h (towctrans): New declaration.
43030         * lib/towctrans.c: New file.
43031         * lib/towctrans-impl.h: New file.
43032         * m4/towctrans.m4: New file.
43033         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
43034         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
43035         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
43036         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
43037         * doc/posix-functions/towctrans.texi: Mention the new module.
43039 2011-02-06  Bruno Haible  <bruno@clisp.org>
43041         New module 'wctrans'.
43042         * modules/wctrans: New file.
43043         * lib/wctype.in.h (wctrans): New declaration.
43044         * lib/wctrans.c: New file.
43045         * lib/wctrans-impl.h: New file.
43046         * m4/wctrans.m4: New file.
43047         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
43048         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
43049         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
43050         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
43051         * doc/posix-functions/wctrans.texi: Mention the new module.
43053 2011-02-06  Bruno Haible  <bruno@clisp.org>
43055         New module 'iswctype'.
43056         * modules/iswctype: New file.
43057         * lib/wctype.in.h (iswctype): New declaration.
43058         * lib/iswctype.c: New file.
43059         * lib/iswctype-impl.h: New file.
43060         * m4/iswctype.m4: New file.
43061         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
43062         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
43063         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
43064         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
43065         * doc/posix-functions/iswctype.texi: Mention the new module and the
43066         HP-UX 11.00 problem.
43068 2011-02-06  Bruno Haible  <bruno@clisp.org>
43070         New module 'wctype'.
43071         * modules/wctype: Change to represent the wctype() substitute.
43072         * lib/wctype.in.h (wctype): New declaration.
43073         * lib/wctype.c: New file.
43074         * lib/wctype-impl.h: New file.
43075         * m4/wctype.m4: New file.
43076         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
43077         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
43078         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
43079         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
43080         * doc/posix-functions/wctype.texi: Mention the new module and the
43081         HP-UX 11.00 problem.
43083 2011-02-06  Bruno Haible  <bruno@clisp.org>
43085         wctype-h: Ensure wctype_t and wctrans_t are defined.
43086         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
43087         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
43088         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
43089         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
43090         HAVE_WCTRANS_T.
43091         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
43093 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
43095         flock: fix license typo
43097         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
43098         omitted.
43100 2011-02-08  Bruno Haible  <bruno@clisp.org>
43102         Split large sed scripts, for HP-UX sed.
43103         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
43104         to avoid HP-UX limit of 99 commands, in the near future.
43105         * modules/stdlib (Makefile.am): Likewise.
43106         * modules/unistd (Makefile.am): Likewise.
43107         * modules/wchar (Makefile.am): Likewise.
43108         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43109         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
43110         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
43112 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
43113             Bruno Haible  <bruno@clisp.org>
43115         stdlib: improve random_r modularization
43116         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
43117         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
43118         you also need the random_r module to get this material right.
43119         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
43120         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
43121         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
43123 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
43125         stdlib: don't depend on stdint
43126         * lib/stdlib.in.h: Don't include <stdint.h> merely because
43127         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
43128         be independent of whether stdint.h is needed.
43129         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
43130         here, instead of ...
43131         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
43132         struct random_data should be using the random_r module, not just
43133         the stdlib module (which wouldn't make sense: what package needs
43134         just struct random_data without also needing random_r?).
43135         * modules/stdlib (Depends-on): Remove stdint.
43137         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
43138         See the thread rooted at
43139         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
43140         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
43141         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
43142         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
43143         __VMS)); previously it was always included (via fcntl--.h).
43144         (getloadavg): Do not use c_strtod.  Instead, approximate it by
43145         hand; this is good enough for load averages.  Also, do not use
43146         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
43147         flags directly if available and don't bother otherwise.  (Packages
43148         that need the extra reliability should use the modules that define
43149         these flags on older platforms that lack them.)
43150         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
43151         fcntl-safer.
43153 2011-02-08  Jim Meyering  <meyering@redhat.com>
43155         di-set.h, ino-map.h: add multiple-inclusion guard
43156         Technically, the guard is required only for ino-map.h, due to its
43157         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
43158         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
43159         * lib/ino-map.h: Likewise.
43161 2011-02-06  Bruno Haible  <bruno@clisp.org>
43163         iswblank: Ensure declaration on glibc systems.
43164         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
43165         * modules/iswblank (Dependencies): Add 'extensions'.
43166         * doc/posix-functions/iswblank.texi: Document the glibc problem.
43168 2011-02-06  Bruno Haible  <bruno@clisp.org>
43170         New module 'iswblank'.
43171         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
43172         * modules/iswblank: New file.
43173         * modules/wctype-h (Files): Remove lib/iswblank.c.
43174         (Makefile.am): Substitute GNULIB_ISWBLANK.
43175         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
43176         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
43177         (gl_WCTYPE_H_DEFAULTS): New macro.
43178         (gl_WCTYPE_H): Require it. Remove iswblank related code.
43179         * modules/iswblank-tests: New file.
43180         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
43181         * tests/test-wctype-h.c (main): Remove iswblank tests.
43182         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
43183         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
43184         of 'wctype-h'.
43185         * NEWS: Mention the change.
43186         * modules/mbchar (Depends-on): Add iswblank.
43188 2011-02-08  Bruno Haible  <bruno@clisp.org>
43190         di-set tests: Refactor.
43191         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
43192         unnecessary includes.
43193         (ASSERT): Remove macro.
43194         (main): Make C90 compliant by avoiding variable declaration after
43195         statement.
43196         * modules/di-set-tests (Files): Add tests/macros.h.
43198 2011-02-08  Bruno Haible  <bruno@clisp.org>
43200         ino-map tests: Refactor.
43201         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
43202         unnecessary includes.
43203         (ASSERT): Remove macro.
43204         (main): Make C90 compliant by avoiding variable declaration after
43205         statement.
43206         * modules/ino-map-tests (Files): Add tests/macros.h.
43208 2011-02-08  Jim Meyering  <meyering@redhat.com>
43210         di-set: add "const" to a cast
43211         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
43212         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
43214 2011-02-06  Bruno Haible  <bruno@clisp.org>
43216         Rename module 'wctype' to 'wctype-h'.
43217         * modules/wctype-h: Renamed from modules/wctype.
43218         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
43219         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
43220         (Files, Depends-on, Makefile.am): Update.
43221         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
43222         (Files, Makefile.am): Update.
43223         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
43224         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
43225         * doc/posix-headers/wctype.texi: Update.
43226         * doc/posix-functions/iswalnum.texi: Update.
43227         * doc/posix-functions/iswalpha.texi: Update.
43228         * doc/posix-functions/iswblank.texi: Update.
43229         * doc/posix-functions/iswcntrl.texi: Update.
43230         * doc/posix-functions/iswdigit.texi: Update.
43231         * doc/posix-functions/iswgraph.texi: Update.
43232         * doc/posix-functions/iswlower.texi: Update.
43233         * doc/posix-functions/iswprint.texi: Update.
43234         * doc/posix-functions/iswpunct.texi: Update.
43235         * doc/posix-functions/iswspace.texi: Update.
43236         * doc/posix-functions/iswupper.texi: Update.
43237         * doc/posix-functions/iswxdigit.texi: Update.
43238         * doc/posix-functions/towlower.texi: Update.
43239         * doc/posix-functions/towupper.texi: Update.
43240         * NEWS: Mention the change.
43241         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
43242         * modules/mbchar (Dependencies): Likewise.
43243         * modules/mbswidth (Dependencies): Likewise.
43244         * modules/quotearg (Dependencies): Likewise.
43245         * modules/regex (Dependencies): Likewise.
43246         * modules/wcscasecmp (Dependencies): Likewise.
43247         * modules/wcsncasecmp (Dependencies): Likewise.
43248         * modules/wcwidth (Dependencies): Likewise.
43250 2011-02-06  Bruno Haible  <bruno@clisp.org>
43252         New module 'wcswidth'.
43253         * modules/wcswidth: New file.
43254         * lib/wchar.in.h (wcswidth): New declaration.
43255         * lib/wcswidth.c: New file.
43256         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
43257         * m4/wcswidth.m4: New file.
43258         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
43259         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
43260         REPLACE_WCSWIDTH.
43261         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
43262         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
43263         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
43264         * doc/posix-functions/wcswidth.texi: Mention the new module.
43266 2011-02-06  Bruno Haible  <bruno@clisp.org>
43268         New module 'wcstok'.
43269         * modules/wcstok: New file.
43270         * lib/wchar.in.h (wcstok): New declaration.
43271         * lib/wcstok.c: New file.
43272         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
43273         * m4/wcstok.m4: New file.
43274         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
43275         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
43276         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
43277         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
43278         * doc/posix-functions/wcstok.texi: Mention the new module.
43280 2011-02-06  Bruno Haible  <bruno@clisp.org>
43282         New module 'wcsstr'.
43283         * modules/wcsstr: New file.
43284         * lib/wchar.in.h (wcsstr): New declaration.
43285         * lib/wcsstr.c: New file.
43286         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
43287         * m4/wcsstr.m4: New file.
43288         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
43289         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
43290         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
43291         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
43292         * doc/posix-functions/wcsstr.texi: Mention the new module.
43294 2011-02-06  Bruno Haible  <bruno@clisp.org>
43296         New module 'wcspbrk'.
43297         * modules/wcspbrk: New file.
43298         * lib/wchar.in.h (wcspbrk): New declaration.
43299         * lib/wcspbrk.c: New file.
43300         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
43301         * m4/wcspbrk.m4: New file.
43302         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
43303         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
43304         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
43305         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
43306         * doc/posix-functions/wcspbrk.texi: Mention the new module.
43308 2011-02-06  Bruno Haible  <bruno@clisp.org>
43310         New module 'wcsspn'.
43311         * modules/wcsspn: New file.
43312         * lib/wchar.in.h (wcsspn): New declaration.
43313         * lib/wcsspn.c: New file.
43314         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
43315         * m4/wcsspn.m4: New file.
43316         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
43317         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
43318         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
43319         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
43320         * doc/posix-functions/wcsspn.texi: Mention the new module.
43322 2011-02-06  Bruno Haible  <bruno@clisp.org>
43324         New module 'wcscspn'.
43325         * modules/wcscspn: New file.
43326         * lib/wchar.in.h (wcscspn): New declaration.
43327         * lib/wcscspn.c: New file.
43328         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
43329         * m4/wcscspn.m4: New file.
43330         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
43331         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
43332         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
43333         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
43334         * doc/posix-functions/wcscspn.texi: Mention the new module.
43336 2011-02-06  Bruno Haible  <bruno@clisp.org>
43338         New module 'wcsrchr'.
43339         * modules/wcsrchr: New file.
43340         * lib/wchar.in.h (wcsrchr): New declaration.
43341         * lib/wcsrchr.c: New file.
43342         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
43343         * m4/wcsrchr.m4: New file.
43344         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
43345         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
43346         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
43347         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
43348         * doc/posix-functions/wcsrchr.texi: Mention the new module.
43350 2011-02-06  Bruno Haible  <bruno@clisp.org>
43352         New module 'wcschr'.
43353         * modules/wcschr: New file.
43354         * lib/wchar.in.h (wcschr): New declaration.
43355         * lib/wcschr.c: New file.
43356         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
43357         * m4/wcschr.m4: New file.
43358         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
43359         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
43360         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
43361         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
43362         * doc/posix-functions/wcschr.texi: Mention the new module.
43364 2011-02-06  Bruno Haible  <bruno@clisp.org>
43366         New module 'wcsdup'.
43367         * modules/wcsdup: New file.
43368         * lib/wchar.in.h (wcsdup): New declaration.
43369         * lib/wcsdup.c: New file.
43370         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
43371         * m4/wcsdup.m4: New file.
43372         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
43373         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
43374         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
43375         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
43376         * doc/posix-functions/wcsdup.texi: Mention the new module.
43378 2011-02-06  Bruno Haible  <bruno@clisp.org>
43380         New module 'wcsxfrm'.
43381         * modules/wcsxfrm: New file.
43382         * lib/wchar.in.h (wcsxfrm): New declaration.
43383         * lib/wcsxfrm.c: New file.
43384         * lib/wcsxfrm-impl.h: New file.
43385         * m4/wcsxfrm.m4: New file.
43386         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
43387         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
43388         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
43389         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
43390         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
43392 2011-02-06  Bruno Haible  <bruno@clisp.org>
43394         New module 'wcscoll'.
43395         * modules/wcscoll: New file.
43396         * lib/wchar.in.h (wcscoll): New declaration.
43397         * lib/wcscoll.c: New file.
43398         * lib/wcscoll-impl.h: New file.
43399         * m4/wcscoll.m4: New file.
43400         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
43401         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
43402         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
43403         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
43404         * doc/posix-functions/wcscoll.texi: Mention the new module.
43406 2011-02-06  Bruno Haible  <bruno@clisp.org>
43408         New module 'wcsncasecmp'.
43409         * modules/wcsncasecmp: New file.
43410         * lib/wchar.in.h (wcsncasecmp): New declaration.
43411         * lib/wcsncasecmp.c: New file.
43412         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
43413         * m4/wcsncasecmp.m4: New file.
43414         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
43415         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
43416         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
43417         HAVE_WCSNCASECMP.
43418         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
43419         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
43421 2011-02-06  Bruno Haible  <bruno@clisp.org>
43423         New module 'wcscasecmp'.
43424         * modules/wcscasecmp: New file.
43425         * lib/wchar.in.h (wcscasecmp): New declaration.
43426         * lib/wcscasecmp.c: New file.
43427         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
43428         * m4/wcscasecmp.m4: New file.
43429         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
43430         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
43431         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
43432         HAVE_WCSCASECMP.
43433         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
43434         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
43436 2011-02-05  Bruno Haible  <bruno@clisp.org>
43438         New module 'wcsncmp'.
43439         * modules/wcsncmp: New file.
43440         * lib/wchar.in.h (wcsncmp): New declaration.
43441         * lib/wcsncmp.c: New file.
43442         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
43443         * m4/wcsncmp.m4: New file.
43444         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
43445         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
43446         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
43447         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
43448         * doc/posix-functions/wcsncmp.texi: Mention the new module.
43450 2011-02-05  Bruno Haible  <bruno@clisp.org>
43452         New module 'wcscmp'.
43453         * modules/wcscmp: New file.
43454         * lib/wchar.in.h (wcscmp): New declaration.
43455         * lib/wcscmp.c: New file.
43456         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
43457         * m4/wcscmp.m4: New file.
43458         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
43459         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
43460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
43461         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
43462         * doc/posix-functions/wcscmp.texi: Mention the new module.
43464 2011-02-05  Bruno Haible  <bruno@clisp.org>
43466         New module 'wcsncat'.
43467         * modules/wcsncat: New file.
43468         * lib/wchar.in.h (wcsncat): New declaration.
43469         * lib/wcsncat.c: New file.
43470         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
43471         * m4/wcsncat.m4: New file.
43472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
43473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
43474         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
43475         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
43476         * doc/posix-functions/wcsncat.texi: Mention the new module.
43478 2011-02-05  Bruno Haible  <bruno@clisp.org>
43480         New module 'wcscat'.
43481         * modules/wcscat: New file.
43482         * lib/wchar.in.h (wcscat): New declaration.
43483         * lib/wcscat.c: New file.
43484         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
43485         * m4/wcscat.m4: New file.
43486         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
43487         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
43488         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
43489         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
43490         * doc/posix-functions/wcscat.texi: Mention the new module.
43492 2011-02-05  Bruno Haible  <bruno@clisp.org>
43494         New module 'wcpncpy'.
43495         * modules/wcpncpy: New file.
43496         * lib/wchar.in.h (wcpncpy): New declaration.
43497         * lib/wcpncpy.c: New file.
43498         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
43499         * m4/wcpncpy.m4: New file.
43500         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
43501         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
43502         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
43503         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
43504         * doc/posix-functions/wcpncpy.texi: Mention the new module.
43506 2011-02-05  Bruno Haible  <bruno@clisp.org>
43508         New module 'wcsncpy'.
43509         * modules/wcsncpy: New file.
43510         * lib/wchar.in.h (wcsncpy): New declaration.
43511         * lib/wcsncpy.c: New file.
43512         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
43513         * m4/wcsncpy.m4: New file.
43514         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
43515         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
43516         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
43517         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
43518         * doc/posix-functions/wcsncpy.texi: Mention the new module.
43520 2011-02-05  Bruno Haible  <bruno@clisp.org>
43522         New module 'wcpcpy'.
43523         * modules/wcpcpy: New file.
43524         * lib/wchar.in.h (wcpcpy): New declaration.
43525         * lib/wcpcpy.c: New file.
43526         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
43527         * m4/wcpcpy.m4: New file.
43528         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
43529         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
43530         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
43531         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
43532         * doc/posix-functions/wcpcpy.texi: Mention the new module.
43534 2011-02-05  Bruno Haible  <bruno@clisp.org>
43536         New module 'wcscpy'.
43537         * modules/wcscpy: New file.
43538         * lib/wchar.in.h (wcscpy): New declaration.
43539         * lib/wcscpy.c: New file.
43540         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
43541         * m4/wcscpy.m4: New file.
43542         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
43543         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
43544         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
43545         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
43546         * doc/posix-functions/wcscpy.texi: Mention the new module.
43548 2011-02-05  Bruno Haible  <bruno@clisp.org>
43550         New module 'wcsnlen'.
43551         * modules/wcsnlen: New file.
43552         * lib/wchar.in.h (wcsnlen): New declaration.
43553         * lib/wcsnlen.c: New file.
43554         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
43555         * m4/wcsnlen.m4: New file.
43556         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
43557         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
43558         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
43559         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
43560         * doc/posix-functions/wcsnlen.texi: Mention the new module.
43562 2011-02-05  Bruno Haible  <bruno@clisp.org>
43564         New module 'wcslen'.
43565         * modules/wcslen: New file.
43566         * lib/wchar.in.h (wcslen): New declaration.
43567         * lib/wcslen.c: New file.
43568         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
43569         * m4/wcslen.m4: New file.
43570         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
43571         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
43572         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
43573         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
43574         * doc/posix-functions/wcslen.texi: Mention the new module.
43576 2011-02-05  Bruno Haible  <bruno@clisp.org>
43578         New module 'wmemset'.
43579         * modules/wmemset: New file.
43580         * lib/wchar.in.h (wmemset): New declaration.
43581         * lib/wmemset.c: New file.
43582         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
43583         * m4/wmemset.m4: New file.
43584         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
43585         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
43586         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
43587         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
43588         * doc/posix-functions/wmemset.texi: Mention the new module.
43590 2011-02-05  Bruno Haible  <bruno@clisp.org>
43592         New module 'wmemmove'.
43593         * modules/wmemmove: New file.
43594         * lib/wchar.in.h (wmemmove): New declaration.
43595         * lib/wmemmove.c: New file.
43596         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
43597         * m4/wmemmove.m4: New file.
43598         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
43599         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
43600         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
43601         HAVE_WMEMMOVE.
43602         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
43603         * doc/posix-functions/wmemmove.texi: Mention the new module.
43605 2011-02-05  Bruno Haible  <bruno@clisp.org>
43607         New module 'wmemcpy'.
43608         * modules/wmemcpy: New file.
43609         * lib/wchar.in.h (wmemcpy): New declaration.
43610         * lib/wmemcpy.c: New file.
43611         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
43612         * m4/wmemcpy.m4: New file.
43613         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
43614         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
43615         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
43616         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
43617         * doc/posix-functions/wmemcpy.texi: Mention the new module.
43619 2011-02-05  Bruno Haible  <bruno@clisp.org>
43621         New module 'wmemcmp'.
43622         * modules/wmemcmp: New file.
43623         * lib/wchar.in.h (wmemcmp): New declaration.
43624         * lib/wmemcmp.c: New file.
43625         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
43626         * m4/wmemcmp.m4: New file.
43627         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
43628         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
43629         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
43630         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
43631         * doc/posix-functions/wmemcmp.texi: Mention the new module.
43633 2011-02-07  Jim Meyering  <meyering@redhat.com>
43635         di-set, ino-map: new modules, from coreutils
43636         * lib/di-set.c: New file.
43637         * lib/di-set.h: Likewise.
43638         * lib/ino-map.c: Likewise.
43639         * lib/ino-map.h: Likewise.
43640         * modules/di-set: Likewise.
43641         * modules/di-set-tests: Likewise.
43642         * modules/ino-map: Likewise.
43643         * modules/ino-map-tests: Likewise.
43644         * tests/test-di-set.c: Likewise.
43645         * tests/test-ino-map.c: Likewise.
43647 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
43649         getloadavg: merge minor changes from Emacs
43651         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
43652         (getloadavg): Use memset, not bzero.
43654         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
43655         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
43656         clash (bug#86).
43658 2010-11-14  Bruno Haible  <bruno@clisp.org>
43660         Allow multiple gnulib generated replacements to coexist.
43661         * lib/getopt.in.h (struct option): Avoid identical redefinition.
43662         * lib/inttypes.in.h (imaxdiv_t): Likewise.
43663         * lib/langinfo.in.h (nl_item): Likewise.
43664         * lib/math.in.h (_NaN, NAN): Likewise.
43665         * lib/netdb.in.h (struct addrinfo): Likewise.
43666         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
43667         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
43668         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
43669         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
43670         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
43671         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
43672         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
43673         pthread_mutexattr_init, pthread_mutexattr_settype,
43674         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
43675         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
43676         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
43677         pthread_spin_trylock, pthread_spin_unlock): Likewise.
43678         * lib/sched.in.h (struct sched_param): Likewise.
43679         * lib/se-selinux.in.h (security_class_t, security_context_t,
43680         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
43681         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
43682         lsetfilecon, fsetfilecon, security_check_context,
43683         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
43684         Likewise.
43685         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
43686         Likewise.
43687         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
43688         _gl_function_taking_int_returning_void_t, union sigval,
43689         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
43690         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
43691         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
43692         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
43693         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
43694         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
43695         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
43696         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
43697         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
43698         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
43699         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
43700         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
43701         socklen_t, rpl_fd_isset): Likewise.
43702         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
43703         * lib/sys_time.in.h (struct timeval): Likewise.
43704         * lib/sys_times.in.h (struct tms): Likewise.
43705         * lib/sys_utsname.in.h (struct utsname):
43706         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
43707         * lib/unistd.in.h (getpagesize): Likewise.
43708         * lib/wchar.in.h (mbstate_t): Likewise.
43709         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43710         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
43711         towlower, towupper): Likewise.
43712         Reported by Sam Steingold <sds@gnu.org>.
43714 2011-02-05  Eric Blake  <eblake@redhat.com>
43716         unsetenv: work around Haiku issues
43717         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
43718         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
43720 2010-12-30  Bruce Korb  <bkorb@gnu.org>
43722         libposix: avoid calling error() within libposix
43723         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
43724         is defined.
43726 2011-02-05  Eric Blake  <eblake@redhat.com>
43728         strerror_r-posix: port to cygwin
43729         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
43730         implementation.
43731         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
43732         * tests/test-strerror_r.c (main): Fix test.
43733         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
43734         issue.
43736 2011-02-05  Bruno Haible  <bruno@clisp.org>
43738         New module 'wmemchr'.
43739         * modules/wmemchr: New file.
43740         * lib/wchar.in.h (wmemchr): New declaration.
43741         * lib/wmemchr.c: New file.
43742         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
43743         * m4/wmemchr.m4: New file.
43744         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
43745         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
43746         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
43747         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
43748         * doc/posix-functions/wmemchr.texi: Mention the new module.
43750 2011-02-04  Eric Blake  <eblake@redhat.com>
43752         fdopendir: detect FreeBSD bug
43753         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
43754         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
43756 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43758         stdbool: do not define HAVE_STDBOOL_H
43759         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
43760         AC_HEADER_STDBOOL.  All uses changed.  Do not define
43761         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
43762         imported from the latest Autoconf git.  It was motivated by Emacs,
43763         which uses gnulib but does not need HAVE_STDBOOL_H.
43765 2011-02-04  Bruno Haible  <bruno@clisp.org>
43767         wcsnrtombs: Prepare for new module wwcsnrtombs.
43768         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
43769         * lib/wcsnrtombs.c: Include it.
43770         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
43772         wcsrtombs: Prepare for new module wwcsrtombs.
43773         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
43774         * lib/wcsrtombs.c: Include it.
43775         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
43777         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
43778         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
43779         * lib/mbsnrtowcs.c: Include it.
43780         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
43782         mbsrtowcs: Prepare for new module mbsrtowwcs.
43783         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
43784         * lib/mbsrtowcs.c: Include it.
43785         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
43787 2011-02-04  Bruno Haible  <bruno@clisp.org>
43789         vasnprintf: Reduce use of malloc for small format strings.
43790         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
43791         (arguments): Add room for the first 7 arguments.
43792         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
43793         (char_directives, u8_directives, u16_directives, u32_directives): Add
43794         room for the first 7 directives.
43795         * lib/printf-parse.c: Include <string.h>.
43796         (PRINTF_PARSE): Change memory handling code so that it uses the first
43797         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
43798         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
43799         Reported by Pádraig Brady <P@draigbrady.com>.
43801 2011-01-31  Eric Blake  <eblake@redhat.com>
43803         dup2: work around Haiku bug
43804         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
43805         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
43806         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43807         * tests/test-dup2.c (main): Enhance test.
43809 2011-01-31  Simon Josefsson  <simon@josefsson.org>
43811         doc: off_t is not available in eglibc 2.11.2 stdio.h.
43812         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
43813         declared by eglibc 2.11.2.
43814         * lib/stdio.in.h: Likewise.
43816 2011-01-31  Eric Blake  <eblake@redhat.com>
43818         ignore-value: add missing test dependency
43819         * tests/test-ignore-value.c: Revert previous change; stdio.h
43820         provides off_t.
43821         * modules/ignore-value-tests (Depends-on): Add missing dependency.
43823 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
43825         mktime: clarify long_int width checking
43826         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
43827         the top level, to make it clearer that the assumption about
43828         long_int width is being checked.  See
43829         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
43831 2011-01-30  Simon Josefsson  <simon@josefsson.org>
43833         ignore-value: Fix self-test.
43834         * tests/test-ignore-value.c: Include sys/types.h for off_t.
43836 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
43838         TYPE_MAXIMUM: avoid theoretically undefined behavior
43839         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
43840         negative number, which the C Standard says has undefined behavior.
43841         In practice this is not a problem, but might as well do it by the book.
43842         Reported by Rich Felker and Eric Blake; see
43843         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
43844         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
43845         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
43846         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43847         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
43848         * m4/stdint.m4 (gl_STDINT_H): Likewise.
43849         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
43851         mktime: #undef mktime before #defining it
43852         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
43854         mktime: systematically normalize tm_isdst comparisons
43855         * lib/mktime.c (isdst_differ): New function.
43856         (__mktime_internal): Use it systematically for all isdst comparisons.
43857         This completes the fix for libc BZ #6723, and removes the need for
43858         normalizing tm_isdst.  See
43859         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
43860         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
43862         mktime: fix some integer overflow issues and sidestep the rest
43864         This was prompted by a bug report by Benjamin Lindner for MinGW
43865         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
43866         His bug is due to signed integer overflow (0 - INT_MIN), and I
43867         I scanned through mktime.c looking for other integer overflow
43868         problems, fixing all the bugs I found.
43870         Although the C Standard says the resulting code is still not safe
43871         in the presence of integer overflow, in practice it should be good
43872         enough for all real-world two's-complement implementations, except
43873         for debugging environments that deliberately trap on integer
43874         overflow (e.g., gcc -ftrapv).
43876         * lib/mktime.c (WRAPV): New macro.
43877         (SHR): Also check that long_int and time_t shift right in the
43878         usual way, before using the fast-but-unportable method.
43879         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
43880         used.  The code already assumed two's complement, so there's
43881         no need to test for alternatives.  All uses removed.
43882         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
43883         the C standard.  Problem reported by Rich Felker in
43884         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
43885         (twos_complement_arithmetic): Also check long_int and time_t.
43886         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
43887         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
43888         (__mktime_internal): Avoid integer overflow with unary subtraction
43889         in two instances where -1 - X is an adequate replacement for -X,
43890         since the calculations are approximate.
43892 2011-01-29  Eric Blake  <eblake@redhat.com>
43894         mktime: avoid infinite loop
43895         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
43896         type; behavior is still undefined but portable to all known targets.
43897         Reported by Rich Felker.
43899 2011-01-29  Simon Josefsson  <simon@josefsson.org>
43901         rename, unlink, same-inode: Relicense.
43902         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
43903         * modules/unlink (License): Likewise.
43904         * modules/same-inode (License): Likewise.
43906 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
43908         mktime: avoid problems on NetBSD 5 / i386
43909         * lib/mktime.c (long_int): New type.  This works around a problem
43910         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
43911         but time_t is 64 bits, and where I expect the existing code is
43912         wrong in some cases.
43913         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
43914         (ydhms_diff): Bring back the compile-time check for wide-enough
43915         year and yday.
43917         mktime: fix misspelling in comment
43918         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
43919         This merges all recent glibc changes of importance.
43921 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43923         move-if-change: cope with concurrent mv of identical file.
43924         * build-aux/move-if-change (CMPPROG): Accept environment
43925         variable as an override for `cmp'.
43926         (usage): Document CMPPROG.
43927         Adjust comparison to drop stdout.  Cope with failure of mv if
43928         the target file exists and is identical to the source, for
43929         parallel builds.
43930         Report from H.J. Lu against binutils in PR binutils/12283.
43932 2011-01-28  Bruce Korb  <bkorb@gnu.org>
43934         * users.txt: Mention sharutils.
43936 2011-01-28  Simon Josefsson  <simon@josefsson.org>
43938         * users.txt: Mention OATH Toolkit.
43940 2011-01-27  Bruno Haible  <bruno@clisp.org>
43942         Prepare for supporting FreeBSD 10.
43943         * build-aux/config.libpath: Remove handling of freebsd1*.
43945 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
43947         Prepare for supporting FreeBSD 10.
43948         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
43949         match FreeBSD 10.0.
43951 2011-01-27  Bruno Haible  <bruno@clisp.org>
43953         vma-iter, get-rusage-as: Add OpenBSD support.
43954         * modules/vma-iter (configure.ac): Test for mquery.
43955         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
43956         * lib/vma-iter.c: Include <sys/mman.h>.
43957         (vma_iterate): Add an implementation based on mquery().
43958         * lib/resource-ext.h (get_rusage_as): Update comments.
43959         * lib/get-rusage-as.c: Likewise.
43960         * lib/get-rusage-data.c: Likewise.
43962 2011-01-26  Karl Berry  <karl@gnu.org>
43964         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
43965         variables to make it easier to override the makeinfo program used.
43967 2011-01-26  Eric Blake  <eblake@redhat.com>
43969         fcntl: work around Haiku F_DUPFD bugs
43970         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
43971         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
43972         cloexec bit on duplication.
43973         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
43975 2011-01-26  Bruno Haible  <bruno@clisp.org>
43977         Enable memory leak tests on AIX.
43978         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
43979         * tests/test-fprintf-posix3.c (main): Likewise.
43981 2011-01-26  Bruno Haible  <bruno@clisp.org>
43983         Tests for module 'get-rusage-data'.
43984         * modules/get-rusage-data-tests: New file.
43985         * tests/test-get-rusage-data.c: New file.
43987         New module 'get-rusage-data'.
43988         * lib/resource-ext.h (get_rusage_data): New declaration.
43989         * lib/get-rusage-data.c: New file.
43990         * modules/get-rusage-data: New file.
43992 2011-01-25  Bruno Haible  <bruno@clisp.org>
43994         get-rusage-as: Allow for easier testing.
43995         * lib/resource-ext.h (get_rusage_as): Add comment.
43996         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
43997         (main): New function for interactive testing.
43999 2011-01-25  Bruno Haible  <bruno@clisp.org>
44001         vma-iter: Treat Haiku like BeOS.
44002         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
44003         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
44005 2011-01-25  Eric Blake  <eblake@redhat.com>
44007         c-stack: fix regression on cygwin when libsigsegv is present
44008         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
44010 2011-01-24  Bruno Haible  <bruno@clisp.org>
44012         vma-iter: Avoid empty intervals.
44013         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
44014         on an empty interval.
44016 2011-01-24  Jim Meyering  <meyering@redhat.com>
44018         u64: remove unnecessary #include
44019         * lib/u64.h: Don't include <stddef.h>.  It was not used.
44021 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44023         Allow the user to avoid the HAVE_RAW_DECL_* macros.
44024         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
44026 2011-01-23  Bruno Haible  <bruno@clisp.org>
44028         New module 'vma-iter'.
44029         * lib/vma-iter.h: New file.
44030         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
44031         * modules/vma-iter: New file.
44032         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
44033         for get_rusage_as_via_iterator.
44034         (vma_iterate_callback): New function.
44035         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
44036         * modules/get-rusage-as (Depends-on): Add vma-iter.
44038 2011-01-23  Bruno Haible  <bruno@clisp.org>
44040         uninorm: Tweak includes.
44041         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
44042         Reported by Jim Meyering.
44044 2011-01-23  Bruno Haible  <bruno@clisp.org>
44046         get-rusage-as: Improve on NetBSD.
44047         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
44048         /proc, like on FreeBSD.
44050 2011-01-23  Jim Meyering  <meyering@redhat.com>
44052         xreadlink.h: remove unnecessary #include
44053         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
44055         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
44056         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
44058 2011-01-23  Bruno Haible  <bruno@clisp.org>
44060         get-rusage-as: Fix bug.
44061         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
44062         original limit when aborting the first loop.
44064 2011-01-23  Bruno Haible  <bruno@clisp.org>
44066         wctype: Ensure valid C syntax.
44067         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
44068         unconditionally, instead of gl_NEXT_HEADERS conditionally.
44070 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
44072         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
44073         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
44074         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
44075         as they are needed only for configure's test case.
44076         This removes two unnecessary symbols from config.h.
44078         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
44079         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
44080         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
44081         AC_CHECK_HEADERS_ONCE on a header that we also invoke
44082         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
44083         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
44084         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
44085         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
44086         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
44087         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
44088         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
44089         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44090         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
44091         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
44092         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
44093         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44094         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
44095         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
44097 2011-01-21  Eric Blake  <eblake@redhat.com>
44099         maintainer-makefile: work with older git for submodule check
44100         * top/maint.mk (public-submodule-commit): Rewrite to avoid
44101         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
44102         Reported by Matthias Bolte.
44104         bootstrap: minor portability fixes
44105         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
44106         (usage): Omit leading capital and trailing . on help phrases, per
44107         GNU Coding Standards.
44108         (check_versions, top level): Prefix messages with script name.
44110 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
44112         bootstrap: support --no-git option
44113         * build-aux/bootstrap: Add --no-git option, to be used when
44114         --gnulib-srcdir points to the exact desired checkout.
44116 2011-01-21  Eric Blake  <eblake@redhat.com>
44118         strerror_r-posix: work with glibc 2.13
44119         * lib/strerror_r.c (strerror_r): Fix return type.
44121 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44122             Bruno Haible  <bruno@clisp.org>
44124         uN_strstr: New unit tests.
44125         * modules/unistr/u8-strstr-tests: New file.
44126         * modules/unistr/u16-strstr-tests: New file.
44127         * modules/unistr/u32-strstr-tests: New file.
44128         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
44129         * tests/unistr/test-u8-strstr.c: New file.
44130         * tests/unistr/test-u16-strstr.c: New file.
44131         * tests/unistr/test-u32-strstr.c: New file.
44133 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44134             Bruno Haible  <bruno@clisp.org>
44136         Make uN_strstr functions O(n) worst-case.
44137         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
44138         16-bit and 32-bit unit cases, use the unibyte algorithm from
44139         lib/mbsstr.c.
44140         * lib/unistr/u8-strstr.c: Include <string.h>.
44141         (UNIT_IS_UINT8_T): New macro.
44142         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
44143         (U_STRLEN, U_STRNLEN): New macros.
44144         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
44145         (U_STRLEN, U_STRNLEN): New macros.
44146         * modules/unistr/u8-strstr (Depends-on): Add strstr.
44147         (configure.ac): Update required libunistring version.
44148         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
44149         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
44150         malloca.
44151         (configure.ac): Update required libunistring version.
44152         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
44153         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
44154         malloca.
44155         (configure.ac): Update required libunistring version.
44157 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44158             Bruno Haible  <bruno@clisp.org>
44160         Prepare for faster uN_strstr functions.
44161         * lib/str-kmp.h: Support definable UNITs.
44162         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
44163         needle_len argument.
44164         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
44165         * lib/mbscasestr.c (mbscasestr): Likewise.
44167 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44169         malloca-tests: make faster by unsetting MALLOC_PERTURB_
44170         * tests/test-malloca.c (main): Unset the environment variable
44171         to greatly speed up the test.
44172         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
44173         * modules/malloca-tests: Depend on unsetenv.
44175 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44177         ignore-value: remove stdint dependency
44178         * lib/ignore-value.h: Remove <stdint.h>
44179         * modules/ignore-value: Remove stdint dependency.
44181 2011-01-21  Jim Meyering  <meyering@redhat.com>
44183         maint.mk: adjust variable name to be consistent with other gl_ vars
44184         * top/maint.mk (gl_public_submodule_commit): Rename the variable
44185         to be lower case.
44187 2011-01-20  Jim Meyering  <meyering@redhat.com>
44189         maint.mk: make "check" depend on public-submodule-commit by default
44190         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
44192 2011-01-20  Bruno Haible  <bruno@clisp.org>
44194         mbfile, mbiter: Complete change from 2008-12-21.
44195         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
44196         * m4/mbiter.m4 (gl_MBITER): Likewise.
44198 2011-01-20  Jim Meyering  <meyering@redhat.com>
44200         init.sh: insert space between each function name and "()"
44201         * tests/init.sh: Make it a little easier to see that a function's
44202         name is "warn_", and not "warn" when looking at the first part of
44203         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
44205 2011-01-20  Jim Meyering  <meyering@redhat.com>
44207         mountlist: clean up code formatting
44208         * lib/mountlist.c (read_file_system_list): Split a long line,
44209         correct bracing style, use NULL in place of "(struct statfs *)0",
44210         don't parenthesize return value, add spaces around "=" and after
44211         ";-in-for-stmt".
44213 2011-01-14  Markus Duft  <mduft@gentoo.org>
44215         mountlist: add support for Interix
44216         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
44217         Apply statvfs to all entries of /dev/fs.
44218         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
44219         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
44221 2011-01-20  Jim Meyering  <meyering@redhat.com>
44223         maint.mk: improve the public-submodule-commit rule
44224         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
44225         to suppress printing of its commands... unless V=1.
44226         Add git submodule's --quiet option to suppress printing of e.g.,
44227         "Entering gnulib" output.
44228         "cd" into $(srcdir) before running git submodule.
44230 2011-01-20  Bruno Haible  <bruno@clisp.org>
44232         include_next: Fix bug introduced on 2011-01-18.
44233         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
44234         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
44235         ac_cv_header_... variable if the second argument is not 'check'.
44236         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
44237         gl_NEXT_HEADERS_INTERNAL.
44239 2011-01-20  Bruno Haible  <bruno@clisp.org>
44241         Allow the user to avoid the GNULIB_TEST_* macros.
44242         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
44243         Suggested by Paul Eggert.
44245 2011-01-14  Jim Meyering  <meyering@redhat.com>
44247         bootstrap: avoid failure when there is no .gitmodules file
44248         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
44249         has been assigned to, even when its value is the empty string.
44250         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
44251         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
44252         Reported by John W. Eaton <jwe@gnu.org>.
44254 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44256         assume <ctype.h>, ..., <time.h> exist
44257         For years gnulib has been assuming the existence of the headers
44258         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
44259         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
44260         them, since they don't appear to be needed.
44261         * README (Portability guidelines): Document this.
44262         * lib/flock.c: Assume <fcntl.h> exists.
44263         * lib/regex_internal.h: Assume <locale.h> exists.
44264         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
44265         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
44266         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
44267         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
44268         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
44269         * m4/regex.m4 (gl_REGEX): Likewise.
44270         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
44271         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
44272         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
44273         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
44274         * tests/test-argp.c: Likewise.
44275         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
44277         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
44278         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
44279         AA_APPLE_UNIVERSAL_BUILD.  See
44280         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
44281         * NEWS: Document this.
44283 2011-01-19  Eric Blake  <eblake@redhat.com>
44285         c-stack: assume stack overflow if SA_SIGINFO unsupported
44286         * lib/c-stack.c (SIGACTION_WORKS): Rename...
44287         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
44288         sigaction will work.
44289         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
44290         behavior match Linux.
44291         * tests/test-c-stack.c (main): Prefer NULL for pointers.
44293         stdbool-tests: accommodate Haiku
44294         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
44296         binary-io: fix O_TEXT on Haiku
44297         * modules/binary-io (Depends-on): Add fcntl-h.
44298         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
44299         than blindly undefining O_TEXT.
44300         Reported by Scott McCreary.
44302 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44304         include_next: do not check for standard headers like stddef.h
44306         I found this problem when modifying Emacs to use gnulib.
44307         I noticed that it added HAVE_STDDEF_H to config.h, even though
44308         gnulib always assumes <stddef.h> exists as per README and this
44309         symbol is unnecessary.
44310         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
44311         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
44312         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
44313         faster for headers like stddef.h that are known to exist.
44314         (gl_CHECK_NEXT_HEADERS): Use it.
44315         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
44316         rather than gl_CHECK_NEXT_HEADERS.
44317         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
44318         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
44320 2011-01-18  Eric Blake  <eblake@redhat.com>
44322         ansi-c++-opt: skip C++ dependency style if C++ is unused
44323         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
44324         tests when we know C++ compilation is not desired.
44325         Reported by Scott McCreary.
44327 2011-01-18  Bruno Haible  <bruno@clisp.org>
44329         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
44330         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
44331         (main): Perform test also when getrlimit and setrlimit don't exist or
44332         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
44333         limiting the address space size using setrlimit, compare the address
44334         space size before and after the test.
44335         * tests/test-dprintf-posix2.c: Likewise.
44336         * tests/test-fprintf-posix3.sh: Update skip messages.
44337         * tests/test-dprintf-posix2.sh: Likewise.
44338         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
44339         * modules/dprintf-posix-tests (Depends-on): Likewise.
44340         Reported by Bruce Korb <bkorb@gnu.org> and
44341         Gary V. Vaughan <gary@gnu.org>.
44343 2011-01-18  Bruno Haible  <bruno@clisp.org>
44345         get-rusage-as: Improvement for Cygwin.
44346         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
44347         areas that are merely reserved.
44349 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44351         strftime: remove dependencies on multibyte modules
44353         strftime depended on mbrlen, mbsinit, and wchar, but these modules
44354         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
44355         only if __osf__ is defined, and I suspect OSF doesn't need these
44356         other modules.  If my guess is wrong, we'll need to come up with a
44357         variant of strftime that doesn't need the multibyte modules.
44359         I discovered this problem when attempting modify Emacs to use the
44360         strftime module.  With the previous gnulib, this caused Emacs to
44361         need 31 new files, ranging from lib/config.charset to
44362         m4/wint_t.m4.  This was overkill and I expect would be offputting
44363         to the Emacs maintainers.  After this change, only 6 new files are
44364         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
44365         stdbool.m4, and tm_gmtoff.m4.
44367         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
44368         Suggested by Bruno Haible in
44369         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
44370         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
44371         and do not check for wchar.h.
44372         * modules/strftime (Files): Remove m4/mbstate_t.m4.
44373         (Depends-on): Remove mbrlen, mbsinit, wchar.
44375 2011-01-18  Bruno Haible  <bruno@clisp.org>
44377         Tests for module 'get-rusage-as'.
44378         * modules/get-rusage-as-tests: New file.
44379         * tests/test-get-rusage-as.c: New file.
44381         New module 'get-rusage-as'.
44382         * modules/get-rusage-as: New file.
44383         * lib/resource-ext.h: New file.
44384         * lib/get-rusage-as.c: New file.
44386 2011-01-17  Eric Blake  <eblake@redhat.com>
44388         sigaction: relax license from LGPLv3+ to LGPLv2+
44389         * modules/sigaction (License): Relax to LGPLv2+.
44391 2011-01-14  Bruno Haible  <bruno@clisp.org>
44393         filemode: Make function declarations usable in C++ mode.
44394         * lib/filemode.h: Enclose function declarations in extern "C" block.
44395         Reported by John W. Eaton <jwe@gnu.org>.
44397 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
44399         save-cwd: no longer include "xgetcwd.h"
44400         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
44401         This avoids a compilation failure in projects that use save-cwd
44402         without also using the xgetcwd module.
44404 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44406         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
44407         This is so that a program like Emacs, which needs only dtoastr,
44408         does not have to bother with distributing and compiling ftoastr
44409         and ldtoastr.
44410         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
44411         * modules/dtoastr, modules/ldtoastr: New files.
44412         * modules/ftoastr: Now works just for 'float'.
44413         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
44414         (Makefile.am): Remove ftoastr.h (not needed and no effect),
44415         dtoastr.c, ldtoastr.c.
44417 2011-01-11  Jim Meyering  <meyering@redhat.com>
44419         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
44420         There is no need to work around the lack of the fchdir function,
44421         since gnulib can now provide a replacement when required.
44422         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
44423         * modules/save-cwd (Depends-on): Add fchdir.
44425 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44427         openat, save-cwd: avoid xmalloc
44429         This removes a direct (but undocumented) dependency of openat on
44430         xalloc, along with an indirect dependency via save-cwd.  It also
44431         removes a dependency of save-cwd on xgetcwd, and thereby
44432         indirectly on xalloc.  This change causes the openat substitute
44433         to fall back on save_cwd when memory is tight, and for save_cwd to
44434         fail instead of dying when memory is tight, but that's good enough.
44435         Problem and initial idea for fix reported by Bastien Roucaries in
44436         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
44438         * lib/openat-proc.c: Include stdlib.h (for malloc), not
44439         xalloc.h (for xmalloc).
44440         (openat_proc_name): Use malloc, not xmalloc.
44441         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
44442         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
44444         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
44445         This avoids heap allocation for file names whose lengths are in
44446         the range 512..1023, with the upper bound increasing to at most
44447         4031 depending on the platform's PATH_MAX.  (We do not want
44448         pathmax.h here as it might supply a non-constant PATH_MAX.)
44449         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
44450         Perhaps they should be moved to malloca.h?
44451         (OPENAT_BUFFER_SIZE): Use them.
44453 2011-01-10  Bruno Haible  <bruno@clisp.org>
44455         doc: Update users.txt.
44456         * users.txt: Add recutils.
44458 2011-01-09  Karl Berry  <karl@gnu.org>
44460         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
44462         * doc/configmake.texi: New file.
44463         * doc/gnulib.texi: Include it.
44464         * modules/configmake: Move documentation from here.
44466 2011-01-09  Bruno Haible  <bruno@clisp.org>
44468         Update to Unicode 6.0.0.
44469         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
44470         (get_lbp): Update for Unicode 6.0.0.
44471         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
44472         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
44473         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
44474         U+11001, U+11038..U+11046. Remove U+06DE.
44475         (uc_width): Fix bounds of planes.
44476         * tests/uniwidth/test-uc_width2.sh: Same updates as in
44477         lib/uniwidth/width.c.
44478         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
44479         trailing whitespace removed.
44480         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
44481         without comments, but with the original copyright notice.
44482         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
44483         * lib/unicase/ignorable.h: Likewise.
44484         * lib/unicase/tocasefold.h: Likewise.
44485         * lib/unicase/tolower.h: Likewise.
44486         * lib/unicase/totitle.h: Likewise.
44487         * lib/unicase/toupper.h: Likewise.
44488         * lib/unictype/bidi_of.h: Likewise.
44489         * lib/unictype/blocks.h: Likewise.
44490         * lib/unictype/categ_C.h: Likewise.
44491         * lib/unictype/categ_Cn.h: Likewise.
44492         * lib/unictype/categ_L.h: Likewise.
44493         * lib/unictype/categ_Ll.h: Likewise.
44494         * lib/unictype/categ_Lm.h: Likewise.
44495         * lib/unictype/categ_Lo.h: Likewise.
44496         * lib/unictype/categ_Lu.h: Likewise.
44497         * lib/unictype/categ_M.h: Likewise.
44498         * lib/unictype/categ_Mc.h: Likewise.
44499         * lib/unictype/categ_Me.h: Likewise.
44500         * lib/unictype/categ_Mn.h: Likewise.
44501         * lib/unictype/categ_N.h: Likewise.
44502         * lib/unictype/categ_Nd.h: Likewise.
44503         * lib/unictype/categ_No.h: Likewise.
44504         * lib/unictype/categ_P.h: Likewise.
44505         * lib/unictype/categ_Po.h: Likewise.
44506         * lib/unictype/categ_S.h: Likewise.
44507         * lib/unictype/categ_Sc.h: Likewise.
44508         * lib/unictype/categ_Sk.h: Likewise.
44509         * lib/unictype/categ_Sm.h: Likewise.
44510         * lib/unictype/categ_So.h: Likewise.
44511         * lib/unictype/categ_of.h: Likewise.
44512         * lib/unictype/combining.h: Likewise.
44513         * lib/unictype/ctype_alnum.h: Likewise.
44514         * lib/unictype/ctype_alpha.h: Likewise.
44515         * lib/unictype/ctype_graph.h: Likewise.
44516         * lib/unictype/ctype_lower.h: Likewise.
44517         * lib/unictype/ctype_print.h: Likewise.
44518         * lib/unictype/ctype_punct.h: Likewise.
44519         * lib/unictype/ctype_upper.h: Likewise.
44520         * lib/unictype/decdigit.h: Likewise.
44521         * lib/unictype/digit.h: Likewise.
44522         * lib/unictype/numeric.h: Likewise.
44523         * lib/unictype/pr_alphabetic.h: Likewise.
44524         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44525         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44526         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44527         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44528         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44529         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44530         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44531         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44532         * lib/unictype/pr_case_ignorable.h: Likewise.
44533         * lib/unictype/pr_cased.h: Likewise.
44534         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
44535         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
44536         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
44537         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
44538         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
44539         * lib/unictype/pr_combining.h: Likewise.
44540         * lib/unictype/pr_composite.h: Likewise.
44541         * lib/unictype/pr_currency_symbol.h: Likewise.
44542         * lib/unictype/pr_decimal_digit.h: Likewise.
44543         * lib/unictype/pr_deprecated.h: Likewise.
44544         * lib/unictype/pr_format_control.h: Likewise.
44545         * lib/unictype/pr_grapheme_base.h: Likewise.
44546         * lib/unictype/pr_grapheme_extend.h: Likewise.
44547         * lib/unictype/pr_grapheme_link.h: Likewise.
44548         * lib/unictype/pr_id_continue.h: Likewise.
44549         * lib/unictype/pr_id_start.h: Likewise.
44550         * lib/unictype/pr_ideographic.h: Likewise.
44551         * lib/unictype/pr_lowercase.h: Likewise.
44552         * lib/unictype/pr_math.h: Likewise.
44553         * lib/unictype/pr_numeric.h: Likewise.
44554         * lib/unictype/pr_other_alphabetic.h: Likewise.
44555         * lib/unictype/pr_other_id_continue.h: Likewise.
44556         * lib/unictype/pr_other_math.h: Likewise.
44557         * lib/unictype/pr_punctuation.h: Likewise.
44558         * lib/unictype/pr_sentence_terminal.h: Likewise.
44559         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44560         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44561         * lib/unictype/pr_unified_ideograph.h: Likewise.
44562         * lib/unictype/pr_uppercase.h: Likewise.
44563         * lib/unictype/pr_xid_continue.h: Likewise.
44564         * lib/unictype/pr_xid_start.h: Likewise.
44565         * lib/unictype/scripts.h: Likewise.
44566         * lib/unictype/scripts_byname.gperf: Likewise.
44567         * lib/unictype/sy_java_ident.h: Likewise.
44568         * lib/unigbrk/gbrkprop.h: Likewise.
44569         * lib/unilbrk/lbrkprop1.h: Likewise.
44570         * lib/unilbrk/lbrkprop2.h: Likewise.
44571         * lib/uninorm/decomposition-table2.h: Likewise.
44572         * lib/uniwbrk/wbrkprop.h: Likewise.
44573         * tests/unicase/test-cased.c: Likewise.
44574         * tests/unicase/test-ignorable.c: Likewise.
44575         * tests/unicase/test-uc_tolower.c: Likewise.
44576         * tests/unicase/test-uc_totitle.c: Likewise.
44577         * tests/unicase/test-uc_toupper.c: Likewise.
44578         * tests/unictype/test-categ_C.c: Likewise.
44579         * tests/unictype/test-categ_Cn.c: Likewise.
44580         * tests/unictype/test-categ_L.c: Likewise.
44581         * tests/unictype/test-categ_Ll.c: Likewise.
44582         * tests/unictype/test-categ_Lm.c: Likewise.
44583         * tests/unictype/test-categ_Lo.c: Likewise.
44584         * tests/unictype/test-categ_Lu.c: Likewise.
44585         * tests/unictype/test-categ_M.c: Likewise.
44586         * tests/unictype/test-categ_Mc.c: Likewise.
44587         * tests/unictype/test-categ_Me.c: Likewise.
44588         * tests/unictype/test-categ_Mn.c: Likewise.
44589         * tests/unictype/test-categ_N.c: Likewise.
44590         * tests/unictype/test-categ_Nd.c: Likewise.
44591         * tests/unictype/test-categ_No.c: Likewise.
44592         * tests/unictype/test-categ_P.c: Likewise.
44593         * tests/unictype/test-categ_Po.c: Likewise.
44594         * tests/unictype/test-categ_S.c: Likewise.
44595         * tests/unictype/test-categ_Sc.c: Likewise.
44596         * tests/unictype/test-categ_Sk.c: Likewise.
44597         * tests/unictype/test-categ_Sm.c: Likewise.
44598         * tests/unictype/test-categ_So.c: Likewise.
44599         * tests/unictype/test-ctype_alnum.c: Likewise.
44600         * tests/unictype/test-ctype_alpha.c: Likewise.
44601         * tests/unictype/test-ctype_graph.c: Likewise.
44602         * tests/unictype/test-ctype_lower.c: Likewise.
44603         * tests/unictype/test-ctype_print.c: Likewise.
44604         * tests/unictype/test-ctype_punct.c: Likewise.
44605         * tests/unictype/test-ctype_upper.c: Likewise.
44606         * tests/unictype/test-decdigit.h: Likewise.
44607         * tests/unictype/test-digit.h: Likewise.
44608         * tests/unictype/test-numeric.h: Likewise.
44609         * tests/unictype/test-pr_alphabetic.c: Likewise.
44610         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44611         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44612         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44613         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44614         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44615         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44616         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44617         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44618         * tests/unictype/test-pr_case_ignorable.c: Likewise.
44619         * tests/unictype/test-pr_cased.c: Likewise.
44620         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
44621         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
44622         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
44623         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
44624         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
44625         * tests/unictype/test-pr_combining.c: Likewise.
44626         * tests/unictype/test-pr_composite.c: Likewise.
44627         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44628         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44629         * tests/unictype/test-pr_deprecated.c: Likewise.
44630         * tests/unictype/test-pr_format_control.c: Likewise.
44631         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44632         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44633         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44634         * tests/unictype/test-pr_id_continue.c: Likewise.
44635         * tests/unictype/test-pr_id_start.c: Likewise.
44636         * tests/unictype/test-pr_ideographic.c: Likewise.
44637         * tests/unictype/test-pr_lowercase.c: Likewise.
44638         * tests/unictype/test-pr_math.c: Likewise.
44639         * tests/unictype/test-pr_numeric.c: Likewise.
44640         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44641         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44642         * tests/unictype/test-pr_other_math.c: Likewise.
44643         * tests/unictype/test-pr_punctuation.c: Likewise.
44644         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44645         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44646         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44647         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44648         * tests/unictype/test-pr_uppercase.c: Likewise.
44649         * tests/unictype/test-pr_xid_continue.c: Likewise.
44650         * tests/unictype/test-pr_xid_start.c: Likewise.
44651         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
44652         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
44653         changes.
44654         * lib/unictype/categ_Cc.h: Likewise.
44655         * lib/unictype/categ_Cf.h: Likewise.
44656         * lib/unictype/categ_Co.h: Likewise.
44657         * lib/unictype/categ_Cs.h: Likewise.
44658         * lib/unictype/categ_Lt.h: Likewise.
44659         * lib/unictype/categ_Nl.h: Likewise.
44660         * lib/unictype/categ_Pc.h: Likewise.
44661         * lib/unictype/categ_Pd.h: Likewise.
44662         * lib/unictype/categ_Pe.h: Likewise.
44663         * lib/unictype/categ_Pf.h: Likewise.
44664         * lib/unictype/categ_Pi.h: Likewise.
44665         * lib/unictype/categ_Ps.h: Likewise.
44666         * lib/unictype/categ_Z.h: Likewise.
44667         * lib/unictype/categ_Zl.h: Likewise.
44668         * lib/unictype/categ_Zp.h: Likewise.
44669         * lib/unictype/categ_Zs.h: Likewise.
44670         * lib/unictype/ctype_blank.h: Likewise.
44671         * lib/unictype/ctype_cntrl.h: Likewise.
44672         * lib/unictype/ctype_digit.h: Likewise.
44673         * lib/unictype/ctype_space.h: Likewise.
44674         * lib/unictype/ctype_xdigit.h: Likewise.
44675         * lib/unictype/mirror.h: Likewise.
44676         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44677         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44678         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44679         * lib/unictype/pr_bidi_control.h: Likewise.
44680         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44681         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44682         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44683         * lib/unictype/pr_bidi_pdf.h: Likewise.
44684         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44685         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44686         * lib/unictype/pr_dash.h: Likewise.
44687         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44688         * lib/unictype/pr_diacritic.h: Likewise.
44689         * lib/unictype/pr_extender.h: Likewise.
44690         * lib/unictype/pr_hex_digit.h: Likewise.
44691         * lib/unictype/pr_hyphen.h: Likewise.
44692         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44693         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44694         * lib/unictype/pr_ignorable_control.h: Likewise.
44695         * lib/unictype/pr_iso_control.h: Likewise.
44696         * lib/unictype/pr_join_control.h: Likewise.
44697         * lib/unictype/pr_left_of_pair.h: Likewise.
44698         * lib/unictype/pr_line_separator.h: Likewise.
44699         * lib/unictype/pr_logical_order_exception.h: Likewise.
44700         * lib/unictype/pr_non_break.h: Likewise.
44701         * lib/unictype/pr_not_a_character.h: Likewise.
44702         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44703         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44704         * lib/unictype/pr_other_id_start.h: Likewise.
44705         * lib/unictype/pr_other_lowercase.h: Likewise.
44706         * lib/unictype/pr_other_uppercase.h: Likewise.
44707         * lib/unictype/pr_paired_punctuation.h: Likewise.
44708         * lib/unictype/pr_paragraph_separator.h: Likewise.
44709         * lib/unictype/pr_pattern_syntax.h: Likewise.
44710         * lib/unictype/pr_pattern_white_space.h: Likewise.
44711         * lib/unictype/pr_private_use.h: Likewise.
44712         * lib/unictype/pr_quotation_mark.h: Likewise.
44713         * lib/unictype/pr_radical.h: Likewise.
44714         * lib/unictype/pr_soft_dotted.h: Likewise.
44715         * lib/unictype/pr_space.h: Likewise.
44716         * lib/unictype/pr_titlecase.h: Likewise.
44717         * lib/unictype/pr_variation_selector.h: Likewise.
44718         * lib/unictype/pr_white_space.h: Likewise.
44719         * lib/unictype/pr_zero_width.h: Likewise.
44720         * lib/unictype/sy_c_ident.h: Likewise.
44721         * lib/unictype/sy_c_whitespace.h: Likewise.
44722         * lib/unictype/sy_java_whitespace.h: Likewise.
44723         * lib/uninorm/composition-table.gperf: Likewise.
44724         * lib/uninorm/decomposition-table1.h: Likewise.
44725         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
44726         LB8.
44727         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44728         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44729         * modules/unictype/*: Bump version number of expected libunistring
44730         version.
44732 2011-01-09  Bruno Haible  <bruno@clisp.org>
44734         Update to Unicode 5.2.0.
44735         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
44736         trailing whitespace removed.
44738 2011-01-09  Bruno Haible  <bruno@clisp.org>
44740         New Unicode character properties, from Unicode 5.2.0.
44741         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
44742         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
44743         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
44744         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
44745         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
44746         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
44747         uc_is_property_cased, uc_is_property_case_ignorable,
44748         uc_is_property_changes_when_lowercased,
44749         uc_is_property_changes_when_uppercased,
44750         uc_is_property_changes_when_titlecased,
44751         uc_is_property_changes_when_casefolded,
44752         uc_is_property_changes_when_casemapped): New declarations.
44753         * lib/unictype/pr_byname.gperf: Add the new properties.
44754         * modules/unictype/property-byname (Depends-on): Depend on the new
44755         properties modules.
44756         * modules/unictype/property-all (Depends-on): Likewise.
44757         * MODULES.html.sh (Unicode string functions): Add
44758         unictype/property-case-ignorable, unictype/property-cased,
44759         unictype/property-changes-when-casefolded,
44760         unictype/property-changes-when-casemapped,
44761         unictype/property-changes-when-lowercased,
44762         unictype/property-changes-when-titlecased,
44763         unictype/property-changes-when-uppercased.
44765         New module 'unictype/property-changes-when-casemapped'.
44766         * modules/unictype/property-changes-when-casemapped: New file.
44767         * lib/unictype/pr_changes_when_casemapped.c: New file.
44768         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
44769         generated by gen-uni-tables.
44770         * modules/unictype/property-changes-when-casemapped-tests: New file.
44771         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
44772         automatically generated by gen-uni-tables.
44774         New module 'unictype/property-changes-when-casefolded'.
44775         * modules/unictype/property-changes-when-casefolded: New file.
44776         * lib/unictype/pr_changes_when_casefolded.c: New file.
44777         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
44778         generated by gen-uni-tables.
44779         * modules/unictype/property-changes-when-casefolded-tests: New file.
44780         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
44781         automatically generated by gen-uni-tables.
44783         New module 'unictype/property-changes-when-titlecased'.
44784         * modules/unictype/property-changes-when-titlecased: New file.
44785         * lib/unictype/pr_changes_when_titlecased.c: New file.
44786         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
44787         generated by gen-uni-tables.
44788         * modules/unictype/property-changes-when-titlecased-tests: New file.
44789         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
44790         automatically generated by gen-uni-tables.
44792         New module 'unictype/property-changes-when-uppercased'.
44793         * modules/unictype/property-changes-when-uppercased: New file.
44794         * lib/unictype/pr_changes_when_uppercased.c: New file.
44795         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
44796         generated by gen-uni-tables.
44797         * modules/unictype/property-changes-when-uppercased-tests: New file.
44798         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
44799         automatically generated by gen-uni-tables.
44801         New module 'unictype/property-changes-when-lowercased'.
44802         * modules/unictype/property-changes-when-lowercased: New file.
44803         * lib/unictype/pr_changes_when_lowercased.c: New file.
44804         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
44805         generated by gen-uni-tables.
44806         * modules/unictype/property-changes-when-lowercased-tests: New file.
44807         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
44808         automatically generated by gen-uni-tables.
44810         New module 'unictype/property-case-ignorable'.
44811         * modules/unictype/property-case-ignorable: New file.
44812         * lib/unictype/pr_case_ignorable.c: New file.
44813         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
44814         by gen-uni-tables.
44815         * modules/unictype/property-case-ignorable-tests: New file.
44816         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
44817         generated by gen-uni-tables.
44819         New module 'unictype/property-cased'.
44820         * modules/unictype/property-cased: New file.
44821         * lib/unictype/pr_cased.c: New file.
44822         * lib/unictype/pr_cased.h: New file, automatically generated by
44823         gen-uni-tables.
44824         * modules/unictype/property-cased-tests: New file.
44825         * tests/unictype/test-pr_cased.c: New file, automatically generated by
44826         gen-uni-tables.
44828 2011-01-09  Bruno Haible  <bruno@clisp.org>
44830         Update to Unicode 5.2.0.
44831         * lib/gen-uni-tables.c (output_predicate, output_category,
44832         output_combclass, output_bidi_category, output_decimal_digit_test,
44833         output_decimal_digit, output_digit_test, output_digit,
44834         output_numeric_test, output_numeric, output_mirror, output_scripts,
44835         output_scripts_byname, output_blocks, output_ident_category): Fix
44836         comment header.
44837         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
44838         get_wbp.
44839         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
44840         items.
44841         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
44842         Changes_When_Lowercased, Changes_When_Uppercased,
44843         Changes_When_Titlecased, Changes_When_Casefolded,
44844         Changes_When_Casemapped.
44845         (is_property_alphabetic, is_property_default_ignorable_code_point):
44846         Update for Unicode 5.2.0.
44847         (is_property_cased, is_property_case_ignorable,
44848         is_property_changes_when_lowercased,
44849         is_property_changes_when_uppercased,
44850         is_property_changes_when_titlecased,
44851         is_property_changes_when_casefolded,
44852         is_property_changes_when_casemapped): New functions.
44853         (output_properties): Output also the properties cased, case_ignorable,
44854         changes_when_lowercased, changes_when_uppercased,
44855         changes_when_titlecased, changes_when_casefolded,
44856         changes_when_casemapped.
44857         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
44858         Unicode TR#11 revision 17 -> 19.
44859         (LBP_CP): New enumeration value.
44860         (LBP_*): Adjust values accordingly.
44861         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
44862         TR#14 revision 22 -> 24.
44863         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
44864         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
44865         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
44866         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
44867         is_WBP_MIDLETTER.
44868         (output_composition_tables): Allow for 24 bits instead of 16 bits in
44869         the code1 and code2 of each composition rule.
44870         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
44871         * lib/unicase/ignorable.h: Likewise.
44872         * lib/unicase/tocasefold.h: Likewise.
44873         * lib/unicase/tolower.h: Likewise.
44874         * lib/unicase/totitle.h: Likewise.
44875         * lib/unicase/toupper.h: Likewise.
44876         * lib/unictype/bidi_of.h: Likewise.
44877         * lib/unictype/blocks.h: Likewise.
44878         * lib/unictype/categ_C.h: Likewise.
44879         * lib/unictype/categ_Cf.h: Likewise.
44880         * lib/unictype/categ_Cn.h: Likewise.
44881         * lib/unictype/categ_L.h: Likewise.
44882         * lib/unictype/categ_Ll.h: Likewise.
44883         * lib/unictype/categ_Lm.h: Likewise.
44884         * lib/unictype/categ_Lo.h: Likewise.
44885         * lib/unictype/categ_Lu.h: Likewise.
44886         * lib/unictype/categ_M.h: Likewise.
44887         * lib/unictype/categ_Mc.h: Likewise.
44888         * lib/unictype/categ_Mn.h: Likewise.
44889         * lib/unictype/categ_N.h: Likewise.
44890         * lib/unictype/categ_Nd.h: Likewise.
44891         * lib/unictype/categ_Nl.h: Likewise.
44892         * lib/unictype/categ_No.h: Likewise.
44893         * lib/unictype/categ_P.h: Likewise.
44894         * lib/unictype/categ_Pd.h: Likewise.
44895         * lib/unictype/categ_Po.h: Likewise.
44896         * lib/unictype/categ_S.h: Likewise.
44897         * lib/unictype/categ_Sc.h: Likewise.
44898         * lib/unictype/categ_So.h: Likewise.
44899         * lib/unictype/categ_of.h: Likewise.
44900         * lib/unictype/combining.h: Likewise.
44901         * lib/unictype/ctype_alnum.h: Likewise.
44902         * lib/unictype/ctype_alpha.h: Likewise.
44903         * lib/unictype/ctype_graph.h: Likewise.
44904         * lib/unictype/ctype_lower.h: Likewise.
44905         * lib/unictype/ctype_print.h: Likewise.
44906         * lib/unictype/ctype_punct.h: Likewise.
44907         * lib/unictype/ctype_upper.h: Likewise.
44908         * lib/unictype/decdigit.h: Likewise.
44909         * lib/unictype/digit.h: Likewise.
44910         * lib/unictype/numeric.h: Likewise.
44911         * lib/unictype/pr_alphabetic.h: Likewise.
44912         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44913         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44914         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44915         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44916         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44917         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44918         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44919         * lib/unictype/pr_combining.h: Likewise.
44920         * lib/unictype/pr_composite.h: Likewise.
44921         * lib/unictype/pr_currency_symbol.h: Likewise.
44922         * lib/unictype/pr_dash.h: Likewise.
44923         * lib/unictype/pr_decimal_digit.h: Likewise.
44924         * lib/unictype/pr_deprecated.h: Likewise.
44925         * lib/unictype/pr_diacritic.h: Likewise.
44926         * lib/unictype/pr_extender.h: Likewise.
44927         * lib/unictype/pr_grapheme_base.h: Likewise.
44928         * lib/unictype/pr_grapheme_extend.h: Likewise.
44929         * lib/unictype/pr_grapheme_link.h: Likewise.
44930         * lib/unictype/pr_id_continue.h: Likewise.
44931         * lib/unictype/pr_id_start.h: Likewise.
44932         * lib/unictype/pr_ideographic.h: Likewise.
44933         * lib/unictype/pr_ignorable_control.h: Likewise.
44934         * lib/unictype/pr_logical_order_exception.h: Likewise.
44935         * lib/unictype/pr_lowercase.h: Likewise.
44936         * lib/unictype/pr_numeric.h: Likewise.
44937         * lib/unictype/pr_other_alphabetic.h: Likewise.
44938         * lib/unictype/pr_punctuation.h: Likewise.
44939         * lib/unictype/pr_sentence_terminal.h: Likewise.
44940         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44941         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44942         * lib/unictype/pr_unified_ideograph.h: Likewise.
44943         * lib/unictype/pr_uppercase.h: Likewise.
44944         * lib/unictype/pr_xid_continue.h: Likewise.
44945         * lib/unictype/pr_xid_start.h: Likewise.
44946         * lib/unictype/pr_zero_width.h: Likewise.
44947         * lib/unictype/scripts.h: Likewise.
44948         * lib/unictype/scripts_byname.gperf: Likewise.
44949         * lib/unictype/sy_java_ident.h: Likewise.
44950         * lib/unigbrk/gbrkprop.h: Likewise.
44951         * lib/unilbrk/lbrkprop1.h: Likewise.
44952         * lib/unilbrk/lbrkprop2.h: Likewise.
44953         * lib/unilbrk/lbrktables.h: Likewise.
44954         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
44955         LBP_CP. Implement rule LB30.
44956         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
44957         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
44958         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
44959         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
44960         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
44961         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
44962         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
44963         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
44964         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
44965         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
44966         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
44967         bits instead of 16 bits in the code1 and code2 of each composition
44968         rule.
44969         (uc_composition): Update for Unicode 5.2.0.
44970         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
44971         * lib/uninorm/decomposition-table2.h: Likewise.
44972         * lib/uniwbrk/wbrkprop.h: Likewise.
44973         * tests/unicase/test-cased.c: Likewise.
44974         * tests/unicase/test-ignorable.c: Likewise.
44975         * tests/unicase/test-uc_tolower.c: Likewise.
44976         * tests/unicase/test-uc_totitle.c: Likewise.
44977         * tests/unicase/test-uc_toupper.c: Likewise.
44978         * tests/unictype/test-categ_C.c: Likewise.
44979         * tests/unictype/test-categ_Cf.c: Likewise.
44980         * tests/unictype/test-categ_Cn.c: Likewise.
44981         * tests/unictype/test-categ_L.c: Likewise.
44982         * tests/unictype/test-categ_Ll.c: Likewise.
44983         * tests/unictype/test-categ_Lm.c: Likewise.
44984         * tests/unictype/test-categ_Lo.c: Likewise.
44985         * tests/unictype/test-categ_Lu.c: Likewise.
44986         * tests/unictype/test-categ_M.c: Likewise.
44987         * tests/unictype/test-categ_Mc.c: Likewise.
44988         * tests/unictype/test-categ_Mn.c: Likewise.
44989         * tests/unictype/test-categ_N.c: Likewise.
44990         * tests/unictype/test-categ_Nd.c: Likewise.
44991         * tests/unictype/test-categ_Nl.c: Likewise.
44992         * tests/unictype/test-categ_No.c: Likewise.
44993         * tests/unictype/test-categ_P.c: Likewise.
44994         * tests/unictype/test-categ_Pd.c: Likewise.
44995         * tests/unictype/test-categ_Po.c: Likewise.
44996         * tests/unictype/test-categ_S.c: Likewise.
44997         * tests/unictype/test-categ_Sc.c: Likewise.
44998         * tests/unictype/test-categ_So.c: Likewise.
44999         * tests/unictype/test-ctype_alnum.c: Likewise.
45000         * tests/unictype/test-ctype_alpha.c: Likewise.
45001         * tests/unictype/test-ctype_graph.c: Likewise.
45002         * tests/unictype/test-ctype_lower.c: Likewise.
45003         * tests/unictype/test-ctype_print.c: Likewise.
45004         * tests/unictype/test-ctype_punct.c: Likewise.
45005         * tests/unictype/test-ctype_upper.c: Likewise.
45006         * tests/unictype/test-decdigit.h: Likewise.
45007         * tests/unictype/test-digit.h: Likewise.
45008         * tests/unictype/test-numeric.h: Likewise.
45009         * tests/unictype/test-pr_alphabetic.c: Likewise.
45010         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45011         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45012         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45013         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45014         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45015         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45016         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45017         * tests/unictype/test-pr_combining.c: Likewise.
45018         * tests/unictype/test-pr_composite.c: Likewise.
45019         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45020         * tests/unictype/test-pr_dash.c: Likewise.
45021         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45022         * tests/unictype/test-pr_deprecated.c: Likewise.
45023         * tests/unictype/test-pr_diacritic.c: Likewise.
45024         * tests/unictype/test-pr_extender.c: Likewise.
45025         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45026         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45027         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45028         * tests/unictype/test-pr_id_continue.c: Likewise.
45029         * tests/unictype/test-pr_id_start.c: Likewise.
45030         * tests/unictype/test-pr_ideographic.c: Likewise.
45031         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45032         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45033         * tests/unictype/test-pr_lowercase.c: Likewise.
45034         * tests/unictype/test-pr_numeric.c: Likewise.
45035         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45036         * tests/unictype/test-pr_punctuation.c: Likewise.
45037         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45038         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45039         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45040         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45041         * tests/unictype/test-pr_uppercase.c: Likewise.
45042         * tests/unictype/test-pr_xid_continue.c: Likewise.
45043         * tests/unictype/test-pr_xid_start.c: Likewise.
45044         * tests/unictype/test-pr_zero_width.c: Likewise.
45045         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
45046         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
45047         changed behaviour: line breaking is now disallowed between a letter
45048         or '=' and '('.
45049         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45050         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45051         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45052         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
45053         * tests/uniwidth/test-uc_width2.sh: Same updates as in
45054         lib/uniwidth/width.c.
45055         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
45056         without comments, but with the original copyright notice.
45057         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
45058         changes.
45059         * lib/unictype/categ_Cc.h: Likewise.
45060         * lib/unictype/categ_Co.h: Likewise.
45061         * lib/unictype/categ_Cs.h: Likewise.
45062         * lib/unictype/categ_Lt.h: Likewise.
45063         * lib/unictype/categ_Me.h: Likewise.
45064         * lib/unictype/categ_Pc.h: Likewise.
45065         * lib/unictype/categ_Pe.h: Likewise.
45066         * lib/unictype/categ_Pf.h: Likewise.
45067         * lib/unictype/categ_Pi.h: Likewise.
45068         * lib/unictype/categ_Ps.h: Likewise.
45069         * lib/unictype/categ_Sk.h: Likewise.
45070         * lib/unictype/categ_Sm.h: Likewise.
45071         * lib/unictype/categ_Z.h: Likewise.
45072         * lib/unictype/categ_Zl.h: Likewise.
45073         * lib/unictype/categ_Zp.h: Likewise.
45074         * lib/unictype/categ_Zs.h: Likewise.
45075         * lib/unictype/ctype_blank.h: Likewise.
45076         * lib/unictype/ctype_cntrl.h: Likewise.
45077         * lib/unictype/ctype_digit.h: Likewise.
45078         * lib/unictype/ctype_space.h: Likewise.
45079         * lib/unictype/ctype_xdigit.h: Likewise.
45080         * lib/unictype/mirror.h: Likewise.
45081         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45082         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45083         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45084         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45085         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45086         * lib/unictype/pr_bidi_control.h: Likewise.
45087         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45088         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45089         * lib/unictype/pr_bidi_pdf.h: Likewise.
45090         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45091         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45092         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45093         * lib/unictype/pr_format_control.h: Likewise.
45094         * lib/unictype/pr_hex_digit.h: Likewise.
45095         * lib/unictype/pr_hyphen.h: Likewise.
45096         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45097         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45098         * lib/unictype/pr_iso_control.h: Likewise.
45099         * lib/unictype/pr_join_control.h: Likewise.
45100         * lib/unictype/pr_left_of_pair.h: Likewise.
45101         * lib/unictype/pr_line_separator.h: Likewise.
45102         * lib/unictype/pr_math.h: Likewise.
45103         * lib/unictype/pr_non_break.h: Likewise.
45104         * lib/unictype/pr_not_a_character.h: Likewise.
45105         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45106         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45107         * lib/unictype/pr_other_id_continue.h: Likewise.
45108         * lib/unictype/pr_other_id_start.h: Likewise.
45109         * lib/unictype/pr_other_lowercase.h: Likewise.
45110         * lib/unictype/pr_other_math.h: Likewise.
45111         * lib/unictype/pr_other_uppercase.h: Likewise.
45112         * lib/unictype/pr_paired_punctuation.h: Likewise.
45113         * lib/unictype/pr_paragraph_separator.h: Likewise.
45114         * lib/unictype/pr_pattern_syntax.h: Likewise.
45115         * lib/unictype/pr_pattern_white_space.h: Likewise.
45116         * lib/unictype/pr_private_use.h: Likewise.
45117         * lib/unictype/pr_quotation_mark.h: Likewise.
45118         * lib/unictype/pr_radical.h: Likewise.
45119         * lib/unictype/pr_soft_dotted.h: Likewise.
45120         * lib/unictype/pr_space.h: Likewise.
45121         * lib/unictype/pr_titlecase.h: Likewise.
45122         * lib/unictype/pr_variation_selector.h: Likewise.
45123         * lib/unictype/pr_white_space.h: Likewise.
45124         * lib/unictype/sy_c_ident.h: Likewise.
45125         * lib/unictype/sy_c_whitespace.h: Likewise.
45126         * lib/unictype/sy_java_whitespace.h: Likewise.
45127         * modules/uni*/*: Bump version number of expected libunistring version.
45128         Reported by Simon Josefsson.
45130 2011-01-09  Karl Heuer  <kwzh@gnu.org>
45132         useless-if-before-free: fix typo in --help and make the internal,
45133         automatic version date update process work once again.
45134         --help output contained a NUL character instead of the
45135         backslash-zero that was intended.  Also, the "must lie within
45136         the first 8 lines" line is on line 9, and hence not getting
45137         automatically updated.
45138         * build-aux/useless-if-before-free: Fix the former by adding a
45139         backslash, and the latter by condensing the three lines of what-it-does
45140         to a single line, leaving one line of slack for the future.
45142 2011-01-09  Bruno Haible  <bruno@clisp.org>
45144         uniwidth/width: Fix width of U+1D173..U+1D17A.
45145         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
45146         symbolic_width, output_width_property_test): New functions.
45147         (main): Invoke output_nonspacing_property, output_width_property_test.
45148         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
45149         U+1D173..U+1D17A.
45150         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
45151         1.
45152         * modules/uniwidth/*: Bump version number of expected libunistring
45153         version.
45154         * modules/unilbrk/*: Likewise.
45156 2011-01-08  Bruno Haible  <bruno@clisp.org>
45158         uninorm tests: Preserve copyright of Unicode data file.
45159         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
45160         Mention modifications.
45162 2011-01-08  Bruno Haible  <bruno@clisp.org>
45164         gen-uni-tables: Prepare for Unicode 5.2.0.
45165         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
45166         (debug_output_lbp, output_lbp): Update.
45168 2011-01-08  Bruno Haible  <bruno@clisp.org>
45170         unilbrk: Clarify gen-uni-tables.c code.
45171         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
45172         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
45173         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
45175 2011-01-07  Bruno Haible  <bruno@clisp.org>
45177         strtod: Restore errno when successfully parsing Infinity or NaN.
45178         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
45179         restore the original errno.
45181 2011-01-07  Bruno Haible  <bruno@clisp.org>
45183         remove test: Avoid failure on HP-UX 11.
45184         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
45186 2011-01-07  Bruno Haible  <bruno@clisp.org>
45188         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
45189         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
45190         error code.
45192 2011-01-07  Pádraig Brady  <P@draigBrady.com>
45194         ignore-value: fixup comments, and add Eric Blake
45195         as an author since he rewrote the macros.
45196         * lib/ignore-value.h (ignore_value):  State that
45197         we now support aggregates.  Also specify exactly
45198         when the GCC warn_unused_result feature was added.
45200 2011-01-06  Eric Blake  <eblake@redhat.com>
45202         ignore-value: support aggregate types
45203         * lib/ignore-value.h (ignore_value): Provide separate gcc
45204         definition.
45205         * modules/ignore-value-tests: New test module.
45206         * tests/test-ignore-value.c: New test.
45208         maint.mk: improve sc_prohibit_strcmp regex
45209         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
45210         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
45211         definition of STRNEQ.
45213         signal: work around Haiku issue with SIGBUS
45214         * lib/siglist.h: Add comment.
45215         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
45216         strsignal's favoring of SIGSEGV.
45217         * tests/test-signal.c (main): Avoid test failure.
45218         * doc/posix-headers/signal.texi (signal.h): Document the issue.
45219         Reported by Scott McCreary.
45221         maint.mk: add pre-release check to ensure submodule commits are public
45222         * top/maint.mk (public-submodule-commit): New rule.
45223         (submodule-checks): New variable.
45224         (alpha beta stable): Depend on the variable.
45226 2011-01-05  Pádraig Brady  <P@draigBrady.com>
45227         and Jim Meyering  <meyering@redhat.com>
45229         ignore-value: make ignore_value more generic; deprecate ignore_ptr
45230         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
45231         (ATTRIBUTE_DEPRECATED): Define.
45232         (_ignore_case): New function.
45233         (ignore_value): New macro, to replace the old function.
45234         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
45235         * modules/ignore-value (Depends-on): Add stdint.
45237 2011-01-04  Eric Blake  <eblake@redhat.com>
45239         doc: regenerate INSTALL
45240         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
45241         @firstparagraphindent support, now that autoconf dropped it.
45242         (INSTALL_PRELUDE): Reinstate old macro.
45243         * doc/install.texi: Resync from autoconf.
45244         * doc/INSTALL: Reflect recent autoconf update.
45245         * doc/INSTALL.ISO: Likewise.
45246         * doc/INSTALL.UTF-8: Likewise.
45247         Reported by Karl Berry.
45249 2011-01-04  Bruce Korb  <address@hidden>
45251         git-version-gen: avoid a sub-shell
45252         * build-aux/git-version-gen: Redirect stderr in `...` via
45253         "exec 2>...", rather than via an added sub-shell.
45255 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
45257         git-version-gen: use (...) rather than sh -c '...'
45258         * build-aux/git-version-gen: Rather than hard-coding a shell's name
45259         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
45261 2011-01-03  Jim Meyering  <meyering@redhat.com>
45263         git-version-gen: convert leading TABs to spaces
45264         * build-aux/git-version-gen: Expand leading TABs.
45266         git-version-gen: handle failed "git rev-list"
45267         * build-aux/git-version-gen: Rather than leaking a "fatal" error
45268         from git and proceeding as if it had succeeded but printed no SHA1
45269         checksums, suppress the diagnostic and handle the failure.
45270         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
45272         git-version-gen: include command name in one more diagnostic
45273         * build-aux/git-version-gen: When the required .tarball-version file
45274         was missing or unreadable, you might see the diagnostic from "cat",
45275         but no trace of the name of the invoking script.  Now, you still see
45276         the diagnostic from cat, but also get one from "git-version-gen: ".
45277         Inspired by a patch from Bruce Korb.
45279         update-copyright: adjust test to match changed code
45280         * tests/test-update-copyright.sh: Change test's expected output
45281         to match new actual output.
45283 2011-01-02  Bruno Haible  <bruno@clisp.org>
45285         getlogin_r: Avoid test failure on HP-UX 11.
45286         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
45287         ERANGE when the second argument is zero.
45288         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
45289         portability problem.
45291 2011-01-02  Bruce Korb  <bkorb@gnu.org>
45293         * build-aux/update-copyright: doc Simon's changes
45295 2011-01-02  Simon Josefsson  <simon@josefsson.org>
45297         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
45298         environment variable.
45300 2011-01-02  Bruno Haible  <bruno@clisp.org>
45302         unigbrk: Avoid gcc warnings.
45303         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
45304         unused variable.
45305         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
45306         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
45307         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
45308         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
45309         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
45310         Change type of first argument to 'const char *'.
45311         (main): Remove unused variable.
45312         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
45313         type of first argument to 'const char *'.
45314         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
45315         Likewise.
45316         (main): Change type of variable 's'.
45317         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
45318         to 'int'.
45320 2011-01-02  Bruno Haible  <bruno@clisp.org>
45322         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
45323         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
45324         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
45325         bug.
45326         * lib/pwrite.c: Undo 2010-12-31 patch.
45327         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
45329 2011-01-02  Bruno Haible  <bruno@clisp.org>
45331         pread: Fix test whether it works.
45332         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
45334 2011-01-02  Bruno Haible  <bruno@clisp.org>
45336         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
45337         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
45338         ends in "6". Don't require a specific month name. Try also the locale
45339         names found on HP-UX 11 and Solaris 7.
45341 2011-01-02  Bruno Haible  <bruno@clisp.org>
45343         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
45344         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
45345         C linkage.
45346         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
45348 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45350         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
45351         for consistency, since the "cluster" term is not used elsewhere.
45352         * lib/unigbrk.in.h: Update name.
45353         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
45354         * lib/unigbrk/u16-grapheme-next.c: Update name.
45355         * lib/unigbrk/u16-grapheme-prev.c: Update name.
45356         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
45357         * lib/unigbrk/u32-grapheme-next.c: Update name.
45358         * lib/unigbrk/u32-grapheme-prev.c: Update name.
45359         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
45360         * lib/unigbrk/u8-grapheme-next.c: Update name.
45361         * lib/unigbrk/u8-grapheme-prev.c: Update name.
45362         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
45363         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
45364         Suggested by Bruno Haible.
45366 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45368         Remove module 'u8-grapheme-len' as too redundant with
45369         'u8-grapheme-next'.
45370         * modules/unigbrk/u8-grapheme-len: Delete file.
45371         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
45372         * lib/unigbrk.in.h: Remove prototype for deleted function.
45373         * lib/unigbrk/u8-grapheme-len.c: Delete file.
45374         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
45376         Remove module 'u16-grapheme-len' as too redundant with
45377         'u16-grapheme-next'.
45378         * modules/unigbrk/u16-grapheme-len: Delete file.
45379         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
45380         * lib/unigbrk.in.h: Remove prototype for deleted function.
45381         * lib/unigbrk/u16-grapheme-len.c: Delete file.
45382         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
45384         Remove module 'u32-grapheme-len' as too redundant with
45385         'u32-grapheme-next'.
45386         * modules/unigbrk/u32-grapheme-len: Delete file.
45387         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
45388         * lib/unigbrk.in.h: Remove prototype for deleted function.
45389         * lib/unigbrk/u32-grapheme-len.c: Delete file.
45390         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
45392         Suggested by Bruno Haible.
45394 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45396         * unigbrk.in.h: Fix typo: "ben" => "been".
45397         Reported by Bruno Haible.
45399 2011-01-01  Jim Meyering  <meyering@redhat.com>
45401         maint: update almost all copyright ranges to include 2011
45402         Run the new "make update-copyright" rule.
45404 2011-01-01  Jim Meyering  <meyering@redhat.com>
45406         maint: update-copyright: exempt doc/INSTALL*
45407         * Makefile (update-copyright): Also exclude doc/INSTALL*,
45408         since they are generated.  Suggested by Bruno Haible.
45410 2011-01-01  Jim Meyering  <meyering@redhat.com>
45412         maint: refine the update-copyright rule
45413         * Makefile (update-copyright): Also exclude any file that includes
45414         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
45415         code that merely generates the comment.
45417 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45419         New module 'u8-grapheme-len'.
45420         * modules/unigbrk/u8-grapheme-len: New file.
45421         * modules/unigbrk/u8-grapheme-len-tests: New file.
45422         * lib/unigbrk.in.h: Add prototype for new function.
45423         * lib/unigbrk/u8-grapheme-len.c: New file.
45424         * tests/unigbrk/test-u8-grapheme-len.c: New file.
45426         New module 'u16-grapheme-len'.
45427         * modules/unigbrk/u16-grapheme-len: New file.
45428         * modules/unigbrk/u16-grapheme-len-tests: New file.
45429         * lib/unigbrk.in.h: Add prototype for new function.
45430         * lib/unigbrk/u16-grapheme-len.c: New file.
45431         * tests/unigbrk/test-u16-grapheme-len.c: New file.
45433         New module 'u32-grapheme-len'.
45434         * modules/unigbrk/u32-grapheme-len: New file.
45435         * modules/unigbrk/u32-grapheme-len-tests: New file.
45436         * lib/unigbrk.in.h: Add prototype for new function.
45437         * lib/unigbrk/u32-grapheme-len.c: New file.
45438         * tests/unigbrk/test-u32-grapheme-len.c: New file.
45440         New module 'u8-grapheme-next'.
45441         * modules/unigbrk/u8-grapheme-next: New file.
45442         * modules/unigbrk/u8-grapheme-next-tests: New file.
45443         * lib/unigbrk.in.h: Add prototype for new function.
45444         * lib/unigbrk/u8-grapheme-next.c: New file.
45445         * tests/unigbrk/test-u8-grapheme-next.c: New file.
45447         New module 'u16-grapheme-next'.
45448         * modules/unigbrk/u16-grapheme-next: New file.
45449         * modules/unigbrk/u16-grapheme-next-tests: New file.
45450         * lib/unigbrk.in.h: Add prototype for new function.
45451         * lib/unigbrk/u16-grapheme-next.c: New file.
45452         * tests/unigbrk/test-u16-grapheme-next.c: New file.
45454         New module 'u32-grapheme-next'.
45455         * modules/unigbrk/u32-grapheme-next: New file.
45456         * modules/unigbrk/u32-grapheme-next-tests: New file.
45457         * lib/unigbrk.in.h: Add prototype for new function.
45458         * lib/unigbrk/u32-grapheme-next.c: New file.
45459         * tests/unigbrk/test-u32-grapheme-next.c: New file.
45461         New module 'u8-grapheme-prev'.
45462         * modules/unigbrk/u8-grapheme-prev: New file.
45463         * modules/unigbrk/u8-grapheme-prev-tests: New file.
45464         * lib/unigbrk.in.h: Add prototype for new function.
45465         * lib/unigbrk/u8-grapheme-prev.c: New file.
45466         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
45468         New module 'u16-grapheme-prev'.
45469         * modules/unigbrk/u16-grapheme-prev: New file.
45470         * modules/unigbrk/u16-grapheme-prev-tests: New file.
45471         * lib/unigbrk.in.h: Add prototype for new function.
45472         * lib/unigbrk/u16-grapheme-prev.c: New file.
45473         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
45475         New module 'u32-grapheme-prev'.
45476         * modules/unigbrk/u32-grapheme-prev: New file.
45477         * modules/unigbrk/u32-grapheme-prev-tests: New file.
45478         * lib/unigbrk.in.h: Add prototype for new function.
45479         * lib/unigbrk/u32-grapheme-prev.c: New file.
45480         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
45482         New module 'u8-grapheme-breaks'.
45483         * modules/unigbrk/u8-grapheme-breaks: New file.
45484         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
45485         * lib/unigbrk.in.h: Add prototype for new function.
45486         * lib/unigbrk/u8-grapheme-breaks.c: New file.
45487         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
45489         New module 'u16-grapheme-breaks'.
45490         * modules/unigbrk/u16-grapheme-breaks: New file.
45491         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
45492         * lib/unigbrk.in.h: Add prototype for new function.
45493         * lib/unigbrk/u16-grapheme-breaks.c: New file.
45494         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
45496         New module 'u32-grapheme-breaks'.
45497         * modules/unigbrk/u32-grapheme-breaks: New file.
45498         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
45499         * lib/unigbrk.in.h: Add prototype for new function.
45500         * lib/unigbrk/u32-grapheme-breaks.c: New file.
45501         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
45503         New module 'ulc-grapheme-breaks'.
45504         * modules/unigbrk/ulc-grapheme-breaks: New file.
45505         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
45506         * m4/locale-ar.m4: New file.
45507         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
45508         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
45509         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
45511 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45513         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
45514         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
45515         modified how this file was generated before I initially submitted
45516         the module, but failed to regenerate it.  This meant that several
45517         of the level2 entries were wrong.
45518         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
45519         Remove the division-by-2 that is folded into the table now that
45520         gbrkprop.h has been regenerated properly.  Now -1 entries are
45521         handled correctly.
45523         New module 'unigbrk/uc-gbrk-prop-tests'.
45524         * modules/unigbrk/uc-gbrk-prop-tests: New file.
45525         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
45526         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
45527         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
45529 2011-01-01  Bruno Haible  <bruno@clisp.org>
45531         Avoid use of hexadecimal escapes.
45532         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
45533         instead of hexadecimal escapes.
45535 2011-01-01  Jim Meyering  <meyering@redhat.com>
45537         maint: new rule to update copyright year ranges
45538         * Makefile (update-copyright): New rule.
45540         maint: indent with TABs in Makefile
45541         * Makefile: Expand leading sequences of spaces to TABs
45543         version-etc: update the copyright year it reports
45544         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
45546 2010-12-31  Bruno Haible  <bruno@clisp.org>
45548         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
45549         * lib/isfinite.c (zerof, zerod, zerol): New variables.
45550         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
45551         zero.
45553 2010-12-31  Bruno Haible  <bruno@clisp.org>
45555         pwrite: Work around HP-UX 11.11 bug.
45556         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
45557         works and set REPLACE_PWRITE if not.
45558         * lib/pwrite.c (pwrite): Add an implementation that uses the system
45559         function.
45560         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
45562 2010-12-31  Bruno Haible  <bruno@clisp.org>
45564         pread: Work around HP-UX 11 bugs.
45565         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
45566         and set REPLACE_PREAD if not.
45567         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
45569 2010-12-31  Eric Blake  <eblake@redhat.com>
45571         nl_langinfo: fix YESEXPR on Irix 6.5
45572         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
45573         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
45574         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
45575         it.
45577 2010-12-31  Bruno Haible  <bruno@clisp.org>
45579         iconv: Document HP-UX 11 bug.
45580         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
45582 2010-12-31  Bruno Haible  <bruno@clisp.org>
45584         ldexpl: Fix link error on HP-UX 11.
45585         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
45586         LDEXPL_LIBM, using $ISNANL_LIBM.
45588 2010-12-31  Eric Blake  <eblake@redhat.com>
45590         ftello: avoid compilation failure with SunStudio c89
45591         * lib/ftello.c (ftello): Use lseek, not llseek.
45593         tests: avoid failing coreutils tests on cygwin
45594         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
45595         (create_exe_shims_): Return 0 when skipping.
45597 2010-12-31  Bruno Haible  <bruno@clisp.org>
45599         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
45600         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
45602 2010-12-31  Bruno Haible  <bruno@clisp.org>
45604         waitpid: Fix link error in C++ mode.
45605         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
45607 2010-12-31  Bruno Haible  <bruno@clisp.org>
45609         isnan: Use GCC built-ins when possible.
45610         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
45611         __builtin_isnan.
45612         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
45613         (isnan): Define using GCC built-ins for GCC >= 4.0.
45615 2010-12-31  Bruno Haible  <bruno@clisp.org>
45617         isnand: Fix mistake.
45618         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
45619         __builtin_isnand.
45621 2010-12-31  Bruno Haible  <bruno@clisp.org>
45623         open: Avoid C++ error on HP-UX 11.
45624         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
45626 2010-12-31  Bruno Haible  <bruno@clisp.org>
45628         time_r: Add missing declarations on HP-UX 11.
45629         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
45630         instead of HAVE_LOCALTIME_R.
45631         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
45632         HAVE_LOCALTIME_R always.
45633         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
45634         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
45635         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
45636         HAVE_LOCALTIME_R.
45637         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
45638         * doc/posix-functions/localtime_r.texi: Likewise.
45640 2010-12-29  Eric Blake  <eblake@redhat.com>
45642         mountlist: tweak previous commit
45643         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
45644         Reported by Paul Eggert.
45646         mountlist: fix local drive detection on cygwin
45647         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
45648         that works for cygwin.
45650 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45652         ftoastr, snprintf: ftoastr + snprintf module
45653         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
45654         since the snprintf module now should be good enough here.
45655         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
45656         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
45657         and gl_MODULE_INDICATOR([snprintf]), but the former enables
45658         GNULIB_SNPRINTF only for the test directory, and the latter
45659         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
45660         seems to suffice by itself.
45662 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45664         alloca: one step towards thread-safety
45665         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
45666         need for a static variable.  All callers changed.  This does not
45667         make the alloca replacement thread-safe, but it's one step.
45669         tests: minor indenting change
45670         * tests/init.sh: Sync from coreutils housekeeping patch
45671         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
45672         to keep lines within 80 columns.
45674 2010-12-28  Jim Meyering  <meyering@redhat.com>
45676         regex: don't infloop on persistent failing calloc
45677         * lib/regexec.c (build_trtable): Return failure indication upon
45678         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
45679         In glibc, this was fixed for version 2.13:
45680         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
45682 2010-12-28  Bruno Haible  <bruno@clisp.org>
45683             Paul Eggert <eggert@cs.ucla.edu>
45685         linkat: Make implementation robust against system behaviour variations.
45686         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
45687         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
45688         way, and to -2 if it needs a generic runtime test.
45689         * lib/linkat.c (solaris_optimized_link_immediate,
45690         solaris_optimized_link_follow): New functions.
45691         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
45692         (check_same_link): Use it.
45694 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
45696         New module 'unigbrk/base'.
45697         * modules/unigbrk/base: New file.
45698         * lib/unigbrk.in.h: New file.
45700         New module 'unigbrk/uc-gbrk-prop'.
45701         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
45702         * modules/unigbrk/uc-gbrk-prop: New file.
45703         * lib/unigbrk/gbrkprop.h: New file.
45704         * lib/unigbrk/uc-gbrk-prop.c: New file.
45706         New module 'unigbrk/uc-is-grapheme-break'.
45707         * modules/unigbrk/uc-is-grapheme-break: New file.
45708         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
45709         * lib/unigbrk/uc-is-grapheme-break.c: New file.
45710         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
45711         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
45712         * tests/unigbrk/GraphemeBreakTest.txt: New file.
45714         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
45716 2010-12-27  Bruno Haible  <bruno@clisp.org>
45718         linkat test: Avoid failure on Solaris 11 2010-11.
45719         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
45721 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45723         utimens: work around glibc rounding bug on more platforms
45724         * lib/utimens.c (fdutimens): Work around rounding bug even if
45725         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
45726         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
45728 2010-12-27  Bruno Haible  <bruno@clisp.org>
45730         select tests: Improve comments.
45731         * tests/test-select.c (do_select): Add comments.
45733 2010-12-27  Bruno Haible  <bruno@clisp.org>
45735         select tests: Safer way of handling timeout.
45736         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
45737         at every invocation.
45739 2010-12-27  Bruno Haible  <bruno@clisp.org>
45741         select tests: Use 'bool' where appropriate.
45742         * tests/test-select.c (connect_to_socket): Change argument type to
45743         'bool'.
45745 2010-12-27  Bruno Haible  <bruno@clisp.org>
45747         select tests: Use existing modules.
45748         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
45749         (configure.ac): Don't test for unistd.h.
45750         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
45751         declared in <unistd.h>.
45753 2010-12-27  Bruno Haible  <bruno@clisp.org>
45755         mbrtowc: Work around a Solaris 7 bug.
45756         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
45757         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
45758         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
45759         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
45760         MBRTOWC_NULL_ARG1_BUG.
45761         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
45762         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
45763         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
45764         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
45766 2010-12-27  Jim Meyering  <meyering@redhat.com>
45768         read-file.c: tweak syntax
45769         * lib/read-file.c (fread_file): Remove space after "*" in function
45770         definitions.
45772 2010-12-27  Bruno Haible  <bruno@clisp.org>
45774         times test: Avoid gcc warnings on OSF/1.
45775         * tests/test-times.c (main): Cast printf arguments from clock_t to
45776         'long int'.
45778 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45780         utimens: work around glibc rounding bug on older Linux kernels
45781         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
45782         on Linux with a glibc whose utimes might not work, then work
45783         around a longstanding glibc bug involving rounding rather than
45784         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
45785         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
45787 2010-12-26  Bruno Haible  <bruno@clisp.org>
45789         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
45790         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
45791         _GL_CXXALIAS_SYS.
45792         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45794 2010-12-26  Bruno Haible  <bruno@clisp.org>
45796         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
45797         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
45798         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
45799         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
45800         looking for the declaration.
45801         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45802         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
45803         problem.
45804         * doc/posix-functions/inet_pton.texi: Likewise.
45806 2010-12-26  Bruno Haible  <bruno@clisp.org>
45808         arpa_inet: Use the common idioms with C++ support.
45809         * lib/arpa_inet.in.h: Include c++defs.h.
45810         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
45811         support.
45812         * modules/arpa_inet (Depends-on): Add c++defs.
45813         (Makefile.am): Substitute the contents of c++defs.h.
45814         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
45815         * modules/arpa_inet-c++-tests: New file.
45816         * tests/test-arpa_inet-c++.cc: New file.
45818 2010-12-25  Bruno Haible  <bruno@clisp.org>
45820         Fix more C++ link errors on Solaris 8.
45821         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
45822         $(LIB_EACCESS).
45823         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
45824         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
45825         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
45826         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
45827         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
45829 2010-12-25  Bruno Haible  <bruno@clisp.org>
45831         printf-posix: Fix link error when a non-GCC compiler is used.
45832         * lib/stdio.in.h (printf): When not using GCC, override printf
45833         correctly.
45834         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45836 2010-12-25  Bruno Haible  <bruno@clisp.org>
45838         strerror_r-posix: Update doc.
45839         * doc/posix-functions/strerror_r.texi: Update doc about the return
45840         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
45842 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45844         utimens: simplify the logic of the previous change
45845         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
45846         This should not affect whether the test succeeds or fails.
45848         utimens: configure better on hosts with NFS clock skew
45849         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
45850         uses the clock of the local host.  It might use the clock of the
45851         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
45852         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
45854 2010-12-25  Bruno Haible  <bruno@clisp.org>
45856         ptsname test: Avoid failure on Solaris.
45857         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
45858         open a pseudo-terminal; don't use BSD-style ptys.
45859         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
45861 2010-12-25  Bruno Haible  <bruno@clisp.org>
45863         ptsname: Avoid ERANGE failure on some systems.
45864         * lib/ptsname.c (buffer): Increase size.
45866 2010-12-25  Bruno Haible  <bruno@clisp.org>
45868         rename, renameat: Avoid test failures at NFS mounted locations.
45869         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
45870         so that subsequent mkdir calls succeed.
45872 2010-12-25  Bruno Haible  <bruno@clisp.org>
45874         iswblank: Fix C++ link error on Solaris 8.
45875         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
45876         _GL_FUNCDECL_SYS.
45878 2010-12-25  Bruno Haible  <bruno@clisp.org>
45880         unistd: Fix C++ link error on Solaris 8.
45881         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
45883 2010-12-25  Bruno Haible  <bruno@clisp.org>
45885         readlink doc: Mention an old glibc bug.
45886         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
45888 2010-12-25  Bruno Haible  <bruno@clisp.org>
45890         fcntl-h: Fix for use of C++ on glibc systems.
45891         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
45892         also on glibc systems in C++ mode.
45893         Reported by Gary V. Vaughan <gary@gnu.org>.
45895 2010-12-25  Bruno Haible  <bruno@clisp.org>
45897         roundl-ieee: Make it work on OSF/1 5.1 with cc.
45898         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
45900 2010-12-25  Bruno Haible  <bruno@clisp.org>
45902         truncl-ieee: Make it work on OSF/1 5.1 with cc.
45903         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
45904         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
45905         test whether truncl works according to ISO C 99 with IEC 60559.
45906         * m4/truncl-ieee.m4: New file.
45907         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
45908         m4/signbit.m4.
45909         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
45911 2010-12-25  Bruno Haible  <bruno@clisp.org>
45913         ceill-ieee: Make it work on OSF/1 5.1 with cc.
45914         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
45915         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
45916         test whether ceill works according to ISO C 99 with IEC 60559.
45917         * m4/ceill-ieee.m4: New file.
45918         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
45919         m4/signbit.m4.
45920         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
45922 2010-12-25  Bruno Haible  <bruno@clisp.org>
45924         Ensure all prerequisites of <wchar.h> are included.
45925         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
45926         before <wchar.h>.
45927         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
45928         gl_MBRLEN_NUL_RETVAL): Likewise.
45929         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45930         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
45931         AC_FUNC_MBRTOWC): Likewise.
45932         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45933         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
45934         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
45935         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45936         Likewise.
45937         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45938         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
45939         (gl_WCHAR_H): Improve comments.
45940         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
45942 2010-12-25  Bruno Haible  <bruno@clisp.org>
45944         strtok_r: Fix C syntax error in autoconf macro.
45945         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
45946         characters in test program.
45948 2010-12-24  Bruno Haible  <bruno@clisp.org>
45950         ceil, trunc, round: Fix gcc warnings.
45951         * lib/ceil.c (MIN): Undefine before redefining.
45952         * lib/trunc.c (MIN): Likewise.
45953         * lib/round.c (MIN): Likewise.
45954         Include <math.h> first.
45956 2010-12-24  Bruno Haible  <bruno@clisp.org>
45958         select tests: Avoid failures on OSF/1 5.1.
45959         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
45960         failure of closing the last socket; it may fail with ECONNRESET.
45962 2010-12-24  Eric Blake  <eblake@redhat.com>
45964         stdint: avoid HP-UX 10.20 preprocessor bug
45965         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
45966         than #if.
45967         * tests/test-floor2.c (main): Likewise.
45968         Reported by Peter O'Gorman.
45970         pipe: make obsoletion transition easier
45971         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
45972         * modules/pipe (Files): Include revived file.
45973         (Include): Drop reference, to mirror getdate's behavior.
45975 2010-12-24  Bruno Haible  <bruno@clisp.org>
45977         sys_socket: Hide mismatch of declarations on NonStop Kernel.
45978         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
45979         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
45980         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45982 2010-12-24  Bruno Haible  <bruno@clisp.org>
45984         gethostname: Ensure declaration on NonStop Kernel.
45985         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
45986         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45988 2010-12-24  Bruno Haible  <bruno@clisp.org>
45990         sys_select: Ensure all necessary types on NonStop Kernel.
45991         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
45992         include <sys/time.h>.
45993         * doc/posix-headers/sys_select.texi: Mention that it's missing on
45994         NonStop Kernel.
45995         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45997 2010-12-24  Bruno Haible  <bruno@clisp.org>
45999         sys_select: Remove unneeded include.
46000         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
46001         have <sys/select.h>.
46003 2010-12-24  Bruno Haible  <bruno@clisp.org>
46005         gethostname: Provide a fallback for HOST_NAME_MAX.
46006         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
46007         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
46008         instead.
46009         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46011 2010-12-24  Bruno Haible  <bruno@clisp.org>
46013         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
46014         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
46015         (SA_RESTART): Likewise.
46016         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46018 2010-12-24  Bruno Haible  <bruno@clisp.org>
46020         signal: Define NSIG.
46021         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
46022         * tests/test-signal.c (nsig): New variable.
46023         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46025 2010-12-24  Bruno Haible  <bruno@clisp.org>
46027         rename, renameat: Avoid test failures on OSF/1 5.1.
46028         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
46029         alternative error codes.
46030         * tests/test-renameat.c (main): Likewise.
46032 2010-12-24  Bruno Haible  <bruno@clisp.org>
46034         *printf: Detect large precisions bug on Solaris 10/SPARC.
46035         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
46036         by Paul Eggert.
46037         * tests/test-snprintf-posix.h (test_function): Add this test code here
46038         too.
46039         * tests/test-sprintf-posix.h (test_function): Likewise.
46040         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46041         * tests/test-vasprintf-posix.c (test_function): Likewise.
46042         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
46043         around by gnulib.
46044         * doc/posix-functions/printf.texi: Likewise.
46045         * doc/posix-functions/snprintf.texi: Likewise.
46046         * doc/posix-functions/sprintf.texi: Likewise.
46047         * doc/posix-functions/vfprintf.texi: Likewise.
46048         * doc/posix-functions/vprintf.texi: Likewise.
46049         * doc/posix-functions/vsnprintf.texi: Likewise.
46050         * doc/posix-functions/vsprintf.texi: Likewise.
46051         * doc/posix-functions/dprintf.texi: Undo last commit.
46052         * doc/posix-functions/vdprintf.texi: Likewise.
46054 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
46056         tests: port test-fdutimensat.c to Solaris 8
46057         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
46058         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
46059         On Solaris 8, it fails with errno == ENOSYS, because there is no
46060         futimens (so it can't use the fd), and there is no lutimens (so it
46061         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
46063         vsnprintf: make more consistent with snprintf; doc fixes
46065         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
46066         the byte count return problem was promoted from the snprintf-posix
46067         to the snprintf module.
46068         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46069         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
46070         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
46071         * tests/test-snprintf.c (main): Check the byte count returned.
46072         * tests/test-vsnprintf.c (main): Likewise.
46074 2010-12-23  Eric Blake  <eblake@redhat.com>
46076         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
46077         * modules/sigpipe (License): Relax license.
46079 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46081         doc: document Solaris printf bug with large float precisions
46082         * doc/posix-functions/dprintf.texi (dprintf):
46083         * doc/posix-functions/fprintf.texi (fprintf):
46084         * doc/posix-functions/printf.texi (printf):
46085         * doc/posix-functions/snprintf.texi (snprintf):
46086         * doc/posix-functions/sprintf.texi (sprintf):
46087         * doc/posix-functions/vdprintf.texi (vdprintf):
46088         * doc/posix-functions/vfprintf.texi (vfprintf):
46089         * doc/posix-functions/vprintf.texi (vprintf):
46090         * doc/posix-functions/vsnprintf.texi (vsnprintf):
46091         * doc/posix-functions/vsprintf.texi (vsprintf):
46092         Mention that these functions mishandle large floating point
46093         precisions on Solaris 10.  The same bug is also present in Solaris
46094         8, and I assume earlier.  This causes "cd gnulib-tests; make
46095         check" to fail on Solaris 8 (and I assume, later) when building
46096         the latest coreutils, in test-vasprintf-posix's call to
46097         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
46098         the wide flavors (e.g., wprintf) so this patch just updates the
46099         documentation for the narrow ones.
46101         test-posixtm.c: add two tests
46102         * tests/test-posixtm.c: Add two tests, to highlight the
46103         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
46104         around this bug; this is merely to document it.
46106 2010-12-22  Bruno Haible  <bruno@clisp.org>
46108         getlogin_r: Work around portability problem on OSF/1.
46109         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
46110         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
46111         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
46112         test for a truncated result.
46113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
46114         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
46115         * modules/getlogin_r (Depends-on): Add memchr.
46116         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
46118 2010-12-22  Bruno Haible  <bruno@clisp.org>
46120         ptsname: Avoid test failure on OSF/1 5.1.
46121         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
46122         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
46123         (same_slave): New function.
46124         (main): Use it to compare ptsname's result with the expected file name.
46126 2010-12-22  Bruno Haible  <bruno@clisp.org>
46128         Port extended stdio modules to HP NonStop Kernel.
46129         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
46130         macros.
46131         * lib/fbufmode.c: Update comments.
46132         * lib/fflush.c: Likewise.
46133         * lib/fpurge.c: Likewise.
46134         * lib/freadable.c: Likewise.
46135         * lib/freadahead.c: Likewise.
46136         * lib/freading.c: Likewise.
46137         * lib/freadptr.c: Likewise.
46138         * lib/freadseek.c: Likewise.
46139         * lib/fseeko.c: Likewise.
46140         * lib/fseterr.c: Likewise.
46141         * lib/fwritable.c: Likewise.
46142         * lib/fwriting.c: Likewise.
46143         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46145 2010-12-22  Bruno Haible  <bruno@clisp.org>
46147         ttyname_r: Work around bug on OSF/1 5.1.
46148         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
46149         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
46150         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
46151         present.
46152         * lib/ttyname_r.c (ttyname_r): Update comments.
46154 2010-12-22  Bruno Haible  <bruno@clisp.org>
46156         round: Implement result sign according to IEEE 754.
46157         * lib/round.c (MIN, MINUS_ZERO): New macros.
46158         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
46159         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
46160         * tests/test-round-ieee.c (main): Likewise.
46161         * tests/test-roundl-ieee.c (main): Likewise.
46163         trunc: Implement result sign according to IEEE 754.
46164         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
46165         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
46166         * tests/test-trunc2.c: Include minus-zero.h.
46167         (MINUS_ZERO): New macro.
46168         (trunc_reference): Keep in sync with lib/trunc.c.
46169         * tests/test-truncf2.c: Include minus-zero.h.
46170         (MINUS_ZERO): New macro.
46171         (truncf_reference): Keep in sync with lib/trunc.c.
46172         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
46173         * tests/test-trunc-ieee.c (main): Likewise.
46174         * tests/test-truncl-ieee.c (main): Likewise.
46176         ceil: Implement result sign according to IEEE 754.
46177         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
46178         (FUNC): Return -0.0 for -1 < x < 0.
46179         * tests/test-ceil2.c: Include minus-zero.h.
46180         (MINUS_ZERO): New macro.
46181         (ceil_reference): Keep in sync with lib/ceil.c.
46182         * tests/test-ceilf2.c: Include minus-zero.h.
46183         (MINUS_ZERO): New macro.
46184         (ceilf_reference): Keep in sync with lib/ceil.c.
46185         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
46186         * tests/test-ceil-ieee.c (main): Likewise.
46187         * tests/test-ceill-ieee.c (main): Likewise.
46189         floor: Implement result sign according to IEEE 754.
46190         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
46191         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
46192         * tests/test-floorf2.c (floorf_reference): Likewise.
46193         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
46194         * tests/test-floor-ieee.c (main): Likewise.
46195         * tests/test-floorl-ieee.c (main): Likewise.
46197 2010-12-22  Bruno Haible  <bruno@clisp.org>
46199         getaddrinfo: Update doc.
46200         * doc/posix-functions/gai_strerror.texi: Return type is also different
46201         on AIX and HP-UX.
46203 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46205         getaddrinfo, inet_ntop: Update doc for Solaris.
46206         * doc/posix-functions/gai_strerror.texi: Return type is also an
46207         issue on Solaris 9 and earlier.
46208         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
46209         on Solaris 10 and earlier.
46211 2010-12-21  Bruno Haible  <bruno@clisp.org>
46213         New module 'roundl-ieee'.
46214         * modules/roundl-ieee: New file.
46215         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
46216         test whether roundl works according to ISO C 99 with IEC 60559.
46217         * m4/roundl-ieee.m4: New file.
46218         * modules/roundl-ieee-tests: New file.
46219         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
46220         * tests/test-roundl.c (main): Remove signbit tests.
46221         * modules/roundl-tests (Depends-on): Remove signbit.
46222         * doc/posix-functions/roundl.texi: Mention the new module.
46224 2010-12-21  Bruno Haible  <bruno@clisp.org>
46226         New module 'truncl-ieee'.
46227         * modules/truncl-ieee: New file.
46228         * modules/truncl-ieee-tests: New file.
46229         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
46230         * tests/test-truncl.c (main): Remove signbit tests.
46231         * modules/truncl-tests (Depends-on): Remove signbit.
46232         * doc/posix-functions/truncl.texi: Mention the new module.
46234 2010-12-21  Bruno Haible  <bruno@clisp.org>
46236         New module 'ceill-ieee'.
46237         * modules/ceill-ieee: New file.
46238         * modules/ceill-ieee-tests: New file.
46239         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
46240         * tests/test-ceill.c (main): Remove signbit tests.
46241         * modules/ceill-tests (Depends-on): Remove signbit.
46242         * doc/posix-functions/ceill.texi: Mention the new module.
46244 2010-12-21  Bruno Haible  <bruno@clisp.org>
46246         New module 'floorl-ieee'.
46247         * modules/floorl-ieee: New file.
46248         * modules/floorl-ieee-tests: New file.
46249         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
46250         * tests/test-floorl.c (main): Remove signbit tests.
46251         * modules/floorl-tests (Depends-on): Remove signbit.
46252         * doc/posix-functions/floorl.texi: Mention the new module.
46254 2010-12-21  Bruno Haible  <bruno@clisp.org>
46256         New module 'round-ieee'.
46257         * modules/round-ieee: New file.
46258         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
46259         whether round works according to ISO C 99 with IEC 60559.
46260         * m4/round-ieee.m4: New file.
46261         * modules/round-ieee-tests: New file.
46262         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
46263         * tests/test-round1.c (main): Remove signbit tests.
46264         * modules/round-tests (Depends-on): Remove 'signbit'.
46265         * doc/posix-functions/round.texi: Mention the new module.
46267 2010-12-21  Bruno Haible  <bruno@clisp.org>
46269         New module 'trunc-ieee'.
46270         * modules/trunc-ieee: New file.
46271         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
46272         whether trunc works according to ISO C 99 with IEC 60559.
46273         * m4/trunc-ieee.m4: New file.
46274         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
46275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
46276         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
46277         * modules/trunc-ieee-tests: New file.
46278         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
46279         * tests/test-trunc1.c (main): Remove signbit tests.
46280         * modules/trunc-tests (Depends-on): Remove 'signbit'.
46281         * doc/posix-functions/trunc.texi: Mention the new module.
46283 2010-12-21  Bruno Haible  <bruno@clisp.org>
46285         New module 'ceil-ieee'.
46286         * modules/ceil-ieee: New file.
46287         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
46288         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
46289         ISO C 99 with IEC 60559.
46290         * m4/ceil-ieee.m4: New file.
46291         * modules/ceil (Files): Add lib/ceil.c.
46292         (Depends-on): Add 'float'.
46293         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46294         * lib/math.in.h (ceil): New declaration.
46295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
46296         REPLACE_CEIL.
46297         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
46298         * modules/ceil-ieee-tests: New file.
46299         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
46300         * tests/test-math-c++.cc: Check the signature of 'ceil'.
46301         * doc/posix-functions/ceil.texi: Mention the new module.
46303 2010-12-21  Bruno Haible  <bruno@clisp.org>
46305         New module 'floor-ieee'.
46306         * modules/floor-ieee: New file.
46307         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
46308         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
46309         ISO C 99 with IEC 60559.
46310         * m4/floor-ieee.m4: New file.
46311         * modules/floor (Files): Add lib/floor.c.
46312         (Depends-on): Add 'float'.
46313         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46314         * lib/math.in.h (floor): New declaration.
46315         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
46316         REPLACE_FLOOR.
46317         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
46318         * modules/floor-ieee-tests: New file.
46319         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
46320         * tests/test-math-c++.cc: Check the signature of 'floor'.
46321         * doc/posix-functions/floor.texi: Mention the new module.
46323 2010-12-21  Bruno Haible  <bruno@clisp.org>
46325         New module 'roundf-ieee'.
46326         * modules/roundf-ieee: New file.
46327         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
46328         test whether roundf works according to ISO C 99 with IEC 60559.
46329         * m4/roundf-ieee.m4: New file.
46330         * modules/roundf-ieee-tests: New file.
46331         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
46332         * tests/test-roundf1.c (main): Remove signbit tests.
46333         * modules/roundf-tests (Depends-on): Remove 'signbit'.
46334         * doc/posix-functions/roundf.texi: Mention the new module.
46336 2010-12-21  Bruno Haible  <bruno@clisp.org>
46338         New module 'truncf-ieee'.
46339         * modules/truncf-ieee: New file.
46340         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
46341         test whether truncf works according to ISO C 99 with IEC 60559.
46342         * m4/truncf-ieee.m4: New file.
46343         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
46344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
46345         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
46346         * modules/truncf-ieee-tests: New file.
46347         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
46348         * tests/test-truncf1.c (main): Remove signbit tests.
46349         * modules/truncf-tests (Depends-on): Remove 'signbit'.
46350         * doc/posix-functions/truncf.texi: Mention the new module.
46352 2010-12-21  Bruno Haible  <bruno@clisp.org>
46354         New module 'ceilf-ieee'.
46355         * modules/ceilf-ieee: New file.
46356         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
46357         test whether ceilf works according to ISO C 99 with IEC 60559.
46358         * m4/ceilf-ieee.m4: New file.
46359         * modules/ceilf-ieee-tests: New file.
46360         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
46361         * tests/test-ceilf1.c (main): Remove signbit tests.
46362         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
46363         * doc/posix-functions/ceilf.texi: Mention the new module.
46365 2010-12-21  Bruno Haible  <bruno@clisp.org>
46367         New module 'floorf-ieee'.
46368         * modules/floorf-ieee: New file.
46369         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
46370         test whether floorf works according to ISO C 99 with IEC 60559.
46371         * m4/floorf-ieee.m4: New file.
46372         * modules/floorf-ieee-tests: New file.
46373         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
46374         * tests/test-floorf1.c (main): Remove signbit tests.
46375         * modules/floorf-tests (Depends-on): Remove 'signbit'.
46376         * doc/posix-functions/floorf.texi: Mention the new module.
46378 2010-12-21  Bruno Haible  <bruno@clisp.org>
46380         Support for minus zero in autoconf macros.
46381         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
46382         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
46383         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
46384         * tests/minus-zero.h: Update comments.
46386 2010-12-21  Bruno Haible  <bruno@clisp.org>
46388         Tests for module 'ceil'.
46389         * modules/ceil-tests: New file.
46390         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
46391         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
46393 2010-12-21  Bruno Haible  <bruno@clisp.org>
46395         Tests for module 'floor'.
46396         * modules/floor-tests: New file.
46397         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
46398         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
46400 2010-12-21  Bruno Haible  <bruno@clisp.org>
46402         math: Fix indentation.
46403         * lib/math.in.h (floorf): Fix indentation.
46405 2010-12-21  Bruno Haible  <bruno@clisp.org>
46407         Fix cross-compilation guesses on Solaris.
46408         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
46409         not match "solaris2.10".
46410         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
46411         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
46412         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
46414 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
46416         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
46417         This fixes a problem observed with the latest coreutils snapshot
46418         that caused a test to fail on Solaris 8.  src/csplit.c's call
46419         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
46420         earlier, instead of returning the number of bytes that would have
46421         been generated; this causes csplit to incorrectly report memory
46422         exhaustion.
46423         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
46424         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
46425         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
46426         comments to match.
46427         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
46428         Fix typo in matching older versions of Solaris: "solaris2.10"
46429         is matched by the shell pattern "solaris2.[0-9]*".  This matters
46430         only for guessing while cross-compiling.
46431         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
46433 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
46435         ftoastr: fix comment again
46436         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46437         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
46438         Also, simplify example a bit by using flags = 0.
46440 2010-12-20  Bruno Haible  <bruno@clisp.org>
46442         round*, trunc*: Update documentation regarding glibc.
46443         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
46444         * doc/posix-functions/round.texi: Likewise.
46445         * doc/posix-functions/roundl.texi: Likewise.
46446         * doc/posix-functions/truncf.texi: Likewise.
46447         * doc/posix-functions/trunc.texi: Likewise.
46448         * doc/posix-functions/truncl.texi: Likewise.
46450 2010-12-20  Bruno Haible  <bruno@clisp.org>
46452         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
46453         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
46454         * doc/posix-functions/round.texi: Likewise.
46455         * doc/posix-functions/roundl.texi: Likewise.
46457 2010-12-20  Bruno Haible  <bruno@clisp.org>
46459         ttyname_r: Add missing declaration on HP-UX 11.
46460         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
46461         HAVE_TTYNAME_R.
46462         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
46463         declared. Set HAVE_TTYNAME_R always.
46464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46465         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
46466         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
46467         HAVE_TTYNAME_R.
46468         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
46470 2010-12-20  Bruno Haible  <bruno@clisp.org>
46472         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
46473         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
46474         * doc/posix-functions/getlogin_r.texi: Likewise.
46475         * tests/test-getlogin.c: Include <errno.h>.
46476         (main): Avoid test failure on HP-UX 11.11.
46477         * tests/test-getlogin_r.c (main): Likewise.
46479 2010-12-20  Bruno Haible  <bruno@clisp.org>
46481         getlogin_r: Add missing declaration on HP-UX 11.
46482         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
46483         declared also when it exists as a function.
46484         * doc/posix-functions/getlogin_r.texi: Document this workaround.
46486 2010-12-20  Bruno Haible  <bruno@clisp.org>
46488         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
46489         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
46490         through wcrtomb.
46492 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
46494         ftoastr: fix comment
46495         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46496         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
46498 2010-12-19  Bruno Haible  <bruno@clisp.org>
46500         isnan: Ensure it is a macro.
46501         * lib/math.in.h (isnan): Define as a macro if not already a macro.
46502         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
46503         Solaris.
46505 2010-12-19  Bruno Haible  <bruno@clisp.org>
46507         ldexpl test: Fix link error on OSF/1 5.1.
46508         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
46510 2010-12-19  Bruno Haible  <bruno@clisp.org>
46512         wctype: Make it work in C++ mode on OSF/1 5.1.
46513         * lib/wctype.in.h (iswblank): Declare but not define here.
46514         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
46515         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
46516         * modules/wctype (Files): Add lib/iswblank.c.
46518 2010-12-19  Bruno Haible  <bruno@clisp.org>
46520         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
46521         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
46522         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
46524 2010-12-19  Bruno Haible  <bruno@clisp.org>
46526         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
46527         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
46528         _POSIX_PII_SOCKET.
46529         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
46530         * doc/posix-functions/recvfrom.texi: Likewise.
46531         * doc/posix-functions/send.texi: Likewise.
46532         * doc/posix-functions/sendto.texi: Likewise.
46534 2010-12-19  Bruno Haible  <bruno@clisp.org>
46536         tcgetsid: Add missing declaration on OSF/1 5.1.
46537         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
46538         HAVE_TCGETSID.
46539         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
46540         Don't set HAVE_TCGETSID.
46541         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
46542         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
46543         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
46544         HAVE_TCGETSID.
46545         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
46547 2010-12-19  Bruno Haible  <bruno@clisp.org>
46549         stdio: Fix problem with popen() declaration on OSF/1 5.1.
46550         * lib/stdio.in.h: During the include_next statement, let recursive
46551         includes of this file include only the system header file.
46553 2010-12-19  Bruno Haible  <bruno@clisp.org>
46555         iconv_open: Fix regression from 2010-12-04.
46556         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
46557         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
46559 2010-12-19  Bruno Haible  <bruno@clisp.org>
46561         stdbool test: Avoid a gcc warning.
46562         * tests/test-stdbool.c (main): Fail if e1 is false.
46563         Reported by Jim Meyering.
46565 2010-12-19  Jim Meyering  <meyering@redhat.com>
46567         setenv: restore to working order
46568         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
46569         mistakenly removed.
46570         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
46571         HAVE_SETENV.
46572         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
46573         HAVE_SETENV.
46575 2010-12-19  Bruno Haible  <bruno@clisp.org>
46577         Document some different function declarations on OSF/1 5.1.
46578         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
46579         * doc/posix-functions/inet_ntop.texi: Likewise.
46580         * doc/posix-functions/gethostname.texi: Likewise.
46581         * lib/unistd.in.h (gethostname): Update comment.
46583 2010-12-19  Bruno Haible  <bruno@clisp.org>
46585         doc: Mention vasprintf-posix module.
46586         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
46587         the 'vasprintf-posix' module.
46588         * doc/glibc-functions/vasprintf.texi: Likewise.
46590 2010-12-19  Bruno Haible  <bruno@clisp.org>
46592         unsetenv: Add missing declaration on OSF/1 5.1.
46593         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
46594         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
46595         Don't set HAVE_UNSETENV. In the test program, set _BSD.
46596         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
46597         not HAVE_UNSETENV.
46598         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
46599         HAVE_UNSETENV.
46600         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
46602 2010-12-19  Bruno Haible  <bruno@clisp.org>
46604         setenv: Add missing declaration on OSF/1 5.1.
46605         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
46606         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
46607         declared. Don't set HAVE_SETENV.
46608         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
46609         not HAVE_SETENV.
46610         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
46611         HAVE_SETENV.
46612         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
46614 2010-12-19  Bruno Haible  <bruno@clisp.org>
46616         nl_langinfo tests: Avoid gcc warning.
46617         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
46619 2010-12-19  Bruno Haible  <bruno@clisp.org>
46621         mknod: Avoid error in C++ mode on OSF/1 with GCC.
46622         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
46623         _GL_CXXALIAS_SYS.
46625 2010-12-19  Bruno Haible  <bruno@clisp.org>
46627         stdbool: Relax test.
46628         * tests/test-stdbool.c (e): Don't require that casts from a variable's
46629         address to 'bool' work in static initializer, for compilers other than
46630         GCC.
46632 2010-12-19  Bruno Haible  <bruno@clisp.org>
46634         ftello: Add missing declaration on OSF/1 5.1.
46635         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
46636         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
46637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
46638         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
46639         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
46641 2010-12-19  Bruno Haible  <bruno@clisp.org>
46643         fseeko: Add missing declaration on OSF/1 5.1.
46644         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
46645         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
46646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
46647         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
46648         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
46650 2010-12-19  Bruno Haible  <bruno@clisp.org>
46652         fchdir: Add missing declaration on OSF/1 5.1.
46653         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
46654         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
46655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
46656         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
46657         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
46659 2010-12-19  Bruno Haible  <bruno@clisp.org>
46661         relocatable-prog-wrapper: Separate from relocatable-prog.
46662         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
46663         uninstall-relocwrapper rule here.
46664         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
46665         Reported by Ian Beckwith <ianb@erislabs.net>.
46667 2010-12-19  Bruno Haible  <bruno@clisp.org>
46669         unistr/u8-mbsnlen: Add missing dependency.
46670         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
46671         Reported by Ian Beckwith <ianb@erislabs.net>.
46673 2010-12-19  Bruno Haible  <bruno@clisp.org>
46675         iconv: Make it possible again to use this module without 'iconv-h'.
46676         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
46677         if it is not defined.
46678         Reported by Ian Beckwith <ianb@erislabs.net>.
46680 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46682         acl: port to Solaris 8 when copying from tmpfs to ufs
46683         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
46684         error number.  Problem observed on Solaris 8 with latest
46685         coreutils, with "mv A B", where A is on a tmpfs file system and B
46686         is on a ufs file system.  This caused coreutils' mv/part-symlink
46687         test to fail.
46689         tests: set fail=0 at start
46690         * tests/init.sh (setup_): Move fail=0 initialization here ...
46691         (mktempd_): ... from here, so that tests can rely on fail being
46692         set to 0 initially.  This fixes a problem in coreutils; see:
46693         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
46695 2010-12-18  Bruno Haible  <bruno@clisp.org>
46697         memmem-simple: Stylistic changes.
46698         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
46699         Fix preprocessor directive indentation.
46701 2010-12-15  Pádraig Brady  <P@draigBrady.com>
46703         memmem, memmem-simple: reorganize and expand empty needle check
46704         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
46705         functional checks to memmem-simple so that one has a fully functional
46706         memmem by using just this module.
46707         Restrict the performance only check to the memmem module.
46708         Also expand the empty needle check to ensure the correct
46709         pointer is returned, not just a non NULL pointer.
46710         * doc/glibc-functions/memmem.texi: Rearrange the portability
46711         documentation to correlate with the rearranged checks.
46712         Clarify exactly how the memmem and memmem-simple modules
46713         relate to each other.
46715 2010-12-15  Pádraig Brady  <P@draigBrady.com>
46716             Bruno Haible  <bruno@clisp.org>
46718         Improve cross-compilation guesses for uClibc.
46719         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
46720         that uClibc does not have the glibc bug.
46721         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
46722         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
46724 2010-12-14  Eric Blake  <eblake@redhat.com>
46726         configmake: provide fallbacks for oldest supported autotools
46727         * m4/configmake.m4: New file.
46728         * modules/configmake (Files): Ship it.
46729         (configure.ac): Use it to guarantee fallbacks.
46731 2010-12-13  Pádraig Brady  <P@draigBrady.com>
46733         read-file: Improve handling of large files
46734         * lib/read-file.c (fread_file): Minimize realloc()s
46735         for regular files, and better manage sizes around SIZE_MAX.
46737 2010-12-13  Eric Blake  <eblake@redhat.com>
46739         cloexec, fcntl: relax license
46740         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
46741         consent from all contributors.
46742         * modules/fcntl (License): Likewise.
46744 2010-12-10  Bruno Haible  <bruno@clisp.org>
46746         Tests for module 'pipe-posix'.
46747         * modules/pipe-posix-tests: New file.
46748         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
46750 2010-12-10  Bruno Haible  <bruno@clisp.org>
46752         pipe-posix: Make it work in C++ mode.
46753         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
46754         (pipe): Use common idiom, not a macro definition.
46755         * lib/pipe.c: New file.
46756         * m4/pipe.m4: New file.
46757         * modules/pipe-posix (Description): Enhance.
46758         (Files): Add lib/pipe.c, m4/pipe.m4.
46759         (configure.ac): Invoke gl_FUNC_PIPE.
46760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
46761         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
46762         * tests/test-unistd-c++.cc: Check the signature of pipe.
46764 2010-12-10  Bruno Haible  <bruno@clisp.org>
46766         Rename module 'pipe' to 'spawn-pipe'.
46767         * modules/spawn-pipe: New file, renamed from modules/pipe.
46768         (Files, configure.ac, Makefile.am): Update.
46769         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
46770         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
46771         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
46772         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
46773         "spawn-pipe.h" instead of "pipe.h".
46774         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
46775         to gl_SPAWN_PIPE.
46776         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
46777         (Files, Makefile.am): Update.
46778         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
46779         Update.
46780         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
46781         Include "spawn-pipe.h" instead of "pipe.h".
46782         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
46783         * lib/javacomp.c: Likewise.
46784         * lib/javaversion.c: Likewise.
46785         * lib/pipe-filter-gi.c: Likewise.
46786         * lib/pipe-filter-ii.c: Likewise.
46787         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
46788         * modules/javacomp (Depends-on): Likewise.
46789         * modules/javaversion (Depends-on): Likewise.
46790         * modules/pipe-filter-gi (Depends-on): Likewise.
46791         * modules/pipe-filter-ii (Depends-on): Likewise.
46792         * MODULES.html.sh (Executing programs): Update.
46793         * NEWS: Mention the change.
46795 2010-12-10  Eric Blake  <eblake@redhat.com>
46797         pipe-posix: new module
46798         * modules/pipe-posix: New file.
46799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
46800         (gl_UNISTD_H): Check for declaration.
46801         * modules/unistd (Makefile.am): Substitute it.
46802         * lib/unistd.in.h (pipe): Provide it for mingw.
46803         * doc/posix-functions/pipe.texi (pipe): Update documentation.
46804         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
46806 2010-12-07  Bruno Haible  <bruno@clisp.org>
46808         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
46809         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
46810         u8_strcmp_gnu.
46811         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
46813 2010-12-06  Bruno Haible  <bruno@clisp.org>
46815         Update internal documentation.
46816         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
46818 2010-12-04  Bruno Haible  <bruno@clisp.org>
46820         Put more information about failed tests into the test return codes.
46821         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
46822         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
46823         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46824         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46825         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
46826         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46827         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46828         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
46829         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
46830         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46831         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
46832         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46833         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
46834         * m4/stdint.m4 (gl_STDINT_H): Likewise.
46835         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
46836         returns a bit mask.
46837         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
46838         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
46839         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
46840         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
46841         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
46842         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
46843         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
46844         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46845         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
46846         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
46847         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46848         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
46849         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46850         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
46851         * m4/link.m4 (gl_FUNC_LINK): Likewise.
46852         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
46853         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
46854         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
46855         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46856         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
46857         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46858         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
46859         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
46860         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
46861         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
46862         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46863         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
46864         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
46865         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
46866         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
46867         gl_PRINTF_PRECISION): Likewise.
46868         * m4/regex.m4 (gl_REGEX): Likewise.
46869         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46870         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
46871         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
46872         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
46873         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46874         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46875         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
46876         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
46877         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46878         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46879         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
46880         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46881         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
46882         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
46883         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
46884         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
46885         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
46886         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
46887         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46888         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
46889         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
46890         enumerated value.
46891         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
46893 2010-12-04  Bruno Haible  <bruno@clisp.org>
46895         Update for Solaris 11 2010-11.
46896         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
46897         Express, released in November 2010.
46899 2010-12-04  Bruno Haible  <bruno@clisp.org>
46901         nproc: Relax license.
46902         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
46903         and Paul Eggert.
46904         Requested by Ludovic Courtès <ludo@gnu.org>.
46906 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
46908         utimecmp: fine-grained src to nearby coarse-grained dest
46910         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
46911         and the source is on a file system with higher-resolution time
46912         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
46913         not work, and the time stamps are close together, the algorithm to
46914         determine the exact resolution from the read-back mtime was buggy:
46915         it had a "!=" where it should have had an "==".  This bug has been
46916         in the code ever since it was introduced to gnulib.
46917         Problem reported by Dan Jacobson in
46918         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
46920 2010-11-30  Bruno Haible  <bruno@clisp.org>
46922         strerror_r-posix: Fix autoconf test.
46923         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
46925 2010-11-28  Bruno Haible  <bruno@clisp.org>
46926             Paul Eggert  <eggert@cs.ucla.edu>
46928         Tests for module 'getdomainname'.
46929         * modules/getdomainname-tests: New file.
46930         * tests/test-getdomainname.c: New file, based on
46931         tests/test-gethostname.c.
46933 2010-11-28  Bruno Haible  <bruno@clisp.org>
46934             Paul Eggert  <eggert@cs.ucla.edu>
46936         getdomainname: Use the system function when possible.
46937         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
46938         (getdomainname): Replace if needed. Provide the declaration if it is
46939         missing. Don't use _GL_CXXALIAS_SYS_CAST.
46940         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
46941         (getdomainname): When the system has getdomainname, call the system
46942         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
46943         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46944         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
46945         found in libnsl. Look for the declaration also in <netdb.h>. Replace
46946         the function if its second argument is of type 'int' or if it is found
46947         in libnsl.
46948         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
46949         <sys/systeminfo.h> and sysinfo().
46950         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
46951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46952         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
46953         HAVE_GETDOMAINNAME.
46954         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
46955         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
46956         * doc/glibc-functions/getdomainname.texi: Document the problems with
46957         the getdomainname declaration.
46959 2010-11-28  Bruno Haible  <bruno@clisp.org>
46961         sys_socket: Ensure ss_family field on AIX.
46962         * lib/sys_socket.in.h (ss_family): New macro definition.
46963         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
46964         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
46965         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46966         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
46967         * modules/sys_socket (Makefile.am): Substitute
46968         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
46969         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
46971 2010-11-27  Bruno Haible  <bruno@clisp.org>
46973         readline: Improve configure output.
46974         * m4/readline.m4 (gl_FUNC_READLINE): Make the
46975         "checking for readline..." result understandable.
46977 2010-11-27  Bruno Haible  <bruno@clisp.org>
46979         *printf-posix: Detect a bug on Solaris 10/x86.
46980         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
46981         for floating-point output.
46982         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
46983         directive.
46984         * tests/test-snprintf-posix.h (test_function): Likewise.
46985         * tests/test-sprintf-posix.h (test_function): Likewise.
46986         * tests/test-vasprintf-posix.c (test_function): Likewise.
46987         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
46988         * doc/posix-functions/printf.texi: Likewise.
46989         * doc/posix-functions/snprintf.texi: Likewise.
46990         * doc/posix-functions/sprintf.texi: Likewise.
46991         * doc/posix-functions/vfprintf.texi: Likewise.
46992         * doc/posix-functions/vprintf.texi: Likewise.
46993         * doc/posix-functions/vsnprintf.texi: Likewise.
46994         * doc/posix-functions/vsprintf.texi: Likewise.
46995         * doc/glibc-functions/obstack_printf.texi: Likewise.
46996         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46998 2010-11-27  Bruno Haible  <bruno@clisp.org>
47000         Fix link error when module libunistring-optional is in use.
47001         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
47002         * modules/striconveha-tests (Makefile.am): Likewise.
47004 2010-11-27  Bruno Haible  <bruno@clisp.org>
47006         regex: Mention link dependencies.
47007         * modules/regex (Link): New section.
47008         * modules/rpmatch (Link): Likewise.
47009         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
47011 2010-11-27  Bruno Haible  <bruno@clisp.org>
47013         ftoastr: Fix compilation error on Solaris.
47014         * lib/ftoastr.c: Include <config.h>.
47016 2010-11-27  Bruno Haible  <bruno@clisp.org>
47018         getloadavg: Update documentation.
47019         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
47021 2010-11-27  Bruno Haible  <bruno@clisp.org>
47023         sys_socket: Fix test whether the functions are declared.
47024         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
47025         not <sys/select.h>.
47027 2010-11-27  Bruno Haible  <bruno@clisp.org>
47029         getpass: Make sure to get system declaration on some platforms.
47030         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
47031         gl_USE_SYSTEM_EXTENSIONS.
47032         * modules/getpass (Depends-on): Add extensions.
47034 2010-11-26  Bruno Haible  <bruno@clisp.org>
47036         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
47037         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
47038         'iconv' module is present.
47039         (ICONV_CONST): New macro.
47040         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
47041         ICONV_CONST.
47042         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
47043         set ICONV_CONST.
47044         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
47045         here.
47046         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
47047         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
47048         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
47049         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
47050         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
47051         present.
47053 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47055         ftoastr: comment fix
47056         * lib/ftoastr.c: "little" -> "little or no" in comment
47058 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
47060         stdint: port to GCC 4.3 + OSX + Octave
47061         On this platform, stdint.h is buggy and defines int64_t to long
47062         long int.  The replacement defined it to long int, causing
47063         problems with C++ style name mangling.  Instead, trust the system
47064         definition if INT64_MAX is defined, and likewise for the unsigned
47065         variant.   Problem reported by Jarno Rajahalme in
47066         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
47067         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
47068         and don't mess with int64_t and INT64_MAX in this case.
47069         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
47071 2010-11-24  Bruno Haible  <bruno@clisp.org>
47073         doc: Corrections regarding MacOS X 10.4 and 10.5.
47074         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
47075         MacOS X.
47076         Reported by Simon Josefsson.
47078 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
47080         Uninstall ".bin" files installed by relocwrapper.
47081         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
47082         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
47083         unless it is already there.
47085 2010-11-21  Bruno Haible  <bruno@clisp.org>
47087         Update for NetBSD 5.0.
47088         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
47089         NetBSD; the test fails on NetBSD 5.0.
47090         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
47091         about NetBSD.
47093 2010-11-21  Bruno Haible  <bruno@clisp.org>
47095         Update for HP-UX 11.23 and HP-UX 11.31.
47096         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
47097         HP-UX.
47099 2010-11-21  Bruno Haible  <bruno@clisp.org>
47101         Update for MacOS X 10.5.
47102         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
47103         MacOS X; the test fails on MacOS X 10.5.8.
47104         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
47105         about MacOS X.
47107 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
47109         bootstrap: add bootstrap_sync option.
47110         See discussion at
47111         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
47112         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
47113         * build-aux/bootstrap: Accept --bootstrap-sync to update
47114         bootstrap if it is not identical to the local gnulib's
47115         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
47116         enable this by default.  Accept --no-bootstrap-sync to disable
47117         it.
47119 2010-11-20  Bruno Haible  <bruno@clisp.org>
47121         Ensure that <features.h> is included before __GLIBC__ is tested.
47122         * lib/printf-parse.h: Include <features.h>.
47123         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
47124         Reported by Mike Frysinger <vapier@gentoo.org>.
47126         Ensure that <features.h> is included before __GLIBC__ is tested.
47127         * lib/wchar.in.h: Include <features.h>.
47128         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
47129         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
47130         Reported by Mike Frysinger <vapier@gentoo.org>.
47132         Ensure that <features.h> is included before __GLIBC__ is tested.
47133         * lib/arpa_inet.in.h: Include <features.h>.
47134         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
47135         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
47136         Reported by Mike Frysinger <vapier@gentoo.org>.
47138         Ensure that <features.h> is included before __GLIBC__ is tested.
47139         * build-aux/link-warning.h: Include <features.h>.
47140         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
47141         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
47142         Reported by Mike Frysinger <vapier@gentoo.org>.
47144         Ensure that <features.h> is included before __GLIBC__ is tested.
47145         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
47146         Reported by Mike Frysinger <vapier@gentoo.org>.
47148 2010-11-20  Bruno Haible  <bruno@clisp.org>
47150         memmem: Fix autoconf test.
47151         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
47153 2010-11-20  Bruno Haible  <bruno@clisp.org>
47155         Port to uClibc.
47156         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
47157         * lib/fcntl.in.h: Likewise.
47158         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
47159         * lib/mbrtowc.c (mbrtowc): Likewise.
47160         * lib/relocatable.c (find_shared_library_fullname): Likewise.
47161         * lib/strerror_r.c: Likewise.
47162         * lib/unistr/u8-strnlen.c: Likewise.
47163         * lib/vasnprintf.c (decimal_point_char): Likewise.
47164         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
47165         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
47166         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
47167         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47168         * tests/test-sigaction.c (handler, main): Likewise.
47169         * lib/freading.h: Treat uClibc like a non-glibc platform.
47170         * lib/freading.c: Likewise.
47171         * lib/gettext.h: Likewise.
47172         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
47173         Likewise.
47174         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
47175         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47176         * lib/propername.c (proper_name_utf8): Likewise.
47177         * lib/spawn.in.h: Likewise.
47178         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
47179         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
47180         mem_cd_iconveh_internal): Likewise.
47181         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
47182         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
47183         strstr, strcasestr): Likewise.
47184         * lib/unicodeio.c (unicode_to_mb): Likewise.
47185         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
47186         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
47187         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
47188         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
47189         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
47190         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
47191         * lib/unistr/u8-stpncpy.c: Likewise.
47192         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47193         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
47194         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47195         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47196         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47197         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
47198         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
47199         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
47200         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
47201         Likewise.
47202         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
47203         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
47204         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
47205         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47206         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47207         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
47208         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47209         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
47210         * tests/test-getopt.h (OPTIND_MIN): Likewise.
47211         * tests/test-striconveha.c (main): Likewise.
47212         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47213         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
47214         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
47215         * doc/posix-functions/getline.texi: Likewise.
47216         Reported by Mike Frysinger <vapier@gentoo.org>.
47218 2010-11-20  Bruno Haible  <bruno@clisp.org>
47220         nproc: Fix condition.
47221         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
47222         HAVE_PTHREAD_AFFINITY_NP.
47224 2010-11-20  Bruno Haible  <bruno@clisp.org>
47226         Fix a comment.
47227         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
47229 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
47231         ftoastr: don't assume snprintf
47232         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
47233         Implement a subset of snprintf here, by using sprintf safely.
47234         * modules/ftoastr (Depends-on): Remove snprintf.
47236 2010-11-19  Jim Meyering  <meyering@redhat.com>
47238         test-rename.h: fix compilation failure
47239         * tests/test-rename.h (test_rename): Add omitted "}".
47241 2010-11-17  Jim Meyering  <meyering@redhat.com>
47243         maint.mk: add a URL discussing the no-@acronym policy
47244         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
47246 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
47248         ftoastr: depend on snprintf, improve comments
47249         * lib/ftoastr.c: Also mention Loitsch's draft.
47250         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
47251         needed in the current implementation, but it might simplify
47252         speeding up the code later.
47253         * modules/ftoastr: Depend on snprintf; this improves portability.
47254         Suggested by Bruno Haible in the same email.
47256         ftoastr: port to hosts lacking strtof and strtold
47257         Problem reported by Bruno Haible in
47258         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
47259         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
47260         environment and strtold (and presumably strtof) are not available.
47261         * modules/ftoastr (Files): Add m4/c-strtod.m4.
47262         (configure.ac): Require gl_C99_STRTOLD.
47264 2010-11-18  Bruno Haible  <bruno@clisp.org>
47266         c-strtold: Avoid link error on AIX 7.
47267         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
47268         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
47269         (gl_C_STRTOLD): Test whether strtold_l exists.
47270         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47272 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47274         intprops: new macro INT_BITS_STRLEN_BOUND
47275         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
47276         ftoastr.h.  This exposes an internal of intprops.h that was formerly
47277         not exposed.  Also, it uses a slightly tighter bound than before;
47278         though this makes no practical difference, we might as well be as
47279         tight as we easily can.
47281         ftoastr: new module, for lossless conversion of floats to short strings
47282         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
47283         * modules/ftoastr: New files.
47285 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47287         bootstrap: port to Solaris sed
47288         * build-aux/bootstrap (get_version): Port to Solaris sed.
47289         See Ralf Wildenhues's note in
47290         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
47292 2010-11-14  Jim Meyering  <meyering@redhat.com>
47294         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
47295         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
47296         and move definition closer to sole use.
47298 2010-11-13  Jim Meyering  <meyering@redhat.com>
47300         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
47301         Now we require at least autoconf-2.59, which means the work-around
47302         is no longer needed.
47303         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
47304         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47305         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47306         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
47307         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
47309 2010-11-13  Bruno Haible  <bruno@clisp.org>
47311         rename, renameat: Avoid test failures at NFS mounted locations.
47312         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
47313         functions.
47314         (test_rename): Use assert_nonexistent.
47315         * tests/test-rename.c: Include <dirent.h>.
47316         * tests/test-renameat.c: Likewise.
47317         Reported by Gary V. Vaughan <gary@gnu.org>.
47319         rename, renameat: Document Linux bug with NFS
47320         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
47321         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
47322         * doc/posix-functions/renameat.texi: Likewise.
47323         Suggested by Eric Blake.
47325 2010-11-13  Bruno Haible  <bruno@clisp.org>
47327         rename test: Add comments.
47328         * tests/test-rename.h (test_rename): Add structure and comments.
47330 2010-11-13  Eric Blake  <eblake@redhat.com>
47332         maintainer-makefile: cover a few more files
47333         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
47334         scripts generated within C files, for libvirt.
47336 2010-11-13  Bruno Haible  <bruno@clisp.org>
47338         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
47339         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
47340         character, return the number of bytes that belong together, not always
47341         1.
47342         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
47343         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
47344         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
47345         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
47346         number of bytes of an invalid character.
47347         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
47348         (main): Invoke it.
47349         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
47350         results.
47351         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
47352         malformed byte sequences.
47353         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
47354         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
47355         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
47356         Reported by Ben Pfaff and Paolo Bonzini.
47358 2010-11-13  Bruno Haible  <bruno@clisp.org>
47360         openat: Work around glibc bug with fchownat() and empty file names.
47361         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
47362         (gl_FUNC_FCHOWNAT): Invoke it.
47363         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
47364         * doc/posix-functions/fchownat.texi: Document the glibc bug.
47365         Reported by Gary V. Vaughan <gary@gnu.org>.
47367 2010-11-13  Bruno Haible  <bruno@clisp.org>
47369         openat: Ensure autoconf macro ordering.
47370         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
47371         gl_USE_SYSTEM_EXTENSIONS.
47372         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
47374 2010-11-13  Bruno Haible  <bruno@clisp.org>
47376         Update comments.
47377         * lib/unistr/u8-check.c: Update file name in comments.
47378         * lib/unistr/u8-mblen.c: Likewise.
47379         * lib/unistr/u8-prev.c: Likewise.
47380         * lib/unistr/u8-strmblen.c: Likewise.
47381         * lib/unistr/u8-strmbtouc.c: Likewise.
47383 2010-11-13  Jim Meyering  <meyering@redhat.com>
47385         tests: avoid test failure on Solaris 10 due to lack of PATH export
47386         * tests/test-update-copyright.sh: Don't forget to export PATH.
47388         init.sh: ensure that IFS is defined, just in case...
47389         * tests/init.sh (setup_): Ensure that IFS is defined,
47390         so that saving and restoring it works as expected.  This
47391         appears to be useful at least for an old version of dash
47392         from a long time ago (RH 6).  See here for details:
47393         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
47395         maint.mk: tighten "test a == b" check
47396         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
47397         test to files that contain something like #!/bin/sh.
47398         Without this, coreutils would get two false positives in
47399         the comments of C source files.
47401 2010-11-12  Eric Blake  <eblake@redhat.com>
47403         bootstrap: fix typo in previous attempt
47404         * build-aux/bootstrap (buildreq): Correct the grouping.
47405         Reported by Paul Eggert.
47407         maintainer-makefile: prohibit test x == x
47408         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
47409         Based on a report by Matthias Bolte.
47411         bootstrap: allow FreeBSD gzip
47412         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
47413         which has no '.' and goes to stderr.
47414         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
47415         Reported by Matthias Bolte.
47417         maintainer-makefile: check for i18n setup
47418         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
47419         will likely work.
47421 2010-11-12  Bruno Haible  <bruno@clisp.org>
47423         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
47424         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
47425         * lib/nanosleep.c (nanosleep): Likewise.
47427 2010-11-11  Bruno Haible  <bruno@clisp.org>
47429         fcntl-h: Fix for use of C++ on glibc systems.
47430         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
47431         also on glibc systems in C++ mode.
47432         Reported by Gary V. Vaughan <gary@gnu.org>.
47434 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47436         mknod: avoid false failure with dash
47437         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
47439 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
47441         unlink: Fix "is it should" typo in diagnostic.
47442         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
47443         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
47445 2010-11-11  Bruno Haible  <bruno@clisp.org>
47447         Tests for module 'strerror_r-posix'.
47448         * modules/strerror_r-posix-tests: New file.
47449         * tests/test-strerror_r.c: New file.
47450         * tests/test-string-c++.cc: Check the signature of strerror_r.
47452         New module 'strerror_r-posix'.
47453         * lib/string.in.h (strerror_r): New declaration.
47454         * lib/strerror_r.c: New file.
47455         * m4/strerror_r.m4: New file.
47456         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
47457         of strerror_r.
47458         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
47459         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47460         * modules/strerror_r-posix: New file.
47461         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
47462         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47463         * doc/posix-functions/strerror_r.texi: Mention the new module and the
47464         portability problems.
47466 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
47468         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
47469         line is also considered for output. Quoted function name in shell
47470         command, so temporary files for functions like MyClass::operator()
47471         are removed correctly without errors.
47473 2010-11-09  Bruno Haible  <bruno@clisp.org>
47475         * doc/posix-functions/strerror.texi: List more failing platforms.
47477         * doc/posix-functions/strerror.texi: Add a comment.
47479 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47481         fdopendir: fix bug on MacOS X when low on file descriptors
47483         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
47484         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
47485         All callers changed.
47486         (fdopendir): Invoke save_cwd at the top level, not after using
47487         multiple dup() calls to use up file descriptors.  Then retry
47488         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
47489         less than the maximum number of open file descriptors, because
47490         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
47491         on Mac OS X 10.6.4 for tar 1.24
47492         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
47493         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
47494         and for tar 1.25
47495         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
47497 2010-11-07  Bruno Haible  <bruno@clisp.org>
47499         vasnprintf: Support I flag on glibc systems.
47500         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
47501         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
47502         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
47503         snprintf function.
47504         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
47505         glibc systems.
47506         * tests/test-vasnprintf-posix3.c: New file.
47507         * modules/vasnprintf-posix-tests (Files): Add it.
47508         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
47510 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47512         [html] Fix copy/paste bug: Use unique name for compiler warnings.
47513         * MODULES.html.sh: For compiler warnings, use name
47514         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
47516 2010-11-05  Eric Blake  <eblake@redhat.com>
47518         ceil, floor: avoid spurious failure with icc
47519         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
47520         [denormals-as-zero] when optimizing without -mieee-fp option.
47521         * tests/test-floorf2.c (floorf_reference): Likewise.
47522         * tests/test-ceilf1.c (dummy): New function.
47523         (main): Use it to outsmart icc's optimization.
47524         * tests/test-floorf1.c (dummy, main): Likewise.
47526         tests: require working signbit
47527         * modules/ceilf-tests (Depends-on): Add signbit.
47528         * modules/ceill-tests (Depends-on): Likewise.
47529         * modules/floorf-tests (Depends-on): Likewise.
47530         * modules/floorl-tests (Depends-on): Likewise.
47531         * modules/round-tests (Depends-on): Likewise.
47532         * modules/roundf-tests (Depends-on): Likewise.
47533         * modules/roundl-tests (Depends-on): Likewise.
47534         * modules/trunc-tests (Depends-on): Likewise.
47535         * modules/truncf-tests (Depends-on): Likewise.
47536         * modules/truncl-tests (Depends-on): Likewise.
47538         strtod: work around icc bug
47539         * lib/strtod.c (minus_zero): Define to working value.
47540         (strtod): Use it to avoid icc bug.
47542         copysign: enhance tests
47543         * modules/copysign-tests (Files): Add minus-zero.h.
47544         * tests/test-copysign.c (main): Also test zeros.
47546 2010-11-04  Eric Blake  <eblake@redhat.com>
47548         ceil, floor, round, trunc: enhance tests of -0
47549         * tests/test-ceilf1.c (main): Ensure correct sign of result.
47550         * tests/test-ceill.c (main): Likewise.
47551         * tests/test-floorf1.c (main): Likewise.
47552         * tests/test-floorl.c (main): Likewise.
47553         * tests/test-round1.c (main): Likewise.
47554         * tests/test-roundf1.c (main): Likewise.
47555         * tests/test-roundl.c (main): Likewise.
47556         * tests/test-trunc1.c (main): Likewise.
47557         * tests/test-truncf1.c (main): Likewise.
47558         * tests/test-truncl.c (main): Likewise.
47560 2010-11-04  Eric Blake  <eblake@redhat.com>
47562         frexp, tests: work around ICC bug with -zero
47563         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
47564         works with more compilers.
47565         * tests/minus-zero.h: New file.
47566         * modules/ceilf-tests (Files): Include it.
47567         * modules/ceill-tests (Files): Likewise.
47568         * modules/floorf-tests (Files): Likewise.
47569         * modules/floorl-tests (Files): Likewise.
47570         * modules/frexp-nolibm-tests (Files): Likewise.
47571         * modules/frexp-tests (Files): Likewise.
47572         * modules/frexpl-nolibm-tests (Files): Likewise.
47573         * modules/frexpl-tests (Files): Likewise.
47574         * modules/isnan-tests (Files): Likewise.
47575         * modules/isnand-nolibm-tests (Files): Likewise.
47576         * modules/isnand-tests (Files): Likewise.
47577         * modules/isnanf-nolibm-tests (Files): Likewise.
47578         * modules/isnanf-tests (Files): Likewise.
47579         * modules/isnanl-nolibm-tests (Files): Likewise.
47580         * modules/isnanl-tests (Files): Likewise.
47581         * modules/round-tests (Files): Likewise.
47582         * modules/roundf-tests (Files): Likewise.
47583         * modules/roundl-tests (Files): Likewise.
47584         * modules/ldexpl-tests (Files): Likewise.
47585         * modules/signbit-tests (Files): Likewise.
47586         * modules/snprintf-posix-tests (Files): Likewise.
47587         * modules/sprintf-posix-tests (Files): Likewise.
47588         * modules/strtod-tests (Files): Likewise.
47589         * modules/trunc-tests (Files): Likewise.
47590         * modules/truncf-tests (Files): Likewise.
47591         * modules/truncl-tests (Files): Likewise.
47592         * modules/vsnprintf-posix-tests (Files): Likewise.
47593         * modules/vsprintf-posix-tests (Files): Likewise.
47594         * modules/vasnprintf-posix-tests (Files): Likewise.
47595         * modules/vasprintf-posix-tests (Files): Likewise.
47596         * tests/test-ceilf1.c (main): Use it.
47597         * tests/test-ceill.c (main): Likewise.
47598         * tests/test-floorf1.c (main): Likewise.
47599         * tests/test-floorl.c (main): Likewise.
47600         * tests/test-frexp.c (main): Likewise.
47601         * tests/test-frexpl.c (main): Likewise.
47602         * tests/test-isnan.c (main): Likewise.
47603         * tests/test-isnand.h (main): Likewise.
47604         * tests/test-isnanf.h (main): Likewise.
47605         * tests/test-isnanl.h (main): Likewise.
47606         * tests/test-ldexpl.c (main): Likewise.
47607         * tests/test-round.c (main): Likewise.
47608         * tests/test-roundf.c (main): Likewise.
47609         * tests/test-roundl.c (main): Likewise.
47610         * tests/test-signbit.c (test_signbitf, test_signbitd)
47611         (test_signbitl): Likewise.
47612         * tests/test-snprintf-posix.h (test_function): Likewise.
47613         * tests/test-sprintf-posix.h (test_function): Likewise.
47614         * tests/test-strtod.c (main): Likewise.
47615         * tests/test-trunc1.c (main): Likewise.
47616         * tests/test-truncf1.c (main): Likewise.
47617         * tests/test-truncl.c (main): Likewise.
47619         isnanl: work around icc bug
47620         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
47622 2010-11-03  Eric Blake  <eblake@redhat.com>
47624         tests: fix compiler warnings
47625         * tests/test-getopt.h (test_getopt): Fix condition.
47626         * tests/test-getopt_long.h (test_getopt_long): Likewise.
47627         * tests/test-pipe2.c (main): Likewise.
47628         * tests/test-quotearg-simple.c (main): Avoid icc warning.
47630         utimens: fix broken m4 test
47631         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
47633 2010-10-28  Bruno Haible  <bruno@clisp.org>
47635         posix_spawn*, getdtablesize: Relax license.
47636         * modules/posix_spawn (License): Change to LGPLv2+.
47637         * modules/posix_spawnp (License): Likewise.
47638         * modules/posix_spawn-internal (License): Likewise.
47639         * modules/posix_spawnattr_init (License): Likewise.
47640         * modules/posix_spawnattr_getflags (License): Likewise.
47641         * modules/posix_spawnattr_setflags (License): Likewise.
47642         * modules/posix_spawnattr_getpgroup (License): Likewise.
47643         * modules/posix_spawnattr_setpgroup (License): Likewise.
47644         * modules/posix_spawnattr_getschedparam (License): Likewise.
47645         * modules/posix_spawnattr_setschedparam (License): Likewise.
47646         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
47647         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
47648         * modules/posix_spawnattr_getsigdefault (License): Likewise.
47649         * modules/posix_spawnattr_setsigdefault (License): Likewise.
47650         * modules/posix_spawnattr_getsigmask (License): Likewise.
47651         * modules/posix_spawnattr_setsigmask (License): Likewise.
47652         * modules/posix_spawnattr_destroy (License): Likewise.
47653         * modules/posix_spawn_file_actions_init (License): Likewise.
47654         * modules/posix_spawn_file_actions_addclose (License): Likewise.
47655         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
47656         * modules/posix_spawn_file_actions_addopen (License): Likewise.
47657         * modules/posix_spawn_file_actions_destroy (License): Likewise.
47658         * modules/getdtablesize (License): Likewise.
47659         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
47661 2010-10-26  Bruno Haible  <bruno@clisp.org>
47663         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
47664         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
47665         Cygwin and mingw.
47666         Suggested by Eric Blake.
47668 2010-10-26  Bruno Haible  <bruno@clisp.org>
47670         stdio: Work around compilation error due to renameat() on Solaris 10.
47671         * lib/stdio.in.h: Include <unistd.h> on Solaris.
47672         * lib/renameat.c: Don't include <unistd.h> here.
47673         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
47674         Reported by Paul Eggert and Eric Blake.
47676 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
47678         renameat: port to Solaris 10, which declares renameat in unistd.h
47680         * lib/renameat.c: Include unistd.h before stdio.h, because
47681         Solaris 10 declares renameat in unistd.h.  Problem encountered
47682         when building GNU tar 1.24 on Solaris 10.
47684 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47686         fdopendir: fix C89 compilation
47687         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
47688         compilers.
47690 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
47692         inttostr: simplify by removing unnecessary redundancy
47693         * lib/anytostr.c: Don't include verify.h.
47694         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
47695         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
47696         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
47697         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
47698         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
47699         Likewise.
47700         * modules/inttostr (Depends-on): Remove 'verify'.
47702 2010-10-23  Bruno Haible  <bruno@clisp.org>
47704         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
47705         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
47706         Reported by Eric Blake.
47708 2010-10-23  Bruno Haible  <bruno@clisp.org>
47710         Tests: Fix LOCALE_JA on MirBSD 10.
47711         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
47712         to an UTF-8 locale.
47713         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
47714         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47715         Reported by Eric Blake.
47717 2010-10-21  Bruno Haible  <bruno@clisp.org>
47719         nl_langinfo test: Avoid test failure on NetBSD 5.
47720         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
47721         Reported by Eric Blake.
47723 2010-10-21  Eric Blake  <eblake@redhat.com>
47725         c-stack: work around libsigsegv 2.8 bug
47726         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
47727         overflow on at least PowerPC64.
47729 2010-10-17  Bruno Haible  <bruno@clisp.org>
47731         userspec: Drop redundant file.
47732         * modules/userspec (Files): Remove lib/inttostr.h.
47734 2010-10-17  Bruno Haible  <bruno@clisp.org>
47736         nl_langinfo tests: Silence some warnings.
47737         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
47738         Reported by Jim Meyering.
47740 2010-10-17  Bruno Haible  <bruno@clisp.org>
47742         Make use of GCC's attribute __alloc_size__.
47743         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
47744         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
47745         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
47746         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
47747         __alloc_size__.
47748         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
47749         Suggested by Jim Meyering.
47751 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
47753         bootstrap: anchor .gitignore entries.
47754         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
47755         with...
47756         (insert_vc_ignore): ... this new function, which prepends `/' to
47757         all .gitignore entries before passing them to
47758         insert_sorted_if_absent.
47760 2010-10-16  Bruno Haible  <bruno@clisp.org>
47762         nextafter: Fix configure check.
47763         * modules/nextafter (configure.ac): Correct expected prototype.
47765 2010-10-16  Bruno Haible  <bruno@clisp.org>
47767         termios: Update documentation.
47768         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
47770 2010-10-16  Bruno Haible  <bruno@clisp.org>
47772         tests: Make them compile with TinyCC.
47773         * tests/test-strstr.c (main): Remove parentheses around array
47774         initializer.
47776 2010-10-15  Eric Blake  <eblake@redhat.com>
47778         ignore-value: make header idempotent
47779         * lib/ignore-value.h: Add double-inclusion guards.
47780         Reported by Stefan Berger.
47782 2010-10-15  Jim Meyering  <meyering@redhat.com>
47784         GNUmakefile: handle "stable" target, not "major"
47785         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
47786         lists in maint.mk and announce-gen.  Without this, "make stable"
47787         would fail to ensure that $(VERSION) is up to date.
47789 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
47791         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
47792         & co.
47794 2010-10-14  Bruno Haible  <bruno@clisp.org>
47796         vasnprintf: Don't set errno to 0.
47797         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
47798         block that sets it to 0.
47799         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
47801 2010-10-14  Bruno Haible  <bruno@clisp.org>
47803         socketlib: Fix.
47804         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
47805         gl_PREREQ_SYS_H_WINSOCK2.
47806         Reported by Ian Beckwith <ianb@erislabs.net>.
47808 2010-10-13  Jim Meyering  <meyering@redhat.com>
47810         test-select-stdin.c: avoid warn_unused_result warnings
47811         * tests/test-select-stdin.c: Include "macros.h".
47812         ASSERT that read and fflush succeed.
47814 2010-10-13  Jim Meyering  <meyering@redhat.com>
47816         git-version-gen: do require git-VC'd files in cwd
47817         * build-aux/git-version-gen: Reject a git version string
47818         if there are no commits associated with the current directory.
47819         This avoids an unlikely false-positive (unrelated dir whose parent
47820         repository also contains a tag matching v*), as pointed out
47821         by Giuseppe Scrivano in
47822         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
47824 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
47826         argv-iter: omit nonconforming declaration
47827         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
47828         enum arg_iter_err declaration, which doesn't conform to C99.
47829         Solaris 10 cc warns about this.
47831 2010-10-13  Eric Blake  <eblake@redhat.com>
47833         termios: fix compilation on mingw
47834         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
47835         (gl_TERMIOS_H): Adjust it on mingw.
47836         * modules/termios (Makefile.am): Substitute new key.
47837         * lib/termios.in.h (includes): Make include_next conditional.
47838         * doc/posix-headers/termios.texi (termios.h): Update
47839         documentation.
47840         Reported by Daniel P. Berrange.
47842 2010-10-13  Jim Meyering  <meyering@redhat.com>
47844         git-version-gen: don't require that .git/ be in the current dir
47845         * build-aux/git-version-gen: Adjust this script so that it works
47846         when run from any working directory beneath the top-level .git/-
47847         containing directory.  Inspired by a patch from Giuseppe Scrivano,
47848         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
47850         test-select: avoid warn_unused_result warnings
47851         * tests/test-select.c: Include "macros.h".
47852         ASSERT that each call to read, write, and pipe succeeds.
47853         While not technically required, also check each "close".
47854         * modules/select-tests (Files): Add tests/macros.h.
47856         test-symlinkat: remove declaration of unused local
47857         * tests/test-symlinkat.c (main): Remove unused local, "buf".
47859         test-inttostr: avoid shadowing warnings
47860         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
47861         and use malloc rather than the stack for the same reason as
47862         mentioned in the comment justifying the other allocation.
47864 2010-10-11  Bruno Haible  <bruno@clisp.org>
47866         stdlib: Allow multiple gnulib generated replacements to coexist.
47867         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
47868         Reported by Sam Steingold <sds@gnu.org>.
47870 2010-10-11  Jim Meyering  <meyering@redhat.com>
47872         fix a documentation typo
47873         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
47875 2010-10-11  Eric Blake  <eblake@redhat.com>
47877         futimens: work around Solaris 11 bug
47878         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
47879         * tests/test-futimens.h (test_futimens): Enhance, rather than
47880         weaken test.
47881         * doc/posix-functions/futimens.texi (futimens): Document the bug.
47883 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47885         Indentation.
47886         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
47887         higher-level operators more to the left.
47889 2010-10-11  Jim Meyering  <meyering@redhat.com>
47891         test-futimens: avoid unwarranted test failure on Solaris 5.11
47892         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
47893         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
47894         because it tries to dereference the NULL name argument.
47896 2010-10-11  Bruno Haible  <bruno@clisp.org>
47898         Indentation.
47899         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
47900         indentation.
47902 2010-10-11  Jim Meyering  <meyering@redhat.com>
47904         spawn.in.h: make indentation consistent with parentheses
47905         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
47906         Make indentation consistent with parentheses.
47908 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
47910         Fix mismatched parens in previous commit
47911         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
47912         parens.
47914 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47916         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
47918         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
47919         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
47920         * lib/malloca.c: Include "verify.h".
47921         (verify1): Remove, replacing with a verify call.
47922         * lib/relocwrapper.c (verify1): Likewise.
47923         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
47924         Likewise.
47925         * modules/malloca (Depends-on): Add 'verify'.
47926         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
47927         * modules/vasnprintf (Depends-on): Add 'verify'.
47928         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47929         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47930         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47931         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47932         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47933         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47934         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47936         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
47938         Formerly the style was sometimes 2*X - 1, because the C standard
47939         was wrongly thought to disallow ?: in integral constant expressions.
47940         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
47941         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
47942         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
47943         * lib/stdint.in.h (_verify_intmax_size): Likewise.
47944         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
47945         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
47946         verify that time_t cannot be floating.
47948 2010-10-08  Eric Blake  <eblake@redhat.com>
47950         time: enforce recent POSIX ruling that time_t is integral
47951         * lib/time.in.h (__time_t_must_be_integral): Detect any
47952         problematic systems, allowing the rest of gnulib to assume POSIX.
47954 2010-10-08  Jim Meyering  <meyering@redhat.com>
47956         fdopendir: fix a bug on systems lacking openat and /proc support
47957         OpenBSD 4.7 is one such system.  The most noticeable effect was
47958         failure of any application making nontrivial use of fts: rm, du,
47959         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
47960           ./rm: traversal failed: `a': Bad file descriptor
47961         Debugging that, you see that even though FD 6 was closed just
47962         prior to the opendir call in fd_clone_opendir, its resulting
47963         dir->dd_fd was 8, rather than the expected value of 6:
47965         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
47966         93                close (fd);
47967         (gdb) n
47968         94                dir = fd_clone_opendir (dupfd);
47969         (gdb) n
47970         95                saved_errno = errno;
47971         (gdb) p dir->dd_fd
47972         $11 = 8
47974         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
47975         The problem is that on OpenBSD, fd_clone_opendir has to resort
47976         to using the old-style save/restore CWD mechanism, due to its
47977         lack of openat/proc support, and *that* would steal the FD (6)
47978         that opendir was supposed to use.
47980         The fix is to squirrel away the desired FD so that save_cwd uses a
47981         different one, and then free the dest FD right before calling opendir.
47982         That guarantees opendir will use the required file descriptor.
47984         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
47986 2010-10-08  Bruno Haible  <bruno@clisp.org>
47988         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
47989         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
47991 2010-10-08  Bruno Haible  <bruno@clisp.org>
47993         nanosleep: Make replacement POSIX compliant.
47994         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
47995         is out of range.
47996         Reported by Jim Meyering.
47998 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48000         bootstrap: add hook for altering gnulib.mk, for Bison
48001         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
48002         the Bison bootstrapping process can rewrite file names and variables
48003         in this file before later parts of 'bootstrap' use the file.
48004         Bison wants to include lib/gnulib.mk from the top-level makefile,
48005         so it needs the file names in this file to be relative to the top
48006         level, not relative to lib; plus it needs variable names to be
48007         rewritten.
48008         (slurp): Use the new function.
48010         bootstrap: reformat for readability
48011         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
48013 2010-10-08  Eric Blake  <eblake@redhat.com>
48015         docs: update cygwin progress
48016         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
48017         1.7.7.
48018         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
48019         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
48020         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
48021         * doc/posix-functions/carg.texi (carg): Likewise.
48022         * doc/posix-functions/cargf.texi (cargf): Likewise.
48023         * doc/posix-functions/casin.texi (casin): Likewise.
48024         * doc/posix-functions/casinf.texi (casinf): Likewise.
48025         * doc/posix-functions/casinh.texi (casinh): Likewise.
48026         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
48027         * doc/posix-functions/catan.texi (catan): Likewise.
48028         * doc/posix-functions/catanf.texi (catanf): Likewise.
48029         * doc/posix-functions/catanh.texi (catanh): Likewise.
48030         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
48031         * doc/posix-functions/ccos.texi (ccos): Likewise.
48032         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
48033         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
48034         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
48035         * doc/posix-functions/cexp.texi (cexp): Likewise.
48036         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
48037         * doc/posix-functions/cimag.texi (cimag): Likewise.
48038         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
48039         * doc/posix-functions/clog.texi (clog): Likewise.
48040         * doc/posix-functions/clogf.texi (clogf): Likewise.
48041         * doc/posix-functions/conj.texi (conj): Likewise.
48042         * doc/posix-functions/conjf.texi (conjf): Likewise.
48043         * doc/posix-functions/cpow.texi (cpow): Likewise.
48044         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
48045         * doc/posix-functions/cproj.texi (cproj): Likewise.
48046         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
48047         * doc/posix-functions/creal.texi (creal): Likewise.
48048         * doc/posix-functions/crealf.texi (crealf): Likewise.
48049         * doc/posix-functions/csin.texi (csin): Likewise.
48050         * doc/posix-functions/csinf.texi (csinf): Likewise.
48051         * doc/posix-functions/csinh.texi (csinh): Likewise.
48052         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
48053         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
48054         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
48055         * doc/posix-functions/ctan.texi (ctan): Likewise.
48056         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
48057         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
48058         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
48059         * doc/posix-headers/complex.texi (complex.h): Likewise.
48061 2010-10-07  Jim Meyering  <meyering@redhat.com>
48063         parse-datetime: avoid compilation failure on OpenBSD 4.7
48064         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
48065         This works around a compilation failure on OpenBSD 4.7:
48066         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
48068 2010-10-07  Eric Blake  <eblake@redhat.com>
48070         docs: update cygwin progress
48071         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
48072         1.7.6.
48073         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
48074         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
48075         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
48076         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
48077         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
48078         Likewise.
48079         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
48080         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
48081         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
48082         Likewise.
48083         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
48084         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
48085         Likewise.
48086         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
48087         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
48088         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
48089         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
48090         Likewise.
48091         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
48092         Likewise.
48093         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
48095         docs: update parse-datetime history
48096         * doc/parse-datetime.texi (Authors of parse_datetime): Better
48097         documentation of this function's history and alternatives.
48099         cygwin: use more robust version check
48100         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
48101         exclude an eventual cygwin 1.9.1.
48102         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
48103         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
48104         (gl_FUNC_STRCASESTR): Likewise.
48105         Reported by Bruno Haible.
48107 2010-10-06  Bruno Haible  <bruno@clisp.org>
48109         string, sys_select: Avoid #including large headers unless necessary.
48110         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
48111         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
48112         OSF/1, BeOS, Haiku.
48113         Reported by Jim Meyering.
48115 2010-10-05  Eric Blake  <eblake@redhat.com>
48117         memmem, strstr, strcasestr: fix bug with long periodic needle
48118         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
48119         periodic needle having false positive.
48120         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
48121         and cygwin 1.7.7.
48122         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
48123         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
48124         (gl_FUNC_STRCASESTR): Likewise.
48125         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
48126         * tests/test-memmem.c (main): Expose the bug.
48127         * tests/test-strcasestr.c (main): Likewise.
48128         * tests/test-strstr.c (main): Likewise.
48129         * tests/test-c-strcasestr.c (main): Likewise.
48130         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
48131         * doc/posix-functions/strstr.texi (strstr): Likewise.
48132         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48133         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
48135 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48137         parse-datetime: do some more renaming
48138         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
48139         parse_datetime, not get_date.  Mention the renaming.
48140         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
48141         in comments.
48142         * m4/bison.m4: Likewise.
48144 2010-10-05  Eric Blake  <eblake@redhat.com>
48146         parse-datetime: better name than get_date
48147         * NEWS: Reword the deprecation notice.
48148         * modules/get_date: Rename to modules/parse-datetime.
48149         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
48150         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
48151         * lib/get_date.y: Rename to lib/parse-datetime.y.
48152         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
48153         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
48154         * doc/getdate.texi: Provide fallback wrapper.
48155         * lib/getdate.h: Move guts, and wrap...
48156         * lib/parse-datetime.h: ...new file.
48157         * lib/parse-datetime.y (get_date): Rename...
48158         (parse_datetime): ...to this.
48159         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
48160         (gl_PARSE_DATETIME): ...to this.
48161         * doc/posix-functions/getdate.texi (get_date): Provide fallback
48162         documentation.
48163         * modules/getdate (Files): Provide fallback docs and header.
48164         (Notice, Depends-on): Update references.
48165         * tests/test-parse-datetime.c: Likewise.
48166         * DEPENDENCIES: Likewise.
48167         * MODULES.html.sh (Date and time <time.h>): Likewise.
48168         * doc/parse-datetime.texi (Date input formats)
48169         (Authors of parse_datetime): Likewise.
48170         * modules/parse-datetime (Files, configure.ac, Makefile.am)
48171         (Include): Likewise.
48172         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
48173         * gnulib-tool: Likewise.
48174         * m4/bison.m4 (gl_BISON): Likewise.
48175         Suggested by Bruno Haible.
48177 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48179         more ports to Solaris tr, which needs [] around ranges
48180         * gnulib-tool: Solaris tr needs [] around ranges.
48181         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
48182         * tests/test-pipe-filter-gi1.c (main): Likewise.
48183         * tests/test-pipe-filter-ii1.c (main): Likewise.
48185 2010-10-05  Eric Blake  <eblake@redhat.com>
48187         bootstrap: fix Solaris regression
48188         * build-aux/bootstrap (check_versions): Solaris tr still needs []
48189         around ranges.
48190         Reported by Pádraig Brady.
48192         bootstrap: work with pkg-config
48193         * build-aux/bootstrap (check_versions): Also transliterate - in
48194         prerequisite name.
48195         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
48196         prerequisites that were already found, to avoid confusion.
48197         Reported by Justin Clift.
48199         faccessat: remove unused wrappers
48200         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
48201         presence of these wrappers dragged in -lgen on Solaris.
48202         Reported by Clemens Brogi; fix suggested by Paul Eggert.
48204 2010-10-05  Jim Meyering  <meyering@redhat.com>
48206         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
48207         * Makefile (sc_pragma_columns): New syntax-check rule.
48209 2010-10-04  Bruno Haible  <bruno@clisp.org>
48211         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
48212         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
48213         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
48214         Reported by Bruce Korb and Eric Blake.
48216 2010-10-04  Bruno Haible  <bruno@clisp.org>
48218         threadlib: Make option --with-libpth-prefix work.
48219         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
48220         use $LIBPTH, not just -lpth.
48222 2010-10-04  Bruno Haible  <bruno@clisp.org>
48224         Avoid line length limitation from HP NonStop system header files.
48225         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
48226         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
48227         * lib/ctype.in.h: Likewise.
48228         * lib/dirent.in.h: Likewise.
48229         * lib/errno.in.h: Likewise.
48230         * lib/fcntl.in.h: Likewise.
48231         * lib/float.in.h: Likewise.
48232         * lib/getopt.in.h: Likewise.
48233         * lib/iconv.in.h: Likewise.
48234         * lib/inttypes.in.h: Likewise.
48235         * lib/langinfo.in.h: Likewise.
48236         * lib/locale.in.h: Likewise.
48237         * lib/math.in.h: Likewise.
48238         * lib/netdb.in.h: Likewise.
48239         * lib/netinet_in.in.h: Likewise.
48240         * lib/poll.in.h: Likewise.
48241         * lib/pthread.in.h: Likewise.
48242         * lib/pty.in.h: Likewise.
48243         * lib/sched.in.h: Likewise.
48244         * lib/se-selinux.in.h: Likewise.
48245         * lib/search.in.h: Likewise.
48246         * lib/signal.in.h: Likewise.
48247         * lib/spawn.in.h: Likewise.
48248         * lib/stdarg.in.h: Likewise.
48249         * lib/stddef.in.h: Likewise.
48250         * lib/stdint.in.h: Likewise.
48251         * lib/stdio.in.h: Likewise.
48252         * lib/stdlib.in.h: Likewise.
48253         * lib/string.in.h: Likewise.
48254         * lib/strings.in.h: Likewise.
48255         * lib/sys_file.in.h: Likewise.
48256         * lib/sys_ioctl.in.h: Likewise.
48257         * lib/sys_select.in.h: Likewise.
48258         * lib/sys_socket.in.h: Likewise.
48259         * lib/sys_stat.in.h: Likewise.
48260         * lib/sys_time.in.h: Likewise.
48261         * lib/sys_times.in.h: Likewise.
48262         * lib/sys_utsname.in.h: Likewise.
48263         * lib/sys_wait.in.h: Likewise.
48264         * lib/sysexits.in.h: Likewise.
48265         * lib/termios.in.h: Likewise.
48266         * lib/time.in.h: Likewise.
48267         * lib/unistd.in.h: Likewise.
48268         * lib/wchar.in.h: Likewise.
48269         * lib/wctype.in.h: Likewise.
48270         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
48271         * modules/ctype (Makefile.am): Likewise.
48272         * modules/dirent (Makefile.am): Likewise.
48273         * modules/errno (Makefile.am): Likewise.
48274         * modules/fcntl-h (Makefile.am): Likewise.
48275         * modules/float (Makefile.am): Likewise.
48276         * modules/getopt-posix (Makefile.am): Likewise.
48277         * modules/iconv-h (Makefile.am): Likewise.
48278         * modules/inttypes (Makefile.am): Likewise.
48279         * modules/langinfo (Makefile.am): Likewise.
48280         * modules/locale (Makefile.am): Likewise.
48281         * modules/math (Makefile.am): Likewise.
48282         * modules/netdb (Makefile.am): Likewise.
48283         * modules/netinet_in (Makefile.am): Likewise.
48284         * modules/poll-h (Makefile.am): Likewise.
48285         * modules/pthread (Makefile.am): Likewise.
48286         * modules/pty (Makefile.am): Likewise.
48287         * modules/sched (Makefile.am): Likewise.
48288         * modules/search (Makefile.am): Likewise.
48289         * modules/selinux-h (Makefile.am): Likewise.
48290         * modules/signal (Makefile.am): Likewise.
48291         * modules/spawn (Makefile.am): Likewise.
48292         * modules/stdarg (Makefile.am): Likewise.
48293         * modules/stddef (Makefile.am): Likewise.
48294         * modules/stdint (Makefile.am): Likewise.
48295         * modules/stdio (Makefile.am): Likewise.
48296         * modules/stdlib (Makefile.am): Likewise.
48297         * modules/string (Makefile.am): Likewise.
48298         * modules/strings (Makefile.am): Likewise.
48299         * modules/sys_file (Makefile.am): Likewise.
48300         * modules/sys_ioctl (Makefile.am): Likewise.
48301         * modules/sys_select (Makefile.am): Likewise.
48302         * modules/sys_socket (Makefile.am): Likewise.
48303         * modules/sys_stat (Makefile.am): Likewise.
48304         * modules/sys_time (Makefile.am): Likewise.
48305         * modules/sys_times (Makefile.am): Likewise.
48306         * modules/sys_utsname (Makefile.am): Likewise.
48307         * modules/sys_wait (Makefile.am): Likewise.
48308         * modules/sysexits (Makefile.am): Likewise.
48309         * modules/termios (Makefile.am): Likewise.
48310         * modules/time (Makefile.am): Likewise.
48311         * modules/unistd (Makefile.am): Likewise.
48312         * modules/wchar (Makefile.am): Likewise.
48313         * modules/wctype (Makefile.am): Likewise.
48315 2010-10-04  Bruno Haible  <bruno@clisp.org>
48317         read-file tests: Avoid a test failure on NonStop Kernel.
48318         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
48319         a regular file.
48320         Reported by Joachim Schmitz <schmitz@hp.com>.
48322 2010-10-03  Bruno Haible  <bruno@clisp.org>
48324         gnulib-tool: Fixes for --create-testdir with --libtool.
48325         * gnulib-tool (func_get_automake_snippet): Don't augment
48326         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
48327         an executable.
48328         (func_create_testdir): Handle module 'alloca' like func_import.
48329         Reported by Bruce Korb <bruce.korb@gmail.com>.
48331 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48333         Avoid some lines longer than 80 characters.
48334         * lib/stdint.in.h: Break long comment lines.
48335         * lib/math.in.h: Likewise.
48336         (_GL_NUM_UINT_WORDS): New macro, for readability.
48337         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
48338         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
48339         * lib/stdlib.in.h: Likewise.
48340         * lib/spawn.in.h: Likewise.
48341         * lib/sys_socket.in.h: Update an URL.
48342         * lib/sys_stat.in.h: Break long line.
48344 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
48346         Improve pmccabe2html.
48347         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
48348         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
48349         when the sources change. Remove the line in the HTML about "Used
48350         ranges" (which implied that there might be other unused ranges),
48351         rename "Resume" to "Summary" (easier to understand for more users).
48352         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
48353         styles, and some unnecessary blank lines.
48355 2010-10-03  Bruno Haible  <bruno@clisp.org>
48356             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
48358         acl: Add support for ACLs on NonStop Kernel.
48359         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
48360         Check whether the function aclsort() exists.
48361         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
48362         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
48363         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48364         (acl_nontrivial [HAVE_ACLSORT]: New function.
48365         (file_has_acl): Implement for NonStop Kernel.
48366         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48367         (qset_acl): Implement for NonStop Kernel.
48368         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
48369         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48370         (main): Implement for NonStop Kernel.
48371         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
48372         Kernel. Handle this flavor.
48373         * tests/test-set-mode-acl.sh: Likewise.
48374         * tests/test-copy-acl.sh: Likewise.
48375         * tests/test-copy-file.sh: Likewise.
48377 2010-10-03  Bruno Haible  <bruno@clisp.org>
48379         Info about ACLs on NonStop Kernel.
48380         * doc/acl-resources.txt: Add info about NonStop Kernel.
48381         References by Joachim Schmitz <schmitz@hp.com>.
48383 2010-10-02  Bruno Haible  <bruno@clisp.org>
48385         Define missing EDQUOT on NonStop Kernel.
48386         * lib/errno.in.h (EDQUOT): Assign a value if missing.
48387         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
48388         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
48389         missing.
48390         * doc/posix-headers/errno.texi: Mention the NSK bug.
48391         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
48392         Reported by Joachim Schmitz <schmitz@hp.com>.
48394 2010-10-02  Bruno Haible  <bruno@clisp.org>
48396         Update doc for POSIX:2008.
48397         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
48398         Update URL of POSIX specification.
48400 2010-10-02  Bruno Haible  <bruno@clisp.org>
48402         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
48403         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
48404         from gnulib, not from Automake.
48406 2010-10-02  Bruno Haible  <bruno@clisp.org>
48408         New module 'system-posix'.
48409         * modules/system-posix: New file.
48410         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
48411         module is present.
48412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48413         GNULIB_SYSTEM_POSIX.
48414         * modules/stdlib (Depends-on): Remove sys_wait.
48415         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
48416         * doc/posix-functions/system.texi: Mention the new module.
48417         * doc/posix-headers/stdlib.texi: Likewise.
48418         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
48419         define test_sys_wait_macros to a no-op.
48420         Reported by Sam Steingold <sds@gnu.org>.
48422 2010-09-30  Bruno Haible  <bruno@clisp.org>
48424         More renaming from 'getdate' to 'get_date'.
48425         * doc/get_date.texi: Renamed from doc/getdate.texi.
48426         * modules/get_date (Files): Update.
48427         * MODULES.html.sh (Date and time <time.h>): Update.
48428         * DEPENDENCIES: Update.
48429         * gnulib-tool: Update comment.
48430         * m4/bison.m4 (gl_BISON): Likewise.
48431         * m4/get_date.m4 (gl_GET_DATE): Likewise.
48433 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
48435         bootstrap: support ACLOCAL_FLAGS during aclocal
48436         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
48437         can add additional -I dir for third-party .m4 files.
48439 2010-09-30  Eric Blake  <eblake@redhat.com>
48441         bootstrap: use glibtoolize on MacOS
48442         * build-aux/bootstrap (check_versions): Convert libtool into
48443         libtoolize.
48444         (tool search): Move libtool check earlier, and look for
48445         glibtoolize for MacOS.
48446         (gnulib_tool_options): Auto-add --libtool when appropriate.
48447         Reported by Justin Clift.
48449         poll: fix typo that broke test on MacOS
48450         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
48451         Reported by Justin Clift.
48453         getdate: rename to get_date
48454         Note: getdate.h is not renamed, to minimize client impact.
48455         * modules/getdate: Mark obsolete.  Move old contents...
48456         * modules/get_date: ...to new module name.
48457         * modules/getdate-tests: Move...
48458         * modules/get_date-tests: ...here.
48459         * m4/getdate.m4: Move...
48460         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
48461         * lib/getdate.y: Move...
48462         * lib/get_date.y: ...here.
48463         * tests/test-getdate.c: Move...
48464         * tests/test-get_date.c: ...here.
48465         * doc/posix-functions/getdate.texi (getdate): Update name.
48466         * NEWS: Mention the change.
48468 2010-09-29  Bruno Haible  <bruno@clisp.org>
48470         Separate the module 'waitpid' from the module 'sys_wait'.
48471         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
48472         present.
48473         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
48474         gl_MODULE_INDICATOR_FOR_TESTS.
48475         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
48476         * modules/sys_wait (Depends-on): Remove waitpid.
48477         (Makefile.am): Substitute GNULIB_WAITPID.
48478         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
48479         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
48480         signature only if the 'waitpid' module is present.
48481         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
48482         * NEWS: Mention the change.
48483         * modules/grantpt (Depends-on): Add waitpid.
48484         * modules/wait-process (Depends-on): Likewise.
48486 2010-09-29  Bruno Haible  <bruno@clisp.org>
48488         More tests for module 'sys_wait'.
48489         * modules/sys_wait-c++-tests: New file.
48490         * tests/test-sys_wait-c++.cc: New file.
48491         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
48492         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48494 2010-09-29  Bruno Haible  <bruno@clisp.org>
48496         New module 'waitpid'.
48497         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
48498         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
48499         Don't include <process.h>.
48500         (waitpid): Declare only, using modern idiom.
48501         * m4/waitpid.m4: New file.
48502         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
48503         * modules/waitpid: New file.
48504         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
48505         (Makefile.am): Update.
48506         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48508 2010-09-28  Bruno Haible  <bruno@clisp.org>
48510         poll: Assume ANSI C.
48511         * lib/poll.c (poll): Use an ANSI C declaration.
48513 2010-09-28  Bruno Haible  <bruno@clisp.org>
48515         poll-h: Create poll.h on all platforms.
48516         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
48517         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
48518         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
48519         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
48520         (gl_REPLACE_POLL_H): Don't set POLL_H.
48521         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
48522         * modules/poll-h (Depends-on): Add include_next.
48523         (Makefile.am): Create poll.h unconditionally. Substitute also
48524         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
48526 2010-09-28  Bruno Haible  <bruno@clisp.org>
48528         Tests for module 'poll-h'.
48529         * modules/poll-h-c++-tests: New file.
48530         * tests/test-poll-h-c++.cc: New file.
48532         Tests for module 'poll-h'.
48533         * modules/poll-h-tests: New file.
48534         * tests/test-poll-h.c: New file.
48536 2010-09-28  Bruno Haible  <bruno@clisp.org>
48538         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
48539         * modules/poll-h (Depends-on): Add 'extensions'.
48541 2010-09-28  Bruno Haible  <bruno@clisp.org>
48543         New module 'poll-h'.
48544         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
48545         (poll): Use modern idiom.
48546         * modules/poll-h: New file.
48547         * modules/poll (Files): Remove lib/poll.in.h.
48548         (Depends-on): Add poll-h.
48549         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
48550         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
48551         * m4/poll_h.m4: New file.
48552         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
48553         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
48554         and invoke gl_REPLACE_POLL_H.
48555         * lib/poll.c: Use common idiom.
48556         * tests/test-poll.c: Likewise.
48557         * doc/posix-headers/poll.texi: Mention the poll-h module.
48558         Suggested by Eric Blake.
48560 2010-09-26  Bruno Haible  <bruno@clisp.org>
48562         sys_wait: Implement WSTOPSIG.
48563         * lib/sys_wait.in.h (WSTOPSIG): New macro.
48564         Reported by Simon Josefsson.
48566 2010-09-26  Simon Josefsson  <simon@josefsson.org>
48568         stdlib, sys_wait: Avoid compilation error on mingw.
48569         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
48571 2010-09-26  Bruno Haible  <bruno@clisp.org>
48573         stdlib tests: Avoid code duplication.
48574         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
48575         * modules/sys_wait-tests (Files): Likewise.
48576         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
48577         * tests/test-stdlib.c: Include test-sys_wait.h.
48578         (main): Invoke test_sys_wait_macros.
48579         * tests/test-sys_wait.c: Include test-sys_wait.h.
48580         (main): Invoke test_sys_wait_macros.
48582 2010-09-25  Simon Josefsson  <simon@josefsson.org>
48584         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
48585         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
48586         sure Windows sockets are working before calling getaddrinfo.
48587         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
48588         * doc/gnulib.texi (Windows sockets): Fix typo.
48590 2010-09-25  Bruno Haible  <bruno@clisp.org>
48592         Tests for module 'regex-quote'.
48593         * modules/regex-quote-tests: New file.
48594         * tests/test-regex-quote.c: New file.
48596         New module 'regex-quote'.
48597         * lib/regex-quote.h: New file.
48598         * lib/regex-quote.c: New file.
48599         * modules/regex-quote: New file.
48600         Suggested by Reuben Thomas <rrt@sc3d.org>.
48602 2010-09-24  Bruno Haible  <bruno@clisp.org>
48604         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
48605         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
48607 2010-09-23  Bruno Haible  <bruno@clisp.org>
48609         setenv: Relax license.
48610         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
48611         Blake.
48612         Requested by Eric Blake.
48614 2010-09-22  Bruno Haible  <bruno@clisp.org>
48616         termios: Relax license.
48617         * modules/termios (License): Change to LGPLv2+.
48618         Requested by Eric Blake.
48620 2010-09-22  Bruno Haible  <bruno@clisp.org>
48622         threadlib: Allow the package to change the default to 'no'.
48623         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
48624         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
48625         Reported by Paul Eggert.
48627 2010-09-22  Pádraig Brady  <P@draigbrady.com>
48628             Bruno Haible  <bruno@clisp.org>
48630         Fix endless loop in mbmemcasecoll.
48631         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
48632         byte.
48633         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
48635 2010-09-22  Bruno Haible  <bruno@clisp.org>
48637         Tests for module 'memcoll'.
48638         * modules/memcoll-tests: New file.
48639         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
48641         memcoll, xmemcoll: Clarify size vs. length.
48642         * modules/memcoll.c (memcoll0): Clarify specification.
48643         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
48644         passed to collate_error.
48646 2010-09-22  Bruno Haible  <bruno@clisp.org>
48648         Tests for module 'memcasecmp'.
48649         * modules/memcasecmp-tests: New file.
48650         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
48652 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48654         * lib/pthread.in.h: Add split double-inclusion guard, and include
48655         system <pthread.h> if there is one.  Use @@-style as in other
48656         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
48657         pthread.h doesn't.
48658         (pthread_mutexattr_destroy, pthread_mutexattr_init):
48659         (pthread_mutexattr_settype, pthread_mutex_trylock):
48660         New static inline functions, if there's no system <pthread.h>.
48661         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
48662         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
48663         Approximate with mutexes if the system lacks spinlocks, as in
48664         MacOS.
48665         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
48666         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
48667         @@-style.  Check for spinlocks separately.
48668         (gl_PTHREAD_DEFAULTS): New macro.
48669         * modules/pthread: Redo to use a more typical style for in.h files.
48671 2010-09-21  Eric Blake  <eblake@redhat.com>
48673         net_if: enhance tests
48674         * tests/test-net_if.c (main): Move signature checks earlier.
48675         Print failures to stderr.
48676         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
48677         Document the bug that we do not yet fix.
48679 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
48681         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
48682         about gnulib, not GSS.
48684 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
48686         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
48687         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
48688         for Emacs.
48689         * build-aux/pmccabe2html: Make Makefile.am example code more
48690         cut-and-paste friendly.
48692 2010-09-21  Simon Josefsson  <simon@josefsson.org>
48694         * tests/test-net_if.c: New file.
48695         * modules/net_if-tests: New file.
48697 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48699         pthread: add pthread_spin_destroy
48700         * lib/pthread.in.h (pthread_spin_destroy): New function.
48702 2010-09-19  Bruno Haible  <bruno@clisp.org>
48704         gnulib-tool: Fix --help output.
48705         * gnulib-tool (func_usage): Fix help message.
48706         Reported by Reuben Thomas <rrt@sc3d.org>.
48708 2010-09-18  Jim Meyering  <meyering@redhat.com>
48710         maint.mk: avoid unexpanded \n in two diagnostics
48711         * top/maint.mk (sc_prohibit_always_true_header_tests):
48712         Don't use a literal \n in a halt=... assignment.  It would not be
48713         expanded, and the two \n bytes would appear in the diagnostic output
48714         rather than the desired newline.  Use halt=$$(printf ... instead.
48715         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
48717 2010-09-18  Bruno Haible  <bruno@clisp.org>
48719         netinet_in: Doc tweak.
48720         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
48721         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48723 2010-09-18  Jim Meyering  <meyering@redhat.com>
48725         init.sh: correct an outdated comment
48726         * tests/init.sh (create_exe_shims_):  s/function/alias/
48728         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
48729         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
48730         a file named "*.exe" is removed between the glob expansion and the
48731         processing of that oddly named file.
48733 2010-09-17  Eric Blake  <eblake@redhat.com>
48735         mirbsd: add some more support
48736         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
48737         in BSD family.
48738         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
48739         devices as OpenBSD.
48740         * m4/host-os.m4 (mirbsd): Add MirBSD.
48742         tests: fix unportable assumption on sys/wait.h
48743         * tests/test-sys_wait.c (main): Relax test.
48744         * tests/test-stdlib.c (main): Likewise.
48746         init.sh: accommodate directory with no .exes
48747         * tests/init.sh: Accomodate directory containing only scripts.
48749         tests: avoid compiler warning
48750         * tests/test-stdlib.c (main): Use the variable.
48752         fdutimens, fdutimensat: update signature, again
48753         * lib/utimens.h (gl_futimens): Delete, and move signature...
48754         (fdutimens): ...here.
48755         (fdutimensat): Rearrange signature.
48756         (lutimensat): Rename variable for clarity.
48757         * lib/fdutimensat.c (fdutimensat): Update signature.
48758         * lib/utimens.c (fdutimens): Likewise.
48759         (gl_futimens): Delete.
48760         (utimens, lutimens): Update callers.
48761         * lib/futimens.c (futimens): Likewise.
48762         * tests/test-fdutimensat.c: Likewise.
48763         * tests/test-utimens.c: Likewise.
48764         * tests/test-futimens.h: Update comment.
48765         * NEWS: Mention this.
48766         Suggested by Paul Eggert.
48768 2010-09-17  Bruno Haible  <bruno@clisp.org>
48770         Take over the maintenance of some older macros from Autoconf.
48771         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
48772         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
48773         GNU Autoconf.
48774         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
48775         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
48777 2010-09-17  Eric Blake  <eblake@redhat.com>
48779         fdutimensat: drop atflag validation
48780         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
48781         with valid fd, to close a race scenario where futimens is
48782         unsupported and FILE was replaced by a symlink.
48783         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
48784         accordingly.
48785         Suggested by Paul Eggert.
48787 2010-09-16  Bruno Haible  <bruno@clisp.org>
48789         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
48790         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
48792 2010-09-16  Bruno Haible  <bruno@clisp.org>
48794         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
48795         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
48796         login_tty exists.
48797         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48799 2010-09-16  Bruno Haible  <bruno@clisp.org>
48801         login_tty: Make the replacement code work on BSD systems.
48802         * lib/login_tty.c: Include <sys/ioctl.h>.
48803         (login_tty): Use ioctl TIOCSCTTY when available.
48804         * modules/login_tty (Depends-on): Add sys_ioctl.
48805         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48807 2010-09-16  Bruno Haible  <bruno@clisp.org>
48809         login_tty: Stricter unit test.
48810         * modules/login_tty-tests (Depends-on): Add tcgetsid.
48811         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
48812         and tcgetsid() after login_tty.
48813         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48815 2010-09-16  Bruno Haible  <bruno@clisp.org>
48817         New module 'tcgetsid'.
48818         * lib/tcgetsid.c: New file.
48819         * m4/tcgetsid.m4: New file.
48820         * modules/tcgetsid: New file.
48821         * modules/termios (Depends-on): Add c++defs, warn-on-use.
48822         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
48823         GNULIB_TCGETSID, HAVE_TCGETSID.
48824         * lib/termios.in.h: Include <sys/types.h>.
48825         (tcgetsid): New declaration.
48826         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
48827         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
48828         * doc/posix-functions/tcgetsid.texi: Mention the new module.
48829         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
48831 2010-09-16  Bruno Haible  <bruno@clisp.org>
48833         Tests for module 'termios'.
48834         * modules/termios-c++-tests: New file.
48835         * modules/termios-tests: New file.
48836         * tests/test-termios-c++.cc: New file.
48837         * tests/test-termios.c: New file.
48839         New module 'termios'.
48840         * modules/termios: New file.
48841         * lib/termios.in.h: New file.
48842         * m4/termios_h.m4: New file.
48843         * doc/posix-headers/termios.texi: Mention the new module.
48845 2010-09-16  Eric Blake  <eblake@redhat.com>
48847         fdutimensat: add an atflag parameter
48848         * lib/fdutimensat.c (fdutimensat): Add new parameter.
48849         * lib/utimens.h (fdutimensat): Update prototype.
48850         * tests/test-fdutimensat.c: Adjust test to match.
48851         * NEWS: Document the change.
48852         Suggested by Paul Eggert.
48854 2010-09-16  Bruno Haible  <bruno@clisp.org>
48856         Fix typos in comments.
48857         * lib/striconveh.h: Fix typo in comment.
48858         * lib/login_tty.c (login_tty): Likewise.
48860 2010-09-15  Bruno Haible  <bruno@clisp.org>
48862         stdlib: clarify MirBSD WEXITSTATUS bug
48863         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
48864         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
48866 2010-09-15  Eric Blake  <eblake@redhat.com>
48868         stdlib: work around MirBSD WEXITSTATUS bug
48869         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
48870         * modules/stdlib (Depends-on): Add sys_wait.
48871         * tests/test-sys_wait.c (main): Enhance test.
48872         * tests/test-stdlib.c (main): Likewise.
48873         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
48875         docs: mention MacOS issue with WEXITSTATUS(constant)
48876         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
48877         issue.
48878         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
48880         strnlen: add tests
48881         * modules/strnlen-tests: New file.
48882         * tests/test-strnlen.c: Likewise.
48884 2010-09-14  Bruno Haible  <bruno@clisp.org>
48886         unistr/base: Avoid link errors when module 'libunistring' is also used.
48887         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
48888         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
48889         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
48890         Declare also when HAVE_LIBUNISTRING is set.
48891         Reported by Pádraig Brady <P@draigbrady.com>.
48893 2010-09-14  Eric Blake  <eblake@redhat.com>
48895         test-rawmemchr: make more robust
48896         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
48897         (Depends-on, configure.ac): Add needed prerequisites to use it.
48898         * modules/memchr-tests (Files, Depends-on, configure.ac):
48899         Likewise, to avoid implicit reliance on memchr module prereqs.
48900         * tests/test-memchr.c (main): Ensure proper masking.
48901         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
48902         reads.
48904         memchr: detect glibc Alpha bug
48905         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
48906         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
48907         Alpha.
48908         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
48909         * tests/test-memchr.c (main): Enhance test.
48910         Reported by Nelson H. F. Beebe.
48912 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48914         fts, getcwd, glob: audit for dirfd returning -1
48915         * lib/fts.c (opendir): Remove #define; no longer used.
48916         (opendirat): New arg PDIR_FD.  All callers changed.
48917         (fts_build, _opendir2): Use new opendirat to avoid the need for
48918         dirfd, or for checking whether dirfd returns a negative value.
48919         Don't use opendir; always use openat followed by fdopendir.
48920         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
48921         it.
48922         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
48923         returns -1 here.
48924         * modules/fts (Depends-on): Remove dirfd.
48925         * modules/getcwd (Depends-on): Likewise.
48927 2010-09-13  Eric Blake  <eblake@redhat.com>
48929         float: fix broken MirBSD header
48930         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
48931         * doc/posix-headers/float.texi (float.h): Document it.
48933 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48935         fts: use O_NOFOLLOW to avoid race condition when opening a directory
48936         * lib/fts.c (opendirat): New arg extra_flags.
48937         (__opendir2): Use it to avoid following symlinks when opening
48938         a directory, if symlinks are not supposed to be followed.  See
48939         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
48941         fdopendir: preserve argument fd before returning
48942         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
48943         (fdopendir_with_dup, fd_clone_opendir): New static functions.
48944         (fdopendir): Use them, arranging for FD to be open to the same
48945         directory that it was when it started.  (It might be temporarily
48946         closed while fdopendir is running, so this not thread- or
48947         signal-safe.)  Be careful to do the right thing even when file
48948         descriptors are scarce and dup fails with errno == EMFILE.  See
48949         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
48951 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
48953         regex: Pass the system regex if its only problem is 32-bit regoff_t.
48954         * NEWS: Document change.
48955         * m4/regex.m4: Disable test for regoff_t size.
48957 2010-09-13  Jim Meyering  <meyering@redhat.com>
48959         fts: don't operate on an invalid file descriptor after failed dup
48960         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
48961         negative file descriptor.
48963 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
48965         savedir: add streamsavedir, deprecate fdsavedir
48966         * NEWS: Mention deprecation of fdsavedir.
48967         * lib/savedir.c (streamsavedir): New extern function, whose name
48968         ends in "savedir" to be consistent with the others.  This differs
48969         from savedirstream in that it doesn't close its argument.  The
48970         next version of GNU tar will use this instead of fdsavedir, to
48971         avoid some race conditions and conserve file descriptors.
48972         (savedirstream): Reimplement as a wrapper around streamsavedir.
48973         (fdsavedir): Add a comment deprecating this function.  As far as
48974         I know, only GNU tar used it, and GNU tar doesn't need it any more.
48975         * lib/savedir.h (streamsavedir): New decl.
48976         (fdsavedir): Add a comment deprecating this.
48978 2010-09-10  Bruno Haible  <bruno@clisp.org>
48980         langinfo: Fix last commit.
48981         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
48982         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
48983         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48985 2010-09-10  Bruno Haible  <bruno@clisp.org>
48987         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
48988         * lib/progreloc.c (O_EXEC): Define fallback.
48990 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
48992         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
48993         * NEWS: Document recent changes to fcntl-h.
48994         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
48995         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
48996         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
48997         Similarly for O_SEARCH; this last was already true, but not documented.
48998         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
48999         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
49000         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
49001         Likewise.
49002         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
49003         is zero, not whether it is defined.
49004         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
49005         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
49006         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
49008 2010-09-10  Bruno Haible  <bruno@clisp.org>
49010         langinfo, nl_langinfo: Fix for IRIX 5.3.
49011         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
49012         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
49013         HAVE_LANGINFO_YESEXPR.
49014         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
49015         HAVE_LANGINFO_YESEXPR.
49016         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
49017         HAVE_LANGINFO_T_FMT_AMPM is 0.
49018         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
49019         HAVE_LANGINFO_YESEXPR is 0.
49020         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
49021         NOEXPR.
49022         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
49023         * doc/posix-functions/nl_langinfo.texi: Likewise.
49024         Reported by Eric Blake.
49026 2010-09-10  Bruno Haible  <bruno@clisp.org>
49028         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
49029         * doc/glibc-functions/login_tty.texi: Mention the include file problem
49030         on FreeBSD 8.0 and OpenBSD 4.6.
49031         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
49032         * m4/pty_h.m4 (gl_PTY_H): Likewise.
49033         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
49034         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
49035         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
49036         ac_includes_default.
49037         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49039 2010-09-09  Eric Blake  <eblake@redhat.com>
49041         strsignal: work around NetBSD bug
49042         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
49043         * lib/string.in.h (includes): Likewise.
49044         * doc/posix-functions/strsignal.texi (strsignal): Document the
49045         bug.
49046         Reported by Nelson H. F. Beebe.
49048         gnulib-tool: work with NetBSD /bin/sh
49049         * gnulib-tool (func_cache_var, func_cache_lookup_module)
49050         (func_get_description, func_get_comment, func_get_status)
49051         (func_get_notice, func_get_applicability, func_get_filelist)
49052         (func_get_dependencies, func_get_autoconf_early_snippet)
49053         (func_get_autoconf_snippet, func_get_automake_snippet)
49054         (func_get_include_directive, func_get_link_directive)
49055         (func_get_license, func_get_maintainer, func_import): Avoid
49056         shell syntax errors from parsing syntax extensions.
49058 2010-09-09  Bruno Haible  <bruno@clisp.org>
49060         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
49061         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
49062         a reliable way to determine whether the 'alias' command works.
49064 2010-09-08  Jim Meyering  <meyering@redhat.com>
49066         init.sh: penalize a set-x-impaired shell; don't disqualify it
49067         * tests/init.sh: Too many shells corrupt application stderr when
49068         you set -x, so we can't afford to disqualify them, since at least
49069         on Irix-6.5, that would disqualify all bourne shells.
49070         Instead, use a two-pass approach.
49071         On the first pass, try to find a shell that meets the stricter
49072         condition that set -x does not corrupt stderr.
49073         If no shell meets the stricter condition, retest each candidate
49074         shell, but without that extra condition.  Finally, when
49075         VERBOSE=yes is requested and set -x might cause trouble, simply
49076         issue a warning and refrain from enabling debug output.
49078 2010-09-08  Eric Blake  <eblake@redhat.com>
49080         unsetenv: fix OpenBSD bug
49081         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
49082         * doc/posix-functions/unsetenv.texi (unsetenv): Update
49083         documentation.
49084         Reported by Jim Meyering.
49086         strtod: work around IRIX 6.5 bug
49087         * lib/strtod.c (strtod): Reparse number on shorter string if
49088         exponent parse was invalid.
49089         * tests/test-strtod.c (main): Add check for "0x1p 2".
49090         Reported by Tom G. Christensen.
49092         getopt: optimize previous patch
49093         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
49094         empty variable.  Speed up awk script.
49095         Reported by Paolo Bonzini.
49097 2010-09-08  Jim Meyering  <meyering@redhat.com>
49099         test.sh: disqualify shells for which set -x corrupts stderr
49100         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
49101         and OpenBSD 4.7.  They make it so with "set -x", environment settings
49102         appear in stderr output.  For example, this command:
49103             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
49104         prints "P=1" on those two systems:
49106 2010-09-08  Bruno Haible  <bruno@clisp.org>
49108         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
49109         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
49110         commands, because some shells ignore redirections when there is an
49111         error in the command lookup.
49112         Reported by Eric Blake.
49114 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
49116         * lib/regex.h: Fix a mention of `regex_compile' (should be
49117         `re_compile_pattern').
49118         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
49119         (re_set_registers): Correct name of parameter in comment.
49121         * doc/regex.texi: Add documentation for missing syntax flags.
49122         Remove commented-out documentation of defunct syntax option
49123         RE_NO_EMPTY_ALTS.
49124         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
49125         Add documentation of re_set_registers.
49126         Document trick to re-use a pattern buffer by setting fastmap manually.
49127         Update documentation of struct re_pattern_buffer per public members.
49128         Uncomment documentation of equivalence class operators and
49129         collating symbol operators, since they are now implemented,
49130         Explain leftmost-longest matching in relation to alternatives.
49131         Tidy documentation of substring matching.
49132         Remove POSIX documentation, which is done better in
49133         glibc, and refer the reader there. Keep BSD API documentation, as
49134         that is not readily available elsewhere.
49136 2010-09-07  Eric Blake  <eblake@redhat.com>
49138         getopt: handle POSIXLY_CORRECT set but not exported
49139         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
49140         export state of POSIXLY_CORRECT, due to bash set -o posix.
49141         Reported by Dustin J. Mitchell.
49143 2010-09-05  Bruno Haible  <bruno@clisp.org>
49145         gnulib-tool: Highlight the changed options.
49146         * gnulib-tool (func_usage): Display the --import, --add-import,
49147         --remove-import explanations in bold font.
49149 2010-09-06  Karl Berry  <karl@gnu.org>
49151         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
49153 2010-09-05  Bruno Haible  <bruno@clisp.org>
49155         uniwidth/width: Update comment.
49156         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
49157         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
49159 2010-09-05  Bruno Haible  <bruno@clisp.org>
49161         isinf, isnan: Relax license.
49162         * modules/isinf (License): Change from GPL to LGPL, with consent from
49163         Ben Pfaff.
49164         * modules/isnan (License): Likewise.
49165         Requested by Ludovic Courtès.
49167 2010-09-04  Bruno Haible  <bruno@clisp.org>
49169         gnulib-tool: Help migration from --import to --add-import or --update.
49170         * gnulib-tool: Emit a verbose error message when --import is used
49171         without any module name.
49173 2010-09-04  Bruno Haible  <bruno@clisp.org>
49175         Update doc about gnulib-tool.
49176         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
49177         'gnulib-tool --update' in more detail.
49178         Reported by Eric Blake.
49180 2010-09-04  Bruno Haible  <bruno@clisp.org>
49182         gnulib-tool: Change --import. New options --add/remove-import.
49183         * gnulib-tool: New options --add-import, --remove-import.
49184         (func_usage): Document them.
49185         (have_associative): Define always.
49186         (func_import): In import mode, don't merge the specified settings with
49187         the cached settings. Implement remove-import mode.
49188         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
49189         Explain when to use them versus --import.
49190         (Simple update): Use --add-import instead of --import.
49191         * NEWS: Mention the change.
49193 2010-09-04  Bruno Haible  <bruno@clisp.org>
49195         * doc/gnulib-tool.texi (Initial import): Update paragraph about
49196         separate gnulib.mk.
49198 2010-09-04  Bruno Haible  <bruno@clisp.org>
49200         gnulib-tool: Don't talk about CVS any more.
49201         * gnulib-tool (func_usage, func_import): Write "version control"
49202         instead of CVS.
49204 2010-09-04  Jim Meyering  <meyering@redhat.com>
49206         maint.mk: avoid obscure sc_copyright_check failure in coreutils
49207         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
49208         false positives (whose names may be ill-chosen) when searching
49209         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
49210         would cause a false-positive.
49212         avoid coreutils "make distcheck" failure
49213         Coreutils tests with an absolute build directory name that contains
49214         a space.  Not quoting this directory name caused a failure.
49215         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
49216         * tests/test-vc-list-files-cvs.sh: Likewise.
49218 2010-09-04  Bruno Haible  <bruno@clisp.org>
49220         gnulib-tool: Avoid error when run in a package without Makefile.am.
49221         * gnulib-tool: When collecting the m4dirs in a package that does not
49222         have a Makefile.am, eliminate those directories that contain no
49223         gnulib-cache.m4. Fix expression that counts these directories.
49225 2010-09-04  Bruno Haible  <bruno@clisp.org>
49227         update-copyright test: Improve output when perl is missing or too old.
49228         * tests/test-update-copyright.sh: Move test of Perl version down after
49229         the test whether Perl exists. Provide an explanation relating Perl's
49230         error message to Automake's SKIP: message.
49232 2010-09-04  Bruno Haible  <bruno@clisp.org>
49234         Don't augment PATH in TESTS_ENVIRONMENT.
49235         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
49236         set abs_aux_dir instead of augmenting PATH.
49237         * modules/vc-list-files-tests (Makefile.am): Likewise.
49238         * tests/test-update-copyright.sh: Augment PATH here.
49239         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
49240         path_prepend_.
49241         * tests/test-vc-list-files-git.sh: Likewise.
49243 2010-09-04  Jim Meyering  <meyering@redhat.com>
49245         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
49246         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
49248 2010-09-04  Bruno Haible  <bruno@clisp.org>
49250         strdup: Fix compilation error in C++ mode.
49251         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
49252         the macro.
49254 2010-09-04  Bruno Haible  <bruno@clisp.org>
49256         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
49257         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
49258         macro into a function.
49259         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49261 2010-09-04  Bruno Haible  <bruno@clisp.org>
49263         Set PATH_SEPARATOR the same way autoconf does.
49264         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
49265         the value of PATH_SEPARATOR the same way autoconf-generated configure
49266         scripts do.
49267         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
49268         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49270 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
49272         Set PATH_SEPARATOR the same way autoconf does.
49273         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
49274         the same way autoconf-generated configure scripts do.
49275         * posix-modules: Likewise.
49277 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49279         hash: fix safe_hasher const typo
49280         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
49281         const; otherwise, there is a type error later.
49283 2010-09-02  Jim Meyering  <meyering@redhat.com>
49285         test-update-copyright.sh: require perl 5.8.0
49286         * tests/test-update-copyright.sh: Require 5.8.0,
49287         which Tom G. Christensen has confirmed is adequate,
49288         while 5.6.1 is not.
49290 2010-09-02  Eric Blake  <eblake@redhat.com>
49292         tests: init.sh improvements for re-exec'ing with zsh
49293         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
49294         -vx through shell re-exec.
49295         Reported by Tom G. Christensen.
49297         wctype: fix typo in previous commit
49298         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
49299         Reported by Ludovic Courtès.
49301 2010-09-02  Jim Meyering  <meyering@redhat.com>
49303         test-update-copyright.sh: skip test if Perl is too old
49304         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
49305         Reported by Tom G. Christensen.
49307 2010-09-02  Bruno Haible  <bruno@clisp.org>
49309         wctype: Avoid compilation error on IRIX 6.5.30.
49310         * lib/wctype.in.h (iswblank): Declare with a replacement if
49311         REPLACE_ISWBLANK is set.
49312         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
49313         declared. Set REPLACE_ISWBLANK.
49314         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
49315         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
49316         * doc/posix-headers/wctype.texi: Likewise.
49317         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49319 2010-09-01  Bruno Haible  <bruno@clisp.org>
49321         New module 'socketlib'.
49322         * modules/socketlib: New file.
49323         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
49324         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
49325         * modules/sockets (Depends-on): Add socketlib.
49326         Suggested by Sam Steingold <sds@gnu.org>.
49328 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49330         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
49332         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
49333         when one needs search access to a directory but not read access.
49334         On systems where it is available, it works in some cases where
49335         O_RDONLY does not, namely on directories that are searchable but
49336         not readable, and which need only to be searchable.  If O_SEARCH
49337         is not available, fall back to the traditional method of using
49338         O_RDONLY.
49340         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
49341         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
49342         when opening a directory that needs only to be searchable.
49343         * lib/chdir-safer.c (chdir_no_follow): Likewise.
49344         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
49345         * lib/openat-proc.c (openat_proc_name): Likewise.
49346         * lib/openat.c (openat_needs_fchdir): Likewise.
49347         * lib/save-cwd.c (save_cwd): Likewise.
49348         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
49350 2010-08-28  Bruno Haible  <bruno@clisp.org>
49352         New module 'host-cpu-c-abi'.
49353         * modules/host-cpu-c-abi: New file.
49354         * m4/host-cpu-c-abi.m4: New file, based on part of
49355         clisp/src/m4/general.m4.
49356         Requested by Sam Steingold <sds@gnu.org>.
49358 2010-08-31  Eric Blake  <eblake@redhat.com>
49359         and Jim Meyering  <meyering@redhat.com>
49361         hash: factor, and guard against misbehaving hasher function
49362         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
49363         of table->hasher's return value.  Also protect against a hash value
49364         so large that adding it to table->bucket results in a NULL pointer.
49365         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
49366         Use it in place of open-coded check-and-abort.
49368 2010-08-30  Bruno Haible  <bruno@clisp.org>
49370         hash: silence spurious clang warning
49371         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
49372         Reported by Eric Blake.
49374 2010-08-30  Eric Blake  <eblake@redhat.com>
49376         strstr, memmem, strcasestr: avoid leaked shell message
49377         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
49378         FreeBSD.
49379         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49380         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49382         tests: silence clang warning
49383         * tests/test-malloca.c (do_allocation): Avoid dead store.
49385 2010-08-29  Bruno Haible  <bruno@clisp.org>
49387         gettext: Fix recent mistake.
49388         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
49390 2010-08-29  Bruno Haible  <bruno@clisp.org>
49392         selinux-h: Offer a --without-selinux option.
49393         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
49394         --without-selinux was specified, skip all tests and define
49395         HAVE_SELINUX_SELINUX_H to 0.
49396         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
49397         set LIB_SELINUX to empty.
49398         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
49399         gl_LIBSELINUX. If --without-selinux was specified, replace
49400         selinux/context.h.
49401         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
49403 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49404             Bruno Haible  <bruno@clisp.org>
49406         Make the module 'realloc-gnu' work again on AIX and OSF/1.
49407         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
49408         of HAVE_REALLOC.
49409         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
49410         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
49411         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
49412         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49414 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49415             Bruno Haible  <bruno@clisp.org>
49417         Make the module 'calloc-gnu' work again on AIX and OSF/1.
49418         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
49419         HAVE_CALLOC.
49420         * lib/xmalloc.c: Update accordingly.
49421         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
49422         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
49423         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
49425 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49426             Bruno Haible  <bruno@clisp.org>
49428         Make the module 'malloc-gnu' work again on AIX and OSF/1.
49429         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
49430         HAVE_MALLOC.
49431         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
49432         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
49433         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49435 2010-08-29  Bruno Haible  <bruno@clisp.org>
49437         Update modules list.
49438         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49439         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
49440         (String handling <string.h>): Add astrxfrm.
49441         (File system functions): Add readlinkat.
49443 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49445         Tests for module 'realloc-gnu'.
49446         * modules/realloc-gnu-tests: New file.
49447         * tests/test-realloc-gnu.c: New file.
49449         Tests for module 'calloc-gnu'.
49450         * modules/calloc-gnu-tests: New file.
49451         * tests/test-calloc-gnu.c: New file.
49453         Tests for module 'malloc-gnu'.
49454         * modules/malloc-gnu-tests: New file.
49455         * tests/test-malloc-gnu.c: New file.
49457 2010-08-28  Bruno Haible  <bruno@clisp.org>
49459         Rename module 'realloc' -> 'realloc-gnu'.
49460         * modules/realloc-gnu: New file, copied from modules/realloc.
49461         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
49462         obsolete.
49463         * modules/mgetgroups (Depends-on): Update.
49464         * doc/posix-functions/realloc.texi: Update.
49465         * NEWS: Mention the change.
49467         Rename module 'calloc' -> 'calloc-gnu'.
49468         * modules/calloc-gnu: New file, copied from modules/calloc.
49469         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
49470         obsolete.
49471         * doc/posix-functions/calloc.texi: Update.
49472         * NEWS: Mention the change.
49474         Rename module 'malloc' -> 'malloc-gnu'.
49475         * modules/malloc-gnu: New file, copied from modules/malloc.
49476         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
49477         obsolete.
49478         * modules/argp (Depends-on): Update.
49479         * modules/regex (Depends-on): Update.
49480         * doc/posix-functions/malloc.texi: Update.
49481         * NEWS: Mention the change.
49483 2010-08-28  Eric Blake  <eblake@redhat.com>
49485         pread, pwrite: add missing dependency
49486         * modules/pread (Depends-on): Add extensions.
49487         * modules/pwrite (Depends-on): Likewise.
49489 2010-08-28  Bruno Haible  <bruno@clisp.org>
49491         unistr/u*-strchr: Fix tests dependencies.
49492         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
49493         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
49494         Reported by Ian Beckwith <ianb@erislabs.net>.
49496 2010-08-28  Bruno Haible  <bruno@clisp.org>
49498         read-file: Don't occupy too much unused memory.
49499         * lib/read-file.c (fread_file): Shrink the buffer at the end.
49501 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
49502             Eric Blake  <eblake@redhat.com>
49503             Bruno Haible  <bruno@clisp.org>
49505         read-file: Avoid memory reallocations with regular files.
49506         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
49507         (fread_file): With regular files, use the remaining length as the
49508         initial buffer size.  Check against overflow.
49509         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
49510         sys_stat.
49512 2010-08-28  Bruno Haible  <bruno@clisp.org>
49514         ftello: Relax license.
49515         * modules/ftello (License): Relax to LGPLv2+.
49516         Reported by Eric Blake.
49518 2010-08-28  Bruno Haible  <bruno@clisp.org>
49520         Avoid relocwrapper link errors due to gnulib replacement functions.
49521         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
49522         function.
49523         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49525 2010-08-28  Bruno Haible  <bruno@clisp.org>
49527         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
49528         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
49529         defined.
49530         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
49531         Suggested by Eric Blake.
49533 2010-08-28  Bruno Haible  <bruno@clisp.org>
49535         sys_socket, netdb: Ensure socklen_t gets defined.
49536         * modules/sys_socket (Depends-on): Add socklen.
49537         * modules/netdb (Depends-on): Likewise.
49538         * modules/getaddrinfo (Depends-on): Remove socklen.
49539         * modules/getsockopt (Depends-on): Likewise.
49540         * modules/setsockopt (Depends-on): Likewise.
49541         * tests/test-sys_socket.c: Check that socklen_t is defined.
49542         * tests/test-netdb.c: Likewise.
49543         * m4/socklen.m4: Update comments.
49544         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49546 2010-08-27  Eric Blake  <eblake@redhat.com>
49548         login_tty: add missing dependency
49549         * modules/login_tty (Depends-on): Add pty.
49551 2010-08-26  Eric Blake  <eblake@redhat.com>
49553         lib-symbol-versions: fix m4 quoting
49554         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
49555         format for AC_LINK_IFELSE.
49557         glob: fix compile test
49558         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
49560         btowc: fix missing file
49561         * modules/btowc (Files): Also ship locale-fr.m4.
49563         lseek: fix link test
49564         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
49565         AC_LINK_IFELSE.
49567         include_next: silence autoconf 2.68 warning
49568         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
49569         AC_COMPILE_IFELSE as special.
49570         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
49571         autoconf < 2.68.
49573         acl: fix compilation test
49574         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
49575         AC_COMPILE_IFELSE.
49577 2010-08-26  Bruno Haible  <bruno@clisp.org>
49579         Modernize AC_TRY_RUN invocations.
49580         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
49581         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
49582         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
49583         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
49584         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
49585         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
49586         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
49587         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49588         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
49589         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
49590         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
49591         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49592         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
49593         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
49594         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
49595         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
49596         gl_MBRLEN_NUL_RETVAL): Likewise.
49597         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49598         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49599         Likewise.
49600         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49601         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
49602         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
49603         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
49604         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
49605         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
49606         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
49607         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
49608         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
49609         Likewise.
49610         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49611         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
49612         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49613         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49614         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49615         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
49616         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
49617         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
49618         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49619         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49621 2010-08-26  Bruno Haible  <bruno@clisp.org>
49623         Modernize AC_TRY_LINK invocations.
49624         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
49625         AC_TRY_LINK.
49626         * m4/argp.m4 (gl_ARGP): Likewise.
49627         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
49628         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
49629         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49630         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49631         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49632         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
49633         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
49634         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
49635         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49636         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49637         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49638         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
49639         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
49640         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
49641         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49642         * m4/hostent.m4 (gl_HOSTENT): Likewise.
49643         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
49644         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
49645         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49646         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
49647         Likewise.
49648         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
49649         Likewise.
49650         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
49651         Likewise.
49652         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49653         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
49654         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
49655         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
49656         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
49657         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
49658         * m4/servent.m4 (gl_SERVENT): Likewise.
49659         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
49660         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
49661         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
49662         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
49663         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49664         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
49665         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49666         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49667         * modules/tsearch-tests (configure.ac): Likewise.
49669 2010-08-26  Bruno Haible  <bruno@clisp.org>
49671         Modernize AC_TRY_COMPILE invocations.
49672         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
49673         AC_TRY_COMPILE.
49674         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
49675         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
49676         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49677         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49678         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49679         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49680         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49681         * m4/lock.m4 (gl_LOCK): Likewise.
49682         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
49683         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49684         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
49685         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
49686         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49687         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
49688         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49689         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
49690         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49691         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49692         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49693         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49694         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
49695         extraneous semicolon.
49697 2010-08-26  Jim Meyering  <meyering@redhat.com>
49699         stat-time: relax license LGPL
49700         * modules/stat-time (License): Change from GPL to LGPL,
49701         with consent from all contributors, for use in libguile.
49702         Requested by Ludovic Courtès.
49704 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
49706         poll: return immediately on POLLHUP.
49707         * lib/poll.c (poll): Always set timeout before wait_timeout is
49708         computed.
49710 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49712         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
49713         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
49714         rmdir ("dir/.//"), unlinkat.
49716 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49718         stdbool: avoid spurious failure with modern xlc
49719         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
49721 2010-08-24  Bruno Haible  <bruno@clisp.org>
49723         getloadavg: simplify code
49724         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
49725         gl_have_func. Update comments.
49727 2010-08-24  Eric Blake  <eblake@redhat.com>
49729         getloadavg: don't define SVR4 on cygwin
49730         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
49731         only define SVR4 when -lkvm is required.
49732         Reported by Yaakov Selkowitz.
49734 2010-08-24  Bruno Haible  <bruno@clisp.org>
49736         priv-set: fix comment
49737         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
49739 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49741         priv-set: fix comments
49742         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
49743         to match code, as suggested by David Bartley in:
49744         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
49746 2010-08-23  Eric Blake  <eblake@redhat.com>
49748         stdbool: avoid rejecting clang
49749         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
49750         * tests/test-stdbool.c: Enable more tests if using the system
49751         <stdbool.h> instead of the gnulib replacement.
49752         (main): Move xlc bug test to a runtime test for all compilers.
49753         Reported by Anders Kaseorg.
49755         argz: fix shell quoting issue
49756         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
49757         Reported by Charles Wilson.
49759 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
49760             Erik Faye-Lund <kusmabite@gmail.com>
49762         poll, select: handle ERROR_BROKEN_PIPE.
49763         * lib/poll.c (win32_compute_revents): Return POLLHUP when
49764         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
49765         * lib/select.c (win32_compute_revents): Do not mark a pipe
49766         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
49768 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
49770         fts: allow compilation with C++
49771         * lib/fts_.h: Specify extern "C" linkage with C++.
49773 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49775         Fix gnulib-tool sed script de-commentation for AIX sed.
49776         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
49777         sed.
49779 2010-08-17  Eric Blake  <eblake@redhat.com>
49781         test-stddef: test for (some) offsetof bugs
49782         * tests/test-stddef.c: Enhance test to ensure correct type of
49783         offsetof.
49784         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
49785         that we are not fixing at this time.
49787 2010-08-15  Bruno Haible  <bruno@clisp.org>
49789         stpncpy: Allow stpncpy to be defined as a macro.
49790         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
49791         if it's already correctly declared.
49792         * lib/string.in.h (stpncpy): Undefine before redefining.
49793         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
49795 2010-08-14  Bruno Haible  <bruno@clisp.org>
49797         Rename module 'memxfrm' to 'amemxfrm'.
49798         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
49799         (amemxfrm): Renamed from memxfrm.
49800         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
49801         (amemxfrm): Renamed from memxfrm.
49802         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
49803         * NEWS: Mention the change.
49804         * MODULES.html.sh (String handling <string.h>): Update.
49805         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
49806         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
49807         * lib/unicase/u16-casexfrm.c: Likewise.
49808         * lib/unicase/u32-casexfrm.c: Likewise.
49809         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
49810         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
49811         * lib/uninorm/u16-normxfrm.c: Likewise.
49812         * lib/uninorm/u32-normxfrm.c: Likewise.
49813         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
49814         memxfrm.
49815         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
49816         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
49817         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
49818         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
49819         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
49820         Suggested by Paul Eggert.
49822 2010-08-14  Bruno Haible  <bruno@clisp.org>
49824         Tests for module 'astrxfrm'.
49825         * modules/astrxfrm-tests: New file.
49826         * tests/test-astrxfrm.c: New file.
49828         New module 'astrxfrm'.
49829         * lib/astrxfrm.h: New file.
49830         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
49831         * modules/astrxfrm: New file.
49833 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
49835         regex: Tweak doc.
49836         * doc/regex.texi (Overview): Don't mention regex.c.
49837         (GNU Regular Expression Compiling): Likewise.
49838         (Match-end-of-line Operator): Mention 'not_eol'.
49840 2010-08-14  Brian Gough  <bjg@gnu.org>
49841             Bruno Haible  <bruno@clisp.org>
49843         git-merge-changelog: add doc relating to use with bzr and hg.
49844         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
49846 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
49848         pthread: fix pthread.h creation for srcdir != builddir
49849         * modules/pthread (Makefile.am): Fix the rule to work also in a
49850         non-srcdir build.
49852 2010-08-13  Karl Berry  <karl@gnu.org>
49854         * doc/regex.texi (Predefined Syntaxes): @smallexample.
49855         * doc/posix-*/*: force line break before @url of POSIX
49856         specifications.
49857         Suggested by Werner Lemberg.
49859 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49861         strtod: fix const diagnostic
49862         * lib/strtod.c (strtod): Don't assign const char * to char *,
49863         as this elicits a warning from GCC when warnings are enabled.
49865 2010-08-10  Pádraig Brady  <P@draigbrady.com>
49866         and Eric Blake  <eblake@redhat.com>
49868         copy-acl: ignore ENOTSUP on HP-UX
49869         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
49870         so that it is available for HP-UX.
49871         * lib/copy-acl.c (qcopy_acl): Use it.
49872         Reported by Patrick M. Callahan.
49874 2010-08-10  Eric Blake  <eblake@redhat.com>
49876         open, chown: relax license
49877         * modules/open (License): Change to LGPLv2+, with consent by all
49878         authors, for use in augeas.
49879         * modules/chown (License): Likewise.
49880         * modules/lchown (Likewise): Likewise.
49881         Requested by Adam Stokes.
49883 2010-08-09  Karl Berry  <karl@gnu.org>
49885         * build-aux/ar-lib: new file, import from Automake.
49886         * config/srclist.txt: autocheck for updates.
49888 2010-08-09  Eric Blake  <eblake@redhat.com>
49890         readlinkat: adjust client modules
49891         * modules/areadlinkat (Depends-on): Use readlinkat, not
49892         symlinkat.
49893         * modules/areadlinkat-with-size (Depends-on): Likewise.
49895         mknod: be more vocal about danger of running tests as root
49896         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
49897         root, since that is just asking for problems.
49898         Suggested by Bruno Haible, based on a report by Rainer Tammer.
49900         readlinkat: split into its own module
49901         * modules/symlinkat: Split readlinkat...
49902         * modules/readlinkat: ...into separate module.
49903         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
49904         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
49905         * lib/symlinkat.c (readlinkat): Move...
49906         * lib/readlinkat.c: ...into new file.
49907         * modules/symlinkat-tests: Split readlinkat test...
49908         * modules/readlinkat-tests: ...into separate module.
49909         * tests/test-symlinkat.c: Split...
49910         * tests/test-readlinkat.c: ...into new file.
49911         * NEWS: Document the split.
49912         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
49913         * lib/unistd.in.h (readlinkat): Likewise.
49914         Suggested by Bruno Haible.
49916 2010-08-08  Bruno Haible  <bruno@clisp.org>
49918         memxfrm: Speed up.
49919         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
49920         that usually only one call to strxfrm is necessary for each string
49921         part.
49922         Reported by Paul Eggert <eggert@cs.ucla.edu>.
49924 2010-08-07  Karl Berry  <karl@gnu.org>
49926         * doc/posix-headers/limits.texi,
49927         * doc/posix-functions/malloc.texi,
49928         * doc/posix-functions/strsignal.texi: missing @item.
49929         * doc/ld-version-script.texi: spurious leading i.
49930         * doc/regex.texi (Interval Operators): no commas inside @var.
49932 2010-08-01  Bruno Haible  <bruno@clisp.org>
49934         Integrate the regex documentation.
49935         * doc/gnulib.texi: Define 'cn' index.
49936         (Regular expressions): New a chapter that includes regex.texi and
49937         regexprops-generic.texi.
49938         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
49939         syntax.
49941         Whitespace cleanup.
49942         * doc/regex.texi: Remove trailing spaces.
49944         Add regex documentation.
49945         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
49946         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
49947         Written by Kathy A. Hargreaves and Karl Berry.
49949 2010-08-01  Bruno Haible  <bruno@clisp.org>
49951         link: Update documentation.
49952         * doc/posix-functions/link.texi: Update regarding Solaris.
49954 2010-07-31  Bruno Haible  <bruno@clisp.org>
49956         Update modules list.
49957         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
49958         (String handling <string.h>): Add memcmp2, memxfrm.
49959         (Container data structures): Add xlist, xsublist, xoset.
49960         (Core language properties): Add alignof, unused-parameter.
49961         (Process control, Numeric conversion functions <stdlib.h>): Renamed
49962         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
49963         (Unibyte characters <ctype.h>): New section.
49964         (String handling <string.h>): New section.
49965         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
49966         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
49967         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
49968         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
49969         tan, tanh, tanl, y0, y1, yn.
49970         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
49971         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
49972         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
49973         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
49974         unlockpt, vdprintf, vdprintf-posix.
49975         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
49976         (File system functions): Add concat-filename, sys_file, sys_ioctl,
49977         xconcat-filename.
49978         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
49979         getdtablesize, pipe2, pipe2-safer.
49980         (Security): New section.
49981         (Networking functions): Add accept4.
49982         (Signal handling): Add sigpipe.
49983         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
49984         mbmemcasecoll.
49985         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
49986         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
49987         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
49988         pipe-filter-ii.
49989         (Misc): Add argp-version-etc, login_tty, parse-duration.
49991 2010-07-31  Bruno Haible  <bruno@clisp.org>
49993         Improve doc in MODULES.html.
49994         * modules/linkat (Description): Add the word "function".
49995         * modules/mkfifo (Description): Likewise.
49996         * modules/mknod (Description): Likewise.
49997         * modules/remove (Description): Likewise.
49998         * modules/renameat (Description): Likewise.
49999         * modules/stat (Description): Likewise.
50000         * modules/symlink (Description): Likewise.
50001         * modules/unlink (Description): Likewise.
50003 2010-07-31  Bruno Haible  <bruno@clisp.org>
50005         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
50006         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
50007         option --enable/disable-c++ instead of --enable/disable-cxx.
50008         * NEWS: Mention the change.
50010 2010-07-31  Bruno Haible  <bruno@clisp.org>
50012         readlink, areadlink: Relax test a bit.
50013         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
50014         alternative to ENOTDIR.
50015         * tests/test-areadlink.h (test_areadlink): Likewise.
50016         Reported by Rainer Tammer.
50018 2010-07-31  Bruno Haible  <bruno@clisp.org>
50020         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
50021         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
50022         character, perform the search using U_STRCHR.
50023         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
50024         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
50025         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
50026         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
50027         Suggested by Paolo Bonzini.
50029 2010-07-31  Bruno Haible  <bruno@clisp.org>
50031         unistr/u*-strstr: Fix dependencies.
50032         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
50033         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
50034         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
50036 2010-07-31  Bruno Haible  <bruno@clisp.org>
50038         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
50039         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
50040         the beginning of the loop.
50041         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
50042         cases in 'switch' statement.
50044         unistr/u8-strchr: Fix several bugs.
50045         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
50046         the string. When not found, return NULL, not a pointer near the end.
50048         More tests for unistr/u8-strchr.
50049         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
50050         that the function does not read past the first occurrence of the byte
50051         being searched.
50052         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
50053         * tests/unistr/test-u16-strchr.c (main): New function.
50054         * tests/unistr/test-u32-strchr.c (main): New function.
50056 2010-07-31  Bruno Haible  <bruno@clisp.org>
50058         posix-modules: Ignore backup files of documentation files.
50059         * posix-modules: grep only through files named *.texi.
50061 2010-07-31  Bruno Haible  <bruno@clisp.org>
50063         symlinkat: Fix documentation.
50064         * doc/posix-functions/readlinkat.texi: Fix module name.
50066 2010-07-31  Bruno Haible  <bruno@clisp.org>
50068         fchownat: Replace also when chown has the trailing slash bug.
50069         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
50070         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
50071         introduced on 2010-04-10.
50072         Reported by Rainer Tammer.
50074 2010-07-31  Bruno Haible  <bruno@clisp.org>
50076         linkat: Work around AIX 7.1 bug.
50077         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
50078         whether linkat handles trailing slash correctly. If not, replace linkat
50079         and define LINKAT_TRAILING_SLASH_BUG.
50080         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
50081         check whether (fd1,file1) points to a directory if file1 or file2 ends
50082         in a slash. Code taken from lib/link.c.
50083         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
50084         Reported by Rainer Tammer.
50086 2010-07-31  Bruno Haible  <bruno@clisp.org>
50088         Correctly determine whether pow is available in libc on AIX 7 with xlc.
50089         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
50090         This disables an xlc optimization that was causing wrong test results.
50091         Reported by Rainer Tammer.
50093 2010-07-31  Bruno Haible  <bruno@clisp.org>
50095         iconv: Work around AIX 6.1..7.1 bug.
50096         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
50097         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
50098         cross-compiling, guess no on all versions of AIX.
50099         Reported by Rainer Tammer.
50101 2010-07-31  Bruno Haible  <bruno@clisp.org>
50103         readlink: Relax test a bit.
50104         * tests/test-readlink.h (test_readlink): Allow different errno value
50105         when readlink is called with a file name that ends in / and refers to
50106         a file.
50107         Suggested by Eric Blake.
50108         Reported by Rainer Tammer.
50110 2010-07-31  Bruno Haible  <bruno@clisp.org>
50112         copysign: Does not require -lm on glibc systems.
50113         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
50114         gl_COMMON_DOUBLE_MATHFUNC.
50115         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
50117 2010-07-31  Bruno Haible  <bruno@clisp.org>
50119         duplocale: Work around AIX 7.1 bug.
50120         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
50121         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
50122         * lib/duplocale.c (rpl_duplocale): Update comment.
50123         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
50124         Reported by Rainer Tammer.
50126 2010-07-30  Bruno Haible  <bruno@clisp.org>
50128         dirfd: Avoid link error on AIX 7.1.
50129         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
50130         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
50131         exist, set REPLACE_DIRFD.
50132         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
50133         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
50134         * doc/posix-functions/dirfd.texi: Update.
50135         Reported by Rainer Tammer.
50137 2010-07-30  Eric Blake  <eblake@redhat.com>
50139         strtod: next round of AIX fixes
50140         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
50141         exponent.
50142         * tests/test-strtod.c (main): Enhance tests.
50143         * doc/posix-functions/strtod.texi (strtod): Document next bug.
50144         Reported by Rainer Tammer.
50146         futimens: fix configure check
50147         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
50148         Reported by Bruno Haible.
50150 2010-07-30  Bruno Haible  <bruno@clisp.org>
50152         getline: Update regarding AIX.
50153         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
50154         Reported by Rainer Tammer.
50156 2010-07-30  Bruno Haible  <bruno@clisp.org>
50158         wcwidth: Drop replacement on AIX 7.
50159         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
50160         AIX 7.
50161         Reported by Rainer Tammer.
50163 2010-07-30  Bruno Haible  <bruno@clisp.org>
50165         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
50166         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
50167         a 'char *'.
50168         Reported by Rainer Tammer.
50170 2010-07-30  Bruno Haible  <bruno@clisp.org>
50172         unlink: Update regarding AIX.
50173         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
50174         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
50175         Reported by Rainer Tammer.
50177 2010-07-30  Bruno Haible  <bruno@clisp.org>
50179         symlink: Update regarding AIX.
50180         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
50181         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
50182         Reported by Rainer Tammer.
50184 2010-07-30  Bruno Haible  <bruno@clisp.org>
50186         strndup: Update regarding AIX.
50187         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
50188         AIX 7.
50189         Reported by Rainer Tammer.
50191 2010-07-30  Bruno Haible  <bruno@clisp.org>
50193         stat: Update regarding AIX.
50194         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
50195         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
50196         Reported by Rainer Tammer.
50198 2010-07-30  Bruno Haible  <bruno@clisp.org>
50200         truncl: Fix autoconf test.
50201         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
50202         whether truncl works.
50203         Reported by Rainer Tammer.
50205 2010-07-30  Bruno Haible  <bruno@clisp.org>
50207         round: Update regarding AIX.
50208         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
50209         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
50210         Reported by Rainer Tammer.
50212 2010-07-30  Bruno Haible  <bruno@clisp.org>
50214         rename: Update regarding AIX.
50215         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
50216         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
50217         Reported by Rainer Tammer.
50219 2010-07-30  Bruno Haible  <bruno@clisp.org>
50221         printf.m4: Update regarding AIX.
50222         * m4/printf.m4: Update comments regarding AIX.
50223         Reported by Rainer Tammer.
50225 2010-07-30  Bruno Haible  <bruno@clisp.org>
50227         iconv: Update regarding AIX.
50228         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
50229         AIX 7.
50230         Reported by Rainer Tammer.
50232 2010-07-30  Bruno Haible  <bruno@clisp.org>
50234         getopt: Update regarding AIX.
50235         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
50236         no on AIX.
50237         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
50238         Reported by Rainer Tammer.
50240 2010-07-30  Bruno Haible  <bruno@clisp.org>
50242         ldexpl; Update regarding AIX.
50243         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
50244         on AIX 7.
50245         Reported by Rainer Tammer.
50247 2010-07-30  Bruno Haible  <bruno@clisp.org>
50249         frexpl: Update regarding AIX.
50250         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
50251         on AIX 7.
50252         Reported by Rainer Tammer.
50254 2010-07-30  Bruno Haible  <bruno@clisp.org>
50256         open, fopen: Update regarding AIX.
50257         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
50258         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
50259         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
50260         * doc/posix-functions/fopen.texi: Likewise.
50261         Reported by Rainer Tammer.
50263 2010-07-30  Bruno Haible  <bruno@clisp.org>
50265         chown: Update doc regarding AIX.
50266         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
50267         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
50268         Reported by Rainer Tammer.
50270 2010-07-30  Eric Blake  <eblake@redhat.com>
50272         strtod: fix bug in replacement function on AIX
50273         * lib/strtod.c (strtod): Special case broken "0x" parse in
50274         underlying strtod.
50275         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
50276         * doc/posix-functions/strtod.texi (strtod): Likewise.
50277         Reported by Rainer Tammer.
50279 2010-07-30  Bruno Haible  <bruno@clisp.org>
50281         mbrlen: Fix cross-compilation guess for AIX.
50282         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
50283         guess. Leftover from 2008-12-22.
50285 2010-07-30  Bruno Haible  <bruno@clisp.org>
50287         mbrtowc: Fix cross-compilation guess for AIX.
50288         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
50289         guess. Leftover from 2008-12-21.
50291 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
50293         init.sh: work around trap limitation of some shells
50294         * tests/init.sh (setup_): Move exit trap outside of shell function.
50296 2010-07-29  Eric Blake  <eblake@redhat.com>
50298         strtod: aid debugging
50299         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
50300         understanding why strtod is rejected.
50302 2010-07-28  Bruno Haible  <bruno@clisp.org>
50304         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
50305         * lib/unistr/u8-chr.c: Include <string.h>.
50306         * tests/unistr/test-u8-chr.c: Likewise.
50307         * tests/unistr/test-u16-chr.c: Likewise.
50308         * tests/unistr/test-u32-chr.c: Likewise.
50309         * tests/unistr/test-u8-strchr.c: Likewise.
50310         * tests/unistr/test-u16-strchr.c: Likewise.
50311         * tests/unistr/test-u32-strchr.c: Likewise.
50312         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
50313         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
50314         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
50315         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
50317 2010-07-28  Bruno Haible  <bruno@clisp.org>
50319         Use spaces for indentation, not tabs.
50320         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
50322 2010-07-27  Bruno Haible  <bruno@clisp.org>
50324         mbspcasecmp: Fix function specification.
50325         * lib/string.in.h (mbspcasecmp): Fix specification comment.
50326         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
50327         Reported by Eric Blake <eblake@redhat.com>.
50329 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
50331         timespec: use cast and not conditional, as truncation isn't possible
50332         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
50333         instead of a conditional.  Comment about the situation in more detail.
50334         This undoes most of the 2009-10-29 patch.
50336 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
50338         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
50339         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
50340         * lib/unistr/u8-strchr.c: Likewise.
50341         * modules/unistr/u8-chr: Depend on memchr.
50343         unistr/u*-strchr: add tests
50344         * modules/unistr/u8-strchr-tests: New file.
50345         * modules/unistr/u16-strchr-tests: New file.
50346         * modules/unistr/u32-strchr-tests: New file.
50347         * tests/unistr/test-strchr.h: New file.
50348         * tests/unistr/test-u8-strchr.c: New file.
50349         * tests/unistr/test-u16-strchr.c: New file.
50350         * tests/unistr/test-u32-strchr.c: New file.
50352         unistr/u*-chr: test multibyte sequences more
50353         * tests/unistr/test-chr.h: Do complete testing of the characters in the
50354         test vector.
50355         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
50356         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
50357         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
50359         unistr/u*-chr: test multibyte sequences
50360         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
50362         unistr/u*-chr: prepare for multibyte tests
50363         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
50364         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
50365         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
50366         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
50367         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
50368         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
50370 2010-07-18  Bruno Haible  <bruno@clisp.org>
50372         unistr/u8-strchr: Optimize non-ASCII argument case.
50373         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
50374         because the first byte often matches anyway.
50375         Reported by Pádraig Brady <P@draigbrady.com>.
50377 2010-07-15  Karl Berry  <karl@gnu.org>
50379         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
50381 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
50383         getcwd: on Solaris, work better if ancestors are inaccessible
50384         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
50385         buffer and size, try again with a large buffer.  This works better
50386         on Solaris, since its getcwd succeeds even if the path to the root
50387         is inaccessible, and this is helpful in common cases such as .zfs
50388         hidden directories.  Problem reported by J Chapman Flack in
50389         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
50390         Use system getcwd if it's declared, not merely if it's partly
50391         working; use the partly-working test only to avoid needless effort
50392         if the system getcwd fails.
50393         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
50394         comment that was already obsolete and is now even more obsolete.
50395         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
50396         now might call strdup.
50398 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
50400         pthread: Add enough so that coreutils/src/sort.c compiles.
50401         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
50402         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
50403         gnulib. Include <sched.h> and <time.h>, as per POSIX.
50404         Include <sys/types.h>, in case it defines pthread_t.
50405         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
50406         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
50407         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
50408         (pthread_rwlockattr_t, pthread_spinlock_t):
50409         New typedefs, if HAVE_PTHREAD_T is not defined.
50410         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
50411         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
50412         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
50413         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
50414         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
50415         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
50416         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
50417         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
50418         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
50419         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
50420         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
50421         New macros.
50422         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
50423         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
50424         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
50425         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
50426         (pthread_spin_unlock): New dummy functions.
50427         (pthread_create): Return EAGAIN; don't set errno.
50428         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
50429         require AC_C_INLINE.
50430         * modules/pthread (Depends-on): Add sched, time.
50431         (pthread.h): Use AM_V_GEN.
50433 2010-07-13  Bruno Haible  <bruno@clisp.org>
50435         striconveh: Don't malloc memory if the result buffer is sufficient.
50436         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
50437         buffer if its size is sufficient.
50438         Reported by Ludovic Courtès <ludo@gnu.org>.
50440 2010-07-13  Bruno Haible  <bruno@clisp.org>
50442         strtod: Add safety check.
50443         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
50445 2010-07-12  Bruno Haible  <bruno@clisp.org>
50447         Unify tests that set gl_cv_func_ldexpl_no_libm.
50448         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
50449         gl_FUNC_LDEXPL.
50450         (gl_FUNC_LDEXPL): Invoke it.
50451         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50453 2010-07-12  Bruno Haible  <bruno@clisp.org>
50455         Unify tests that set gl_cv_func_ldexp_no_libm.
50456         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
50457         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
50458         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
50459         (configure.ac): Simply invoke gl_FUNC_LDEXP.
50460         * modules/strtod (Files): Add m4/ldexp.m4.
50462 2010-07-12  Bruno Haible  <bruno@clisp.org>
50464         Unify tests that set gl_cv_func_frexpl_no_libm.
50465         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
50466         gl_FUNC_FREXPL_NO_LIBM.
50467         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
50468         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50470 2010-07-12  Bruno Haible  <bruno@clisp.org>
50472         Unify tests that set gl_cv_func_frexp_no_libm.
50473         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
50474         gl_FUNC_FREXP_NO_LIBM.
50475         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
50476         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
50478 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
50480         memcoll: clarify sizes versus lengths, document better, and tweak perf
50481         * lib/memcoll.c (strcoll_loop, memcoll0):
50482         Improve quality of descriptive comments.  Name variables
50483         consistently as to whether they are lengths (which do not include
50484         terminating null) versus sizes (which do).
50485         * lib/xmemcoll.c (xmemcoll0): Likewise.
50486         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
50487         returned when s1size == 0; this is easier to compile and saves
50488         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
50490 2010-07-12  Bruno Haible  <bruno@clisp.org>
50492         Tests for module '_Exit'.
50493         * modules/_Exit-tests: New file.
50494         * tests/test-_Exit.sh: New file.
50495         * tests/test-_Exit.c: New file.
50497         New module '_Exit'.
50498         * lib/stdlib.in.h (__attribute__): New macro.
50499         (_Exit): New declaration.
50500         * lib/_Exit.c: New file.
50501         * m4/_Exit.m4: New file.
50502         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
50503         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
50504         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
50505         * modules/_Exit: New file.
50506         * tests/test-stdlib-c++.cc (_Exit): Check signature.
50507         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
50509 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
50511         strtod: make it more-accurate typically, and don't require libm
50512         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
50513         Include limits.h.  Don't include string.h.
50514         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
50515         (locale_isspace): New function, so that no casts are needed to
50516         check whether *s is a space.
50517         (ldexp): Provide an unused dummy if not available.
50518         (scale_radix_exp, parse_number, underlying_strtod): New functions.
50519         (strtod): Use them.  This implementation prefers to use the
50520         underlying strtod if available, falling back on our own code
50521         only to fix known bugs.  This is more likely to produce an
50522         accurate result.  Also, it avoids the use of libm functions.
50523         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
50524         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
50525         was absent, but it caused a test failure with coreutils.
50526         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
50527         with libm.
50528         * modules/strtod (Makefile.am, Link): libm is no longer needed.
50529         * modules/strtod-tests (Makefile.am): Likewise.
50531 2010-07-11  Pádraig Brady  <P@draigBrady.com>
50532             Bruno Haible  <bruno@clisp.org>
50534         unistr/u8-strchr: Optimize ASCII argument case.
50535         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
50537 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50539         (x)memcoll: minor tweaks
50540         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
50541         is after the type that it qualifies.
50542         (memcoll0): Likewise.
50543         * lib/memcoll.h (memcoll0): Likewise.
50544         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
50545         * lib/xmemcoll.h (xmemcoll0): Likewise.
50546         * lib/memcoll.c (memcoll0): Correct the comment.  This function
50547         differs from memcoll in that the NUL byte is part of the argument.
50548         Omit the abort-checks, as performance is a real issue here.  Plus,
50549         the checks were wrong anyway (an off-by-one error).  Omit local
50550         variable 'diff', as it's a bit clearer that way.
50551         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
50552         no longer needed.
50554 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
50556         (x)memcoll: speedup when input is known to be NUL delimited
50557         * lib/memcoll.c: Include stdlib.
50558         (memcoll0): New function.
50559         (strcoll_loop): New function, refactored for use in both memcoll
50560         and memcoll0.
50561         * lib/memcoll.h (memcoll0): Add prototype.
50562         * lib/xmemcoll.c (xmemcoll0): New function.
50563         (collate_error): New function, refactored for use in both xmemcoll
50564         and xmemcoll0.
50565         * lib/xmemcoll.h (xmemcoll0): Add prototype.
50566         * m4/memcoll.m4: add inline invocation.
50568 2010-07-06  Pádraig Brady  <P@draigBrady.com>
50570         * build-aux/bootstrap: Remove any local translations
50571         from the translation project synchronization directory,
50572         so that local only translations are not distributed.
50574 2010-07-04  Bruno Haible  <bruno@clisp.org>
50576         fsusage: Clarify which code applies to which platforms.
50577         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
50578         platform.
50579         * lib/fsusage.c (get_fs_usage): Likewise.
50581 2010-07-04  Bruno Haible  <bruno@clisp.org>
50583         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
50584         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
50585         Reported by Martin Lambers <marlam@marlam.de>.
50587 2010-07-04  Jim Meyering  <meyering@redhat.com>
50589         hash: once again explicitly disallow insertion of NULL
50590         * lib/hash.c (hash_insert0): Reinstate just-removed test:
50591         inserting a NULL pointer cannot work with these functions.
50592         Add a comment with details.
50593         This reverts part of the 2010-07-01 commit, 5bef1a35
50594         "hash: extend module to deal with non-pointer keys".
50596 2010-07-01  Bruno Haible  <bruno@clisp.org>
50598         stdbool: Update doc.
50599         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
50600         Info from Christian Weisgerber <naddy@mips.inka.de>.
50602 2010-07-01  Jim Meyering  <meyering@redhat.com>
50604         hash: extend module to deal with non-pointer keys
50605         * lib/hash.c (hash_insert0): New interface, much like hash_insert
50606         but that allows insertion of non-pointer entries.
50607         Do not disallow an ENTRY value of NULL.
50608         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
50609         * lib/hash.h (hash_insert0): Declare.
50611 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
50613         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
50614         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
50615         not present (i.e. with autoconf 2.59 and when using gettextize, not
50616         gnulib), require AC_GNU_SOURCE instead.
50618 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
50620         idpriv-drop: Fix tests.
50621         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
50622         not to the test-idpriv-droptemp program.
50624 2010-06-29  Bruno Haible  <bruno@clisp.org>
50626         string: Fix syntax error with g++ 2.96.
50627         * lib/string.in.h (__pure__): Remove definition.
50628         (_GL_ATTRIBUTE_PURE): New macro.
50629         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
50630         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
50631         Reported by Christian Weisgerber <naddy@mips.inka.de>.
50633 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
50635         unitypes: Fix bug introduced on 2010-05-18.
50636         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
50638 2010-06-22  Eric Blake  <eblake@redhat.com>
50640         memmem: slight optimization
50641         * lib/str-two-way.h (critical_factorization): Update comments.
50642         Reduce work during factorization phase.
50643         Reported by Carlos Bueno <carlos@bueno.org>.
50645 2010-06-21  Bruno Haible  <bruno@clisp.org>
50647         Fix HAVE_CALLOC_POSIX misnomer.
50648         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
50649         !HAVE_CALLOC_POSIX.
50650         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
50651         HAVE_CALLOC_POSIX.
50652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
50653         instead of HAVE_CALLOC_POSIX.
50654         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
50655         HAVE_CALLOC_POSIX.
50657         Use modern idiom for calloc() replacement.
50658         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
50659         AC_FUNC_CALLOC.
50660         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
50661         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
50662         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50663         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
50664         (gl_REPLACE_CALLOC): New macro.
50666 2010-06-21  Bruno Haible  <bruno@clisp.org>
50668         Fix HAVE_REALLOC_POSIX misnomer.
50669         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
50670         !HAVE_REALLOC_POSIX.
50671         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
50672         HAVE_REALLOC_POSIX.
50673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
50674         instead of HAVE_REALLOC_POSIX.
50675         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
50676         HAVE_REALLOC_POSIX.
50678         Use modern idiom for realloc() replacement.
50679         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
50680         AC_FUNC_REALLOC.
50681         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
50682         Autoconf's AC_FUNC_REALLOC.
50683         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50684         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
50685         (gl_REPLACE_REALLOC): New macro.
50686         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
50688 2010-06-21  Bruno Haible  <bruno@clisp.org>
50690         Fix HAVE_MALLOC_POSIX misnomer.
50691         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
50692         !HAVE_MALLOC_POSIX.
50693         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
50694         HAVE_MALLOC_POSIX.
50695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
50696         instead of HAVE_MALLOC_POSIX.
50697         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
50698         HAVE_MALLOC_POSIX.
50700         Use modern idiom for malloc() replacement.
50701         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
50702         AC_FUNC_MALLOC.
50703         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
50704         Autoconf's AC_FUNC_MALLOC.
50705         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50706         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
50707         (gl_REPLACE_MALLOC): New macro.
50708         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
50710 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
50712         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
50713         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
50714         This macro takes 3 arguments, not 4.
50716 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
50718         ipv6: fix detection under mingw
50719         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
50720         in6_addr.
50722 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
50724         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
50725         that strtod() works when cross-compiling to a glibc version known
50726         to work.
50728 2010-06-15  Bruno Haible  <bruno@clisp.org>
50730         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
50732 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
50734         select: Correct timeout.
50735         * lib/select.c (rpl_select): Compute wait_timeout correctly.
50737 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50739         git-version-gen: init shell var to avoid env var influence
50740         * build-aux/git-version-gen (v): Init shell var to empty.
50742 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
50744         priv-set: Don't assume that priv.h exists merely because getppriv does.
50745         See Jan Andersen's bug report about AIX 5L in
50746         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
50747         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
50748         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
50749         * lib/priv-set.h: Likewise.
50750         * tests/test-priv-set.c: Likewise.
50752 2010-06-13  Bruno Haible  <bruno@clisp.org>
50754         relocatable: Make it easier to test whether to install wrappers.
50755         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
50756         RELOCATABLE_VIA_WRAPPER.
50758 2010-06-13  Bruno Haible  <bruno@clisp.org>
50760         gnulib-tool: Display specified modules and dependencies differently.
50761         * gnulib-tool (func_show_module_list): New function.
50762         (func_import, func_create_testdir): Invoke it.
50763         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50765 2010-06-13  Bruno Haible  <bruno@clisp.org>
50767         gnulib-tool: Align code of func_import and func_create_testdir.
50768         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
50769         specified_modules.
50771 2010-06-12  Jim Meyering  <meyering@redhat.com>
50773         test-inttostr: avoid spurious failure on Solaris 9
50774         * tests/test-inttostr.c (main): Skip the test when snprintf fails
50775         to accept "%ju".  Reported by Bruno Haible.
50777 2010-06-11  Jim Meyering  <meyering@redhat.com>
50779         test-sys_socket: mark variables as used more readably
50780         * tests/test-sys_socket.c (main): Mark otherwise unused variables
50781         as "used" explicitly via (void) statement casts.  This is more
50782         readable than using them in an artificial return expression.
50783         Suggestion from Bruno Haible.
50785 2010-06-11  Bruno Haible  <bruno@clisp.org>
50787         Avoid some more warnings from "gcc -Wwrite-strings".
50788         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
50789         to 'const char *'.
50790         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
50791         * tests/test-c-strcasestr.c (main): Likewise.
50792         * tests/test-mbscasestr1.c (main): Likewise.
50793         * tests/test-mbscasestr2.c (main): Likewise.
50794         * tests/test-memmem.c (main): Likewise.
50795         * tests/test-strstr.c (main): Likewise.
50796         * tests/test-strcasestr.c (main): Likewise.
50798 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50800         init.sh: change framework_failure_ to fail with status 99, not 1
50801         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
50802         automake's parallel-tests rule that this is an unexpected failure,
50803         even if the test is listed in XFAIL_TESTS.
50805 2010-06-11  Jim Meyering  <meyering@redhat.com>
50807         test-inttostr: avoid warnings about 4-6KB literal strings
50808         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
50809         Include "macros.h", for its definition of ASSERT.
50810         (CK): s/assert/ASSERT/
50811         * modules/inttostr-tests (Files): Add macros.h.
50813         init.sh: don't use $ME_ or skip_ before they are defined
50814         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
50815         their first uses.  Also hoist their companions: warn_, fail_,
50816         framework_failure_, $stderr_fileno.  Prompted by a patch from
50817         Stefano Lattarini.
50819         test-sys_socket: avoid set-but-not-used warnings from gcc
50820         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
50821         avoid warning about set-but-not-used variables.
50823         test-xvasprintf: avoid 'const' discard warnings
50824         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
50825         "const" when assigning from literal strings.
50826         (test_xasprintf): Add "void" in function argument list to placate
50827         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
50829         tests: avoid compilation warnings in argmatch and exclude tests...
50830         in packages that define ARGMATCH_DIE_DECL, like coreutils.
50831         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
50832         Since it always exits, declare with the "noreturn" attribute.
50833         * tests/test-argmatch.c: Likewise.
50835         tests: avoid 'const' discard warnings in mbsstr tests
50836         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
50837         * tests/test-mbsstr2.c (main): Likewise.
50839         test-verify: avoid warning from gcc's -Wmissing-declarations
50840         * tests/test-verify.c (function): Declare to be static.
50842         test-inttostr.c: include <string.h> for use of strcmp
50843         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
50845         test-linkat: avoid failed assertion on "other" architectures
50846         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
50847         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
50848         sparc: https://bugs.launchpad.net/bugs/591968
50850 2010-06-11  Jim Meyering  <meyering@redhat.com>
50852         printf.m4: avoid autoconf's "Expanded Before Required" warning
50853         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
50854         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
50855         autoconf warning.
50857 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
50859         Replacement header templates are now named with ".in", not "_".
50860         * doc/gnulib-intro.texi: Correct.
50862 2010-06-10  Jim Meyering  <meyering@redhat.com>
50864         inttostr-tests: depend on snprintf, not snprintf-posix
50865         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
50866         snprintf-posix, to avoid this aclocal failure:
50867           missing file gnulib-tests/vasnprintf.c
50868           configure.ac:45: error: expected source file, required through \
50869           AC_LIBSOURCES, not found
50871 2010-06-10  Jim Meyering  <meyering@redhat.com>
50873         inttostr: add a new function, inttostr, and tests
50874         The namesake function was not available.  The existence of the
50875         template file, inttostr.c makes its addition nontrivial.
50876         * lib/anytostr.c: Rename from inttostr.c.
50877         (anytostr): Rename from inttostr.
50878         * lib/inttostr.c: New file.
50879         * modules/inttostr (Files): Add anytostr.c.
50880         (Makefile.am): Set lib_SOURCES instead of ...
50881         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
50882         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
50883         * lib/offtostr.c: Likewise.
50884         * lib/uinttostr.c: Likewise.
50885         * lib/umaxtostr.c: Likewise.
50886         * modules/inttostr-tests: New file.
50887         * tests/test-inttostr.c: New file.  Test these functions.
50889 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
50890             Bruno Haible  <bruno@clisp.org>
50892         Add "Extending Gnulib" chapter to manual.
50893         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
50894         chapter.
50895         (Extending Gnulib): New chapter.
50896         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
50897         chapter.
50899 2010-06-09  Bruno Haible  <bruno@clisp.org>
50901         Avoid relocwrapper link errors due to gnulib replacement functions.
50902         * lib/areadlink.c: Use the system's malloc, realloc functions.
50903         (areadlink): Set errno to ENOMEM explicitly.
50904         * modules/areadlink (Depends-on): Remove malloc-posix.
50905         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50907 2010-06-09  Bruno Haible  <bruno@clisp.org>
50909         Avoid relocwrapper link errors due to gnulib replacement functions.
50910         * lib/canonicalize-lgpl.c: Use the system's malloc function.
50911         * lib/malloca.c: Likewise.
50912         * lib/relocatable.c: Likewise.
50913         * lib/progreloc.c: Use the system's malloc, sprintf functions.
50914         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
50915         * lib/setenv.c: Use the system's malloc, realloc functions.
50916         * lib/strerror.c: Use the system's sprintf function.
50917         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50919 2010-06-04  Bruno Haible  <bruno@clisp.org>
50921         Prefer documented low-level autoconf macro names.
50922         * m4/lib-link.m4: Use m4_translit instead of translit.
50923         * m4/environ.m4: Likewise.
50924         * m4/mathfunc.m4: Likewise.
50925         * m4/onceonly.m4: Likewise.
50926         * m4/stdint.m4: Likewise.
50927         Suggested by Eric Blake.
50929 2010-06-04  Martin Lambers  <marlam@marlam.de>
50930             Bruno Haible  <bruno@clisp.org>
50932         havelib: Allow library names with '+' characters.
50933         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50934         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
50936 2010-06-09  Bruno Haible  <bruno@clisp.org>
50938         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
50939         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
50940         realloc failed.
50942 2010-06-08  Peter Simons  <simons@cryp.to>
50944         maint.mk: make the news-check rule more configurable
50945         * top/maint.mk (news-check-lines-spec): New variable.
50946         (news-check): Use "sed -n 1,10p" in place of "head".
50948 2010-06-07  Jim Meyering  <meyering@redhat.com>
50950         do-release-commit-and-tag: fix typo in --help
50951         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
50953         regex: avoid new dead-code warning with gcc-4.6.0
50954         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
50955         if-block containing a while-loop.  It's been unused for at least
50956         5 years.
50958 2010-06-05  Bruno Haible  <bruno@clisp.org>
50960         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
50961         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
50963 2010-06-04  Bruno Haible  <bruno@clisp.org>
50965         Update to GNU gettext 0.18.1.
50966         * modules/gettext (configure.ac): Require gettext infrastructure from
50967         version 0.18.1.
50969 2010-06-03  Bruno Haible  <bruno@clisp.org>
50971         Don't use AC_LIBOBJ with file names in subdirectories.
50972         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
50973         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
50974         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
50975         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
50976         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
50977         gl_LIBUNISTRING_LIBSOURCE.
50978         (Makefile.am): Augment lib_SOURCES here, conditionally.
50979         * NEWS: Drop requirement for Automake option 'subdir-objects'.
50981 2010-06-03  Bruno Haible  <bruno@clisp.org>
50983         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
50984         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
50985         expansion does not end with a newline.
50986         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
50987         unnecessary newline.
50989 2010-06-03  Bruno Haible  <bruno@clisp.org>
50991         Reduce dependencies.
50992         * tests/test-quotearg.h: New file, extracted from
50993         tests/test-quotearg.c.
50994         * tests/test-quotearg-simple.c: New file, extracted from
50995         tests/test-quotearg.c.
50996         * tests/test-quotearg.c: Don't include <ctype.h>.
50997         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
50998         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
50999         use_quote_double_quotes, use_quotearg_colon): Moved to
51000         tests/test-quotearg.h.
51001         (results_g, flag_results, custom_quotes, custom_results): Moved
51002         to tests/test-quotearg-simple.c.
51003         (main): Moved the part that does not depend on gettext to
51004         tests/test-quotearg-simple.c. Return 77 if the test cannot be
51005         performed.
51006         * modules/quotearg-simple: New file.
51007         * modules/quotearg-simple-tests: New file.
51008         * modules/quotearg (Depends-on): Add quotearg-simple.
51009         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
51010         (Files): Add tests/test-quotearg.h.
51011         Reported by Paolo Bonzini.
51013 2010-06-03  Bruno Haible  <bruno@clisp.org>
51015         Reduce dependencies.
51016         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
51018 2010-06-03  Bruno Haible  <bruno@clisp.org>
51020         time: Undefine more broken macros.
51021         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
51022         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
51023         Reported by Eric Blake.
51025 2010-06-03  Bruno Haible  <bruno@clisp.org>
51027         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
51028         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
51029         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
51030         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
51031         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
51032         Reported by Ludovic Courtès <ludo@gnu.org>.
51034 2010-06-02  Eric Blake  <eblake@redhat.com>
51036         time: work with mingw + pthreads-win32 library
51037         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
51038         if timespec is defined only in pthread.h.
51039         * modules/time (Makefile.am): Substitute it.
51040         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
51041         <pthread.h>, when needed.
51042         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
51043         from the library.
51045 2010-05-31  Bruno Haible  <bruno@clisp.org>
51047         Avoid expanding two macros in the wrong order.
51048         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
51049         gl_LIBUNISTRING if it is defined.
51050         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
51051         autoconf >= 2.64.
51052         Reported by Ludovic Courtès <ludo@gnu.org>.
51054 2010-05-27  Jim Meyering  <meyering@redhat.com>
51056         maint.mk: also prohibit "#undef" of always-defined symbols
51057         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
51058         Allow more than one space before the symbol name.
51059         (sc_prohibit_always-defined_macros): Use grep's -E, now that
51060         the regexp uses alternation.
51062 2010-05-26  Eric Blake  <eblake@redhat.com>
51064         maint.mk: avoid echo -e
51065         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
51066         Convert all uses of echo -* to printf.
51067         Reported by Matthias Bolte.
51069 2010-05-25  Bruno Haible  <bruno@clisp.org>
51071         Update to GNU gettext 0.18, part 2.
51072         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
51073         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
51075 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51077         Add missing include in test-pwrite.c.
51078         * tests/test-pwrite.c: Include string.h, for strcmp.
51080 2010-05-24  Bruno Haible  <bruno@clisp.org>
51082         * NEWS: Mention requirement for Automake option 'subdir-objects'.
51084 2010-05-24  Bruno Haible  <bruno@clisp.org>
51086         Don't use conversion with transliteration in u{8,16,32}_strcoll.
51087         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
51088         iconveh_error argument.
51089         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
51090         U_STRCONV_TO_LOCALE.
51091         * lib/unistr/u16-strcoll.c: Likewise.
51092         * lib/unistr/u32-strcoll.c: Likewise.
51093         * modules/unistr/u8-strcoll (Depends-on): Add
51094         uniconv/u8-strconv-to-enc, localcharset. Remove
51095         uniconv/u8-strconv-to-locale.
51096         (configure.ac): Bump version number.
51097         * modules/unistr/u16-strcoll (Depends-on): Add
51098         uniconv/u16-strconv-to-enc, localcharset. Remove
51099         uniconv/u16-strconv-to-locale.
51100         (configure.ac): Bump version number.
51101         * modules/unistr/u32-strcoll (Depends-on): Add
51102         uniconv/u32-strconv-to-enc, localcharset. Remove
51103         uniconv/u32-strconv-to-locale.
51104         (configure.ac): Bump version number.
51106 2010-05-24  Bruno Haible  <bruno@clisp.org>
51108         Avoid a test failure on NetBSD 5.0.
51109         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
51110         an iconv() bug.
51112 2010-05-24  Bruno Haible  <bruno@clisp.org>
51114         Adjust #include directive style.
51115         * modules/regex (Includes): Recommend to write <regex.h>.
51117 2010-05-24  Bruno Haible  <bruno@clisp.org>
51119         regex: Don't require alloca.
51120         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
51121         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
51122         only inside if (0).
51124 2010-05-23  Jim Meyering  <meyering@redhat.com>
51126         test-renameat.c: include <sys/stat.h>
51127         * tests/test-renameat.c: Include <sys/stat.h>; required for
51128         definition of S_IS* macros.
51130 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
51132         Update maintainer documentation for 'relocatable-prog' module.
51133         * doc/relocatable-maint.texi: Update.
51134         Comments by Bruno Haible.
51136 2010-05-23  Bruno Haible  <bruno@clisp.org>
51138         git-merge-changelog: Enable --split-merged-entry by default.
51139         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
51140         (usage): Don't mention this option any more.
51141         Reported by Ralf Wildenhues.
51143 2010-05-23  Jim Meyering  <meyering@redhat.com>
51145         test-pwrite: do not leave behind a test file named "out"
51146         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
51147         The trivial-looking use of init.sh is really necessary.
51148         It ensures that the temporary file, "out", is created in
51149         a temporary directory, and removed upon termination.
51150         * tests/test-pwrite.sh: Re-add file.
51151         * modules/pwrite-tests: Reference it.
51153 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51155         Fix output redirection buglet in init.sh.
51156         * tests/init.sh: Fix redirection of stderr.
51158 2010-05-20  Simon Josefsson  <simon@josefsson.org>
51160         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
51162 2010-05-17  Simon Josefsson  <simon@josefsson.org>
51164         * modules/valgrind-tests: New file.
51165         * m4/valgrind-tests.m4: New file.
51166         * doc/valgrind-tests.texi: New file.
51167         * doc/gnulib.texi (Running self-tests under valgrind): New
51168         section.
51170 2010-05-19  Bruno Haible  <bruno@clisp.org>
51172         Clean up dead code in recent commit.
51173         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
51174         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
51175         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
51176         Suggested by Paolo Bonzini.
51178 2010-05-19  Bruno Haible  <bruno@clisp.org>
51180         Avoid valgrind error reports from libunistring.
51181         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
51182         * modules/libunistring (Files): Add it.
51183         * modules/libunistring-optional (Files): Likewise.
51185 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
51186             Bruno Haible  <bruno@clisp.org>
51188         New module 'libunistring-optional'.
51189         * modules/libunistring-optional: New file.
51190         * m4/libunistring-base.m4: New file.
51191         * m4/libunistring-optional.m4: New file.
51192         * lib/unicase.in.h: Renamed from lib/unicase.h.
51193         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
51194         * lib/unictype.in.h: Renamed from lib/unictype.h.
51195         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
51196         * lib/uniname.in.h: Renamed from lib/uniname.h.
51197         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
51198         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
51199         * lib/unistr.in.h: Renamed from lib/unistr.h.
51200         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
51201         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
51202         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
51203         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
51204         gl_LIBUNISTRING. If the library was found, determine the installed
51205         version and set LIBUNISTRING_VERSION.
51206         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
51207         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
51208         handle a configuration option --with-included-libunistring.
51209         * modules/libunistring (Files): Add m4/absolute-header.m4.
51210         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
51211         Add m4/libunistring-base.m4.
51212         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51213         (Makefile.am): Build unicase.h from unicase.in.h.
51214         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
51215         Add m4/libunistring-base.m4.
51216         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51217         (Makefile.am): Build uniconv.h from uniconv.in.h.
51218         * modules/unictype/base (Files): Use unictype.in.h instead of
51219         unictype.h. Add m4/libunistring-base.m4.
51220         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51221         (Makefile.am): Build unictype.h from unictype.in.h.
51222         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
51223         Add m4/libunistring-base.m4.
51224         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51225         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
51226         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
51227         Add m4/libunistring-base.m4.
51228         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51229         (Makefile.am): Build uniname.h from uniname.in.h.
51230         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
51231         Add m4/libunistring-base.m4.
51232         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51233         (Makefile.am): Build uninorm.h from uninorm.in.h.
51234         * modules/unistdio/base (Files): Use unistdio.in.h instead of
51235         unistdio.h. Add m4/libunistring-base.m4.
51236         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51237         (Makefile.am): Build unistdio.h from unistdio.in.h.
51238         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
51239         Add m4/libunistring-base.m4.
51240         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51241         (Makefile.am): Build unistr.h from unistr.in.h.
51242         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
51243         Add m4/libunistring-base.m4.
51244         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51245         (Makefile.am): Build unitypes.h from unitypes.in.h.
51246         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
51247         Add m4/libunistring-base.m4.
51248         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51249         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
51250         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
51251         uniwidth.h. Add m4/libunistring-base.m4.
51252         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51253         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
51254         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
51255         instead of augmenting lib_SOURCES.
51256         * modules/unicase/empty-suffix-context: Likewise.
51257         * modules/unicase/locale-language: Likewise.
51258         * modules/unicase/tolower: Likewise.
51259         * modules/unicase/totitle: Likewise.
51260         * modules/unicase/toupper: Likewise.
51261         * modules/unicase/u8-casecmp: Likewise.
51262         * modules/unicase/u8-casecoll: Likewise.
51263         * modules/unicase/u8-casefold: Likewise.
51264         * modules/unicase/u8-casexfrm: Likewise.
51265         * modules/unicase/u8-ct-casefold: Likewise.
51266         * modules/unicase/u8-ct-tolower: Likewise.
51267         * modules/unicase/u8-ct-totitle: Likewise.
51268         * modules/unicase/u8-ct-toupper: Likewise.
51269         * modules/unicase/u8-is-cased: Likewise.
51270         * modules/unicase/u8-is-casefolded: Likewise.
51271         * modules/unicase/u8-is-lowercase: Likewise.
51272         * modules/unicase/u8-is-titlecase: Likewise.
51273         * modules/unicase/u8-is-uppercase: Likewise.
51274         * modules/unicase/u8-prefix-context: Likewise.
51275         * modules/unicase/u8-suffix-context: Likewise.
51276         * modules/unicase/u8-tolower: Likewise.
51277         * modules/unicase/u8-totitle: Likewise.
51278         * modules/unicase/u8-toupper: Likewise.
51279         * modules/unicase/u16-casecmp: Likewise.
51280         * modules/unicase/u16-casecoll: Likewise.
51281         * modules/unicase/u16-casefold: Likewise.
51282         * modules/unicase/u16-casexfrm: Likewise.
51283         * modules/unicase/u16-ct-casefold: Likewise.
51284         * modules/unicase/u16-ct-tolower: Likewise.
51285         * modules/unicase/u16-ct-totitle: Likewise.
51286         * modules/unicase/u16-ct-toupper: Likewise.
51287         * modules/unicase/u16-is-cased: Likewise.
51288         * modules/unicase/u16-is-casefolded: Likewise.
51289         * modules/unicase/u16-is-lowercase: Likewise.
51290         * modules/unicase/u16-is-titlecase: Likewise.
51291         * modules/unicase/u16-is-uppercase: Likewise.
51292         * modules/unicase/u16-prefix-context: Likewise.
51293         * modules/unicase/u16-suffix-context: Likewise.
51294         * modules/unicase/u16-tolower: Likewise.
51295         * modules/unicase/u16-totitle: Likewise.
51296         * modules/unicase/u16-toupper: Likewise.
51297         * modules/unicase/u32-casecmp: Likewise.
51298         * modules/unicase/u32-casecoll: Likewise.
51299         * modules/unicase/u32-casefold: Likewise.
51300         * modules/unicase/u32-casexfrm: Likewise.
51301         * modules/unicase/u32-ct-casefold: Likewise.
51302         * modules/unicase/u32-ct-tolower: Likewise.
51303         * modules/unicase/u32-ct-totitle: Likewise.
51304         * modules/unicase/u32-ct-toupper: Likewise.
51305         * modules/unicase/u32-is-cased: Likewise.
51306         * modules/unicase/u32-is-casefolded: Likewise.
51307         * modules/unicase/u32-is-lowercase: Likewise.
51308         * modules/unicase/u32-is-titlecase: Likewise.
51309         * modules/unicase/u32-is-uppercase: Likewise.
51310         * modules/unicase/u32-prefix-context: Likewise.
51311         * modules/unicase/u32-suffix-context: Likewise.
51312         * modules/unicase/u32-tolower: Likewise.
51313         * modules/unicase/u32-totitle: Likewise.
51314         * modules/unicase/u32-toupper: Likewise.
51315         * modules/unicase/ulc-casecmp: Likewise.
51316         * modules/unicase/ulc-casecoll: Likewise.
51317         * modules/unicase/ulc-casexfrm: Likewise.
51318         * modules/uniconv/u8-conv-from-enc: Likewise.
51319         * modules/uniconv/u8-conv-to-enc: Likewise.
51320         * modules/uniconv/u8-strconv-from-enc: Likewise.
51321         * modules/uniconv/u8-strconv-from-locale: Likewise.
51322         * modules/uniconv/u8-strconv-to-enc: Likewise.
51323         * modules/uniconv/u8-strconv-to-locale: Likewise.
51324         * modules/uniconv/u16-conv-from-enc: Likewise.
51325         * modules/uniconv/u16-conv-to-enc: Likewise.
51326         * modules/uniconv/u16-strconv-from-enc: Likewise.
51327         * modules/uniconv/u16-strconv-from-locale: Likewise.
51328         * modules/uniconv/u16-strconv-to-enc: Likewise.
51329         * modules/uniconv/u16-strconv-to-locale: Likewise.
51330         * modules/uniconv/u32-conv-from-enc: Likewise.
51331         * modules/uniconv/u32-conv-to-enc: Likewise.
51332         * modules/uniconv/u32-strconv-from-enc: Likewise.
51333         * modules/uniconv/u32-strconv-from-locale: Likewise.
51334         * modules/uniconv/u32-strconv-to-enc: Likewise.
51335         * modules/uniconv/u32-strconv-to-locale: Likewise.
51336         * modules/unictype/bidicategory-byname: Likewise.
51337         * modules/unictype/bidicategory-name: Likewise.
51338         * modules/unictype/bidicategory-of: Likewise.
51339         * modules/unictype/bidicategory-test: Likewise.
51340         * modules/unictype/block-list: Likewise.
51341         * modules/unictype/block-test: Likewise.
51342         * modules/unictype/category-C: Likewise.
51343         * modules/unictype/category-Cc: Likewise.
51344         * modules/unictype/category-Cf: Likewise.
51345         * modules/unictype/category-Cn: Likewise.
51346         * modules/unictype/category-Co: Likewise.
51347         * modules/unictype/category-Cs: Likewise.
51348         * modules/unictype/category-L: Likewise.
51349         * modules/unictype/category-Ll: Likewise.
51350         * modules/unictype/category-Lm: Likewise.
51351         * modules/unictype/category-Lo: Likewise.
51352         * modules/unictype/category-Lt: Likewise.
51353         * modules/unictype/category-Lu: Likewise.
51354         * modules/unictype/category-M: Likewise.
51355         * modules/unictype/category-Mc: Likewise.
51356         * modules/unictype/category-Me: Likewise.
51357         * modules/unictype/category-Mn: Likewise.
51358         * modules/unictype/category-N: Likewise.
51359         * modules/unictype/category-Nd: Likewise.
51360         * modules/unictype/category-Nl: Likewise.
51361         * modules/unictype/category-No: Likewise.
51362         * modules/unictype/category-P: Likewise.
51363         * modules/unictype/category-Pc: Likewise.
51364         * modules/unictype/category-Pd: Likewise.
51365         * modules/unictype/category-Pe: Likewise.
51366         * modules/unictype/category-Pf: Likewise.
51367         * modules/unictype/category-Pi: Likewise.
51368         * modules/unictype/category-Po: Likewise.
51369         * modules/unictype/category-Ps: Likewise.
51370         * modules/unictype/category-S: Likewise.
51371         * modules/unictype/category-Sc: Likewise.
51372         * modules/unictype/category-Sk: Likewise.
51373         * modules/unictype/category-Sm: Likewise.
51374         * modules/unictype/category-So: Likewise.
51375         * modules/unictype/category-Z: Likewise.
51376         * modules/unictype/category-Zl: Likewise.
51377         * modules/unictype/category-Zp: Likewise.
51378         * modules/unictype/category-Zs: Likewise.
51379         * modules/unictype/category-and: Likewise.
51380         * modules/unictype/category-and-not: Likewise.
51381         * modules/unictype/category-byname: Likewise.
51382         * modules/unictype/category-name: Likewise.
51383         * modules/unictype/category-none: Likewise.
51384         * modules/unictype/category-of: Likewise.
51385         * modules/unictype/category-or: Likewise.
51386         * modules/unictype/category-test: Likewise.
51387         * modules/unictype/combining-class: Likewise.
51388         * modules/unictype/ctype-alnum: Likewise.
51389         * modules/unictype/ctype-alpha: Likewise.
51390         * modules/unictype/ctype-blank: Likewise.
51391         * modules/unictype/ctype-cntrl: Likewise.
51392         * modules/unictype/ctype-digit: Likewise.
51393         * modules/unictype/ctype-graph: Likewise.
51394         * modules/unictype/ctype-lower: Likewise.
51395         * modules/unictype/ctype-print: Likewise.
51396         * modules/unictype/ctype-punct: Likewise.
51397         * modules/unictype/ctype-space: Likewise.
51398         * modules/unictype/ctype-upper: Likewise.
51399         * modules/unictype/ctype-xdigit: Likewise.
51400         * modules/unictype/decimal-digit: Likewise.
51401         * modules/unictype/digit: Likewise.
51402         * modules/unictype/mirror: Likewise.
51403         * modules/unictype/numeric: Likewise.
51404         * modules/unictype/property-alphabetic: Likewise.
51405         * modules/unictype/property-ascii-hex-digit: Likewise.
51406         * modules/unictype/property-bidi-arabic-digit: Likewise.
51407         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
51408         * modules/unictype/property-bidi-block-separator: Likewise.
51409         * modules/unictype/property-bidi-boundary-neutral: Likewise.
51410         * modules/unictype/property-bidi-common-separator: Likewise.
51411         * modules/unictype/property-bidi-control: Likewise.
51412         * modules/unictype/property-bidi-embedding-or-override: Likewise.
51413         * modules/unictype/property-bidi-eur-num-separator: Likewise.
51414         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
51415         * modules/unictype/property-bidi-european-digit: Likewise.
51416         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
51417         * modules/unictype/property-bidi-left-to-right: Likewise.
51418         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
51419         * modules/unictype/property-bidi-other-neutral: Likewise.
51420         * modules/unictype/property-bidi-pdf: Likewise.
51421         * modules/unictype/property-bidi-segment-separator: Likewise.
51422         * modules/unictype/property-bidi-whitespace: Likewise.
51423         * modules/unictype/property-byname: Likewise.
51424         * modules/unictype/property-combining: Likewise.
51425         * modules/unictype/property-composite: Likewise.
51426         * modules/unictype/property-currency-symbol: Likewise.
51427         * modules/unictype/property-dash: Likewise.
51428         * modules/unictype/property-decimal-digit: Likewise.
51429         * modules/unictype/property-default-ignorable-code-point: Likewise.
51430         * modules/unictype/property-deprecated: Likewise.
51431         * modules/unictype/property-diacritic: Likewise.
51432         * modules/unictype/property-extender: Likewise.
51433         * modules/unictype/property-format-control: Likewise.
51434         * modules/unictype/property-grapheme-base: Likewise.
51435         * modules/unictype/property-grapheme-extend: Likewise.
51436         * modules/unictype/property-grapheme-link: Likewise.
51437         * modules/unictype/property-hex-digit: Likewise.
51438         * modules/unictype/property-hyphen: Likewise.
51439         * modules/unictype/property-id-continue: Likewise.
51440         * modules/unictype/property-id-start: Likewise.
51441         * modules/unictype/property-ideographic: Likewise.
51442         * modules/unictype/property-ids-binary-operator: Likewise.
51443         * modules/unictype/property-ids-trinary-operator: Likewise.
51444         * modules/unictype/property-ignorable-control: Likewise.
51445         * modules/unictype/property-iso-control: Likewise.
51446         * modules/unictype/property-join-control: Likewise.
51447         * modules/unictype/property-left-of-pair: Likewise.
51448         * modules/unictype/property-line-separator: Likewise.
51449         * modules/unictype/property-logical-order-exception: Likewise.
51450         * modules/unictype/property-lowercase: Likewise.
51451         * modules/unictype/property-math: Likewise.
51452         * modules/unictype/property-non-break: Likewise.
51453         * modules/unictype/property-not-a-character: Likewise.
51454         * modules/unictype/property-numeric: Likewise.
51455         * modules/unictype/property-other-alphabetic: Likewise.
51456         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
51457         * modules/unictype/property-other-grapheme-extend: Likewise.
51458         * modules/unictype/property-other-id-continue: Likewise.
51459         * modules/unictype/property-other-id-start: Likewise.
51460         * modules/unictype/property-other-lowercase: Likewise.
51461         * modules/unictype/property-other-math: Likewise.
51462         * modules/unictype/property-other-uppercase: Likewise.
51463         * modules/unictype/property-paired-punctuation: Likewise.
51464         * modules/unictype/property-paragraph-separator: Likewise.
51465         * modules/unictype/property-pattern-syntax: Likewise.
51466         * modules/unictype/property-pattern-white-space: Likewise.
51467         * modules/unictype/property-private-use: Likewise.
51468         * modules/unictype/property-punctuation: Likewise.
51469         * modules/unictype/property-quotation-mark: Likewise.
51470         * modules/unictype/property-radical: Likewise.
51471         * modules/unictype/property-sentence-terminal: Likewise.
51472         * modules/unictype/property-soft-dotted: Likewise.
51473         * modules/unictype/property-space: Likewise.
51474         * modules/unictype/property-terminal-punctuation: Likewise.
51475         * modules/unictype/property-test: Likewise.
51476         * modules/unictype/property-titlecase: Likewise.
51477         * modules/unictype/property-unassigned-code-value: Likewise.
51478         * modules/unictype/property-unified-ideograph: Likewise.
51479         * modules/unictype/property-uppercase: Likewise.
51480         * modules/unictype/property-variation-selector: Likewise.
51481         * modules/unictype/property-white-space: Likewise.
51482         * modules/unictype/property-xid-continue: Likewise.
51483         * modules/unictype/property-xid-start: Likewise.
51484         * modules/unictype/property-zero-width: Likewise.
51485         * modules/unictype/scripts: Likewise.
51486         * modules/unictype/syntax-c-ident: Likewise.
51487         * modules/unictype/syntax-c-whitespace: Likewise.
51488         * modules/unictype/syntax-java-ident: Likewise.
51489         * modules/unictype/syntax-java-whitespace: Likewise.
51490         * modules/unilbrk/u8-possible-linebreaks: Likewise.
51491         * modules/unilbrk/u8-width-linebreaks: Likewise.
51492         * modules/unilbrk/u16-possible-linebreaks: Likewise.
51493         * modules/unilbrk/u16-width-linebreaks: Likewise.
51494         * modules/unilbrk/u32-possible-linebreaks: Likewise.
51495         * modules/unilbrk/u32-width-linebreaks: Likewise.
51496         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
51497         * modules/unilbrk/ulc-width-linebreaks: Likewise.
51498         * modules/uniname/uniname: Likewise.
51499         * modules/uninorm/canonical-decomposition: Likewise.
51500         * modules/uninorm/composition: Likewise.
51501         * modules/uninorm/decomposing-form: Likewise.
51502         * modules/uninorm/decomposition: Likewise.
51503         * modules/uninorm/filter: Likewise.
51504         * modules/uninorm/nfc: Likewise.
51505         * modules/uninorm/nfd: Likewise.
51506         * modules/uninorm/nfkc: Likewise.
51507         * modules/uninorm/nfkd: Likewise.
51508         * modules/uninorm/u8-normalize: Likewise.
51509         * modules/uninorm/u8-normcmp: Likewise.
51510         * modules/uninorm/u8-normcoll: Likewise.
51511         * modules/uninorm/u8-normxfrm: Likewise.
51512         * modules/uninorm/u16-normalize: Likewise.
51513         * modules/uninorm/u16-normcmp: Likewise.
51514         * modules/uninorm/u16-normcoll: Likewise.
51515         * modules/uninorm/u16-normxfrm: Likewise.
51516         * modules/uninorm/u32-normalize: Likewise.
51517         * modules/uninorm/u32-normcmp: Likewise.
51518         * modules/uninorm/u32-normcoll: Likewise.
51519         * modules/uninorm/u32-normxfrm: Likewise.
51520         * modules/unistdio/u8-asnprintf: Likewise.
51521         * modules/unistdio/u8-asprintf: Likewise.
51522         * modules/unistdio/u8-snprintf: Likewise.
51523         * modules/unistdio/u8-sprintf: Likewise.
51524         * modules/unistdio/u8-u8-asnprintf: Likewise.
51525         * modules/unistdio/u8-u8-asprintf: Likewise.
51526         * modules/unistdio/u8-u8-snprintf: Likewise.
51527         * modules/unistdio/u8-u8-sprintf: Likewise.
51528         * modules/unistdio/u8-u8-vasnprintf: Likewise.
51529         * modules/unistdio/u8-u8-vasprintf: Likewise.
51530         * modules/unistdio/u8-u8-vsnprintf: Likewise.
51531         * modules/unistdio/u8-u8-vsprintf: Likewise.
51532         * modules/unistdio/u8-vasnprintf: Likewise.
51533         * modules/unistdio/u8-vasprintf: Likewise.
51534         * modules/unistdio/u8-vsnprintf: Likewise.
51535         * modules/unistdio/u8-vsprintf: Likewise.
51536         * modules/unistdio/u16-asnprintf: Likewise.
51537         * modules/unistdio/u16-asprintf: Likewise.
51538         * modules/unistdio/u16-snprintf: Likewise.
51539         * modules/unistdio/u16-sprintf: Likewise.
51540         * modules/unistdio/u16-u16-asnprintf: Likewise.
51541         * modules/unistdio/u16-u16-asprintf: Likewise.
51542         * modules/unistdio/u16-u16-snprintf: Likewise.
51543         * modules/unistdio/u16-u16-sprintf: Likewise.
51544         * modules/unistdio/u16-u16-vasnprintf: Likewise.
51545         * modules/unistdio/u16-u16-vasprintf: Likewise.
51546         * modules/unistdio/u16-u16-vsnprintf: Likewise.
51547         * modules/unistdio/u16-u16-vsprintf: Likewise.
51548         * modules/unistdio/u16-vasnprintf: Likewise.
51549         * modules/unistdio/u16-vasprintf: Likewise.
51550         * modules/unistdio/u16-vsnprintf: Likewise.
51551         * modules/unistdio/u16-vsprintf: Likewise.
51552         * modules/unistdio/u32-asnprintf: Likewise.
51553         * modules/unistdio/u32-asprintf: Likewise.
51554         * modules/unistdio/u32-snprintf: Likewise.
51555         * modules/unistdio/u32-sprintf: Likewise.
51556         * modules/unistdio/u32-u32-asnprintf: Likewise.
51557         * modules/unistdio/u32-u32-asprintf: Likewise.
51558         * modules/unistdio/u32-u32-snprintf: Likewise.
51559         * modules/unistdio/u32-u32-sprintf: Likewise.
51560         * modules/unistdio/u32-u32-vasnprintf: Likewise.
51561         * modules/unistdio/u32-u32-vasprintf: Likewise.
51562         * modules/unistdio/u32-u32-vsnprintf: Likewise.
51563         * modules/unistdio/u32-u32-vsprintf: Likewise.
51564         * modules/unistdio/u32-vasnprintf: Likewise.
51565         * modules/unistdio/u32-vasprintf: Likewise.
51566         * modules/unistdio/u32-vsnprintf: Likewise.
51567         * modules/unistdio/u32-vsprintf: Likewise.
51568         * modules/unistdio/ulc-asnprintf: Likewise.
51569         * modules/unistdio/ulc-asprintf: Likewise.
51570         * modules/unistdio/ulc-fprintf: Likewise.
51571         * modules/unistdio/ulc-snprintf: Likewise.
51572         * modules/unistdio/ulc-sprintf: Likewise.
51573         * modules/unistdio/ulc-vasnprintf: Likewise.
51574         * modules/unistdio/ulc-vasprintf: Likewise.
51575         * modules/unistdio/ulc-vfprintf: Likewise.
51576         * modules/unistdio/ulc-vsnprintf: Likewise.
51577         * modules/unistdio/ulc-vsprintf: Likewise.
51578         * modules/unistr/u8-check: Likewise.
51579         * modules/unistr/u8-chr: Likewise.
51580         * modules/unistr/u8-cmp: Likewise.
51581         * modules/unistr/u8-cmp2: Likewise.
51582         * modules/unistr/u8-cpy: Likewise.
51583         * modules/unistr/u8-cpy-alloc: Likewise.
51584         * modules/unistr/u8-endswith: Likewise.
51585         * modules/unistr/u8-mblen: Likewise.
51586         * modules/unistr/u8-mbsnlen: Likewise.
51587         * modules/unistr/u8-mbtouc: Likewise.
51588         * modules/unistr/u8-mbtouc-unsafe: Likewise.
51589         * modules/unistr/u8-mbtoucr: Likewise.
51590         * modules/unistr/u8-move: Likewise.
51591         * modules/unistr/u8-next: Likewise.
51592         * modules/unistr/u8-prev: Likewise.
51593         * modules/unistr/u8-set: Likewise.
51594         * modules/unistr/u8-startswith: Likewise.
51595         * modules/unistr/u8-stpcpy: Likewise.
51596         * modules/unistr/u8-stpncpy: Likewise.
51597         * modules/unistr/u8-strcat: Likewise.
51598         * modules/unistr/u8-strchr: Likewise.
51599         * modules/unistr/u8-strcmp: Likewise.
51600         * modules/unistr/u8-strcoll: Likewise.
51601         * modules/unistr/u8-strcpy: Likewise.
51602         * modules/unistr/u8-strcspn: Likewise.
51603         * modules/unistr/u8-strdup: Likewise.
51604         * modules/unistr/u8-strlen: Likewise.
51605         * modules/unistr/u8-strmblen: Likewise.
51606         * modules/unistr/u8-strmbtouc: Likewise.
51607         * modules/unistr/u8-strncat: Likewise.
51608         * modules/unistr/u8-strncmp: Likewise.
51609         * modules/unistr/u8-strncpy: Likewise.
51610         * modules/unistr/u8-strnlen: Likewise.
51611         * modules/unistr/u8-strpbrk: Likewise.
51612         * modules/unistr/u8-strrchr: Likewise.
51613         * modules/unistr/u8-strspn: Likewise.
51614         * modules/unistr/u8-strstr: Likewise.
51615         * modules/unistr/u8-strtok: Likewise.
51616         * modules/unistr/u8-to-u16: Likewise.
51617         * modules/unistr/u8-to-u32: Likewise.
51618         * modules/unistr/u8-uctomb: Likewise.
51619         * modules/unistr/u16-check: Likewise.
51620         * modules/unistr/u16-chr: Likewise.
51621         * modules/unistr/u16-cmp: Likewise.
51622         * modules/unistr/u16-cmp2: Likewise.
51623         * modules/unistr/u16-cpy: Likewise.
51624         * modules/unistr/u16-cpy-alloc: Likewise.
51625         * modules/unistr/u16-endswith: Likewise.
51626         * modules/unistr/u16-mblen: Likewise.
51627         * modules/unistr/u16-mbsnlen: Likewise.
51628         * modules/unistr/u16-mbtouc: Likewise.
51629         * modules/unistr/u16-mbtouc-unsafe: Likewise.
51630         * modules/unistr/u16-mbtoucr: Likewise.
51631         * modules/unistr/u16-move: Likewise.
51632         * modules/unistr/u16-next: Likewise.
51633         * modules/unistr/u16-prev: Likewise.
51634         * modules/unistr/u16-set: Likewise.
51635         * modules/unistr/u16-startswith: Likewise.
51636         * modules/unistr/u16-stpcpy: Likewise.
51637         * modules/unistr/u16-stpncpy: Likewise.
51638         * modules/unistr/u16-strcat: Likewise.
51639         * modules/unistr/u16-strchr: Likewise.
51640         * modules/unistr/u16-strcmp: Likewise.
51641         * modules/unistr/u16-strcoll: Likewise.
51642         * modules/unistr/u16-strcpy: Likewise.
51643         * modules/unistr/u16-strcspn: Likewise.
51644         * modules/unistr/u16-strdup: Likewise.
51645         * modules/unistr/u16-strlen: Likewise.
51646         * modules/unistr/u16-strmblen: Likewise.
51647         * modules/unistr/u16-strmbtouc: Likewise.
51648         * modules/unistr/u16-strncat: Likewise.
51649         * modules/unistr/u16-strncmp: Likewise.
51650         * modules/unistr/u16-strncpy: Likewise.
51651         * modules/unistr/u16-strnlen: Likewise.
51652         * modules/unistr/u16-strpbrk: Likewise.
51653         * modules/unistr/u16-strrchr: Likewise.
51654         * modules/unistr/u16-strspn: Likewise.
51655         * modules/unistr/u16-strstr: Likewise.
51656         * modules/unistr/u16-strtok: Likewise.
51657         * modules/unistr/u16-to-u32: Likewise.
51658         * modules/unistr/u16-to-u8: Likewise.
51659         * modules/unistr/u16-uctomb: Likewise.
51660         * modules/unistr/u32-check: Likewise.
51661         * modules/unistr/u32-chr: Likewise.
51662         * modules/unistr/u32-cmp: Likewise.
51663         * modules/unistr/u32-cmp2: Likewise.
51664         * modules/unistr/u32-cpy: Likewise.
51665         * modules/unistr/u32-cpy-alloc: Likewise.
51666         * modules/unistr/u32-endswith: Likewise.
51667         * modules/unistr/u32-mblen: Likewise.
51668         * modules/unistr/u32-mbsnlen: Likewise.
51669         * modules/unistr/u32-mbtouc: Likewise.
51670         * modules/unistr/u32-mbtouc-unsafe: Likewise.
51671         * modules/unistr/u32-mbtoucr: Likewise.
51672         * modules/unistr/u32-move: Likewise.
51673         * modules/unistr/u32-next: Likewise.
51674         * modules/unistr/u32-prev: Likewise.
51675         * modules/unistr/u32-set: Likewise.
51676         * modules/unistr/u32-startswith: Likewise.
51677         * modules/unistr/u32-stpcpy: Likewise.
51678         * modules/unistr/u32-stpncpy: Likewise.
51679         * modules/unistr/u32-strcat: Likewise.
51680         * modules/unistr/u32-strchr: Likewise.
51681         * modules/unistr/u32-strcmp: Likewise.
51682         * modules/unistr/u32-strcoll: Likewise.
51683         * modules/unistr/u32-strcpy: Likewise.
51684         * modules/unistr/u32-strcspn: Likewise.
51685         * modules/unistr/u32-strdup: Likewise.
51686         * modules/unistr/u32-strlen: Likewise.
51687         * modules/unistr/u32-strmblen: Likewise.
51688         * modules/unistr/u32-strmbtouc: Likewise.
51689         * modules/unistr/u32-strncat: Likewise.
51690         * modules/unistr/u32-strncmp: Likewise.
51691         * modules/unistr/u32-strncpy: Likewise.
51692         * modules/unistr/u32-strnlen: Likewise.
51693         * modules/unistr/u32-strpbrk: Likewise.
51694         * modules/unistr/u32-strrchr: Likewise.
51695         * modules/unistr/u32-strspn: Likewise.
51696         * modules/unistr/u32-strstr: Likewise.
51697         * modules/unistr/u32-strtok: Likewise.
51698         * modules/unistr/u32-to-u16: Likewise.
51699         * modules/unistr/u32-to-u8: Likewise.
51700         * modules/unistr/u32-uctomb: Likewise.
51701         * modules/uniwbrk/u8-wordbreaks: Likewise.
51702         * modules/uniwbrk/u16-wordbreaks: Likewise.
51703         * modules/uniwbrk/u32-wordbreaks: Likewise.
51704         * modules/uniwbrk/ulc-wordbreaks: Likewise.
51705         * modules/uniwbrk/wordbreak-property: Likewise.
51706         * modules/uniwidth/u8-strwidth: Likewise.
51707         * modules/uniwidth/u8-width: Likewise.
51708         * modules/uniwidth/u16-strwidth: Likewise.
51709         * modules/uniwidth/u16-width: Likewise.
51710         * modules/uniwidth/u32-strwidth: Likewise.
51711         * modules/uniwidth/u32-width: Likewise.
51712         * modules/uniwidth/width: Likewise.
51713         * modules/unicase/cased-tests (Makefile.am): Link all test programs
51714         with $(LIBUNISTRING).
51715         * modules/unicase/ignorable-tests: Likewise.
51716         * modules/unicase/locale-language-tests: Likewise.
51717         * modules/unicase/tolower-tests: Likewise.
51718         * modules/unicase/totitle-tests: Likewise.
51719         * modules/unicase/toupper-tests: Likewise.
51720         * modules/unicase/u8-casecmp-tests: Likewise.
51721         * modules/unicase/u8-casecoll-tests: Likewise.
51722         * modules/unicase/u8-casefold-tests: Likewise.
51723         * modules/unicase/u8-is-cased-tests: Likewise.
51724         * modules/unicase/u8-is-casefolded-tests: Likewise.
51725         * modules/unicase/u8-is-lowercase-tests: Likewise.
51726         * modules/unicase/u8-is-titlecase-tests: Likewise.
51727         * modules/unicase/u8-is-uppercase-tests: Likewise.
51728         * modules/unicase/u8-tolower-tests: Likewise.
51729         * modules/unicase/u8-totitle-tests: Likewise.
51730         * modules/unicase/u8-toupper-tests: Likewise.
51731         * modules/unicase/u16-casecmp-tests: Likewise.
51732         * modules/unicase/u16-casecoll-tests: Likewise.
51733         * modules/unicase/u16-casefold-tests: Likewise.
51734         * modules/unicase/u16-is-cased-tests: Likewise.
51735         * modules/unicase/u16-is-casefolded-tests: Likewise.
51736         * modules/unicase/u16-is-lowercase-tests: Likewise.
51737         * modules/unicase/u16-is-titlecase-tests: Likewise.
51738         * modules/unicase/u16-is-uppercase-tests: Likewise.
51739         * modules/unicase/u16-tolower-tests: Likewise.
51740         * modules/unicase/u16-totitle-tests: Likewise.
51741         * modules/unicase/u16-toupper-tests: Likewise.
51742         * modules/unicase/u32-casecmp-tests: Likewise.
51743         * modules/unicase/u32-casecoll-tests: Likewise.
51744         * modules/unicase/u32-casefold-tests: Likewise.
51745         * modules/unicase/u32-is-cased-tests: Likewise.
51746         * modules/unicase/u32-is-casefolded-tests: Likewise.
51747         * modules/unicase/u32-is-lowercase-tests: Likewise.
51748         * modules/unicase/u32-is-titlecase-tests: Likewise.
51749         * modules/unicase/u32-is-uppercase-tests: Likewise.
51750         * modules/unicase/u32-tolower-tests: Likewise.
51751         * modules/unicase/u32-totitle-tests: Likewise.
51752         * modules/unicase/u32-toupper-tests: Likewise.
51753         * modules/unicase/ulc-casecmp-tests: Likewise.
51754         * modules/unicase/ulc-casecoll-tests: Likewise.
51755         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
51756         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
51757         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
51758         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
51759         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
51760         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
51761         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
51762         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
51763         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
51764         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
51765         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
51766         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
51767         * modules/unictype/bidicategory-byname-tests: Likewise.
51768         * modules/unictype/bidicategory-name-tests: Likewise.
51769         * modules/unictype/bidicategory-of-tests: Likewise.
51770         * modules/unictype/bidicategory-test-tests: Likewise.
51771         * modules/unictype/block-list-tests: Likewise.
51772         * modules/unictype/block-of-tests: Likewise.
51773         * modules/unictype/block-test-tests: Likewise.
51774         * modules/unictype/category-C-tests: Likewise.
51775         * modules/unictype/category-Cc-tests: Likewise.
51776         * modules/unictype/category-Cf-tests: Likewise.
51777         * modules/unictype/category-Cn-tests: Likewise.
51778         * modules/unictype/category-Co-tests: Likewise.
51779         * modules/unictype/category-Cs-tests: Likewise.
51780         * modules/unictype/category-L-tests: Likewise.
51781         * modules/unictype/category-Ll-tests: Likewise.
51782         * modules/unictype/category-Lm-tests: Likewise.
51783         * modules/unictype/category-Lo-tests: Likewise.
51784         * modules/unictype/category-Lt-tests: Likewise.
51785         * modules/unictype/category-Lu-tests: Likewise.
51786         * modules/unictype/category-M-tests: Likewise.
51787         * modules/unictype/category-Mc-tests: Likewise.
51788         * modules/unictype/category-Me-tests: Likewise.
51789         * modules/unictype/category-Mn-tests: Likewise.
51790         * modules/unictype/category-N-tests: Likewise.
51791         * modules/unictype/category-Nd-tests: Likewise.
51792         * modules/unictype/category-Nl-tests: Likewise.
51793         * modules/unictype/category-No-tests: Likewise.
51794         * modules/unictype/category-P-tests: Likewise.
51795         * modules/unictype/category-Pc-tests: Likewise.
51796         * modules/unictype/category-Pd-tests: Likewise.
51797         * modules/unictype/category-Pe-tests: Likewise.
51798         * modules/unictype/category-Pf-tests: Likewise.
51799         * modules/unictype/category-Pi-tests: Likewise.
51800         * modules/unictype/category-Po-tests: Likewise.
51801         * modules/unictype/category-Ps-tests: Likewise.
51802         * modules/unictype/category-S-tests: Likewise.
51803         * modules/unictype/category-Sc-tests: Likewise.
51804         * modules/unictype/category-Sk-tests: Likewise.
51805         * modules/unictype/category-Sm-tests: Likewise.
51806         * modules/unictype/category-So-tests: Likewise.
51807         * modules/unictype/category-Z-tests: Likewise.
51808         * modules/unictype/category-Zl-tests: Likewise.
51809         * modules/unictype/category-Zp-tests: Likewise.
51810         * modules/unictype/category-Zs-tests: Likewise.
51811         * modules/unictype/category-and-not-tests: Likewise.
51812         * modules/unictype/category-and-tests: Likewise.
51813         * modules/unictype/category-byname-tests: Likewise.
51814         * modules/unictype/category-name-tests: Likewise.
51815         * modules/unictype/category-none-tests: Likewise.
51816         * modules/unictype/category-of-tests: Likewise.
51817         * modules/unictype/category-or-tests: Likewise.
51818         * modules/unictype/category-test-withtable-tests: Likewise.
51819         * modules/unictype/combining-class-tests: Likewise.
51820         * modules/unictype/ctype-alnum-tests: Likewise.
51821         * modules/unictype/ctype-alpha-tests: Likewise.
51822         * modules/unictype/ctype-blank-tests: Likewise.
51823         * modules/unictype/ctype-cntrl-tests: Likewise.
51824         * modules/unictype/ctype-digit-tests: Likewise.
51825         * modules/unictype/ctype-graph-tests: Likewise.
51826         * modules/unictype/ctype-lower-tests: Likewise.
51827         * modules/unictype/ctype-print-tests: Likewise.
51828         * modules/unictype/ctype-punct-tests: Likewise.
51829         * modules/unictype/ctype-space-tests: Likewise.
51830         * modules/unictype/ctype-upper-tests: Likewise.
51831         * modules/unictype/ctype-xdigit-tests: Likewise.
51832         * modules/unictype/decimal-digit-tests: Likewise.
51833         * modules/unictype/digit-tests: Likewise.
51834         * modules/unictype/mirror-tests: Likewise.
51835         * modules/unictype/numeric-tests: Likewise.
51836         * modules/unictype/property-alphabetic-tests: Likewise.
51837         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
51838         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
51839         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
51840         * modules/unictype/property-bidi-block-separator-tests: Likewise.
51841         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
51842         * modules/unictype/property-bidi-common-separator-tests: Likewise.
51843         * modules/unictype/property-bidi-control-tests: Likewise.
51844         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
51845         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
51846         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
51847         * modules/unictype/property-bidi-european-digit-tests: Likewise.
51848         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
51849         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
51850         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
51851         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
51852         * modules/unictype/property-bidi-pdf-tests: Likewise.
51853         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
51854         * modules/unictype/property-bidi-whitespace-tests: Likewise.
51855         * modules/unictype/property-byname-tests: Likewise.
51856         * modules/unictype/property-combining-tests: Likewise.
51857         * modules/unictype/property-composite-tests: Likewise.
51858         * modules/unictype/property-currency-symbol-tests: Likewise.
51859         * modules/unictype/property-dash-tests: Likewise.
51860         * modules/unictype/property-decimal-digit-tests: Likewise.
51861         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
51862         * modules/unictype/property-deprecated-tests: Likewise.
51863         * modules/unictype/property-diacritic-tests: Likewise.
51864         * modules/unictype/property-extender-tests: Likewise.
51865         * modules/unictype/property-format-control-tests: Likewise.
51866         * modules/unictype/property-grapheme-base-tests: Likewise.
51867         * modules/unictype/property-grapheme-extend-tests: Likewise.
51868         * modules/unictype/property-grapheme-link-tests: Likewise.
51869         * modules/unictype/property-hex-digit-tests: Likewise.
51870         * modules/unictype/property-hyphen-tests: Likewise.
51871         * modules/unictype/property-id-continue-tests: Likewise.
51872         * modules/unictype/property-id-start-tests: Likewise.
51873         * modules/unictype/property-ideographic-tests: Likewise.
51874         * modules/unictype/property-ids-binary-operator-tests: Likewise.
51875         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
51876         * modules/unictype/property-ignorable-control-tests: Likewise.
51877         * modules/unictype/property-iso-control-tests: Likewise.
51878         * modules/unictype/property-join-control-tests: Likewise.
51879         * modules/unictype/property-left-of-pair-tests: Likewise.
51880         * modules/unictype/property-line-separator-tests: Likewise.
51881         * modules/unictype/property-logical-order-exception-tests: Likewise.
51882         * modules/unictype/property-lowercase-tests: Likewise.
51883         * modules/unictype/property-math-tests: Likewise.
51884         * modules/unictype/property-non-break-tests: Likewise.
51885         * modules/unictype/property-not-a-character-tests: Likewise.
51886         * modules/unictype/property-numeric-tests: Likewise.
51887         * modules/unictype/property-other-alphabetic-tests: Likewise.
51888         * modules/unictype/property-other-default-ignorable-code-point-tests:
51889         Likewise.
51890         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
51891         * modules/unictype/property-other-id-continue-tests: Likewise.
51892         * modules/unictype/property-other-id-start-tests: Likewise.
51893         * modules/unictype/property-other-lowercase-tests: Likewise.
51894         * modules/unictype/property-other-math-tests: Likewise.
51895         * modules/unictype/property-other-uppercase-tests: Likewise.
51896         * modules/unictype/property-paired-punctuation-tests: Likewise.
51897         * modules/unictype/property-paragraph-separator-tests: Likewise.
51898         * modules/unictype/property-pattern-syntax-tests: Likewise.
51899         * modules/unictype/property-pattern-white-space-tests: Likewise.
51900         * modules/unictype/property-private-use-tests: Likewise.
51901         * modules/unictype/property-punctuation-tests: Likewise.
51902         * modules/unictype/property-quotation-mark-tests: Likewise.
51903         * modules/unictype/property-radical-tests: Likewise.
51904         * modules/unictype/property-sentence-terminal-tests: Likewise.
51905         * modules/unictype/property-soft-dotted-tests: Likewise.
51906         * modules/unictype/property-space-tests: Likewise.
51907         * modules/unictype/property-terminal-punctuation-tests: Likewise.
51908         * modules/unictype/property-test-tests: Likewise.
51909         * modules/unictype/property-titlecase-tests: Likewise.
51910         * modules/unictype/property-unassigned-code-value-tests: Likewise.
51911         * modules/unictype/property-unified-ideograph-tests: Likewise.
51912         * modules/unictype/property-uppercase-tests: Likewise.
51913         * modules/unictype/property-variation-selector-tests: Likewise.
51914         * modules/unictype/property-white-space-tests: Likewise.
51915         * modules/unictype/property-xid-continue-tests: Likewise.
51916         * modules/unictype/property-xid-start-tests: Likewise.
51917         * modules/unictype/property-zero-width-tests: Likewise.
51918         * modules/unictype/scripts-tests: Likewise.
51919         * modules/unictype/syntax-c-ident-tests: Likewise.
51920         * modules/unictype/syntax-c-whitespace-tests: Likewise.
51921         * modules/unictype/syntax-java-ident-tests: Likewise.
51922         * modules/unictype/syntax-java-whitespace-tests: Likewise.
51923         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
51924         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
51925         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
51926         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
51927         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
51928         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
51929         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
51930         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
51931         * modules/uniname/uniname-tests: Likewise.
51932         * modules/uninorm/canonical-decomposition-tests: Likewise.
51933         * modules/uninorm/compat-decomposition-tests: Likewise.
51934         * modules/uninorm/composition-tests: Likewise.
51935         * modules/uninorm/decomposing-form-tests: Likewise.
51936         * modules/uninorm/decomposition-tests: Likewise.
51937         * modules/uninorm/filter-tests: Likewise.
51938         * modules/uninorm/nfc-tests: Likewise.
51939         * modules/uninorm/nfd-tests: Likewise.
51940         * modules/uninorm/nfkc-tests: Likewise.
51941         * modules/uninorm/nfkd-tests: Likewise.
51942         * modules/uninorm/u8-normcmp-tests: Likewise.
51943         * modules/uninorm/u8-normcoll-tests: Likewise.
51944         * modules/uninorm/u16-normcmp-tests: Likewise.
51945         * modules/uninorm/u16-normcoll-tests: Likewise.
51946         * modules/uninorm/u32-normcmp-tests: Likewise.
51947         * modules/uninorm/u32-normcoll-tests: Likewise.
51948         * modules/unistdio/u8-asnprintf-tests: Likewise.
51949         * modules/unistdio/u8-vasnprintf-tests: Likewise.
51950         * modules/unistdio/u8-vasprintf-tests: Likewise.
51951         * modules/unistdio/u8-vsnprintf-tests: Likewise.
51952         * modules/unistdio/u8-vsprintf-tests: Likewise.
51953         * modules/unistdio/u16-asnprintf-tests: Likewise.
51954         * modules/unistdio/u16-vasnprintf-tests: Likewise.
51955         * modules/unistdio/u16-vasprintf-tests: Likewise.
51956         * modules/unistdio/u16-vsnprintf-tests: Likewise.
51957         * modules/unistdio/u16-vsprintf-tests: Likewise.
51958         * modules/unistdio/u32-asnprintf-tests: Likewise.
51959         * modules/unistdio/u32-vasnprintf-tests: Likewise.
51960         * modules/unistdio/u32-vasprintf-tests: Likewise.
51961         * modules/unistdio/u32-vsnprintf-tests: Likewise.
51962         * modules/unistdio/u32-vsprintf-tests: Likewise.
51963         * modules/unistdio/ulc-asnprintf-tests: Likewise.
51964         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
51965         * modules/unistdio/ulc-vasprintf-tests: Likewise.
51966         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
51967         * modules/unistdio/ulc-vsprintf-tests: Likewise.
51968         * modules/unistr/u8-check-tests: Likewise.
51969         * modules/unistr/u8-chr-tests: Likewise.
51970         * modules/unistr/u8-cmp-tests: Likewise.
51971         * modules/unistr/u8-cmp2-tests: Likewise.
51972         * modules/unistr/u8-cpy-alloc-tests: Likewise.
51973         * modules/unistr/u8-cpy-tests: Likewise.
51974         * modules/unistr/u8-mblen-tests: Likewise.
51975         * modules/unistr/u8-mbsnlen-tests: Likewise.
51976         * modules/unistr/u8-mbtouc-tests: Likewise.
51977         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
51978         * modules/unistr/u8-mbtoucr-tests: Likewise.
51979         * modules/unistr/u8-move-tests: Likewise.
51980         * modules/unistr/u8-next-tests: Likewise.
51981         * modules/unistr/u8-prev-tests: Likewise.
51982         * modules/unistr/u8-set-tests: Likewise.
51983         * modules/unistr/u8-stpcpy-tests: Likewise.
51984         * modules/unistr/u8-stpncpy-tests: Likewise.
51985         * modules/unistr/u8-strcat-tests: Likewise.
51986         * modules/unistr/u8-strcmp-tests: Likewise.
51987         * modules/unistr/u8-strcoll-tests: Likewise.
51988         * modules/unistr/u8-strcpy-tests: Likewise.
51989         * modules/unistr/u8-strdup-tests: Likewise.
51990         * modules/unistr/u8-strlen-tests: Likewise.
51991         * modules/unistr/u8-strmblen-tests: Likewise.
51992         * modules/unistr/u8-strmbtouc-tests: Likewise.
51993         * modules/unistr/u8-strncat-tests: Likewise.
51994         * modules/unistr/u8-strncmp-tests: Likewise.
51995         * modules/unistr/u8-strncpy-tests: Likewise.
51996         * modules/unistr/u8-strnlen-tests: Likewise.
51997         * modules/unistr/u8-to-u16-tests: Likewise.
51998         * modules/unistr/u8-to-u32-tests: Likewise.
51999         * modules/unistr/u8-uctomb-tests: Likewise.
52000         * modules/unistr/u16-check-tests: Likewise.
52001         * modules/unistr/u16-chr-tests: Likewise.
52002         * modules/unistr/u16-cmp-tests: Likewise.
52003         * modules/unistr/u16-cmp2-tests: Likewise.
52004         * modules/unistr/u16-cpy-alloc-tests: Likewise.
52005         * modules/unistr/u16-cpy-tests: Likewise.
52006         * modules/unistr/u16-mblen-tests: Likewise.
52007         * modules/unistr/u16-mbsnlen-tests: Likewise.
52008         * modules/unistr/u16-mbtouc-tests: Likewise.
52009         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
52010         * modules/unistr/u16-mbtoucr-tests: Likewise.
52011         * modules/unistr/u16-move-tests: Likewise.
52012         * modules/unistr/u16-next-tests: Likewise.
52013         * modules/unistr/u16-prev-tests: Likewise.
52014         * modules/unistr/u16-set-tests: Likewise.
52015         * modules/unistr/u16-stpcpy-tests: Likewise.
52016         * modules/unistr/u16-stpncpy-tests: Likewise.
52017         * modules/unistr/u16-strcat-tests: Likewise.
52018         * modules/unistr/u16-strcmp-tests: Likewise.
52019         * modules/unistr/u16-strcoll-tests: Likewise.
52020         * modules/unistr/u16-strcpy-tests: Likewise.
52021         * modules/unistr/u16-strdup-tests: Likewise.
52022         * modules/unistr/u16-strlen-tests: Likewise.
52023         * modules/unistr/u16-strmblen-tests: Likewise.
52024         * modules/unistr/u16-strmbtouc-tests: Likewise.
52025         * modules/unistr/u16-strncat-tests: Likewise.
52026         * modules/unistr/u16-strncmp-tests: Likewise.
52027         * modules/unistr/u16-strncpy-tests: Likewise.
52028         * modules/unistr/u16-strnlen-tests: Likewise.
52029         * modules/unistr/u16-to-u32-tests: Likewise.
52030         * modules/unistr/u16-to-u8-tests: Likewise.
52031         * modules/unistr/u16-uctomb-tests: Likewise.
52032         * modules/unistr/u32-check-tests: Likewise.
52033         * modules/unistr/u32-chr-tests: Likewise.
52034         * modules/unistr/u32-cmp-tests: Likewise.
52035         * modules/unistr/u32-cmp2-tests: Likewise.
52036         * modules/unistr/u32-cpy-alloc-tests: Likewise.
52037         * modules/unistr/u32-cpy-tests: Likewise.
52038         * modules/unistr/u32-mblen-tests: Likewise.
52039         * modules/unistr/u32-mbsnlen-tests: Likewise.
52040         * modules/unistr/u32-mbtouc-tests: Likewise.
52041         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
52042         * modules/unistr/u32-mbtoucr-tests: Likewise.
52043         * modules/unistr/u32-move-tests: Likewise.
52044         * modules/unistr/u32-next-tests: Likewise.
52045         * modules/unistr/u32-prev-tests: Likewise.
52046         * modules/unistr/u32-set-tests: Likewise.
52047         * modules/unistr/u32-stpcpy-tests: Likewise.
52048         * modules/unistr/u32-stpncpy-tests: Likewise.
52049         * modules/unistr/u32-strcat-tests: Likewise.
52050         * modules/unistr/u32-strcmp-tests: Likewise.
52051         * modules/unistr/u32-strcoll-tests: Likewise.
52052         * modules/unistr/u32-strcpy-tests: Likewise.
52053         * modules/unistr/u32-strdup-tests: Likewise.
52054         * modules/unistr/u32-strlen-tests: Likewise.
52055         * modules/unistr/u32-strmblen-tests: Likewise.
52056         * modules/unistr/u32-strmbtouc-tests: Likewise.
52057         * modules/unistr/u32-strncat-tests: Likewise.
52058         * modules/unistr/u32-strncmp-tests: Likewise.
52059         * modules/unistr/u32-strncpy-tests: Likewise.
52060         * modules/unistr/u32-strnlen-tests: Likewise.
52061         * modules/unistr/u32-to-u16-tests: Likewise.
52062         * modules/unistr/u32-to-u8-tests: Likewise.
52063         * modules/unistr/u32-uctomb-tests: Likewise.
52064         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
52065         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
52066         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
52067         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
52068         * modules/uniwidth/u8-strwidth-tests: Likewise.
52069         * modules/uniwidth/u8-width-tests: Likewise.
52070         * modules/uniwidth/u16-strwidth-tests: Likewise.
52071         * modules/uniwidth/u16-width-tests: Likewise.
52072         * modules/uniwidth/u32-strwidth-tests: Likewise.
52073         * modules/uniwidth/u32-width-tests: Likewise.
52074         * modules/uniwidth/width-tests: Likewise.
52076 2010-05-18  Richard Jones  <rjones@redhat.com>
52078         doc: users.txt: list hivex
52079         * users.txt: Add hivex.
52081 2010-05-18  Richard Jones  <rjones@redhat.com>
52083         doc: users.txt: list febootstrap
52084         * users.txt: Add febootstrap.
52086 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
52088         bootstrap: fix an error when gnulib is not used as a git submodule
52089         * build-aux/bootstrap (gnulib_path): If its length is zero then
52090         assign "gnulib" to it.
52091         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
52093 2010-05-16  Bruno Haible  <bruno@clisp.org>
52095         Avoid autoconf warnings about AM_ICONV.
52096         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
52097         2.64.
52099 2010-05-16  Bruno Haible  <bruno@clisp.org>
52101         absolute-header: Make the macro usable in more situations.
52102         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
52103         from gl_ABSOLUTE_HEADER.
52104         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
52106 2010-05-16  James Youngman  <jay@gnu.org>
52108         doc: update users.txt
52109         * users.txt: Add CSSC.
52111 2010-05-16  Jim Meyering  <meyering@redhat.com>
52113         init.sh: fix an error in the previous change; add more comments
52114         * tests/init.sh: Compare exit code in loop against 9, not 2.
52115         Patch by Bruno Haible.
52116         Make the two tests more similar by adding an empty "then" clause.
52117         Add comments.
52119         init.sh: avoid unnecessary shell re-exec
52120         * tests/init.sh: Improve the re-exec-required check to first test the
52121         current shell.  If it passes the test, do not search for a shell that
52122         does pass, and do not re-exec.  This test is particularly contorted to
52123         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
52124         of $(...) evokes a syntax error and causes immediate shell exit with
52125         status 2.  Bruno Haible reported that the re-exec made it impossible
52126         to single-step through any init.sh-using script.
52128 2010-05-16  Bruno Haible  <bruno@clisp.org>
52130         Fix collision between gnulib's and libintl's printf replacements.
52131         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
52132         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
52133         (printf): When using GNU C, map the __printf__ function to rpl_printf
52134         via __asm__. When not using GNU C, define rpl_printf instead of
52135         __printf__.
52136         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
52137         commit.
52138         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
52139         commit.
52140         * m4/asm-underscore.m4: New file.
52141         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
52142         * modules/stdio (Files): Add m4/asm-underscore.m4.
52143         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
52144         Reported by Ben Pfaff.
52146 2010-05-16  Bruno Haible  <bruno@clisp.org>
52148         verify: Avoid skipping the test on openSUSE 11.0.
52149         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
52151 2010-05-13  Bruno Haible  <bruno@clisp.org>
52153         Avoid useless warnings from G++.
52154         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
52155         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
52156         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52158 2010-05-11  Jim Meyering  <meyering@redhat.com>
52160         maint.mk: tweak preceding change
52161         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
52162         regexps tighter by anchoring at EOL, and make the new group "shy"
52163         for slightly decreased overhead.
52165 2010-05-11  Eric Blake  <eblake@redhat.com>
52167         maint.mk: gnulib doesn't guarantee NSIG
52168         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
52170 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
52172         test-pwrite.c: Remove unused variable declaration.
52173         * tests/test-pwrite.c (main): Remove read_buf declaration.
52175         Remove useless test-pwrite.sh file.
52176         * tests/test-pwrite.sh: Delete file.
52177         * modules/pwrite-tests: Remove references.
52178         Reported by Bruno Haible.
52180 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
52182         init.sh: fix a typo
52183         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
52185 2010-05-10  Jim Meyering  <meyering@redhat.com>
52187         maint.mk: avoid using a temporary file in the always-defined-macros check
52188         * top/maint.mk (.re-defmac): Remove rule.
52189         (gl_trap_): Remove definition.
52190         (sc_prohibit_always-defined_macros): Rewrite not to create and
52191         depend on a temporary file.  Instead, depend on GNU grep's ability
52192         to read a list of regular expressions from stdin when given "-f -".
52194 2010-05-09  Bruno Haible  <bruno@clisp.org>
52196         Update to GNU gettext 0.18, part 1.
52197         * m4/gettext.m4: Update to GNU gettext 0.18.
52198         * m4/intl.m4: Likewise.
52199         * m4/po.m4: Likewise.
52200         * modules/gettext (Files): Add m4/fcntl-o.m4.
52201         (configure.ac): Require gettext infrastructure from version 0.18.
52203 2010-05-09  Jim Meyering  <meyering@redhat.com>
52205         init.sh: enable MALLOC_PERTURB_
52206         * tests/init.sh: Enable glibc's malloc-perturbing option.
52208         maint.mk: improve sc_cross_check_PATH_usage_in_tests
52209         With my recent change in init.sh from the two-line form:
52210             -#   : ${srcdir=.}
52211             -#   . "$srcdir/init.sh"; path_prepend_ .
52212             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
52213         I noticed that using the one-line form would cause this test
52214         to fail with a false-positive, or to stop working altogether,
52215         depending on whether help-version changed or all the tests did.
52216         * top/maint.mk (_hv_regex): Remove this definition.
52217         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
52218         (_hv_regex_strong): Use a stronger regex to check for conformance.
52219         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
52220         Give a separate diagnostic for lack of conforming use.
52222         maint.mk: prohibit definition of symbols defined by gnulib
52223         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
52224         definition of symbols defined by gnulib.
52226 2010-05-09  Bruno Haible  <bruno@clisp.org>
52228         acl: Avoid test failure on Cygwin-hosted mingw.
52229         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
52231 2010-05-09  Bruno Haible  <bruno@clisp.org>
52233         error: Use system's fcntl function.
52234         * lib/error.c (fcntl): Undefine.
52236 2010-05-09  Jim Meyering  <meyering@redhat.com>
52238         verify: adjust formatting to be more consistent
52239         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
52240         argument-list '('s, and after one comma.
52242 2010-05-09  Bruno Haible  <bruno@clisp.org>
52244         error: More reliable output on mingw.
52245         * lib/error.c: Include <windows.h>.
52246         (is_open): New function.
52247         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
52248         defined.
52250 2010-05-09  Bruno Haible  <bruno@clisp.org>
52252         vasnprintf: Fix syntax errors in libintl build on mingw.
52253         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
52254         pad_ourselves and prec_ourselves after use.
52256 2010-05-08  Bruno Haible  <bruno@clisp.org>
52258         * lib/config.charset: Update comments for Cygwin 1.7.
52259         * lib/localcharset.c: Likewise.
52261 2010-05-07  Jim Meyering  <meyering@redhat.com>
52263         init.sh: improve comments
52264         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
52265         . "${srcdir=.}/init.sh"; path_prepend_ .
52266         Add a note about path_prepend_ and the alternative of using
52267         TESTS_ENVIRONMENT.
52269 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
52271         exclude: Unescape hashed patterns in wildcard mode.
52272         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
52273         to the hash list.
52274         * tests/test-exclude8.sh: New test case.
52275         * modules/exclude-tests: Add new test.
52277 2010-05-05  Eric Blake  <eblake@redhat.com>
52279         verify: automate tests
52280         * modules/verify-tests: New module.
52281         * tests/test-verify.sh: New file.
52282         * tests/test-verify.c: Guard each negative test with a unique id.
52283         Also avoid warning about unused left hand of comma expressions.
52285 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52287         Further improvements to verify.h, suggested by Eric Blake.
52288         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
52289         the GL_* versions, to avoid collision with OpenGL.
52290         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
52291         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
52292         than testing merely whether it's defined.
52294         Modify verify.h to pacify gcc -Wredundant_decls.
52295         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
52296         These use the prefix "GL_" since they're likely to be useful elsewhere.
52297         We may need to break them out into a different .h file.
52298         (__COUNTER__): Define to 0 if the compiler doesn't support it.
52299         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
52300         of verify_function__.
52302 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52304         Tests for module pwrite.
52305         * modules/pwrite-tests: New file.
52306         * tests/test-pwrite.sh: New file.
52307         * tests/test-pwrite.c: New file.
52309         New module pwrite.
52310         * lib/unistd.in.h (pwrite): New declaration.
52311         * lib/pwrite.c: New file, from glibc with modifications.
52312         * m4/pwrite.m4: New file.
52313         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
52314         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
52315         REPLACE_PWRITE.
52316         * modules/pwrite: New file.
52317         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
52318         REPLACE_PWRITE.
52319         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
52320         * doc/posix-functions/pwrite.texi: Mention the new module.
52322 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52324         pread: Update documentation.
52325         * doc/posix-functions/pread.texi: Mention the 'pread' module.
52327 2010-05-04  Eric Blake  <eblake@redhat.com>
52329         docs: update cygwin progress
52330         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
52331         this bug.
52332         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
52333         Added in cygwin 1.7.2.
52334         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
52335         Likewise.
52336         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
52337         Likewise.
52338         * doc/glibc-functions/dup3.texi (dup3): Likewise.
52339         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
52340         * doc/glibc-functions/accept4.texi (accept4): Likewise.
52341         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
52342         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
52343         Mention nproc module.
52344         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
52345         bug in cygwin 1.7.5 addition.
52346         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
52347         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
52348         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
52349         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
52350         1.7.5.
52351         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
52352         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
52353         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
52354         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
52355         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
52356         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
52357         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
52358         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
52359         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
52360         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
52361         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
52362         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
52363         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
52364         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
52365         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
52366         Likewise.
52367         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
52368         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
52369         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
52370         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
52371         Likewise.
52372         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
52373         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
52374         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
52375         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
52376         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
52377         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
52378         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
52379         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
52380         Likewise.
52381         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
52382         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
52383         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
52384         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
52385         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
52386         Likewise.
52387         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
52388         Likewise.
52389         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
52390         Likewise.
52391         * doc/glibc-functions/xdrrec_endofrecord.texi
52392         (xdrrec_endofrecord): Likewise.
52393         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
52394         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
52395         Likewise.
52396         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
52397         Likewise.
52399 2010-05-04  Jim Meyering  <meyering@redhat.com>
52401         gendocs.sh: make its "-s FILE" option more useful
52402         * build-aux/gendocs.sh: When honoring the -s FILE option, update
52403         $PACKAGE to reflect the probably-different basename of "FILE".
52405 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
52407         bootstrap: don't ignore download_po_files failure
52408         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
52409         failure.
52411 2010-05-03  Jim Meyering  <meyering@redhat.com>
52413         maint.mk: allow to pass options to gendocs.sh
52414         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
52415         (gendocs_options_): New overridable variable.
52417         gnu-web-doc-update: don't ignore configure or build failure
52418         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
52420         announce-gen: backslash-escape '@'s in --help output
52421         * build-aux/announce-gen: Fix syntax errors.
52423         maint.mk, announce-gen: allow project-specific announcement mail headers
52424         * top/maint.mk (translation_project_): Define default.
52425         (announcement_Cc_, announcement_mail_headers_): Likewise.
52426         (announcement): Invoke announce-gen with new --mail-headers option.
52427         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
52429         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
52430         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
52431         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
52432         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
52433         line in the "err2" output file when running "make check" in verbose
52434         mode (i.e., with set -x enabled).
52436 2010-05-03  Bruno Haible  <bruno@clisp.org>
52438         wctob: Fix for weird platforms.
52439         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
52440         argument value.
52442 2010-05-03  Jim Meyering  <meyering@redhat.com>
52444         maint.mk: prohibit unwarranted use of <strings.h>
52445         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
52446         strings.h in a file that does not also use strcasecmp, strncasecmp,
52447         ffs or ffsll.
52449         maint.mk: remove obsolete comments
52450         * top/maint.mk: Remove stale, commented-out rules.
52452 2010-05-02  Bruno Haible  <bruno@clisp.org>
52454         wcwidth: Declare also when it's aliased.
52455         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
52456         macro.
52458 2010-05-02  Bruno Haible  <bruno@clisp.org>
52460         Fix regression from 2010-04-25.
52461         * gnulib-tool (func_modules_transitive_closure): Check the status of
52462         all modules, not only of the tests that are of the form foo-tests where
52463         foo is a module.
52465 2010-05-02  Bruno Haible  <bruno@clisp.org>
52467         wctob: Work around nasty Cygwin 1.7.2 bug.
52468         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
52469         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
52471 2010-05-01  Bruno Haible  <bruno@clisp.org>
52473         fpurge: Sharper test.
52474         * tests/test-fpurge.c (main): Add one more ftell check.
52475         * modules/fpurge-tests (Depends-on): Add ftell.
52476         Suggested by Eric Blake.
52478 2010-05-01  Bruno Haible  <bruno@clisp.org>
52480         ftello: Another test.
52481         * tests/test-ftello3.c: New file.
52482         * modules/ftello-tests (Files): Add it.
52483         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
52484         MOSTLYCLEANFILES.
52486         ftell: Another test.
52487         * tests/test-ftell3.c: New file.
52488         * modules/ftell-tests (Files): Add it.
52489         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
52490         MOSTLYCLEANFILES.
52492 2010-05-01  Bruno Haible  <bruno@clisp.org>
52494         ftell, ftello: Work around Solaris bug.
52495         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
52496         * lib/ftello.c: Include stdio-impl.h.
52497         (ftello): On Solaris, when _IOWRT is set, compute the result without
52498         looking at _IOREAD.
52499         * modules/ftello (Files): Add lib/stdio-impl.h.
52500         * doc/posix-functions/ftell.texi: Mention Solaris bug.
52501         * doc/posix-functions/ftello.texi: Likewise.
52502         Reported by Eric Blake.
52504 2010-05-01  Bruno Haible  <bruno@clisp.org>
52506         freading: Adapt to special meaning of _IOREAD flag on Solaris.
52507         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
52508         the _IOWRT flag is also set.
52510 2010-05-01  Bruno Haible  <bruno@clisp.org>
52512         Fix doc about a HP-UX stdio bug.
52513         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
52514         * doc/posix-functions/ftello.texi: Likewise.
52516 2010-05-01  Bruno Haible  <bruno@clisp.org>
52518         lseek test: Fix failure on Solaris.
52519         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
52520         output.
52522 2010-04-30  Jim Meyering  <meyering@redhat.com>
52524         bootstrap: don't ignore failure to generate po*/Makevars
52525         * build-aux/bootstrap (with_gettext): Don't ignore failure
52526         to create po/Makevars or runtime-po/Makevars.
52528 2010-04-29  Eric Blake  <eblake@redhat.com>
52530         headers: relax license to LGPLv2+
52531         * modules/fcntl-h (License): Relax license.
52532         * modules/getopt-posix (License): Likewise.
52533         * modules/locale (License): Likewise.
52534         * modules/math (License): Likewise.
52535         * modules/pty (License): Likewise.
52536         * modules/sched (License): Likewise.
52537         * modules/search (License): Likewise.
52538         * modules/spawn (License): Likewise.
52539         * modules/stdarg (License): Likewise.
52540         * modules/sysexits (License): Likewise.
52542 2010-04-29  Jim Meyering  <meyering@redhat.com>
52544         inttypes: relax license to LGPLv2+
52545         * modules/inttypes (License): Relax license.
52547 2010-04-29  Simon Josefsson  <simon@josefsson.org>
52549         * top/maint.mk (indent): Run twice to produce idempotent results.
52551 2010-04-28  Bruno Haible  <bruno@clisp.org>
52553         getdate: Generate getdate.c in the source directory.
52554         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
52555         MOSTLYCLEANFILES.
52556         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
52558 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
52560         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
52561         is not declared as a const *; avoid warnings in that case.
52563 2010-04-28  Eric Blake  <eblake@redhat.com>
52565         canonicalize-lgpl: avoid compiler warning
52566         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
52567         declaration' / 'extraneous semicolon' warning with some compilers.
52568         Reported by Andreas Gruenbacher.
52570 2010-04-28  Jim Meyering  <meyering@redhat.com>
52572         init.sh: ensure a more reliable exit status when exiting via trap
52573         * tests/init.sh (setup_): Don't rely on $? in signal handler.
52574         Inspired by patches from Dmitry V. Levin.
52575         Also trap on signal 3 (SIGQUIT).
52577 2010-04-27  Bruno Haible  <bruno@clisp.org>
52579         Update doc about utimes().
52580         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
52581         'utimens' module.
52582         Reported by Andreas Gruenbacher <agruen@suse.de>.
52584 2010-04-27  Eric Blake  <eblake@redhat.com>
52586         full-read, full-write: relax license
52587         * modules/full-read (License): Drop to LGPLv2+.
52588         * modules/full-write (License): Likewise.
52589         * modules/safe-read (License): Likewise.
52590         * modules/safe-write (License): Likewise.
52592         pthread: mention library for linking
52593         * modules/pthread (Link): Mention $(LIB_PTHREAD).
52595 2010-04-27  Jim Meyering  <meyering@redhat.com>
52597         maint.mk: fix a bug introduced in last change
52598         * top/maint.mk (gl_assured_headers_): Now that all names are on
52599         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
52600         is not anchored to end of word, it should be adequate.
52602         maint.mk: avoid side-effect in latest syntax-check
52603         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
52604         to run commands via $(shell...), and hence to incur cost only when
52605         the new rule is actually run.
52607         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
52608         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
52609         and use that to create a regexp used to detect all #if HAVE_..._H uses.
52610         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
52611         (gl_assured_headers_, az_, AZ_): Define.
52612         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
52614 2010-04-26  Jim Meyering  <jim@meyering.net>
52615             Bruno Haible  <bruno@clisp.org>
52617         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
52618         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
52619         Prompted by an exchange with Gilles Espinasse.
52621 2010-04-26  Jim Meyering  <meyering@redhat.com>
52623         git-version-gen: aesthetic tweak
52624         * build-aux/git-version-gen: Use "$nl" rather than a literal,
52625         so that the command remains on a single line.
52627 2010-04-26  Eric Blake  <eblake@redhat.com>
52629         git-version-gen: allow use on EBCDIC hosts
52630         * build-aux/git-version-gen (dirty): Use literal rather than tying
52631         ourselves to ascii.
52632         Reported by Steve Goetze.
52634 2010-04-25  Bruno Haible  <bruno@clisp.org>
52636         netdb: Add support for GNULIB_POSIXCHECK.
52637         * lib/netdb.in.h: Include warn-on-use.h.
52638         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
52639         functions are used when GNULIB_POSIXCHECK is defined and the
52640         getaddrinfo module is not in use.
52641         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
52642         freeaddrinfo, gai_strerror, getnameinfo are declared.
52643         * modules/netdb (Depends-on): Add warn-on-use.
52644         (Makefile.am): Include warn-on-use.h in netdb.h.
52646 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
52648         build: avoid "make check" failure without .git/ directory
52649         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
52650         there is no .git/ directory.
52652 2010-04-25  Bruno Haible  <bruno@clisp.org>
52654         ptsname: Fix misuse of ttyname_r.
52655         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
52656         of errno.
52658 2010-04-25  Bruno Haible  <bruno@clisp.org>
52660         ttyname_r: Make it work on Solaris 10.
52661         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
52662         if the system function has the POSIX declaration. Test whether the
52663         function fails if the buffer is less than 128 bytes large.
52664         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
52665         system's ttyname_r function. Provide a reasonably large buffer.
52666         * modules/ttyname_r (Depends-on): Add extensions.
52667         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
52669 2010-04-25  Bruno Haible  <bruno@clisp.org>
52671         Use the 'extensions' module for some more functions on Solaris.
52672         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
52673         module.
52674         * doc/posix-functions/ctime_r.texi: Likewise.
52675         * doc/posix-functions/getgrgid_r.texi: Likewise.
52676         * doc/posix-functions/getgrnam_r.texi: Likewise.
52677         * doc/posix-functions/getpwnam_r.texi: Likewise.
52678         * doc/posix-functions/getpwuid_r.texi: Likewise.
52679         * doc/posix-functions/readdir_r.texi: Likewise.
52680         * doc/posix-functions/sigwait.texi: Likewise.
52681         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
52682         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
52684 2010-04-25  Bruno Haible  <bruno@clisp.org>
52686         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
52687         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
52688         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
52689         * lib/ttyname_r.c: Include <limits.h>.
52690         (ttyname_r): Define using the system's ttyname_r function, if it exists
52691         and not on Solaris.
52692         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
52693         set.
52694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
52695         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
52696         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
52697         Reported by Simon Josefsson.
52699 2010-04-25  Bruno Haible  <bruno@clisp.org>
52701         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
52702         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
52703         * doc/posix-functions/ctime_r.texi: Likewise.
52704         * doc/posix-functions/getgrgid_r.texi: Likewise.
52705         * doc/posix-functions/getgrnam_r.texi: Likewise.
52706         * doc/posix-functions/getlogin_r.texi: Likewise.
52707         * doc/posix-functions/getpwnam_r.texi: Likewise.
52708         * doc/posix-functions/getpwuid_r.texi: Likewise.
52709         * doc/posix-functions/readdir_r.texi: Likewise.
52710         * doc/posix-functions/sigwait.texi: Likewise.
52711         * doc/posix-functions/ttyname_r.texi: Likewise.
52712         Reported by Simon Josefsson.
52714 2010-04-25  Bruno Haible  <bruno@clisp.org>
52716         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
52717         * gnulib-tool (func_usage): Document that --with-*-tests options apply
52718         also to --create-testdir.
52719         (func_acceptable): Don't consider the status of *-tests modules here.
52720         (func_modules_transitive_closure): Consider it here, before including a
52721         test module.
52722         (func_import, func_create_testdir): Set inc_all_direct_tests,
52723         inc_all_indirect_tests.
52724         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
52725         --create-testdir and --create-megatestdir.
52727 2010-04-25  Bruno Haible  <bruno@clisp.org>
52729         gnulib-tool: Add --without-*-tests options.
52730         * gnulib-tool (func_usage): Document the --without-*-tests options.
52731         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
52732         excl_unportable_tests): New variables.
52733         Fail if they are specified with --import or --update.
52734         (func_acceptable): Respect the excl_*_tests variables.
52735         (func_import): Set the excl_*_tests variables to empty.
52737 2010-04-25  Simon Josefsson  <simon@josefsson.org>
52738             Bruno Haible  <bruno@clisp.org>
52740         Work around a MacOS X 10.4 bug with openpty.
52741         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
52742         * tests/test-openpty.c (main): Close the master side explicitly.
52744 2010-04-25  Bruno Haible  <bruno@clisp.org>
52746         strnlen: Fix a C++ test error on MacOS X and Solaris.
52747         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
52748         the function is not declared.
52749         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
52750         Simon Josefsson.
52752 2010-04-24  Bruno Haible  <bruno@clisp.org>
52754         Avoid a gcc warning.
52755         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
52756         of correct type for %08lx directive.
52757         Reported by Eric Blake.
52759 2010-04-24  Bruno Haible  <bruno@clisp.org>
52761         vasnprintf: Correct errno value in case of out-of-memory.
52762         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
52763         or sprintf. Use the errno value from SNPRINTF or sprintf.
52764         Reported by Ian Beckwith <ianb@erislabs.net>.
52766 2010-04-24  Bruno Haible  <bruno@clisp.org>
52768         ansi-c++-opt: Find correct compiler when cross-compiling.
52769         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
52770         AC_CHECK_PROGS.
52771         Reported by Simon Josefsson.
52773 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
52775         vc-list-files: Add support for subversion
52776         * build-aux/vc-list-files: Use "svn list" to generate the list of
52777         files controlled by subversion.
52779 2010-04-23  Jim Meyering  <meyering@redhat.com>
52781         vc-list-files tests: convert to use init.sh
52782         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
52783         path_prepend_.
52784         Use Exit, not exit.
52785         Use skip_ rather than open coding it.
52786         Remove trap set-up and compare definitions.
52787         * tests/test-vc-list-files-git.sh: Likewise.
52788         * modules/vc-list-files-tests (Files): Add tests/init.sh.
52790 2010-04-22  Simon Josefsson  <simon@josefsson.org>
52792         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
52793         backup files.
52795 2010-04-21  Simon Josefsson  <simon@josefsson.org>
52797         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
52799 2010-04-20  Eric Blake  <eblake@redhat.com>
52801         tests: be robust to ignored SIGPIPE
52802         * tests/test-select-in.sh: Consume all output.
52803         * tests/test-lseek.sh: Check correct exit status, while avoiding
52804         EPIPE.
52806 2010-04-20  Simon Josefsson  <simon@josefsson.org>
52807             Bruno Haible  <bruno@clisp.org>
52809         visibility: Don't use -fvisibility if it leads to a warning.
52810         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
52811         yes, don't pretend that visibility works if it leads to a warning.
52812         Reported by Mike Gran <spk121@yahoo.com>.
52814 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
52816         * build-aux/bootstrap: Use "git -h" for testing for supported options
52817         instead of "git --help".  The short-form option only shows a summary,
52818         and doesn't layout the full man page.  Grep for the full option name
52819         in the summary, too.
52821 2010-04-19  Bruno Haible  <bruno@clisp.org>
52823         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
52824         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
52825         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
52826         mention of RELOCATABLE_STRIP.
52827         Reported by Sylvain Beucler <beuc@beuc.net>.
52829 2010-04-19  Bruno Haible  <bruno@clisp.org>
52831         * lib/diffseq.h: Fix typo in comment.
52832         Reported by Eric Blake.
52834 2010-04-19  Bruno Haible  <bruno@clisp.org>
52836         ioctl: Move autoconf macro to a .m4 file.
52837         * m4/ioctl.m4: New file, extracted from modules/ioctl.
52838         * modules/ioctl (Files): Add it.
52839         (configure.ac): Simply invoke gl_FUNC_IOCTL.
52840         Reported by Ian Beckwith <ianb@erislabs.net>.
52842 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
52843             Bruno Haible  <bruno@clisp.org>
52845         diffseq: Accommodate use-case with abstract arrays.
52846         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
52847         is not defined.
52848         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
52849         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
52851 2010-04-18  Bruno Haible  <bruno@clisp.org>
52853         * doc/posix-headers/stdbool.texi: More precise wording.
52855 2010-04-17  Jim Meyering  <meyering@redhat.com>
52857         maint.mk: use gnu-style indentation in an embedded perl script
52858         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
52859         Rename variable: s/two/last_two_bytes/
52861 2010-04-16  Eric Blake  <eblake@redhat.com>
52863         test-stdbool: skip test that fails with Solaris CC
52864         * tests/test-stdbool.c (f): Skip test that causes compilation
52865         error under buggy C++ compiler.
52866         * lib/stdbool.in.h: Document the limitation.
52867         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
52869         setenv: allow compilation with C++
52870         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
52871         register keyword.
52873         stdint: allow test to pass with C++
52874         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
52876         getopt: allow compilation with C++
52877         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
52878         struct.
52879         * lib/getopt.c (_getopt_internal_r): Use correct type.
52880         Reported by Dagobert Michelson, via Joel E. Denny.
52882 2010-04-16  Bruno Haible  <bruno@clisp.org>
52884         Override netdb.h always.
52885         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
52886         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
52887         Reported by Ludovic Courtès <ludo@gnu.org>.
52889 2010-04-15  Bruno Haible  <bruno@clisp.org>
52891         openpty: Fix mistake from 2010-03-21.
52892         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
52893         Reported by Simon Josefsson.
52895 2010-04-15  Eric Blake  <eblake@redhat.com>
52897         test-forkpty: fix expected signature
52898         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
52899         Reported by Simon Josefsson.
52901 2010-04-15  Jim Meyering  <meyering@redhat.com>
52903         maint.mk: texinfo_suffix_re_: correct the default regexp
52904         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
52906         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
52907         make it configurable via texinfo_suffix_re_.
52909 2010-04-14  Eric Blake  <eblake@redhat.com>
52911         strtok_r: relax license to LGPLv2+
52912         * modules/strtok_r (License): Relax license.
52913         Reported by Matthias Bolte.
52915 2010-04-14  Simon Josefsson  <simon@josefsson.org>
52917         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
52918         version 1.4.4 by default instead of requiring the libgcrypt
52919         version used during build.  This makes it possible to use the
52920         application with older but still binary compatible libgcrypt
52921         versions.
52923 2010-04-13  Eric Blake  <eblake@redhat.com>
52925         getopt-gnu: match recent glibc fixes and posix ruling
52926         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
52927         '+' handling, when requesting extensions.
52928         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
52929         'W;' handling.
52930         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
52931         * doc/posix-functions/getopt.texi (getopt): Document this.
52932         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
52933         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
52934         Likewise.
52936         getopt: merge bug fixes from glibc
52937         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
52938         diagnostics.  Honor '+:' correctly.  Reject ';'.
52940         getopt-posix: detect MacOS bug
52941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
52942         optind when missing a required argument.
52943         * doc/posix-functions/getopt.texi (getopt): Document the bug.
52944         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
52945         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
52946         Likewise.
52948         getopt-posix: avoid spurious failure on Solaris
52949         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
52950         an indicator that setting optind=1 is sufficient for reset.
52952         getopt-posix: avoid spurious failure on FreeBSD
52953         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
52954         in POSIX mode, since the m4 test uses it.
52956         gnulib-tool: silence warning on BSD sh
52957         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
52959 2010-04-13  Jim Meyering  <meyering@redhat.com>
52961         doc: users.txt: GNU patch now uses gnulib
52962         * users.txt: Add patch.
52964 2010-04-12  Jim Meyering  <meyering@redhat.com>
52966         maint.mk: generate more concise timing data for syntax-check rules
52967         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
52968         " done" from each line that reports a syntax-check test duration.
52970 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
52972         git-version-gen: use "git update-index..." rather than "git status"
52973         * build-aux/git-version-gen: Use git update-index --refresh, not
52974         "git status".  With some versions of git, "git status" would fail
52975         to update the index and result in an unwarranted "-dirty" suffix.
52977 2010-04-11  Jim Meyering  <meyering@redhat.com>
52979         openat: correct formatting (no semantic change)
52980         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
52981         Suggested by Bruno Haible.
52983 2010-04-11  Bruno Haible  <bruno@clisp.org>
52985         Stricter declaration checking in testdirs.
52986         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52987         If for_tests is true, augment AM_CPPFLAGS to define
52988         GNULIB_STRICT_CHECKING.
52989         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
52990         GNULIB_STRICT_CHECKING is defined, verify that the function is
52991         declared.
52993 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
52994             Bruno Haible  <bruno@clisp.org>
52996         libunistring: Improve configure output.
52997         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
52998         Don't say "consider installing GNU libunistring" when checking again
52999         with libiconv.
53001 2010-04-11  Bruno Haible  <bruno@clisp.org>
53003         libunistring: Correct value of $LTLIBUNISTRING.
53004         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
53005         correct the value of $LTLIBUNISTRING.
53007 2010-04-11  Bruno Haible  <bruno@clisp.org>
53009         havelib: Add static libraries to LIBS in the right order.
53010         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
53011         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
53013 2010-04-11  Bruno Haible  <bruno@clisp.org>
53015         libunistring: Detect libunistring also when it depends on libiconv.
53016         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
53017         the second AC_LIB_HAVE_LINKFLAGS invocation.
53019 2010-04-11  James Youngman  <jay@gnu.org>
53021         close-stream: declare local scalars to be "const"
53022         * lib/close-stream.c (close_stream): Make boolean variables const
53023         to document the fact that we set but do not change them.
53025 2010-04-11  Bruno Haible  <bruno@clisp.org>
53027         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
53029 2010-04-11  Jim Meyering  <meyering@redhat.com>
53031         maint.mk: don't include dist-check.mk
53032         * top/maint.mk: Remove bogus include directive.
53034         maint.mk: improve empty-line-at-EOF check
53035         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
53036         solution, rather than tail+Perl-based one.  The latter would read
53037         a few kilobytes from the end of each file, and did not handle empty
53038         files properly.
53040         maint.mk: print the elapsed time for each syntax-check rule
53041         * top/maint.mk (sc_m_rules_): Save start time in a file.
53042         (sc_z_rules_): New rules: remove temp file and print elapsed time.
53043         (local-check): Interpose the .z rules
53045 2010-04-11  Jim Meyering  <meyering@redhat.com>
53047         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
53048         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
53049         empty file with one that ends in an empty line.
53051 2010-04-10  Bruno Haible  <bruno@clisp.org>
53053         mkdir: Make it work on mingw64.
53054         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
53055         * lib/mkdir.c: Update comment.
53056         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
53058 2010-04-10  Bruno Haible  <bruno@clisp.org>
53060         Don't override improved macro from newer autoconf.
53061         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
53062         autoconf >= 2.62.
53063         Reported by Joel E. Denny <jdenny@clemson.edu>.
53065 2010-04-10  Jim Meyering  <meyering@redhat.com>
53067         maint.mk: new syntax-check rule: prohibit empty lines at end of file
53068         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
53070         maint.mk: correct a diagnostic
53071         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
53072         in diagnostic; now use $prohibit.
53074 2010-04-10  Bruno Haible  <address@hidden>
53076         fchownat: Fix a C++ test error on Solaris 8.
53077         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
53078         the function does not exist.
53080 2010-04-10  Bruno Haible  <bruno@clisp.org>
53082         vasnprintf: Add more tests.
53083         * tests/test-vasnprintf-posix.c: Include <errno.h>.
53084         (test_function): Test converting an invalid wide string.
53086         vasnprintf: Correct handling of unconvertible wide string arguments.
53087         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
53088         VASNPRINTF.
53089         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
53090         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
53091         smaller than the expected maximum need for the directive. Set errno to
53092         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
53093         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
53094         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
53095         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
53096         * modules/vasnprintf (Files): Add m4/printf.m4.
53097         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53099 2010-04-10  Bruno Haible  <bruno@clisp.org>
53101         vasnprintf: Fix crash in %ls directive.
53102         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
53103         string is passed as argument to %ls, with no precision and no width.
53104         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53106 2010-04-10  Bruno Haible  <bruno@clisp.org>
53108         vasnprintf: Fix multiple test failures on mingw.
53109         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
53110         _snprintf, or snwprintf, not _snwprintf.
53112 2010-04-10  Bruno Haible  <bruno@clisp.org>
53114         write: Fix a C++ test error on mingw.
53115         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
53117 2010-04-10  Bruno Haible  <bruno@clisp.org>
53119         vasnprintf test: Reduce code duplication.
53120         * tests/test-vasnprintf.c (test_function): New function, extracted from
53121         test_vasnprintf.
53122         (test_vasnprintf, test_asnprintf): Invoke it.
53124 2010-04-10  Bruno Haible  <bruno@clisp.org>
53126         strnlen: Fix warning in C++ mode on MacOS X.
53127         * lib/string.in.h (strnlen): Use the modern idiom.
53128         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
53129         defining strnlen as a macro already in <config.h>.
53130         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53131         REPLACE_STRNLEN.
53132         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
53133         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53135 2010-04-08  James Youngman  <jay@gnu.org>
53137         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
53138         the example.
53140 2010-04-09  Jim Meyering  <meyering@redhat.com>
53142         maint.mk: print better diagnostic when there is no $(_hv_file)
53143         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
53144         announce that when $(_hv_file) (aka help-version) does not exist.
53146         init.sh: run tr in the "C" locale to avoid multibyte interpretation
53147         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
53148         not try to interpret its random input bytes.  Jarno Rajahalme reported
53149         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
53150         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
53151         (mktempd_): Likewise, just in case.
53153         ftruncate: add two years to projected module removal date: 2012
53154         * m4/ftruncate.m4: Adjust comments.
53156         ftruncate: mark module as obsolete; even MinGW provides it, now
53157         * modules/ftruncate (Status): Obsolete.
53158         (Notice): Say that.
53159         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
53160         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
53162 2010-04-08  Bruno Haible  <bruno@clisp.org>
53164         Fix side effects from tests-related modules.
53165         * modules/dprintf-posix (Comment): New section.
53166         * modules/fprintf-posix (Comment): Likewise.
53167         * modules/obstack-printf-posix (Comment): Likewise.
53168         * modules/printf-posix (Comment): Likewise.
53169         * modules/snprintf-posix (Comment): Likewise.
53170         * modules/sprintf-posix (Comment): Likewise.
53171         * modules/vasnprintf-posix (Comment): Likewise.
53172         * modules/vasprintf-posix (Comment): Likewise.
53173         * modules/vdprintf-posix (Comment): Likewise.
53174         * modules/vfprintf-posix (Comment): Likewise.
53175         * modules/vprintf-posix (Comment): Likewise.
53176         * modules/vsnprintf-posix (Comment): Likewise.
53177         * modules/vsprintf-posix (Comment): Likewise.
53178         * modules/xprintf-posix (Comment): Likewise.
53179         * modules/xvasprintf-posix (Comment): Likewise.
53180         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
53181         * modules/floorf-tests (Depends-on): Likewise.
53182         * modules/round-tests (Depends-on): Likewise.
53183         * modules/roundf-tests (Depends-on): Likewise.
53184         * modules/trunc-tests (Depends-on): Likewise.
53185         * modules/truncf-tests (Depends-on): Likewise.
53186         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
53187         'fprintf-posix' module is not present.
53188         * tests/test-floorf2.c (check): Likewise.
53189         * tests/test-trunc2.c (check): Likewise.
53190         * tests/test-truncf2.c (check): Likewise.
53191         * tests/test-round2.c (equal): Likewise.
53192         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53194 2010-04-07  Karl Berry  <karl@gnu.org>
53196         * config/srclist.txt,
53197         * config/srclistvars.sh,
53198         * config/srclist-update: doc fixes.
53200 2010-04-07  Jim Meyering  <meyering@redhat.com>
53202         maint.mk: add a PATH crosschecking syntax-check rule
53203         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
53204         Useful if you use a test like the one in help-version (coreutils,
53205         diffutils, grep, gzip) that ensures $(VERSION) matches what is
53206         printed by prog --version.
53208 2010-04-06  Bruno Haible  <bruno@clisp.org>
53210         Fix link error on mingw.
53211         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
53212         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
53214 2010-04-06  Bruno Haible  <bruno@clisp.org>
53216         Assume rmdir exists.
53217         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
53219 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
53221         doc: update users.txt
53222         * users.txt: Add gcal.
53224 2010-04-06  Jim Meyering  <meyering@redhat.com>
53226         init.sh: simply unset TMPDIR rather than risking env -i
53227         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
53228         although it probably works fine on all Unix-based systems, some
53229         systems (Cygwin?) cannot tolerate a totally cleared environment.
53230         Suggestion from Eric Blake.
53232 2010-04-06  Jim Meyering  <meyering@redhat.com>
53234         init.sh: portability fix: use env's POSIX-specified -i option not -u
53235         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
53236         than unportable env -u.  Solaris 5.11's env lacks support for -u.
53238 2010-04-05  Bruno Haible  <bruno@clisp.org>
53240         btowc: Work around Cygwin 1.7.2 bug.
53241         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
53242         does not map NUL to 0.
53243         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
53245 2010-04-05  Bruno Haible  <bruno@clisp.org>
53247         Make the multithread modules work on Cygwin 1.7.2.
53248         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
53249         imported symbols can be declared weak, so that it returns "no" on
53250         Cygwin 1.7.2.
53252 2010-04-05  Bruno Haible  <bruno@clisp.org>
53254         Use the module 'strncat'.
53255         * modules/unistr/u8-strncat (Depends-on): Add strncat.
53257         Tests for module 'strncat'.
53258         * modules/strncat-tests: New file.
53259         * tests/test-strncat.c: New file.
53261         New module 'strncat'.
53262         * lib/string.in.h (strncat): New declaration.
53263         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
53264         * m4/strncat.m4: New file, based on m4/memchr.m4.
53265         * modules/strncat: New file.
53266         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
53267         is declared.
53268         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
53269         REPLACE_STRNCAT.
53270         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
53271         REPLACE_STRNCAT.
53272         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
53273         module.
53274         * tests/test-string-c++.cc: Check signature of strncat.
53276 2010-04-05  Jim Meyering  <meyering@redhat.com>
53278         xstrtoumax-tests: convert to use init.sh
53279         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
53280         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53281         Use Exit, not exit.
53282         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53284         xstrtoimax-tests: convert to use init.sh
53285         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
53286         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53287         Use Exit, not exit.
53288         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53290 2010-04-05  Bruno Haible  <bruno@clisp.org>
53292         sys_socket: Avoid #define replacements in C++ mode.
53293         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
53294         warning to the function if possible, rather than #defining the symbol
53295         to a dysfunctional alias.
53297 2010-04-05  Bruno Haible  <bruno@clisp.org>
53299         fseeko: Fix C++ test error on mingw.
53300         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
53301         gl_FUNC_FSEEKO.
53302         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
53303         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
53304         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
53305         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
53307 2010-04-05  Bruno Haible  <bruno@clisp.org>
53309         duplocale: Improve test output.
53310         * tests/test-duplocale.c (main): Print reason for skipped test.
53312 2010-04-05  Bruno Haible  <bruno@clisp.org>
53314         Assume rmdir exists.
53315         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
53316         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
53318 2010-04-05  Bruno Haible  <bruno@clisp.org>
53320         Fix link error on Solaris 8 with cc.
53321         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
53323 2010-04-05  Bruno Haible  <bruno@clisp.org>
53325         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53326         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
53328 2010-04-05  Bruno Haible  <bruno@clisp.org>
53330         vasprintf: Update documentation.
53331         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
53333 2010-04-05  Bruno Haible  <bruno@clisp.org>
53335         ptsname: Improve test.
53336         * tests/test-ptsname.c (main): Also try the various master names of BSD
53337         systems.
53339 2010-04-05  Bruno Haible  <bruno@clisp.org>
53341         memchr: Avoid a possible C++ test error.
53342         * lib/string.in.h (memchr): Provide declaration if function is missing.
53343         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
53344         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
53345         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
53346         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
53348 2010-04-05  Bruno Haible  <bruno@clisp.org>
53350         strtok_r: Improve idiom.
53351         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
53352         AC_LIBOBJ is used.
53354 2010-04-05  Bruno Haible  <bruno@clisp.org>
53356         strdup: Improve idiom.
53357         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
53358         AC_LIBOBJ is used.
53359         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
53360         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
53361         when AC_LIBOBJ is used.
53363 2010-04-05  Bruno Haible  <bruno@clisp.org>
53365         mbsinit, mbrtowc, wcrtomb: Improve idioms.
53366         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
53367         don't set REPLACE_MBSINIT to 1.
53368         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
53369         don't set REPLACE_MBRTOWC to 1.
53370         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
53371         exist, don't set REPLACE_MBSRTOWCS to 1.
53372         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
53373         exist, don't set REPLACE_MBSNRTOWCS to 1.
53374         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
53375         don't set REPLACE_WCRTOMB to 1.
53376         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
53377         exist, don't set REPLACE_WCSRTOMBS to 1.
53378         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
53379         exist, don't set REPLACE_WCSNRTOMBS to 1.
53381 2010-04-05  Bruno Haible  <bruno@clisp.org>
53383         ldexpl: Improve idiom.
53384         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
53385         make sure to set HAVE_DECL_LDEXPL to 0.
53387 2010-04-05  Jim Meyering  <meyering@redhat.com>
53389         xstrtol-tests: convert to use init.sh
53390         * modules/xstrtol-tests (Files): Add tests/init.sh.
53391         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53392         Use Exit, not exit.
53393         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53395         atexit-tests: convert to use init.sh
53396         * modules/atexit-tests (Files): Add tests/init.sh.
53397         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53398         Use Exit, not exit.
53399         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53401         init.sh: fix typo
53402         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
53404         init.sh: make it easier for a test script to write to the tty, ...
53405         when using automake's parallel-tests mode.
53406         * tests/init.sh (stderr_fileno_): Define overridable variable.
53407         (warn_): New function, to use it.
53408         (fail_, skip_, framework_failure_): Use warn_.
53410 2010-04-04  Bruno Haible  <bruno@clisp.org>
53412         btowc: Avoid warning.
53413         * lib/btowc.c: Include <stdlib.h>.
53414         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
53416 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53417             Bruno Haible  <bruno@clisp.org>
53419         wchar: Port to NetBSD 1.5.
53420         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
53421         * lib/wctype.in.h (WEOF): Likewise.
53423 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53424             Bruno Haible  <bruno@clisp.org>
53426         Port extended stdio to NetBSD 1.5.
53427         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
53428         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
53429         older.
53431 2010-04-04  Bruno Haible  <bruno@clisp.org>
53433         string: Remove unused substitution.
53434         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53435         HAVE_DECL_STRERROR.
53436         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
53438 2010-04-04  Bruno Haible  <bruno@clisp.org>
53440         strtod: Avoid a possible C++ test error.
53441         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
53442         set REPLACE_STRTOD.
53444 2010-04-04  Bruno Haible  <bruno@clisp.org>
53446         strerror: Update documentation.
53447         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
53449 2010-04-04  Bruno Haible  <bruno@clisp.org>
53451         stdio: Fix some C++ test errors on Solaris 8 with GCC.
53452         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
53453         _GL_CXXALIAS_SYS_CAST.
53455 2010-04-04  Bruno Haible  <bruno@clisp.org>
53457         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53458         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
53459         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
53460         REPLACE_FREXPL to 1.
53461         * doc/posix-functions/frexpl.texi: Update documentation.
53463 2010-04-04  Bruno Haible  <bruno@clisp.org>
53465         math: Fix some C++ test errors on Solaris 8 and Cygwin.
53466         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
53468 2010-04-04  Bruno Haible  <bruno@clisp.org>
53470         Implement nanosleep for native Windows.
53471         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
53473 2010-04-04  Bruno Haible  <bruno@clisp.org>
53475         math: Fix some C++ test errors on Solaris 8.
53476         * lib/math.in.h (truncf, trunc): Use simpler idiom.
53478 2010-04-04  Bruno Haible  <bruno@clisp.org>
53480         math: Fix some C++ test errors on Cygwin.
53481         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
53482         truncl): Provide declaration if the system does not have it.
53483         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
53484         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
53485         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
53486         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
53487         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
53488         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
53489         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
53490         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
53491         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
53492         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
53493         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
53494         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
53495         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
53496         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
53497         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
53498         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
53499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
53500         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
53501         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
53502         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
53503         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
53504         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
53506 2010-04-04  Bruno Haible  <bruno@clisp.org>
53508         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
53509         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
53510         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
53511         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53512         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
53513         * m4/isinf.m4 (gl_ISINF): Likewise.
53514         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
53516 2010-04-04  Bruno Haible  <bruno@clisp.org>
53518         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
53519         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
53521 2010-04-04  Bruno Haible  <bruno@clisp.org>
53523         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
53524         * modules/tmpfile (configure.ac): Update.
53526         tmpfile: Fix C++ test error on mingw.
53527         * lib/stdio.in.h (tmpfile): New declaration.
53528         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
53529         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
53530         * modules/tmpfile (Depends-on): Add stdio.
53531         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53532         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
53533         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
53534         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
53535         REPLACE_TMPFILE.
53536         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
53538 2010-04-04  Bruno Haible  <bruno@clisp.org>
53540         ioctl: Fix C++ test error on mingw.
53541         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
53542         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
53543         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
53545 2010-04-03  Bruno Haible  <bruno@clisp.org>
53547         wcwidth: Fix C++ test error on mingw.
53548         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
53549         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
53550         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
53552 2010-04-03  Bruno Haible  <bruno@clisp.org>
53554         nanosleep: Fix C++ test error on mingw.
53555         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
53556         * lib/time.in.h (nanosleep): Use modern idiom.
53557         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
53558         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
53559         REPLACE_NANOSLEEP to 1.
53560         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
53561         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
53563 2010-04-03  Bruno Haible  <bruno@clisp.org>
53565         strptime: Fix C++ test error on mingw.
53566         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
53567         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
53568         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
53569         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
53570         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
53571         not REPLACE_STRPTIME.
53572         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
53573         REPLACE_STRPTIME.
53575 2010-04-03  Bruno Haible  <bruno@clisp.org>
53577         timegm: Fix C++ test error on mingw.
53578         * lib/time.in.h (timegm): Use modern idiom.
53579         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
53580         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
53581         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
53582         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
53584 2010-04-03  Bruno Haible  <bruno@clisp.org>
53586         timegm: Assume declaration if function exists.
53587         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
53588         if it exists. Don't clobber ac_cv_func_timegm.
53590 2010-04-03  Bruno Haible  <bruno@clisp.org>
53592         time_r: Fix C++ test error on mingw.
53593         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
53594         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
53595         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
53596         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
53597         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
53599 2010-04-03  Bruno Haible  <bruno@clisp.org>
53601         time_r: Minor updates.
53602         * modules/time_r (Description): Mention the provided functions.
53603         * lib/time_r.c: Don't include <string.h>.
53604         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
53605         * doc/posix-functions/localtime_r.texi: Likewise.
53607 2010-04-03  Bruno Haible  <bruno@clisp.org>
53609         time: Fix regression introduced on 2010-03-08.
53610         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
53611         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
53613 2010-04-03  Jim Meyering  <meyering@redhat.com>
53615         maint.mk: don't silently disable project-specific syntax-check rules
53616         * top/maint.mk (_prohibit_regexp): Define, to help people realize
53617         that they need to convert their project-specific syntax-check rules
53618         to use the new _sc_search_regexp.
53620 2010-04-03  Bruno Haible  <bruno@clisp.org>
53622         fchdir: Fix regression introduced on 2010-03-08.
53623         * lib/unistd.in.h (fchdir): Fix declaration.
53624         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
53625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
53626         REPLACE_FCHDIR.
53627         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
53628         REPLACE_FCHDIR.
53630 2010-04-03  Bruno Haible  <bruno@clisp.org>
53632         getpagesize: Fix C++ test error on mingw.
53633         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
53634         system does not declare the function.
53635         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
53636         declared.
53637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53638         HAVE_DECL_GETPAGESIZE.
53639         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
53641 2010-04-03  Bruno Haible  <bruno@clisp.org>
53643         stdio: Make C++ tests work on mingw.
53644         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
53645         does not declare the function.
53647 2010-04-03  Bruno Haible  <bruno@clisp.org>
53649         ftello: Fix C++ test error on mingw.
53650         * lib/stdio.in.h (ftello): Use modern idiom.
53651         * lib/ftello.c (ftello): Renamed from rpl_ftello.
53652         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
53653         is missing and that it needs to be replaced.
53654         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
53655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
53656         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
53658 2010-04-03  Bruno Haible  <bruno@clisp.org>
53660         fseeko: Fix C++ test error on mingw.
53661         * lib/stdio.in.h (fseeko): Use modern idiom.
53662         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
53663         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
53664         is missing and that it needs to be replaced.
53665         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
53666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
53667         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
53669 2010-04-03  Bruno Haible  <bruno@clisp.org>
53671         mkstemp: Fix C++ test error on mingw.
53672         * lib/stdlib.in.h (mkstemp): Use modern idiom.
53673         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
53674         function is missing and that it needs to be replaced.
53675         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
53676         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
53678 2010-04-03  Bruno Haible  <bruno@clisp.org>
53680         stpncpy: Fix C++ test error on mingw.
53681         * lib/string.in.h (stpncpy): Use modern idiom.
53682         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
53683         function is missing and that it needs to be replaced.
53684         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53685         REPLACE_STPNCPY.
53686         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
53688 2010-04-03  Bruno Haible  <bruno@clisp.org>
53690         sys_stat: Fix C++ test error on mingw.
53691         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
53692         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
53694 2010-04-03  Bruno Haible  <bruno@clisp.org>
53696         pty: Update doc.
53697         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
53699 2010-04-03  Bruno Haible  <bruno@clisp.org>
53701         unistd: Fix C++ test error on mingw.
53702         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
53704 2010-04-03  Bruno Haible  <bruno@clisp.org>
53706         Update doc regarding mingw.
53707         * doc/glibc-functions/openpty.texi: Update regarding mingw.
53708         * doc/glibc-functions/login_tty.texi: Likewise.
53709         * doc/glibc-functions/forkpty.texi: Likewise.
53711 2010-04-03  Bruno Haible  <bruno@clisp.org>
53713         stdlib: Avoid compilation failure of c-strtold on mingw.
53714         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
53716 2010-04-03  Bruno Haible  <bruno@clisp.org>
53718         locale: Make C++ tests work on Cygwin and mingw.
53719         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
53720         cannot provide the function.
53721         Reported by Simon Josefsson.
53723 2010-04-03  Bruno Haible  <bruno@clisp.org>
53725         localename: Port to MacOS X 10.6.
53726         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
53727         memory layout of the locales in MacOS X 10.6 as well.
53728         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
53730 2010-04-02  Bruno Haible  <bruno@clisp.org>
53732         gnulib-tool: Ensure that long-running tests are executed last.
53733         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
53734         running tests after the one for the other tests.
53736 2010-04-02  Bruno Haible  <bruno@clisp.org>
53738         gnulib-tool: Ensure the tests in the main directory are executed first.
53739         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
53740         start with the current directory.
53742 2010-04-02  Bruno Haible  <bruno@clisp.org>
53744         Tests for module 'havelib', moved here from GNU gettext.
53745         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
53746         modifications.
53747         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
53748         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
53749         with modifications.
53750         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
53751         modifications.
53752         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
53753         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
53754         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
53755         with modifications.
53756         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
53757         with modifications.
53758         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
53759         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
53760         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
53761         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
53762         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
53763         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
53764         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
53765         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
53766         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
53767         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
53768         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
53769         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
53770         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
53771         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
53772         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
53773         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
53774         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
53775         with modifications.
53776         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
53777         with modifications.
53778         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
53779         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
53780         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
53781         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
53782         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
53783         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
53784         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
53785         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
53786         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
53787         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
53788         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
53789         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
53790         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
53791         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
53792         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
53793         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
53794         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
53795         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
53796         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
53797         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
53798         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
53799         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
53800         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
53801         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
53802         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
53803         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
53804         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
53805         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
53806         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
53807         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
53808         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
53809         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
53810         * tests/havelib/rpathx/rpathx.c: New file, from
53811         gettext/autoconf-lib-link.
53812         * tests/havelib/rpathx/Makefile.am: New file, from
53813         gettext/autoconf-lib-link.
53814         * tests/havelib/rpathx/configure.ac: New file, from
53815         gettext/autoconf-lib-link with modifications.
53816         * tests/havelib/rpathy/rpathy.c: New file, from
53817         gettext/autoconf-lib-link.
53818         * tests/havelib/rpathy/Makefile.am: New file, from
53819         gettext/autoconf-lib-link.
53820         * tests/havelib/rpathy/configure.ac: New file, from
53821         gettext/autoconf-lib-link with modifications.
53822         * tests/havelib/rpathz/rpathz.c: New file, from
53823         gettext/autoconf-lib-link.
53824         * tests/havelib/rpathz/Makefile.am: New file, from
53825         gettext/autoconf-lib-link.
53826         * tests/havelib/rpathz/configure.ac: New file, from
53827         gettext/autoconf-lib-link with modifications.
53828         * tests/havelib/rpathlx/usex.c: New file, from
53829         gettext/autoconf-lib-link.
53830         * tests/havelib/rpathlx/Makefile.am: New file, from
53831         gettext/autoconf-lib-link.
53832         * tests/havelib/rpathlx/configure.ac: New file, from
53833         gettext/autoconf-lib-link with modifications.
53834         * tests/havelib/rpathly/usey.c: New file, from
53835         gettext/autoconf-lib-link.
53836         * tests/havelib/rpathly/Makefile.am: New file, from
53837         gettext/autoconf-lib-link.
53838         * tests/havelib/rpathly/configure.ac: New file, from
53839         gettext/autoconf-lib-link with modifications.
53840         * tests/havelib/rpathlz/usez.c: New file, from
53841         gettext/autoconf-lib-link.
53842         * tests/havelib/rpathlz/Makefile.am: New file, from
53843         gettext/autoconf-lib-link.
53844         * tests/havelib/rpathlz/configure.ac: New file, from
53845         gettext/autoconf-lib-link with modifications.
53846         * tests/havelib/rpathlyx/usey.c: New file, from
53847         gettext/autoconf-lib-link.
53848         * tests/havelib/rpathlyx/Makefile.am: New file, from
53849         gettext/autoconf-lib-link.
53850         * tests/havelib/rpathlyx/configure.ac: New file, from
53851         gettext/autoconf-lib-link with modifications.
53852         * tests/havelib/rpathlzyx/usez.c: New file, from
53853         gettext/autoconf-lib-link.
53854         * tests/havelib/rpathlzyx/Makefile.am: New file, from
53855         gettext/autoconf-lib-link.
53856         * tests/havelib/rpathlzyx/configure.ac: New file, from
53857         gettext/autoconf-lib-link with modifications.
53858         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
53859         with modifications.
53861 2010-04-02  Bruno Haible  <bruno@clisp.org>
53863         gnulib-tool: Create distributed built sources also for the tests.
53864         * gnulib-tool (func_create_testdir): Also generate distributed built
53865         sources in the tests directory.
53867 2010-04-02  Bruno Haible  <bruno@clisp.org>
53869         gnulib-tool: Obey user's environment variables.
53870         * gnulib-tool (func_create_testdir): When creating built sources,
53871         respect the environment variables for autoconf, automake, etc. given by
53872         the user.
53874 2010-04-02  Bruno Haible  <bruno@clisp.org>
53876         gnulib-tool: Provide the value of --m4-base to modules.
53877         * gnulib-tool (func_import, func_create_testdir): Emit a definition
53878         of gl_m4_base.
53880 2010-04-02  Eric Blake  <eblake@redhat.com>
53882         maint.mk: fix some fallout
53883         * NEWS: Document the incompatible change, and its effect on cfg.mk.
53884         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
53886 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
53888         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
53889         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
53890         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
53891         (sc_cast_of_x_alloc_return_value): Likewise.
53892         (sc_cast_of_alloca_return_value): Likewise.
53893         (sc_space_tab): Likewise.
53894         (sc_prohibit_atoi_atof): Likewise.
53895         (sc_prohibit_magic_number_exit): Likewise.
53896         (sc_error_exit_success): Likewise.
53897         (sc_file_system): Likewise.
53898         (sc_prohibit_have_config_h): Likewise.
53899         (sc_require_config_h): Likewise.
53900         (sc_prohibit_HAVE_MBRTOWC): Likewise.
53901         (sc_obsolete_symbols): Likewise.
53902         (sc_changelog): Likewise.
53903         (sc_program_name): Likewise.
53904         (sc_the_the): Likewise.
53905         (sc_trailing_blank): Likewise.
53906         (sc_two_space_separator_in_usage): Likewise.
53907         (sc_useless_cpp_parens): Likewise.
53908         (sc_GPL_version): Likewise.
53909         (sc_GFDL_version): Likewise.
53910         (sc_texinfo_acronym): Likewise.
53911         (sc_prohibit_cvs_keyword): Likewise.
53912         (sc_prohibit_stat_st_blocks): Likewise.
53913         (sc_prohibit_S_IS_definition): Likewise.
53914         (sc_redundant_const): Likewise.
53915         (sc_makefile_TAB_only_indentation): Likewise.
53916         (sc_m4_quote_check): Likewise.
53917         (sc_makefile_path_separator_check): Likewise.
53918         (sc_copyright_check): Likewise.
53919         (sc_Wundef_boolean): Likewise.
53920         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
53922         maint.mk: match 0 or more whitespace-before-function-call '('
53923         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
53924         that have zero or two-and-more spaces between the function name
53925         and the open parenthesis.
53926         (sc_error_message_warn_fatal): Likewise.
53927         (sc_error_message_uppercase): Likewise.
53928         (sc_error_message_period): Likewise.
53930 2010-03-31  Eric Blake  <eblake@redhat.com>
53932         maint.mk: check for [ as well as test
53933         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
53934         Based on a libvirt report by Matthias Bolte.
53936         gnumakefile: don't squelch _version output
53937         * top/GNUmakefile (_version): Create one-shot dependency rather
53938         than using $(shell) when version must be regenerated.
53939         (_autoreconf): Run verbosely, by default.
53941         sys_time: avoid compiler warnings
53942         * lib/sys_time.in.h (includes): Ensure gcc pragma is
53943         unconditional, fixing regression from 2010-03-29.
53944         Reported by Simon Josefsson.
53946 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
53948         maint.mk: s/_header_without_use/_sc_header_without_use/
53949         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
53950         (sc_prohibit_assert_without_use): Use the new name.
53951         (sc_prohibit_close_stream_without_use): Likewise.
53952         (sc_prohibit_getopt_without_use): Likewise.
53953         (sc_prohibit_quotearg_without_use): Likewise.
53954         (sc_prohibit_quote_without_use): Likewise.
53955         (sc_prohibit_long_options_without_use): Likewise.
53956         (sc_prohibit_inttostr_without_use): Likewise.
53957         (sc_prohibit_ignore_value_without_use): Likewise.
53958         (sc_prohibit_error_without_use): Likewise.
53959         (sc_prohibit_xalloc_without_use): Likewise.
53960         (sc_prohibit_hash_without_use): Likewise.
53961         (sc_prohibit_hash_pjw_without_use): Likewise.
53962         (sc_prohibit_safe_read_without_use): Likewise.
53963         (sc_prohibit_argmatch_without_use): Likewise.
53964         (sc_prohibit_canonicalize_without_use): Likewise.
53965         (sc_prohibit_root_dev_ino_without_use): Likewise.
53966         (sc_prohibit_openat_without_use): Likewise.
53967         (sc_prohibit_c_ctype_without_use): Likewise.
53968         (sc_prohibit_signal_without_use): Likewise.
53969         (sc_prohibit_intprops_without_use): Likewise.
53971 2010-03-30  Eric Blake  <eblake@redhat.com>
53973         maint: improve module indicators
53974         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
53975         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
53976         columns, and avoid extra macro expansion.
53978         fdopendir: work around FreeBSD bug
53979         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
53980         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
53981         * modules/dirent (Makefile.am): Substitute it.
53982         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
53983         declaration.
53984         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
53985         fix.
53986         Reported by Christian Weisgerber <naddy@mips.inka.de>.
53988 2010-03-29  Bruno Haible  <bruno@clisp.org>
53990         Emit #pragma system_header after the inclusion guard, not before.
53991         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
53992         guard that spans the entire file, not before. This enables an
53993         optimization in GCC's preprocessor.
53994         * lib/ctype.in.h: Likewise.
53995         * lib/dirent.in.h: Likewise.
53996         * lib/errno.in.h: Likewise.
53997         * lib/float.in.h: Likewise.
53998         * lib/getopt.in.h: Likewise.
53999         * lib/iconv.in.h: Likewise.
54000         * lib/langinfo.in.h: Likewise.
54001         * lib/locale.in.h: Likewise.
54002         * lib/math.in.h: Likewise.
54003         * lib/netdb.in.h: Likewise.
54004         * lib/netinet_in.in.h: Likewise.
54005         * lib/pty.in.h: Likewise.
54006         * lib/sched.in.h: Likewise.
54007         * lib/se-selinux.in.h: Likewise.
54008         * lib/search.in.h: Likewise.
54009         * lib/spawn.in.h: Likewise.
54010         * lib/stdarg.in.h: Likewise.
54011         * lib/stdint.in.h: Likewise.
54012         * lib/string.in.h: Likewise.
54013         * lib/strings.in.h: Likewise.
54014         * lib/sys_file.in.h: Likewise.
54015         * lib/sys_ioctl.in.h: Likewise.
54016         * lib/sys_time.in.h: Likewise.
54017         * lib/sys_times.in.h: Likewise.
54018         * lib/sys_utsname.in.h: Likewise.
54019         * lib/sys_wait.in.h: Likewise.
54020         * lib/sysexits.in.h: Likewise.
54021         * lib/wctype.in.h: Likewise.
54023 2010-03-28  James Youngman  <jay@gnu.org>
54025         save-cwd: don't leak a file descriptor when the caller execs.
54026         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
54027         saved file descriptor.
54028         * modules/save-cwd (Depends-on): Depend on cloexec.
54030 2010-03-29  Bruno Haible  <bruno@clisp.org>
54032         Remove vestiges of fts-lgpl module.
54033         * lib/fts_.h: Assume GNULIB_FTS is 1.
54034         * lib/fts.c: Likewise.
54035         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
54037 2010-03-28  Bruno Haible  <bruno@clisp.org>
54039         Fix definition of tests witness macro.
54040         * gnulib-tool (func_import): Fix definition of witness macro.
54042 2010-03-28  Bruno Haible  <bruno@clisp.org>
54044         Fix ioctl's protoype on glibc systems.
54045         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
54046         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
54047         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
54048         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
54049         signature. If not, arrange to replace the ioctl function.
54050         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
54051         REPLACE_IOCTL.
54052         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
54053         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
54054         Reported by Ludovic Courtès <ludo@gnu.org>.
54056 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
54058         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
54059         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
54060         made it so grep -r --include=GLOB* ... did not work.
54062 2010-03-26  Jim Meyering  <meyering@redhat.com>
54063             Eric Blake  <eblake@redhat.com>
54065         maint.mk: prohibit use of test's -o and -a operators
54066         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
54068 2010-03-28  Bruno Haible  <bruno@clisp.org>
54070         Remove unused GNULIB_XYZ macro definitions.
54071         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
54072         invocation.
54074 2010-03-28  Bruno Haible  <bruno@clisp.org>
54076         Mark privileged tests modules.
54077         * modules/idpriv-drop-tests (Status): New section.
54078         * modules/idpriv-droptemp-tests (Status): New section.
54080 2010-03-28  Bruno Haible  <bruno@clisp.org>
54082         Split C++ tests into separate tests modules.
54083         * modules/dirent-c++-tests: New file, extracted from
54084         modules/dirent-tests.
54085         * modules/dirent-tests: Depend on it.
54086         * modules/fcntl-h-c++-tests: New file, extracted from
54087         modules/fcntl-h-tests.
54088         * modules/fcntl-h-tests: Depend on it.
54089         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
54090         * modules/glob-tests: Depend on it.
54091         * modules/iconv-h-c++-tests: New file, extracted from
54092         modules/iconv-h-tests.
54093         * modules/iconv-h-tests: Depend on it.
54094         * modules/langinfo-c++-tests: New file, extracted from
54095         modules/langinfo-tests.
54096         * modules/langinfo-tests: Depend on it.
54097         * modules/locale-c++-tests: New file, extracted from
54098         modules/locale-tests.
54099         * modules/locale-tests: Depend on it.
54100         * modules/math-c++-tests: New file, extracted from modules/math-tests.
54101         * modules/math-tests: Depend on it.
54102         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
54103         * modules/pty-tests: Depend on it.
54104         * modules/search-c++-tests: New file, extracted from
54105         modules/search-tests.
54106         * modules/search-tests: Depend on it.
54107         * modules/signal-c++-tests: New file, extracted from
54108         modules/signal-tests.
54109         * modules/signal-tests: Depend on it.
54110         * modules/spawn-c++-tests: New file, extracted from
54111         modules/spawn-tests.
54112         * modules/spawn-tests: Depend on it.
54113         * modules/stdio-c++-tests: New file, extracted from
54114         modules/stdio-tests.
54115         * modules/stdio-tests: Depend on it.
54116         * modules/stdlib-c++-tests: New file, extracted from
54117         modules/stdlib-tests.
54118         * modules/stdlib-tests: Depend on it.
54119         * modules/string-c++-tests: New file, extracted from
54120         modules/string-tests.
54121         * modules/string-tests: Depend on it.
54122         * modules/sys_ioctl-c++-tests: New file, extracted from
54123         modules/sys_ioctl-tests.
54124         * modules/sys_ioctl-tests: Depend on it.
54125         * modules/sys_select-c++-tests: New file, extracted from
54126         modules/sys_select-tests.
54127         * modules/sys_select-tests: Depend on it.
54128         * modules/sys_socket-c++-tests: New file, extracted from
54129         modules/sys_socket-tests.
54130         * modules/sys_socket-tests: Depend on it.
54131         * modules/sys_stat-c++-tests: New file, extracted from
54132         modules/sys_stat-tests.
54133         * modules/sys_stat-tests: Depend on it.
54134         * modules/sys_time-c++-tests: New file, extracted from
54135         modules/sys_time-tests.
54136         * modules/sys_time-tests: Depend on it.
54137         * modules/time-c++-tests: New file, extracted from modules/time-tests.
54138         * modules/time-tests: Depend on it.
54139         * modules/unistd-c++-tests: New file, extracted from
54140         modules/unistd-tests.
54141         * modules/unistd-tests: Depend on it.
54142         * modules/wchar-c++-tests: New file, extracted from
54143         modules/wchar-tests.
54144         * modules/wchar-tests: Depend on it.
54145         * modules/wctype-c++-tests: New file, extracted from
54146         modules/wctype-tests.
54147         * modules/wctype-tests: Depend on it.
54148         Reported by Simon Josefsson.
54150 2010-03-28  Bruno Haible  <bruno@clisp.org>
54152         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
54153         * gnulib-tool (func_exists_module): New function, extracted from
54154         func_verify_module.
54155         (func_verify_module): Use it.
54156         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
54157         'foo' only if 'foo' exists.
54158         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
54159         module.
54161 2010-03-28  Bruno Haible  <bruno@clisp.org>
54163         gnulib-tool: Add support for special categories of tests.
54164         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
54165         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
54166         (func_usage): Document them.
54167         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
54168         inc_unportable_tests, inc_all_tests): New variables.
54169         (func_acceptable): Consider these variables.
54170         (func_modules_transitive_closure): Make it work when the 'Status' field
54171         consists of multiple words.
54172         (func_import): Store and restore the values of inc_cxx_tests,
54173         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
54174         inc_all_tests in gnulib-comp.m4.
54175         (func_create_testdir): Set inc_all_tests to true.
54176         * doc/gnulib.texi (Extra tests modules): New section.
54177         Suggested by Jim Meyering.
54179 2010-03-28  Bruno Haible  <bruno@clisp.org>
54181         ansi-c++-opt: Allow turning off the C++ build by default.
54182         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
54183         gl_CXX_CHOICE_DEFAULT_NO is defined.
54184         Requested by Eric Blake.
54186 2010-03-28  Bruno Haible  <bruno@clisp.org>
54188         unistd: Avoid #define replacements in C++ mode.
54189         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
54190         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
54191         setsockopt, shutdown, select): In C++, attach a warning to the function
54192         if possible, rather than #defining the symbol to a dysfunctional alias.
54193         Reported by John W. Eaton <jwe@gnu.org>.
54195 2010-03-28  Bruno Haible  <bruno@clisp.org>
54197         Fix link errors on mingw.
54198         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
54199         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
54200         $(LIBSOCKET).
54201         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
54202         $(LIBSOCKET).
54204 2010-03-28  Bruno Haible  <bruno@clisp.org>
54205             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54207         lib-ignore: Determine different options for different compilers.
54208         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
54209         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
54210         Add comments.
54211         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
54212         * NEWS: Mention the change.
54214 2010-03-27  Bruno Haible  <bruno@clisp.org>
54216         Remove unused GNULIB_XYZ macro definitions.
54217         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
54218         * modules/fseek (configure.ac): Likewise.
54219         * modules/ioctl (configure.ac): Likewise.
54220         * modules/open (configure.ac): Likewise.
54221         * modules/stdlib-safer (configure.ac): Likewise.
54223 2010-03-27  Bruno Haible  <bruno@clisp.org>
54225         Add a remark about certain modules.
54226         * modules/malloc (Comment): New section.
54227         * modules/realloc (Comment): Likewise.
54228         * modules/sigpipe (Comment): Likewise.
54230 2010-03-27  Bruno Haible  <bruno@clisp.org>
54232         Resolve conflict between the two kinds of module indicators.
54233         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
54234         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
54235         * modules/canonicalize (configure.ac): Invoke
54236         gl_MODULE_INDICATOR_FOR_TESTS.
54237         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
54238         GNULIB_XYZ.
54239         * tests/test-dirent-c++.cc: Likewise.
54240         * tests/test-dirent-safer.c: Likewise.
54241         * tests/test-dup2.c: Likewise.
54242         * tests/test-fchdir.c: Likewise.
54243         * tests/test-fcntl-h-c++.cc: Likewise.
54244         * tests/test-getopt.c: Likewise.
54245         * tests/test-getopt.h: Likewise.
54246         * tests/test-langinfo-c++.cc: Likewise.
54247         * tests/test-locale-c++.cc: Likewise.
54248         * tests/test-math-c++.cc: Likewise.
54249         * tests/test-pty-c++.cc: Likewise.
54250         * tests/test-search-c++.cc: Likewise.
54251         * tests/test-signal-c++.cc: Likewise.
54252         * tests/test-spawn-c++.cc: Likewise.
54253         * tests/test-stdio-c++.cc: Likewise.
54254         * tests/test-stdlib-c++.cc: Likewise.
54255         * tests/test-string-c++.cc: Likewise.
54256         * tests/test-sys_ioctl-c++.cc: Likewise.
54257         * tests/test-sys_select-c++.cc: Likewise.
54258         * tests/test-sys_socket-c++.cc: Likewise.
54259         * tests/test-sys_stat-c++.cc: Likewise.
54260         * tests/test-sys_time-c++.cc: Likewise.
54261         * tests/test-time-c++.cc: Likewise.
54262         * tests/test-unistd-c++.cc: Likewise.
54263         * tests/test-wchar-c++.cc: Likewise.
54264         * tests/uninorm/test-u8-nfc.c: Likewise.
54265         * tests/uninorm/test-u8-nfd.c: Likewise.
54266         * tests/uninorm/test-u8-nfkc.c: Likewise.
54267         * tests/uninorm/test-u8-nfkd.c: Likewise.
54268         * tests/uninorm/test-u16-nfc.c: Likewise.
54269         * tests/uninorm/test-u16-nfd.c: Likewise.
54270         * tests/uninorm/test-u16-nfkc.c: Likewise.
54271         * tests/uninorm/test-u16-nfkd.c: Likewise.
54272         * tests/uninorm/test-u32-nfc.c: Likewise.
54273         * tests/uninorm/test-u32-nfc-big.c: Likewise.
54274         * tests/uninorm/test-u32-nfd.c: Likewise.
54275         * tests/uninorm/test-u32-nfd-big.c: Likewise.
54276         * tests/uninorm/test-u32-nfkc.c: Likewise.
54277         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
54278         * tests/uninorm/test-u32-nfkd.c: Likewise.
54279         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
54280         * tests/uninorm/test-u32-normalize-big.c: Likewise.
54282 2010-03-27  Bruno Haible  <bruno@clisp.org>
54284         Distinguish two kinds of module indicators.
54285         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
54286         gl_MODULE_INDICATOR.
54287         (gl_MODULE_INDICATOR): New macro.
54288         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
54289         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
54290         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54291         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54292         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54293         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54294         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54295         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54296         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54297         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54298         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54299         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54300         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54301         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54302         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54303         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54304         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54305         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54306         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54307         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54308         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54309         * modules/cloexec (configure.ac): Likewise.
54310         * modules/getopt-gnu (configure.ac): Likewise.
54311         * modules/uninorm/u8-normalize (configure.ac): Likewise.
54312         * modules/uninorm/u16-normalize (configure.ac): Likewise.
54313         * modules/uninorm/u32-normalize (configure.ac): Likewise.
54314         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
54316 2010-03-27  Bruno Haible  <bruno@clisp.org>
54318         New module description field 'Comment'.
54319         * gnulib-tool: New option --extract-comment.
54320         (func_usage): Document it.
54321         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
54322         (func_get_comment): New function.
54323         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
54325 2010-03-27  Bruno Haible  <bruno@clisp.org>
54327         Addendum to 2010-02-07 commit.
54328         * gnulib-tool (func_usage): Document --extract-applicability option.
54330 2010-03-27  Bruno Haible  <bruno@clisp.org>
54332         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
54333         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
54334         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
54335         rather than link errors.
54337 2010-03-27  Bruno Haible  <bruno@clisp.org>
54339         Avoid side effects from tests-related modules on the compilation of lib.
54340         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
54341         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
54342         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
54343         parameter. Emit into AM_CPPFLAGS a definition of the designated C
54344         macro.
54345         (func_import): Define a witness macro. Assign it a value that depends
54346         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
54347         tests-related modules.
54348         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
54349         Reported by Jim Meyering.
54351 2010-03-27  Bruno Haible  <bruno@clisp.org>
54353         Factorize common .m4 code.
54354         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
54355         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
54356         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
54357         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
54358         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54359         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
54360         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
54361         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54362         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54363         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54364         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
54365         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54366         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54367         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54368         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54369         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
54370         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54371         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54373         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
54374         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
54375         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54376         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54377         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54378         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54379         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54380         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
54381         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
54382         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
54383         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54384         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54385         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54387 2010-03-27  Bruno Haible  <bruno@clisp.org>
54389         Fix a compilation error on Cygwin with g++ >= 4.3.
54390         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
54391         if it is undefined or if we alias it to chmod.
54392         (lstat): Don't warn about the use of this function if it is undefined
54393         or if we alias it to stat.
54394         Reported by Simon Josefsson.
54396 2010-03-27  Bruno Haible  <bruno@clisp.org>
54398         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
54399         * modules/getlogin (configure.ac): Update.
54401         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
54402         * modules/getlogin_r (configure.ac): Update.
54404         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
54405         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
54406         * modules/inet_ntop (configure.ac): Update.
54408         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
54409         * modules/inet_pton (configure.ac): Update.
54411         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
54412         * modules/mbslen (configure.ac): Update.
54414         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
54415         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
54416         * modules/forkpty (configure.ac): Update.
54417         * modules/openpty (configure.ac): Update.
54419 2010-03-26  Simon Josefsson  <simon@josefsson.org>
54421         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
54422         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
54424 2010-03-25  Eric Blake  <eblake@redhat.com>
54426         maint: use pragma consistently across replacement headers
54427         * lib/ctype.in.h (system_header): Hoist for consistent placement.
54428         * lib/dirent.in.h (system_header): Likewise.
54429         * lib/errno.in.h (system_header): Likewise.
54430         * lib/float.in.h (system_header): Likewise.
54431         * lib/getopt.in.h (system_header): Likewise.
54432         * lib/iconv.in.h (system_header): Likewise.
54433         * lib/inttypes.in.h (system_header): Likewise.
54434         * lib/langinfo.in.h (system_header): Likewise.
54435         * lib/locale.in.h (system_header): Likewise.
54436         * lib/math.in.h (system_header): Likewise.
54437         * lib/netdb.in.h (system_header): Likewise.
54438         * lib/netinet_in.in.h (system_header): Likewise.
54439         * lib/pty.in.h (system_header): Likewise.
54440         * lib/sched.in.h (system_header): Likewise.
54441         * lib/se-selinux.in.h (system_header): Likewise.
54442         * lib/search.in.h (system_header): Likewise.
54443         * lib/spawn.in.h (system_header): Likewise.
54444         * lib/stdarg.in.h (system_header): Likewise.
54445         * lib/stdint.in.h (system_header): Likewise.
54446         * lib/string.in.h (system_header): Likewise.
54447         * lib/strings.in.h (system_header): Likewise.
54448         * lib/sys_file.in.h (system_header): Likewise.
54449         * lib/sys_ioctl.in.h (system_header): Likewise.
54450         * lib/sys_socket.in.h (system_header): Likewise.
54451         * lib/sys_times.in.h (system_header): Likewise.
54452         * lib/sys_utsname.in.h (system_header): Likewise.
54453         * lib/sys_wait.in.h (system_header): Likewise.
54454         * lib/sysexits.in.h (system_header): Likewise.
54455         * lib/unistd.in.h (system_header): Likewise.
54456         * lib/wctype.in.h (system_header): Likewise.
54458         arpa/inet: fix mingw compilation warning
54459         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
54460         Reported by Matthew Bolte.
54462 2010-03-25  Bruno Haible  <bruno@clisp.org>
54464         Avoid collision between gnulib wrapper and libintl wrapper.
54465         * lib/printf.c (printf): Don't define if a printf wrapper is already
54466         defined in intl/printf.c.
54467         Reported by Michel Boaventura <michel@michelboaventura.com>.
54469 2010-03-25  Bruno Haible  <bruno@clisp.org>
54471         Use ANSI C.
54472         * lib/readutmp.h (getutent): Provide ANSI C prototype.
54474 2010-03-25  Bruno Haible  <bruno@clisp.org>
54476         Minor formatting changes.
54477         * lib/acosl.c: Insert space before function argument list.
54478         * lib/argz.c: Likewise.
54479         * lib/asinl.c: Likewise.
54480         * lib/expl.c: Likewise.
54481         * lib/gen-uni-tables.c: Likewise.
54482         * lib/gettext.h: Likewise.
54483         * lib/glthread/lock.h: Likewise.
54484         * lib/tanl.c: Likewise.
54485         * lib/uniname/uniname.c: Likewise.
54486         * tests/test-idpriv-drop.c: Likewise.
54487         * tests/test-idpriv-droptemp.c: Likewise.
54488         * tests/test-lock.c: Likewise.
54489         * tests/test-tls.c: Likewise.
54490         * lib/argp-help.c: Insert space before function-like macro argument
54491         list.
54492         * lib/memcmp.c: Likewise.
54493         * tests/test-base64.c: Likewise.
54494         * lib/localename.c: Insert space before sizeof's argument list.
54495         * lib/safe-alloc.h: Likewise.
54496         * lib/file-set.h: Insert space before macro argument list.
54497         * tests/test-argp.c: Likewise.
54498         * lib/argp-namefrob.h: Insert space before function parameter list.
54499         * lib/getaddrinfo.c: Likewise.
54500         * lib/netdb.in.h: Likewise.
54501         * lib/parse-duration.h: Likewise.
54502         * lib/parse-duration.c: Likewise.
54503         * lib/poll.c: Likewise.
54504         * lib/select.c: Likewise.
54505         * lib/trim.h: Likewise.
54506         * tests/test-usleep.c: Likewise.
54507         * lib/ldexpl.c: Insert space before function parameter list and before
54508         function argument list.
54509         * lib/logl.c: Likewise.
54510         * lib/sqrtl.c: Likewise.
54511         * lib/trim.c: Likewise.
54512         * lib/cosl.c: Use GNU style indentation. Insert space before function
54513         argument list.
54514         * lib/sinl.c: Likewise.
54515         * lib/tsearch.c: Insert space after 'for'.
54516         Reported by Jim Meyering.
54518 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
54520         * maint.mk (sc_Wundef_boolean): Check for the presence of the
54521         config header before grepping, as it's not present before
54522         autoreconf/configure are run.  Reported by Simon Josefsson.
54524 2010-03-23  Bruno Haible  <bruno@clisp.org>
54526         pt_chown: Make it work with automake < 1.11.
54527         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
54528         Reported by Simon Josefsson.
54530 2010-03-23  Bruno Haible  <bruno@clisp.org>
54532         pt_chown: Don't depend on GPLed modules.
54533         * lib/pt_chown.c: Don't include idpriv.h.
54534         (main): Don't drop privileges.
54535         * modules/pt_chown (Depends-on): Remove idpriv-drop.
54536         Reported by Simon Josefsson.
54538 2010-03-24  Simon Josefsson  <simon@josefsson.org>
54540         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
54541         suggestions from karl@freefriends.org (Karl Berry).
54543 2010-03-22  Eric Blake  <eblake@redhat.com>
54545         gethostname: further tweaks
54546         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
54547         are overriding gethostname.
54548         Suggested by Bruno Haible.
54550 2010-03-21  Bruno Haible  <bruno@clisp.org>
54552         Fix comments.
54553         * lib/forkpty.c (rpl_forkpty): Fix comment.
54554         * lib/openpty.c (rpl_openpty): Likewise.
54555         Reported by Eric Blake.
54557 2010-03-22  Eric Blake  <eblake@redhat.com>
54559         gethostname: fix build on mingw
54560         * lib/unistd.in.h (includes): Work around fact that mingw
54561         <winsock2.h> re-includes <unistd.h>, by avoiding any
54562         redeclarations if we are being included by <winsock2.h>.
54563         Reported by Matthias Bolte.
54565 2010-03-21  Bruno Haible  <bruno@clisp.org>
54567         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
54568         * lib/forkpty.c (forkpty): New replacement function, from glibc with
54569         modifications.
54570         * lib/pty.in.h (forkpty): Update declaration. Add comments.
54571         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
54572         provide the replacement.
54573         * modules/forkpty (Depends-on): Add openpty, login_tty.
54574         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
54575         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
54576         * doc/glibc-functions/forkpty.texi: More supported platforms.
54577         * config/srclist.txt: Add forkpty.c (commented).
54579 2010-03-21  Bruno Haible  <bruno@clisp.org>
54581         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
54582         (Makefile.am): Verify that PTY_LIB is defined.
54584         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
54586 2010-03-21  Bruno Haible  <bruno@clisp.org>
54588         Tests for module 'login_tty'.
54589         * modules/login_tty-tests: New file.
54590         * tests/test-login_tty.c: New file.
54592         New module 'login_tty'.
54593         * lib/login_tty.c: New file.
54594         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
54595         * modules/login_tty: New file.
54596         * doc/glibc-functions/login_tty.texi: Mention the new module.
54598 2010-03-21  Bruno Haible  <bruno@clisp.org>
54600         login_tty: Documentation.
54601         * doc/glibc-functions/login_tty.texi: New file.
54602         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
54604 2010-03-21  Bruno Haible  <bruno@clisp.org>
54606         pty: Consistent macro naming.
54607         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
54608         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
54609         * modules/pty (configure.ac): Update.
54611 2010-03-21  Bruno Haible  <bruno@clisp.org>
54613         Tests for openpty: Make stricter.
54614         * tests/test-openpty.c (main): Add test of canonical processing and
54615         erase.
54616         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
54618         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
54619         * lib/openpty.c (openpty): New replacement function.
54620         * lib/pty.in.h: Include <termios.h>.
54621         (openpty): Update declaration. Add comments.
54622         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
54623         is not declared, arrange to provide the replacement. Check for _getpty
54624         and posix_openpt.
54625         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
54626         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
54627         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
54628         * modules/pty-tests (test_pty_c___LDADD): New variable.
54629         * doc/glibc-functions/openpty.texi: More supported platforms.
54631 2010-03-21  Bruno Haible  <bruno@clisp.org>
54633         setenv: Tweaks.
54634         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
54635         the test program.
54636         * doc/posix-functions/setenv.texi: Update platforms list.
54638 2010-03-21  Bruno Haible  <bruno@clisp.org>
54640         New module 'unlockpt'.
54641         * lib/unlockpt.c: New file, from glibc with modifications.
54642         * m4/unlockpt.m4: New file.
54643         * modules/unlockpt: New file.
54644         * lib/stdlib.in.h (unlockpt): New declaration.
54645         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
54646         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
54647         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
54648         HAVE_UNLOCKPT.
54649         * doc/posix-functions/unlockpt.texi: Mention the new module.
54650         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
54651         * config/srclist.txt: Add unlockpt.c (commented).
54653 2010-03-21  Jim Meyering  <meyering@redhat.com>
54655         maint.mk: prohibit inclusion of "intprops.h" without use
54656         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
54658 2010-03-21  Bruno Haible  <bruno@clisp.org>
54660         New module 'grantpt'.
54661         * lib/grantpt.c: New file, from glibc with modifications.
54662         * m4/grantpt.m4: New file.
54663         * modules/grantpt: New file.
54664         * lib/stdlib.in.h (grantpt): New declaration.
54665         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
54666         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
54667         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
54668         HAVE_GRANTPT.
54669         * doc/posix-functions/grantpt.texi: Mention the new module.
54670         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
54671         * config/srclist.txt: Add grantpt.c (commented).
54673 2010-03-21  Bruno Haible  <bruno@clisp.org>
54675         New module 'pt_chown'.
54676         * lib/pt_chown.c: New file, from glibc with modifications.
54677         * lib/pty-private.h: New file, from glibc with modifications.
54678         * modules/pt_chown: New file.
54679         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
54681 2010-03-21  Bruno Haible  <bruno@clisp.org>
54683         Tests for module 'ptsname'.
54684         * modules/ptsname-tests: New file.
54685         * tests/test-ptsname.c: New file.
54687         New module 'ptsname'.
54688         * lib/ptsname.c: New file, from glibc with modifications.
54689         * m4/ptsname.m4: New file.
54690         * modules/ptsname: New file.
54691         * lib/stdlib.in.h (ptsname): New declaration.
54692         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
54693         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
54694         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
54695         HAVE_PTSNAME.
54696         * doc/posix-functions/ptsname.texi: Mention the new module.
54697         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
54698         * config/srclist.txt: Add ptsname.c (commented).
54700 2010-03-21  Bruno Haible  <bruno@clisp.org>
54702         Tests for module 'ttyname_r'.
54703         * modules/ttyname_r-tests: New file.
54704         * tests/test-ttyname_r.c: New file.
54706         New module 'ttyname_r'.
54707         * lib/ttyname_r.c: New file.
54708         * m4/ttyname_r.m4: New file.
54709         * modules/ttyname_r: New file.
54710         * lib/unistd.in.h (ttyname_r): New declaration.
54711         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
54712         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
54713         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
54714         HAVE_TTYNAME_R.
54715         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
54716         * doc/posix-functions/ttyname_r.texi: Mention the new module.
54718 2010-03-20  Bruno Haible  <bruno@clisp.org>
54720         signal: Undefine macro definitions in C++ mode.
54721         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
54722         sigfillset): Undefine macro definitions from the system header in C++
54723         mode.
54724         Reported by John W. Eaton <jwe@gnu.org>.
54726 2010-03-20  Bruno Haible  <bruno@clisp.org>
54728         Ensure no #include statements inside extern "C" { ... }.
54729         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
54730         contain #include statements.
54731         * lib/time.in.h: Likewise.
54733 2010-03-20  Bruno Haible  <bruno@clisp.org>
54735         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
54736         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
54737         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
54738         Reported by John W. Eaton <jwe@gnu.org>.
54740 2010-03-20  Bruno Haible  <bruno@clisp.org>
54742         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
54743         Reported by Jim Meyering.
54745 2010-03-20  Bruno Haible  <bruno@clisp.org>
54747         pipe: Set errno upon failure.
54748         * lib/pipe.h: Specify that when -1 is returned, errno is set.
54749         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
54750         errno value in error message.
54752 2010-03-20  Bruno Haible  <bruno@clisp.org>
54753             Jim Meyering  <meyering@redhat.com>
54755         lchown: Avoid "unused variable" warning.
54756         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
54758 2010-03-20  Bruno Haible  <bruno@clisp.org>
54760         Work around unlink() bug on MacOS X 10.5.6.
54761         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
54762         attempting to unlink a parent directory.
54763         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
54764         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
54765         activate for the replacement function.
54766         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
54768 2010-03-20  Bruno Haible  <bruno@clisp.org>
54770         Fix link errors on Solaris 8.
54771         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
54772         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
54774 2010-03-19  Jim Meyering  <meyering@redhat.com>
54776         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
54777         The _LIBC implementation of build_range_exp correctly honors the
54778         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
54779         However, the non-_LIBC implementation would ignore that syntax-bit
54780         flag and return REG_ERANGE unconditionally.
54781         This change makes it honor that flag.
54782         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
54783         Make two pointer parameters "const".
54784         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
54785         (parse_bracket_exp): Update caller.
54787         regex.m4: correct the reversed range endpoint ([b-a]) test
54788         * m4/regex.m4: When requiring that [b-a] evoke failure,
54789         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
54790         test pass once again for x86-based systems.
54792 2010-03-19  Bruno Haible  <bruno@clisp.org>
54794         scandir: Fix link error on Solaris 8.
54795         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
54796         macros.
54798 2010-03-19  Bruno Haible  <bruno@clisp.org>
54800         getusershell: Fix documentation.
54801         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
54802         module.
54803         * doc/glibc-functions/setusershell.texi: Likewise.
54805         getusershell: Provide declaration, missing on Solaris 9.
54806         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
54807         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
54808         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
54809         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
54810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54811         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
54812         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
54813         HAVE_GETUSERSHELL.
54814         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
54816 2010-03-19  Bruno Haible  <bruno@clisp.org>
54818         wctype: Provide iswblank function.
54819         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
54820         exists and is fine.
54821         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
54822         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
54823         * tests/test-wctype.c (main): Re-enable the iswblank tests.
54824         * doc/posix-functions/iswblank.texi: Update.
54826 2010-03-19  Bruno Haible  <bruno@clisp.org>
54828         Tests of module 'pty' in C++ mode.
54829         * modules/pty-tests: New file.
54830         * tests/test-pty-c++.cc: New file.
54831         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
54833 2010-03-19  Eric Blake  <eblake@redhat.com>
54835         logb: fix documentation
54836         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
54837         1.5 declaration bug.
54839         forkpty, openpty: prefer glibc's const-safe prototype
54840         * lib/forkpty.c (rpl_forkpty): New file.
54841         * lib/openpty.c (rpl_openpty): Likewise.
54842         * modules/forkpty (Files): Distribute it.
54843         * modules/openpty (Files): Likewise.
54844         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
54845         check...
54846         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
54847         replacement for non-const BSD signature.
54848         * modules/pty (Makefile.am): Substitute witnesses.
54849         * lib/pty.in.h (forkpty, openpty): Declare replacements.
54850         * tests/test-forkpty.c: Update signature check.
54851         * tests/test-openpty.c: Likewise.
54852         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
54853         * doc/glibc-functions/openpty.texi (openpty): Likewise.
54855         forkpty, openpty: split functions into new modules
54856         * modules/pty (Makefile.am): Substitute new witnesses.
54857         (Libraries): Move library detection...
54858         * modules/forkpty: ...into new module.
54859         * modules/openpty: Another new module.
54860         * modules/pty-tests: Rename and split...
54861         * modules/forkpty-tests: ...to this...
54862         * modules/openpty-tests: ...and this.
54863         * tests/test-pty.c: Rename and split...
54864         * tests/test-forkpty.c: ...to this...
54865         * tests/test-openpty.c: ...and this.
54866         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
54867         (gl_PTY): Split library searching...
54868         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
54869         (gl_FORKPTY, gl_OPENPTY): New macros.
54870         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
54871         * NEWS: Mention the split.
54872         * MODULES.html.sh (Misc): Document the modules.
54873         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
54874         * doc/glibc-functions/openpty.texi (openpty): Likewise.
54876         pty: improve replacement header
54877         * lib/pty.in.h: New file.
54878         * modules/pty (Files): Ship it.
54879         (Makefile.am): Always build replacement.
54880         * m4/pty.m4: Rename...
54881         * m4/pty_h.m4: ...to this.
54882         (gl_PTY): Modernize setting of witness macros; update check of
54883         forkpty to take proper advantage of cache.
54884         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
54886         getopt: avoid compiler warning
54887         * lib/getopt.c (attribute_hidden): Remove unused macro.
54889 2010-03-18  Bruno Haible  <bruno@clisp.org>
54891         Fix link errors on Solaris 8.
54892         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
54893         * modules/search-tests (test_search_c___LDADD): Likewise.
54894         * modules/signal-tests (test_signal_c___LDADD): Likewise.
54895         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
54896         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
54897         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
54898         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
54899         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
54900         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
54902 2010-03-18  Bruno Haible  <bruno@clisp.org>
54904         Fix bug introduced on 2010-03-14.
54905         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
54906         (gl_SPAWN_H): Require it.
54907         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
54908         Reported by Simon Josefsson.
54910 2010-03-18  Bruno Haible  <bruno@clisp.org>
54912         Fix typo introduced on 2009-12-31.
54913         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
54914         posix_spawn_file_actions_adddup2.
54916 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
54917         and Eric Blake  <eblake@redhat.com>
54919         test-vc-list-files-git: make more robust
54920         * tests/test-vc-list-files-git.sh: Unset problematic environment
54921         variables.  Chain commands together.
54923 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
54925         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
54926         `AC_CHECK_DECL' invocation.
54928 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
54930         * lib/inttostr.c (inttostr): Make sure the invocation of verify
54931         appears before executable statements. Suggested by Petr Sumbera
54932         <Petr.Sumbera@Sun.COM>.
54934 2010-03-14  Bruno Haible  <bruno@clisp.org>
54936         * tests/test-flock.c (test_exclusive): Comment out a test that causes
54937         portability problems. Instead use a simpler test.
54938         (main): Check that invalid arguments are rejected only on Linux.
54940 2010-03-14  Bruno Haible  <bruno@clisp.org>
54942         Fix bug introduced on 2009-12-31.
54943         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
54944         gl_PREREQ_SYS_H_WINSOCK2 always.
54945         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
54946         SYS_SOCKET_H variable.
54947         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
54948         Update comments.
54949         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
54950         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
54951         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
54952         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
54953         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
54955 2010-03-14  Bruno Haible  <bruno@clisp.org>
54957         Fix values returned by sinl, cosl.
54958         * lib/trigl.h: Add specification comments.
54959         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
54960         that combines the values from the precomputed table with the values of
54961         the Chebyshev polynomials.
54963 2010-03-14  Bruno Haible  <bruno@clisp.org>
54965         Fix compilation error when modules 'posix_spawn[p]' are not used.
54966         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
54967         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
54969 2010-03-14  Bruno Haible  <bruno@clisp.org>
54971         Fix compilation error on mingw when module 'time_r' is not used.
54972         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
54973         is 1.
54974         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
54975         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
54976         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
54977         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
54979 2010-03-14  Bruno Haible  <bruno@clisp.org>
54981         Fix compilation error with Sun C.
54982         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
54983         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
54984         instead of GCC specific ULONG_LONG_MAX.
54985         * lib/xstrtoll.c: Likewise.
54986         * lib/xstrtoull.c: Likewise.
54988 2010-03-13  Bruno Haible  <bruno@clisp.org>
54990         Allow the user to disable C++ code and tests.
54991         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
54992         (gl_PROG_ANSI_CXX): Require it.
54994 2010-03-13  Bruno Haible  <bruno@clisp.org>
54996         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
54997         cases.
54999 2010-03-13  Bruno Haible  <bruno@clisp.org>
55001         Test that gnulib does not break the standard C++ headers.
55002         * tests/test-locale-c++2.cc: New file.
55003         * modules/locale-tests (Files): Add it.
55004         (Makefile.am): Compile it for test-locale-c++.
55005         * tests/test-math-c++2.cc: New file.
55006         * modules/math-tests (Files): Add it.
55007         (Makefile.am): Compile it for test-math-c++.
55008         * tests/test-signal-c++2.cc: New file.
55009         * modules/signal-tests (Files): Add it.
55010         (Makefile.am): Compile it for test-signal-c++.
55011         * tests/test-stdio-c++2.cc: New file.
55012         * modules/stdio-tests (Files): Add it.
55013         (Makefile.am): Compile it for test-stdio-c++.
55014         * tests/test-stdlib-c++2.cc: New file.
55015         * modules/stdlib-tests (Files): Add it.
55016         (Makefile.am): Compile it for test-stdlib-c++.
55017         * tests/test-string-c++2.cc: New file.
55018         * modules/string-tests (Files): Add it.
55019         (Makefile.am): Compile it for test-string-c++.
55020         * tests/test-time-c++2.cc: New file.
55021         * modules/time-tests (Files): Add it.
55022         (Makefile.am): Compile it for test-time-c++.
55023         Reported by John W. Eaton <jwe@gnu.org>.
55025 2010-03-13  Bruno Haible  <bruno@clisp.org>
55027         * gnulib-tool (func_usage): Clarify which options are available for
55028         --create-testdir and --create-megatestdir.
55030 2010-03-13  Bruno Haible  <bruno@clisp.org>
55032         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
55033         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
55034         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
55035         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
55036         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
55037         when appropriate.
55038         Reported by Jim Meyering.
55040 2010-03-12  Simon Josefsson  <simon@josefsson.org>
55042         * gnulib-tool (func_import): Explain origin of code.
55044 2010-03-12  Bruno Haible  <bruno@clisp.org>
55046         Fix problem with automake's definition of CXXLINK.
55047         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
55048         Reported by Simon Josefsson and Ludovic Courtès.
55050 2010-03-12  Bruno Haible  <bruno@clisp.org>
55052         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
55053         stable releases.
55055 2010-03-11  Bruno Haible  <bruno@clisp.org>
55057         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
55058         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
55059         whether the system provides one variant or multiple variants of the
55060         function.
55061         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
55062         C++ compilers.
55063         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
55064         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
55065         Reported by Jim Meyering.
55067 2010-03-09  Simon Josefsson  <simon@josefsson.org>
55069         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
55071 2010-03-08  Bruno Haible  <bruno@clisp.org>
55073         gnulib-tool: Add support for --libtool in --create-testdir.
55074         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
55075         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
55077 2010-03-08  Eric Blake  <eblake@redhat.com>
55079         gnulib-tool.texi: mention possibility of git submodule
55080         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
55081         submodules.
55082         * doc/.gitignore: Ignore another generated file.
55084 2010-03-08  Karl Berry  <karl@gnu.org>
55086         * doc/gnulib-tool.texi (VCS Issues): Mention third option
55087         of committing gnulib files while skipping others.
55089 2010-03-07  Bruno Haible  <bruno@clisp.org>
55091         Tests of module 'wctype' in C++ mode.
55092         * tests/test-wctype-c++.cc: New file.
55093         * modules/wctype-tests (Files): Add it and tests/signature.h.
55094         (Depends-on): Add ansi-c++-opt.
55095         (Makefile.am): Arrange to compile and run test-wctype-c++.
55097         Tests of module 'wchar' in C++ mode.
55098         * tests/test-wchar-c++.cc: New file.
55099         * modules/wchar-tests (Files): Add it and tests/signature.h.
55100         (Depends-on): Add ansi-c++-opt.
55101         (Makefile.am): Arrange to compile and run test-wchar-c++.
55102         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
55103         gl_MODULE_INDICATOR.
55105         Tests of module 'unistd' in C++ mode.
55106         * tests/test-unistd-c++.cc: New file.
55107         * modules/unistd-tests (Files): Add it and tests/signature.h.
55108         (Depends-on): Add ansi-c++-opt.
55109         (Makefile.am): Arrange to compile and run test-unistd-c++.
55110         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
55111         gl_MODULE_INDICATOR.
55113         Tests of module 'time' in C++ mode.
55114         * tests/test-time-c++.cc: New file.
55115         * modules/time-tests (Files): Add it and tests/signature.h.
55116         (Depends-on): Add ansi-c++-opt.
55117         (Makefile.am): Arrange to compile and run test-time-c++.
55118         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55120         Tests of module 'sys_time' in C++ mode.
55121         * tests/test-sys_time-c++.cc: New file.
55122         * modules/sys_time-tests (Files): Add it and tests/signature.h.
55123         (Depends-on): Add ansi-c++-opt.
55124         (Makefile.am): Arrange to compile and run test-sys_time-c++.
55125         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
55126         gl_MODULE_INDICATOR.
55128         Tests of module 'sys_stat' in C++ mode.
55129         * tests/test-sys_stat-c++.cc: New file.
55130         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
55131         (Depends-on): Add ansi-c++-opt.
55132         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
55133         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
55134         gl_MODULE_INDICATOR.
55136         Tests of module 'sys_socket' in C++ mode.
55137         * tests/test-sys_socket-c++.cc: New file.
55138         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
55139         (Depends-on): Add ansi-c++-opt.
55140         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
55141         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
55142         gl_MODULE_INDICATOR.
55144         Tests of module 'sys_select' in C++ mode.
55145         * tests/test-sys_select-c++.cc: New file.
55146         * modules/sys_select-tests (Files): Add it and tests/signature.h.
55147         (Depends-on): Add ansi-c++-opt.
55148         (Makefile.am): Arrange to compile and run test-sys_select-c++.
55149         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
55150         gl_MODULE_INDICATOR.
55152         Tests of module 'sys_ioctl' in C++ mode.
55153         * tests/test-sys_ioctl-c++.cc: New file.
55154         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
55155         (Depends-on): Add ansi-c++-opt.
55156         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
55157         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
55158         gl_MODULE_INDICATOR.
55160         Tests of module 'string' in C++ mode.
55161         * tests/test-string-c++.cc: New file.
55162         * modules/string-tests (Files): Add it and tests/signature.h.
55163         (Depends-on): Add ansi-c++-opt.
55164         (Makefile.am): Arrange to compile and run test-string-c++.
55165         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
55166         gl_MODULE_INDICATOR.
55168         Tests of module 'stdlib' in C++ mode.
55169         * tests/test-stdlib-c++.cc: New file.
55170         * modules/stdlib-tests (Files): Add it and tests/signature.h.
55171         (Depends-on): Add ansi-c++-opt.
55172         (Makefile.am): Arrange to compile and run test-stdlib-c++.
55173         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
55174         gl_MODULE_INDICATOR.
55176         Tests of module 'stdio' in C++ mode.
55177         * tests/test-stdio-c++.cc: New file.
55178         * modules/stdio-tests (Files): Add it and tests/signature.h.
55179         (Depends-on): Add ansi-c++-opt.
55180         (Makefile.am): Arrange to compile and run test-stdio-c++.
55181         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
55182         gl_MODULE_INDICATOR.
55184         Tests of module 'spawn' in C++ mode.
55185         * tests/test-spawn-c++.cc: New file.
55186         * modules/spawn-tests (Files): Add it and tests/signature.h.
55187         (Depends-on): Add ansi-c++-opt.
55188         (Makefile.am): Arrange to compile and run test-spawn-c++.
55189         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
55190         gl_MODULE_INDICATOR.
55192         Tests of module 'signal' in C++ mode.
55193         * tests/test-signal-c++.cc: New file.
55194         * modules/signal-tests (Files): Add it and tests/signature.h.
55195         (Depends-on): Add ansi-c++-opt.
55196         (Makefile.am): Arrange to compile and run test-signal-c++.
55197         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
55198         gl_MODULE_INDICATOR.
55200         Tests of module 'search' in C++ mode.
55201         * tests/test-search-c++.cc: New file.
55202         * modules/search-tests (Files): Add it and tests/signature.h.
55203         (Depends-on): Add ansi-c++-opt.
55204         (Makefile.am): Arrange to compile and run test-search-c++.
55205         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
55206         gl_MODULE_INDICATOR.
55208         Tests of module 'math' in C++ mode.
55209         * tests/test-math-c++.cc: New file.
55210         * modules/math-tests (Files): Add it and tests/signature.h.
55211         (Depends-on): Add ansi-c++-opt.
55212         (Makefile.am): Arrange to compile and run test-math-c++.
55213         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55215         Tests of module 'locale' in C++ mode.
55216         * tests/test-locale-c++.cc: New file.
55217         * modules/locale-tests (Files): Add it and tests/signature.h.
55218         (Depends-on): Add ansi-c++-opt.
55219         (Makefile.am): Arrange to compile and run test-locale-c++.
55220         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
55221         gl_MODULE_INDICATOR.
55223         Tests of module 'langinfo' in C++ mode.
55224         * tests/test-langinfo-c++.cc: New file.
55225         * modules/langinfo-tests (Files): Add it and tests/signature.h.
55226         (Depends-on): Add ansi-c++-opt.
55227         (Makefile.am): Arrange to compile and run test-langinfo-c++.
55228         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
55229         gl_MODULE_INDICATOR.
55231         Tests of module 'iconv-h' in C++ mode.
55232         * tests/test-iconv-h-c++.cc: New file.
55233         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
55234         (Depends-on): Add ansi-c++-opt.
55235         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
55237         Tests of module 'glob' in C++ mode.
55238         * tests/test-glob-c++.cc: New file.
55239         * modules/glob-tests (Files): Add it.
55240         (Depends-on): Add ansi-c++-opt.
55241         (Makefile.am): Arrange to compile and run test-glob-c++.
55243         Tests of module 'fcntl-h' in C++ mode.
55244         * tests/test-fcntl-h-c++.cc: New file.
55245         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
55246         (Depends-on): Add ansi-c++-opt.
55247         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
55248         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
55249         gl_MODULE_INDICATOR.
55251         Tests of module 'dirent' in C++ mode.
55252         * tests/test-dirent-c++.cc: New file.
55253         * modules/dirent-tests (Files): Add it and tests/signature.h.
55254         (Depends-on): Add ansi-c++-opt.
55255         (Makefile.am): Arrange to compile and run test-dirent-c++.
55256         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
55257         gl_MODULE_INDICATOR.
55259         New module 'ansi-c++-opt'.
55260         * modules/ansi-c++-opt: New file.
55261         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
55263         Document C++ namespace mode.
55264         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
55266         wctype: Avoid #define replacements in C++ mode.
55267         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
55268         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
55269         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
55270         In C++, define a namespaced alias symbol.
55271         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
55272         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
55273         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
55274         rule.
55276         wchar: Avoid #define replacements in C++ mode.
55277         * lib/wchar.in.h: Include c++defs.h.
55278         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
55279         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
55280         symbol.
55281         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
55282         * modules/wchar (Depends-on): Add c++defs.
55283         (Makefile.am): Update wchar.h rule.
55285         unistd: Avoid #define replacements in C++ mode.
55286         * lib/unistd.in.h: Include c++defs.h.
55287         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
55288         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
55289         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
55290         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
55291         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
55292         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
55293         symbol.
55294         (environ): Update.
55295         * modules/unistd (Depends-on): Add c++defs.
55296         (Makefile.am): Update unistd.h rule.
55298         time: Avoid #define replacements in C++ mode.
55299         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
55300         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
55301         define a namespaced alias symbol.
55302         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
55303         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
55304         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
55305         * modules/time (Depends-on): Add c++defs, warn-on-use.
55306         (Makefile.am): Update time.h rule.
55307         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
55308         * modules/nanosleep (configure.ac): Likewise.
55309         * modules/strptime (configure.ac): Likewise.
55310         * modules/timegm (configure.ac): Likewise.
55312         sys_time: Avoid #define replacements in C++ mode.
55313         * lib/sys_time.in.h: Include c++defs.h.
55314         (gettimeofday): In C++, define a namespaced alias symbol.
55315         * modules/sys_time (Depends-on): Add c++defs.
55316         (Makefile.am): Update sys/time.h rule.
55318         sys_stat: Avoid #define replacements in C++ mode.
55319         * lib/sys_stat.in.h: Include c++defs.h.
55320         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
55321         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
55322         namespaced alias symbol.
55323         In C++, define a namespaced alias symbol.
55324         * modules/sys_stat (Depends-on): Add c++defs.
55325         (Makefile.am): Update sys/stat.h rule.
55327         sys_socket: Avoid #define replacements in C++ mode.
55328         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
55329         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
55330         definitions also when the system has a <sys/socket.h>.
55331         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55332         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
55333         In C++, define a namespaced alias symbol.
55334         * modules/sys_socket (Depends-on): Add c++defs.
55335         (Makefile.am): Update sys/socket.h rule.
55337         sys_select: Avoid #define replacements in C++ mode.
55338         * lib/sys_select.in.h: Include c++defs.h. Enable the function
55339         definitions also when the system has a <sys/select.h>.
55340         (select): In C++, define a namespaced alias symbol.
55341         * modules/sys_select (Depends-on): Add c++defs.
55342         (Makefile.am): Update sys/select.h rule.
55344         sys_ioctl: Avoid #define replacements in C++ mode.
55345         * lib/sys_ioctl.in.h: Include c++defs.h.
55346         (ioctl): In C++, define a namespaced alias symbol.
55347         * modules/sys_ioctl (Depends-on): Add c++defs.
55348         (Makefile.am): Update sys/ioctl.h rule.
55350         string: Avoid #define replacements in C++ mode.
55351         * lib/string.in.h: Include c++defs.h.
55352         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
55353         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
55354         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
55355         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
55356         strsignal, strverscmp): In C++, define a namespaced alias symbol.
55357         * modules/string (Depends-on): Add c++defs.
55358         (Makefile.am): Update string.h rule.
55360         stdlib: Avoid #define replacements in C++ mode.
55361         * lib/stdlib.in.h: Include c++defs.h.
55362         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
55363         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
55364         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
55365         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
55366         symbol.
55367         * modules/stdlib (Depends-on): Add c++defs.
55368         (Makefile.am): Update stdlib.h rule.
55370         stdio: Avoid #define replacements in C++ mode.
55371         * lib/stdio.in.h: Include c++defs.h.
55372         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
55373         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
55374         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
55375         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
55376         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
55377         namespaced alias symbol.
55378         * modules/stdio (Depends-on): Add c++defs.
55379         (Makefile.am): Update stdio.h rule.
55381         spawn: Avoid #define replacements in C++ mode.
55382         * lib/spawn.in.h: Include c++defs.h.
55383         (posix_spawn, posix_spawnp, posix_spawnattr_init,
55384         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
55385         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
55386         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
55387         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
55388         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
55389         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
55390         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
55391         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
55392         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
55393         In C++, define a namespaced alias symbol.
55394         * modules/spawn (Depends-on): Add c++defs.
55395         (Makefile.am): Update spawn.h rule.
55397         signal: Avoid #define replacements in C++ mode.
55398         * lib/signal.in.h: Include c++defs.h.
55399         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
55400         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
55401         namespaced alias symbol.
55402         * modules/signal (Depends-on): Add c++defs.
55403         (Makefile.am): Update signal.h rule.
55405         search: Avoid #define replacements in C++ mode.
55406         * lib/search.in.h: Include c++defs.h.
55407         (_gl_search_compar_fn, _gl_search_action_fn): New types.
55408         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
55409         symbol.
55410         * modules/search (Depends-on): Add c++defs.
55411         (Makefile.am): Update search.h rule.
55413         math: Avoid #define replacements in C++ mode.
55414         * lib/math.in.h: Include c++defs.h.
55415         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
55416         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
55417         trunc, truncl): In C++, define a namespaced alias symbol.
55418         * modules/math (Depends-on): Add c++defs.
55419         (Makefile.am): Update math.h rule.
55421         locale: Avoid #define replacements in C++ mode.
55422         * lib/locale.in.h: Include c++defs.h.
55423         (duplocale): In C++, define a namespaced alias symbol.
55424         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
55425         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
55426         * modules/locale (Depends-on): Add c++defs.
55427         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
55429         langinfo: Avoid #define replacements in C++ mode.
55430         * lib/langinfo.in.h: Include c++defs.h.
55431         (nl_langinfo): In C++, define a namespaced alias symbol.
55432         * modules/langinfo (Depends-on): Add c++defs.
55433         (Makefile.am): Update langinfo.h rule.
55435         iconv-h: Avoid #define replacements in C++ mode.
55436         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
55437         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
55438         symbol.
55439         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55440         whenever iconv is present.
55441         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
55442         (Makefile.am): Update iconv.h rule.
55444         glob: Avoid #define replacements in C++ mode.
55445         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
55446         (_gl_glob_errfunc_fn): New type.
55447         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
55448         symbol.
55449         * modules/glob (Depends-on): Add c++defs, warn-on-use.
55450         (Makefile.am): Update glob.h rule.
55452         fcntl-h: Avoid #define replacements in C++ mode.
55453         * lib/fcntl.in.h: Include c++defs.h.
55454         (fcntl, open, openat): In C++, define a namespaced alias symbol.
55455         * modules/fcntl-h (Depends-on): Add c++defs.
55456         (Makefile.am): Update fcntl.h rule.
55458         dirent: Avoid #define replacements in C++ mode.
55459         * lib/dirent.in.h: Include c++defs.h.
55460         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
55461         namespaced alias symbol.
55462         (dirfd): Update declaration.
55463         * modules/dirent (Depends-on): Add c++defs.
55464         (Makefile.am): Update dirent.h rule.
55466         ctype: Make it usable in C++ code.
55467         * lib/ctype.in.h: Include c++defs.h.
55468         (isblank): Declare as extern "C".
55469         * modules/ctype (Depends-on): Add c++defs.
55470         (Makefile.am): Update ctype.h rule.
55472         New module 'c++defs'.
55473         * modules/c++defs: New file.
55474         * build-aux/c++defs.h: New file.
55475         Reported by John W. Eaton <jwe@gnu.org>.
55477 2010-03-07  Bruno Haible  <bruno@clisp.org>
55479         logb: Provide missing declaration for Cygwin.
55480         * lib/math.in.h (logb): New declaration.
55481         * m4/logb.m4: New file.
55482         * modules/logb (Files): Add m4/logb.m4.
55483         (Depends-on): Add math.
55484         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
55485         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
55486         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
55487         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
55488         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
55490 2010-03-07  Bruno Haible  <bruno@clisp.org>
55492         Fix test-cond link error.
55493         * tests/test-cond.c: Include <stdio.h>.
55495 2010-03-07  Bruno Haible  <bruno@clisp.org>
55497         Fix test-dirent-safer link error.
55498         * modules/dirent-safer-tests (Makefile.am): Define
55499         test_dirent_safer_LDADD.
55501 2010-03-07  Bruno Haible  <bruno@clisp.org>
55503         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
55504         among default module list.
55506 2010-03-07  Bruno Haible  <bruno@clisp.org>
55508         Fix link error on platforms with GNU libiconv.
55509         * modules/unistr/u8-strcoll-tests (Makefile): Define
55510         test_u8_strcoll_LDADD.
55511         * modules/unistr/u16-strcoll-tests (Makefile): Define
55512         test_u16_strcoll_LDADD.
55513         * modules/unistr/u32-strcoll-tests (Makefile): Define
55514         test_u32_strcoll_LDADD.
55516 2010-03-07  Bruno Haible  <bruno@clisp.org>
55518         Use POSIX declarations for socket functions.
55519         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
55520         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
55521         rpl_sendto): Change declaration to match POSIX.
55522         * lib/connect.c (rpl_connect): Likewise.
55523         * lib/accept.c (rpl_accept): Likewise.
55524         * lib/bind.c (rpl_bind): Likewise.
55525         * lib/getpeername.c (rpl_getpeername): Likewise.
55526         * lib/getsockname.c (rpl_getsockname): Likewise.
55527         * lib/recv.c (rpl_recv): Likewise.
55528         * lib/send.c (rpl_send): Likewise.
55529         * lib/recvfrom.c (rpl_recvfrom): Likewise.
55530         * lib/sendto.c (rpl_sendto): Likewise.
55532 2010-03-06  Bruno Haible  <bruno@clisp.org>
55534         Clarify access, euidaccess, faccessat.
55535         * doc/posix-functions/faccessat.texi: Mention security problem under
55536         "Other problems", not "Portability problems".
55537         * doc/posix-functions/access.texi: Likewise. Mention a related security
55538         problem.
55539         * doc/glibc-functions/euidaccess.texi: Mention security problems.
55540         * lib/euidaccess.c: Add comments about platforms.
55541         * lib/unistd.in.h (access, euidaccess): Add warnings.
55543 2010-03-07  Bruno Haible  <bruno@clisp.org>
55545         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
55546         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
55547         (POSIX_SPAWN_SETSCHEDULER): Likewise.
55548         (POSIX_SPAWN_USEVFORK): Define in a way that works when
55549         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
55550         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
55551         declare when POSIX_SPAWN_SETSCHEDULER is zero.
55552         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
55553         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
55554         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
55555         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
55556         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
55557         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
55558         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
55559         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
55560         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
55561         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
55562         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
55563         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
55564         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
55565         Likewise.
55566         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
55567         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
55568         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
55569         Likewise.
55570         * tests/test-spawn.c (main): Make it work when
55571         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
55573 2010-03-07  Bruno Haible  <bruno@clisp.org>
55575         Fix incorrect Makefile.am generation in German locale.
55576         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55577         Execute sed command with character range in C locale.
55579 2010-03-06  Bruno Haible  <bruno@clisp.org>
55581         Tests for module 'iconv-h'.
55582         * modules/iconv-h-tests: New file.
55583         * tests/test-iconv-h.c: New file.
55585         New module 'iconv-h'.
55586         * modules/iconv-h: New file.
55587         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
55588         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
55589         (configure.ac): Remove gl_ICONV_H.
55590         (Makefile.am): Remove rule for iconv.h.
55592 2010-03-06  Bruno Haible  <bruno@clisp.org>
55594         More consistent naming of *.m4 files.
55595         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
55596         * modules/wctype (Files): Update.
55598         More consistent naming of *.m4 files.
55599         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
55600         * modules/wchar (Files): Update.
55602 2010-03-06  Jim Meyering  <meyering@redhat.com>
55604         euidaccess: relax license to LGPLv2+
55605         * modules/euidaccess (License): Relax to LGPLv2+.
55607 2010-03-06  Bruno Haible  <bruno@clisp.org>
55609         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
55610         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
55611         (Makefile.am): Augment lib_SOURCES instead.
55613 2010-03-04  Jim Meyering  <meyering@redhat.com>
55615         utime: remove obsolete module
55616         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
55617         unnecessary for years, and has been marked as obsolete for 10 months.
55618         * modules/utime: Remove file.
55619         * lib/utime.c: Remove file.
55620         * m4/utime.m4: Remove file.
55621         * m4/utimes-null.m4: Remove file.
55622         * doc/posix-functions/utime.texi (utime): Remove reference to
55623         the module.  Move the sole "fixed by gnulib" item into the
55624         "problems not fixed by Gnulib" list.
55625         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
55627 2010-03-05  Simon Josefsson  <simon@josefsson.org>
55629         * modules/exit (License): Relax license to LGPLv2+.
55630         (Status): Mark as obsolete.
55631         * NEWS: Mention deprecated 'exit' module.
55632         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
55633         of now obsolete 'exit'.
55635 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55637         fts-lgpl: remove unused module
55638         * modules/fts-lgpl: Remove.
55639         * MODULES.html.sh (func_all_modules): Adjust.
55640         * check-module (find_included_lib_files): Adjust.
55641         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
55643 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
55645         copy-acl: enhance Solaris ACL error handling
55646         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
55647         * lib/set-mode-acl.c (qset_acl): Likewise.
55649 2010-03-02  Bruno Haible  <bruno@clisp.org>
55651         spawn: Don't override the system defined values on FreeBSD 8.
55652         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
55653         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
55654         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
55655         if HAVE_POSIX_SPAWN is 1.
55656         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
55658 2010-03-01  Bruno Haible  <bruno@clisp.org>
55660         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
55661         regarding Automake.
55663 2010-02-25  Bruno Haible  <bruno@clisp.org>
55665         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
55666         * gnulib-tool: Define 'echo' as a function only before the ksh alias
55667         setting, not afterwards.
55668         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
55670 2010-02-24  Eric Blake  <eblake@redhat.com>
55672         bootstrap, git-version-gen: use timestamp
55673         * build-aux/git-version-gen (scriptversion): Force UTC.
55674         * build-aux/bootstrap (scriptversion): New variable.
55676         bootstrap: allow older git
55677         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
55678         older than 1.6.4.  Requested by the libvirt project.
55680 2010-02-23  Eric Blake  <eblake@redhat.com>
55682         warn-on-use: work with old autoconf
55683         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
55684         AS_VAR semantics of autoconf 2.60.
55685         Reported by Bruno Haible.
55687         bootstrap: improve some comments
55688         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
55689         clarification comments.
55691         gettimeofday: provide correct function
55692         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
55693         when replacement is declared, otherwise provide gettimeofday.
55694         Reported by Michael Goffioul.
55696 2010-02-23  Jim Meyering  <meyering@redhat.com>
55698         lib-ignore: relax license to "unlimited", not LGPLv2+
55699         * modules/lib-ignore (License): Relax to "unlimited".
55701 2010-02-23  Jim Meyering  <meyering@redhat.com>
55703         lib-ignore: relax license to LGPLv2+
55704         * modules/lib-ignore (License): Relax to LGPLv2+.
55706 2010-02-22  Eric Blake  <eblake@redhat.com>
55708         lseek: avoid bash 3.2 broken pipe bug
55709         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
55710         warning from bash 3.2.
55711         Reported by Ben Pfaff, with analysis from Bruno Haible.
55713         bootstrap: support non-FSF copyright holder
55714         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
55715         bootstrap.conf override of COPYRIGHT_HOLDER.
55716         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
55718         bootstrap: interoperate with gettext 0.14.1
55719         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
55721         bootstrap: allow for alternate submodule location
55722         * build-aux/bootstrap (gnulib_path): New variable; use instead of
55723         hardcoding submodule location.
55724         (gnulib_mk): Allow direct use of Makefile.am.
55726         bootstrap: use GNULIB_SRCDIR to reduce disk usage
55727         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
55728         rather than reconfiguring where the submodule points.
55730         gettimeofday: restore support for platforms that lack function
55731         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
55732         replacement if function is missing.
55733         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
55734         * modules/sys_time (Makefile.am): Substitute it.
55735         * lib/sys_time.in.h (gettimeofday): Check it.
55736         Reported by Michael Goffioul.
55738 2010-02-21  Bruno Haible  <bruno@clisp.org>
55740         * lib/stdio.in.h (obstack_printf): Fix typo.
55742 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
55744         vc-list-files: use bzr ls's -R option
55745         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
55746         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
55748 2010-02-21  Jim Meyering  <meyering@redhat.com>
55750         init.sh: fix EXEEXT shims to work also for names like test-prog
55751         * tests/init.sh: Re-exec a better shell, when needed.
55752         If the current shell lacks support for posix $(...), an init.sh-using
55753         test will now try to find a shell that supports that.  If EXEEXT is
55754         nonempty, we also require support for hyphen-in-alias-name and shell
55755         substitutions like ${var#glob}.  Failure to find such a shell results
55756         in a skipped test.
55758 2010-02-21  Bruno Haible  <bruno@clisp.org>
55760         Really work around "broken pipe" error message from bash 3.2.
55761         * gnulib-tool (func_reset_sigpipe): Remove function.
55762         (echo): In bash 3.2, define to a function that uses printf.
55763         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
55765 2010-02-20  Bruno Haible  <bruno@clisp.org>
55767         Restore support for automake 1.9.6 with autoconf 2.61.
55768         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
55769         Reported by James Youngman <jay@gnu.org>.
55771 2010-02-20  Bruno Haible  <bruno@clisp.org>
55773         Improve *printf warning condition.
55774         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
55775         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
55776         and the function is overridden due to SIGPIPE emulation.
55778 2010-02-20  Bruno Haible  <bruno@clisp.org>
55780         * lib/stdio.in.h: Tweak comments.
55782 2010-02-19  Bruno Haible  <bruno@clisp.org>
55784         Make it easier to find modules. New gnulib-tool option '--find'.
55785         * gnulib-tool: New option --find.
55786         (func_usage): Document it.
55787         (func_sanitize_modulelist): New function, extracted from
55788         func_all_modules.
55789         (func_all_modules): Invoke it.
55790         * doc/gnulib-tool.texi (Which modules?): New node.
55792 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
55794         * lib/sys_select.in.h: Provide select replacement even if
55795         sys/select.h exists on a system, for Interix.
55797 2010-02-18  Jim Meyering  <meyering@redhat.com>
55799         init.sh: don't use $(...) just yet
55800         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
55801         to accommodate e.g., Solaris' /bin/sh.
55803 2010-02-17  Bruno Haible  <bruno@clisp.org>
55805         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
55806         Reported by Ludovic Courtès <ludo@gnu.org>.
55808 2010-02-16  Simon Josefsson  <simon@josefsson.org>
55810         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
55811         linking with -lintl.
55813 2010-02-17  Simon Josefsson  <simon@josefsson.org>
55815         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
55816         if not provided by the system's netdb.h.  Reported by
55817         ludo@gnu.org (Ludovic Courtès).
55819 2010-02-15  Jim Meyering  <meyering@redhat.com>
55821         init.sh: improve portability and efficiency
55822         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
55823         "dummy" in a for loop.
55824         Use '!', not '^' to select the complement of a character set used
55825         in a "case" statement.
55826         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
55827         Suggestions from Eric Blake.
55829         init.sh: automatically accommodate programs with the .exe suffix
55830         Automatically arrange for an invocation of "prog" to execute the
55831         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
55832         may use the simpler "prog", yet still work when built on a system
55833         that requires specifying the added suffix.
55834         Do this by constructing a function named "prog" that invokes
55835         "prog.exe" for each .exe file in selected directories.
55836         * tests/init.sh (find_exe_basenames_): New function.
55837         (create_exe_shim_functions_): New function.
55838         (path_prepend_): Use it.
55840         maint.mk: mark syntax-check sc_*.m rules as .PHONY
55841         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
55842         "make -t syntax-check" doesn't create a ton of sc_*.m files.
55844 2010-02-14  Jim Meyering  <meyering@redhat.com>
55846         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
55847         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
55848         (sc_prohibit_hash_pjw_without_use): New rule.
55850         maint.mk: allow the default upload destination dir to be overridden
55851         * top/maint.mk (upload_dest_dir_): Define with a default that
55852         preserves the status quo.
55853         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
55854         Reported by Peter Simons.
55856         maint.mk: prohibit inclusion of "hash.h" without_use
55857         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
55859 2010-02-10  Jim Meyering  <meyering@redhat.com>
55861         maint.mk: prohibit inclusion of "ignore-value.h" without_use
55862         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
55864 2010-02-09  Eric Blake  <ebb9@byu.net>
55865         and Bruno Haible  <bruno@clisp.org>
55867         obstack-printf-posix: ensure declaration
55868         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
55869         extracted from gl_FUNC_OBSTACK_PRINTF.
55870         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
55871         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
55872         Likewise.
55873         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
55874         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
55875         0.
55877 2010-02-08  Bruno Haible  <bruno@clisp.org>
55879         gnulib-tool: Fix typo in 2010-02-07 commit.
55880         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
55881         Reported by Eric Blake.
55883 2010-02-07  Bruno Haible  <bruno@clisp.org>
55885         gnulib-tool: Fix up caching patches.
55886         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
55887         option --no-cache. Use associative arrays when supported by the shell.
55888         (sed_comments): New variable.
55889         (modcache): Renamed from do_cache.
55890         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
55891         abbreviate unnecessarily.
55892         (have_associative): New variable.
55893         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
55894         way also for ksh and zsh.
55895         (func_init_sed_convert_to_cache_statements): New function, extracted
55896         from func_cache_lookup_module. Add support for associative arrays.
55897         Don't set the c_MODULE_cached variable here. Ignore all lines before
55898         the first field header. Remove only the final newline, not all trailing
55899         newlines. Support empty fields correctly. Limit the use of 'eval' to
55900         assignments.
55901         (func_get_description, func_get_status, func_get_notice,
55902         func_get_applicability, func_get_filelist, func_get_dependencies,
55903         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
55904         func_get_automake_snippet, func_get_include_directive,
55905         func_get_link_directive, func_get_license, func_get_maintainer):
55906         Update documentation. List the unoptimized code first. Add support for
55907         associative arrays. Limit the use of 'eval' to assignments.
55908         (func_get_applicability): Undo stylistic pessimisations.
55909         (func_get_automake_snippet, func_get_include_directive): Reduce code
55910         duplication.
55911         (func_modules_transitive_closure, func_modules_add_dummy,
55912         func_modules_notice, func_modules_to_filelist, func_add_file,
55913         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
55914         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
55915         func_create_testdir, func_create_megatestdir): Update documentation.
55917 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55919         * gnulib-tool (func_cache_lookup_module): Store the module name
55920         belonging to the cache variable; error out if two different
55921         module names map to the same cache variable name.
55923 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55925         gnulib-tool: Make caching optional.
55926         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
55927         Update matching short versions of --no-changelog.
55928         (func_usage): Update.
55929         (sed_extract_cache_prog): Renamed from ...
55930         (sed_extract_prog): ... this; revert to old extraction script.
55931         (func_get_description, func_get_status)
55932         (func_get_notice, func_get_applicability, func_get_filelist)
55933         (func_get_dependencies, func_get_autoconf_early_snippet)
55934         (func_get_autoconf_snippet, func_get_automake_snippet)
55935         (func_get_include_directive, func_get_link_directive)
55936         (func_get_license, func_get_maintainer): If $do_cache is false,
55937         use old, non-caching extraction scripts.
55938         Suggestion by Bruno Haible.
55940 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55942         gnulib-tool: cache module metainformation.
55943         * gnulib-tool (sed_extract_prog): Match newline before each
55944         header, and rewrite header to a shell variable suffix.
55945         (func_cache_var, func_cache_lookup_module): New functions,
55946         to turn a module name into a cache variable prefix, and to
55947         look up and cache module metainformation.
55948         (func_get_description, func_get_status)
55949         (func_get_notice, func_get_applicability, func_get_filelist)
55950         (func_get_dependencies, func_get_autoconf_early_snippet)
55951         (func_get_autoconf_snippet, func_get_automake_snippet)
55952         (func_get_include_directive, func_get_link_directive)
55953         (func_get_license, func_get_maintainer): Use
55954         func_cache_lookup_module.
55956 2010-02-07  Bruno Haible  <bruno@clisp.org>
55958         fnctl: Fix missing dependency.
55959         * modules/fcntl (Depends-on): Add getdtablesize.
55960         Reported by John W. Eaton <jwe@gnu.org>.
55962 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
55964         Argp: fix recognition of short alias options.
55966         * lib/argp-parse.c (convert_options): Fix improper use of
55967         `|' between character values.
55968         * tests/test-argp.c (group1_option): New alias option
55969         --read (-r).
55970         (group1_parser): Special handling for 'r'.
55971         (test15): New test case.
55972         (test_fun): Add test15.
55973         * tests/test-argp-2.sh: Update expected --help and --usage
55974         outputs.
55976 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
55978         * tests/test-argp.c: Fix indentation.
55980 2010-02-04  Eric Blake  <ebb9@byu.net>
55982         gettimeofday: expose type of second argument
55983         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
55984         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
55985         * tests/test-gettimeofday.c: Use it to silence warning.
55986         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
55987         the issue.
55989 2010-02-03  Jim Meyering  <meyering@redhat.com>
55991         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
55992         * lib/regcomp.c (TYPE_SIGNED): Define.
55993         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
55995         regcomp.c: avoid a new -Wshadow warning
55996         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
55998 2010-02-01  Jim Meyering  <meyering@redhat.com>
56000         removing useless parentheses in cpp #define directives
56001         For motivation, see commit c0221df4, "define STREQ(a,b)
56002         consistently, removing useless parentheses"
56003         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
56004         * lib/mountlist.c (MNT_IGNORE): Likewise.
56005         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
56007 2010-02-01  Eric Blake  <ebb9@byu.net>
56009         sys_time: use link-warning
56010         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
56011         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
56012         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
56013         * modules/sys_time (Depends-on): Add warn-on-use.
56014         (Makefile.am): Always build replacement.
56015         (configure.ac): Update substitutions.
56016         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
56017         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
56018         bother with SYS_TIME_H.
56019         * modules/gettimeofday (configure.ac): Declare indicator.
56020         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
56021         in use.
56023         closein-tests: silence compiler warning
56024         * tests/test-closein.c (main): Ignore fread result.
56025         * modules/closein-tests (Depends-on): Add ignore-value.
56027         tests: silence warning about system return
56028         * tests/test-areadlink-with-size.c (main): Ignore system result.
56029         * tests/test-areadlink.c (main): Likewise.
56030         * tests/test-areadlinkat-with-size.c (main): Likewise.
56031         * tests/test-areadlinkat.c (main): Likewise.
56032         * tests/test-canonicalize-lgpl.c (main): Likewise.
56033         * tests/test-canonicalize.c (main): Likewise.
56034         * tests/test-chown.c (main): Likewise.
56035         * tests/test-fchownat.c (main): Likewise.
56036         * tests/test-fdutimensat.c (main): Likewise.
56037         * tests/test-fstatat.c (main): Likewise.
56038         * tests/test-futimens.c (main): Likewise.
56039         * tests/test-lchown.c (main): Likewise.
56040         * tests/test-link.c (main): Likewise.
56041         * tests/test-linkat.c (main): Likewise.
56042         * tests/test-lstat.c (main): Likewise.
56043         * tests/test-mkdir.c (main): Likewise.
56044         * tests/test-mkdirat.c (main): Likewise.
56045         * tests/test-mkfifo.c (main): Likewise.
56046         * tests/test-mkfifoat.c (main): Likewise.
56047         * tests/test-mknod.c (main): Likewise.
56048         * tests/test-readlink.c (main): Likewise.
56049         * tests/test-remove.c (main): Likewise.
56050         * tests/test-rename.c (main): Likewise.
56051         * tests/test-renameat.c (main): Likewise.
56052         * tests/test-rmdir.c (main): Likewise.
56053         * tests/test-symlink.c (main): Likewise.
56054         * tests/test-symlinkat.c (main): Likewise.
56055         * tests/test-unlink.c (main): Likewise.
56056         * tests/test-unlinkat.c (main): Likewise.
56057         * tests/test-utimens.c (main): Likewise.
56058         * tests/test-utimensat.c (main): Likewise.
56059         * modules/areadlink-tests (Depends-on): Add ignore-value.
56060         * modules/areadlink-with-size-tests (Depends-on): Likewise.
56061         * modules/areadlinkat-tests (Depends-on): Likewise.
56062         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
56063         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
56064         * modules/canonicalize-tests (Depends-on): Likewise.
56065         * modules/chown-tests (Depends-on): Likewise.
56066         * modules/fdutimensat-tests (Depends-on): Likewise.
56067         * modules/futimens-tests (Depends-on): Likewise.
56068         * modules/lchown-tests (Depends-on): Likewise.
56069         * modules/link-tests (Depends-on): Likewise.
56070         * modules/linkat-tests (Depends-on): Likewise.
56071         * modules/lstat-tests (Depends-on): Likewise.
56072         * modules/mkdir-tests (Depends-on): Likewise.
56073         * modules/mkfifo-tests (Depends-on): Likewise.
56074         * modules/mkfifoat-tests (Depends-on): Likewise.
56075         * modules/mknod-tests (Depends-on): Likewise.
56076         * modules/openat-tests (Depends-on): Likewise.
56077         * modules/readlink-tests (Depends-on): Likewise.
56078         * modules/remove-tests (Depends-on): Likewise.
56079         * modules/rename-tests (Depends-on): Likewise.
56080         * modules/renameat-tests (Depends-on): Likewise.
56081         * modules/rmdir-tests (Depends-on): Likewise.
56082         * modules/symlink-tests (Depends-on): Likewise.
56083         * modules/symlinkat-tests (Depends-on): Likewise.
56084         * modules/unlink-tests (Depends-on): Likewise.
56085         * modules/utimens-tests (Depends-on): Likewise.
56086         * modules/utimensat-tests (Depends-on): Likewise.
56088 2010-01-31  Bruno Haible  <bruno@clisp.org>
56090         Perform the same test for many <math.h> functions.
56091         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
56092         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
56093         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
56094         of gl_MATHFUNC.
56095         * modules/acos (configure.ac): Likewise.
56096         * modules/asin (configure.ac): Likewise.
56097         * modules/atan (configure.ac): Likewise.
56098         * modules/atan2 (configure.ac): Likewise.
56099         * modules/cbrt (configure.ac): Likewise.
56100         * modules/copysign (configure.ac): Likewise.
56101         * modules/cos (configure.ac): Likewise.
56102         * modules/cosh (configure.ac): Likewise.
56103         * modules/erf (configure.ac): Likewise.
56104         * modules/erfc (configure.ac): Likewise.
56105         * modules/exp (configure.ac): Likewise.
56106         * modules/fmod (configure.ac): Likewise.
56107         * modules/hypot (configure.ac): Likewise.
56108         * modules/j0 (configure.ac): Likewise.
56109         * modules/j1 (configure.ac): Likewise.
56110         * modules/jn (configure.ac): Likewise.
56111         * modules/lgamma (configure.ac): Likewise.
56112         * modules/log (configure.ac): Likewise.
56113         * modules/log10 (configure.ac): Likewise.
56114         * modules/log1p (configure.ac): Likewise.
56115         * modules/pow (configure.ac): Likewise.
56116         * modules/remainder (configure.ac): Likewise.
56117         * modules/sin (configure.ac): Likewise.
56118         * modules/sinh (configure.ac): Likewise.
56119         * modules/tan (configure.ac): Likewise.
56120         * modules/tanh (configure.ac): Likewise.
56121         * modules/y0 (configure.ac): Likewise.
56122         * modules/y1 (configure.ac): Likewise.
56123         * modules/yn (configure.ac): Likewise.
56124         Suggested by Paolo Bonzini.
56126 2010-01-31  Bruno Haible  <bruno@clisp.org>
56128         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
56130 2010-01-31  Bruno Haible  <bruno@clisp.org>
56132         Work around getdelim() bug on FreeBSD 8.0.
56133         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
56134         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
56135         not work.
56136         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
56137         is 1.
56138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
56139         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
56140         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
56141         a non-zero size.
56142         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
56144 2010-01-31  Bruno Haible  <bruno@clisp.org>
56146         Work around getline() bug on FreeBSD 8.0.
56147         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
56148         and a non-zero size.
56149         * tests/test-getline.c (main): Likewise.
56150         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
56151         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
56153 2010-01-28  Eric Blake  <ebb9@byu.net>
56155         regex: fix build failure
56156         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
56157         platforms.
56159 2010-01-28  Jim Meyering  <meyering@redhat.com>
56161         regex: do not ignore memory allocation failure
56162         * lib/regex_internal.c (create_cd_newstate): Detect
56163         re_node_set_init_copy failure.   Extracted from glibc commit
56164         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56166         regex: sync more white-space changes from libc
56167         * lib/regex_internal.c: White-space only changes.
56168         * lib/regexec.c: Likewise.
56170         regex: add many uses of __attribute_warn_unused_result__
56171         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
56172         * lib/regexec.c: Likewise.
56173         Extracted from a messy glibc commit.
56175         regcomp.c: spelling and merge-artifact from glibc
56176         * lib/regcomp.c: Merge remainder of glibc's
56177         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56179         regcomp.c: sync white-space changes from glibc
56180         * lib/regcomp.c: Merge to accommodate white space
56181         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56183         regcomp.c: do not ignore internal return values
56184         * lib/regcomp.c: Do not ignore internal return values.
56185         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
56186         but without its white-space changes and spelling fixes.
56188         regex_internal.h: define __attribute_warn_unused_result__
56189         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
56191         maint: add a syntax-check rule to check for vulnerable Makefile.in
56192         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
56194 2010-01-27  Jim Meyering  <meyering@redhat.com>
56196         ncftpput-ftp: clean up spaces
56197         * build-aux/ncftpput-ftp: Make Copyright line consistent.
56198         Remove trailing blanks.
56200 2010-01-27  Simon Josefsson  <simon@josefsson.org>
56202         * build-aux/git-version-gen: Fix copyright statement.
56203         * build-aux/gnupload: Likewise.
56204         * tests/test-arcfour.c: Likewise.
56205         * tests/test-arctwo.c: Likewise.
56206         * tests/test-count-one-bits.c: Likewise.
56207         * tests/test-crc.c: Likewise.
56208         * tests/test-des.c: Likewise.
56209         * tests/test-gc-arcfour.c: Likewise.
56210         * tests/test-gc-arctwo.c: Likewise.
56211         * tests/test-gc-des.c: Likewise.
56212         * tests/test-gc-hmac-md5.c: Likewise.
56213         * tests/test-gc-hmac-sha1.c: Likewise.
56214         * tests/test-gc-md2.c: Likewise.
56215         * tests/test-gc-md4.c: Likewise.
56216         * tests/test-gc-md5.c: Likewise.
56217         * tests/test-gc-pbkdf2-sha1.c: Likewise.
56218         * tests/test-gc-rijndael.c: Likewise.
56219         * tests/test-gc-sha1.c: Likewise.
56220         * tests/test-gc.c: Likewise.
56221         * tests/test-gethostname.c: Likewise.
56222         * tests/test-gettimeofday.c: Likewise.
56223         * tests/test-hash.c: Likewise.
56224         * tests/test-hmac-md5.c: Likewise.
56225         * tests/test-hmac-sha1.c: Likewise.
56226         * tests/test-md2.c: Likewise.
56227         * tests/test-md4.c: Likewise.
56228         * tests/test-md5.c: Likewise.
56229         * tests/test-memchr.c: Likewise.
56230         * tests/test-memchr2.c: Likewise.
56231         * tests/test-memcmp.c: Likewise.
56232         * tests/test-memmem.c: Likewise.
56233         * tests/test-memrchr.c: Likewise.
56234         * tests/test-rawmemchr.c: Likewise.
56235         * tests/test-read-file.c: Likewise.
56236         * tests/test-rijndael.c: Likewise.
56237         * tests/test-sockets.c: Likewise.
56238         * tests/test-strchrnul.c: Likewise.
56239         * tests/test-strstr.c: Likewise.
56240         * tests/test-strtod.c: Likewise.
56241         * build-aux/ncftpput-ftp: Likewise.
56243 2010-01-26  Eric Blake  <ebb9@byu.net>
56245         ignore-value: update recommended header name
56246         * modules/ignore-value (Include): Only use <> for headers that
56247         exist in glibc.
56249 2010-01-26  Jim Meyering  <meyering@redhat.com>
56251         test-userspec.c: avoid compiler warnings
56252         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
56253         and "initialization discards qualifiers..." warnings.
56254         Put the first "uid" in its own scope, and make char* members "const".
56256 2010-01-25  Bruno Haible  <bruno@clisp.org>
56258         gnulib-tool: Make warning diagnostics consistent.
56259         * gnulib-tool (func_warning): New function.
56260         Use it everywhere where gnulib-tool produces output to stderr and it is
56261         not a fatal error.
56263 2010-01-25  Bruno Haible  <bruno@clisp.org>
56265         Fix test dependencies.
56266         * modules/xstrtol-tests (Depends-on): Add inttypes.
56267         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
56269 2010-01-25  Pádraig Brady  <P@draigBrady.com>
56271         syntax-check: detect incorrect boolean macro values in config.h
56272         * modules/maintainer-makefile (configure.ac): Parameterize the location
56273         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
56274         The logic is from Eric Blake and the location indicated by Jim Meyering.
56275         Note the more natural CONFIG_HEADER name is prohibited by automake
56276         for backwards compatibility reasons.
56277         * top/maint.mk (sc_Wundef_boolean): New rule.
56279 2010-01-25  Jim Meyering  <meyering@redhat.com>
56281         bootstrap: detect MacOS 10.6's shasum, too
56282         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
56283         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
56285 2010-01-23  Jim Meyering  <meyering@redhat.com>
56287         xstrtoll: new module
56288         * modules/xstrtoll: New file.
56289         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
56290         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
56291         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
56292         ./configure fails if you use this module and lack "long long".
56293         * modules/xstrtoll-tests: New module.
56294         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
56295         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
56296         new init.sh-based test framework.
56298 2010-01-24  Bruno Haible  <bruno@clisp.org>
56300         Tests for module 'yn'.
56301         * modules/yn-tests: New file.
56302         * tests/test-yn.c: New file.
56304         Tests for module 'y1'.
56305         * modules/y1-tests: New file.
56306         * tests/test-y1.c: New file.
56308         Tests for module 'y0'.
56309         * modules/y0-tests: New file.
56310         * tests/test-y0.c: New file.
56312         Tests for module 'tanh'.
56313         * modules/tanh-tests: New file.
56314         * tests/test-tanh.c: New file.
56316         Tests for module 'tan'.
56317         * modules/tan-tests: New file.
56318         * tests/test-tan.c: New file.
56320         Tests for module 'sqrt'.
56321         * modules/sqrt-tests: New file.
56322         * tests/test-sqrt.c: New file.
56324         Tests for module 'sinh'.
56325         * modules/sinh-tests: New file.
56326         * tests/test-sinh.c: New file.
56328         Tests for module 'sin'.
56329         * modules/sin-tests: New file.
56330         * tests/test-sin.c: New file.
56332         Tests for module 'rint'.
56333         * modules/rint-tests: New file.
56334         * tests/test-rint.c: New file.
56336         Tests for module 'remainder'.
56337         * modules/remainder-tests: New file.
56338         * tests/test-remainder.c: New file.
56340         Tests for module 'pow'.
56341         * modules/pow-tests: New file.
56342         * tests/test-pow.c: New file.
56344         Tests for module 'nextafter'.
56345         * modules/nextafter-tests: New file.
56346         * tests/test-nextafter.c: New file.
56348         Tests for module 'modf'.
56349         * modules/modf-tests: New file.
56350         * tests/test-modf.c: New file.
56352         Tests for module 'logb'.
56353         * modules/logb-tests: New file.
56354         * tests/test-logb.c: New file.
56356         Tests for module 'log1p'.
56357         * modules/log1p-tests: New file.
56358         * tests/test-log1p.c: New file.
56360         Tests for module 'log10'.
56361         * modules/log10-tests: New file.
56362         * tests/test-log10.c: New file.
56364         Tests for module 'log'.
56365         * modules/log-tests: New file.
56366         * tests/test-log.c: New file.
56368         Tests for module 'lgamma'.
56369         * modules/lgamma-tests: New file.
56370         * tests/test-lgamma.c: New file.
56372         Tests for module 'ldexp'.
56373         * modules/ldexp-tests: New file.
56374         * tests/test-ldexp.c: New file.
56376         Tests for module 'jn'.
56377         * modules/jn-tests: New file.
56378         * tests/test-jn.c: New file.
56380         Tests for module 'j1'.
56381         * modules/j1-tests: New file.
56382         * tests/test-j1.c: New file.
56384         Tests for module 'j0'.
56385         * modules/j0-tests: New file.
56386         * tests/test-j0.c: New file.
56388         Tests for module 'hypot'.
56389         * modules/hypot-tests: New file.
56390         * tests/test-hypot.c: New file.
56392         Tests for module 'fmod'.
56393         * modules/fmod-tests: New file.
56394         * tests/test-fmod.c: New file.
56396         Tests for module 'fabs'.
56397         * modules/fabs-tests: New file.
56398         * tests/test-fabs.c: New file.
56400         Tests for module 'exp'.
56401         * modules/exp-tests: New file.
56402         * tests/test-exp.c: New file.
56404         Tests for module 'erfc'.
56405         * modules/erfc-tests: New file.
56406         * tests/test-erfc.c: New file.
56408         Tests for module 'erf'.
56409         * modules/erf-tests: New file.
56410         * tests/test-erf.c: New file.
56412         Tests for module 'cosh'.
56413         * modules/cosh-tests: New file.
56414         * tests/test-cosh.c: New file.
56416         Tests for module 'cos'.
56417         * modules/cos-tests: New file.
56418         * tests/test-cos.c: New file.
56420         Tests for module 'copysign'.
56421         * modules/copysign-tests: New file.
56422         * tests/test-copysign.c: New file.
56424         Tests for module 'cbrt'.
56425         * modules/cbrt-tests: New file.
56426         * tests/test-cbrt.c: New file.
56428         Tests for module 'atan2'.
56429         * modules/atan2-tests: New file.
56430         * tests/test-atan2.c: New file.
56432         Tests for module 'atan'.
56433         * modules/atan-tests: New file.
56434         * tests/test-atan.c: New file.
56436         Tests for module 'asin'.
56437         * modules/asin-tests: New file.
56438         * tests/test-asin.c: New file.
56440         Tests for module 'acos'.
56441         * modules/acos-tests: New file.
56442         * tests/test-acos.c: New file.
56444 2010-01-24  Bruno Haible  <bruno@clisp.org>
56446         Fix tests for common <math.h> functions.
56447         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
56448         code snippet that references the function pointer, rather than merely
56449         calling the function. Substitute the FUNC_LIBM variable.
56450         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
56451         * modules/acos (configure.ac): Likewise.
56452         * modules/asin (configure.ac): Likewise.
56453         * modules/atan (configure.ac): Likewise.
56454         * modules/atan2 (configure.ac): Likewise.
56455         * modules/cbrt (configure.ac): Likewise.
56456         * modules/copysign (configure.ac): Likewise.
56457         * modules/cos (configure.ac): Likewise.
56458         * modules/cosh (configure.ac): Likewise.
56459         * modules/erf (configure.ac): Likewise.
56460         * modules/erfc (configure.ac): Likewise.
56461         * modules/exp (configure.ac): Likewise.
56462         * modules/fabs (configure.ac): Likewise.
56463         * modules/fmod (configure.ac): Likewise.
56464         * modules/hypot (configure.ac): Likewise.
56465         * modules/j0 (configure.ac): Likewise.
56466         * modules/j1 (configure.ac): Likewise.
56467         * modules/jn (configure.ac): Likewise.
56468         * modules/ldexp (configure.ac): Likewise.
56469         * modules/lgamma (configure.ac): Likewise.
56470         * modules/log (configure.ac): Likewise.
56471         * modules/log10 (configure.ac): Likewise.
56472         * modules/log1p (configure.ac): Likewise.
56473         * modules/logb (configure.ac): Likewise.
56474         * modules/modf (configure.ac): Likewise.
56475         * modules/nextafter (configure.ac): Likewise.
56476         * modules/pow (configure.ac): Likewise.
56477         * modules/remainder (configure.ac): Likewise.
56478         * modules/rint (configure.ac): Likewise.
56479         * modules/sin (configure.ac): Likewise.
56480         * modules/sinh (configure.ac): Likewise.
56481         * modules/tan (configure.ac): Likewise.
56482         * modules/tanh (configure.ac): Likewise.
56483         * modules/y0 (configure.ac): Likewise.
56484         * modules/y1 (configure.ac): Likewise.
56485         * modules/yn (configure.ac): Likewise.
56487 2010-01-24  Bruno Haible  <bruno@clisp.org>
56489         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
56490         * tests/test-acosl.c (x): New variable.
56491         (main): Store argument in x and fetch it from x.
56492         * tests/test-asinl.c (x): New variable.
56493         (main): Store argument in x and fetch it from x.
56494         * tests/test-atanl.c (x): New variable.
56495         (main): Store argument in x and fetch it from x.
56496         * tests/test-cosl.c (x): New variable.
56497         (main): Store argument in x and fetch it from x.
56498         * tests/test-expl.c (x): New variable.
56499         (main): Store argument in x and fetch it from x.
56500         * tests/test-logl.c (x): New variable.
56501         (main): Store argument in x and fetch it from x.
56502         * tests/test-sinl.c (x): New variable.
56503         (main): Store argument in x and fetch it from x.
56504         * tests/test-sqrtl.c (x): New variable.
56505         (main): Store argument in x and fetch it from x.
56506         * tests/test-tanl.c (x): New variable.
56507         (main): Store argument in x and fetch it from x.
56509 2010-01-24  Bruno Haible  <bruno@clisp.org>
56511         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
56512         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
56513         assignments to the initial TESTS_ENVIRONMENT.
56514         * doc/gnulib.texi (Unit test modules): Document it.
56515         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
56516         TESTS_ENVIRONMENT.
56517         * modules/btowc-tests (Makefile.am): Likewise.
56518         * modules/c-stack-tests (Makefile.am): Likewise.
56519         * modules/c-strcase-tests (Makefile.am): Likewise.
56520         * modules/copy-file-tests (Makefile.am): Likewise.
56521         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
56522         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
56523         * modules/mbrtowc-tests (Makefile.am): Likewise.
56524         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56525         * modules/mbscasestr-tests (Makefile.am): Likewise.
56526         * modules/mbschr-tests (Makefile.am): Likewise.
56527         * modules/mbscspn-tests (Makefile.am): Likewise.
56528         * modules/mbsinit-tests (Makefile.am): Likewise.
56529         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56530         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
56531         * modules/mbspbrk-tests (Makefile.am): Likewise.
56532         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56533         * modules/mbsrchr-tests (Makefile.am): Likewise.
56534         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
56535         * modules/mbsspn-tests (Makefile.am): Likewise.
56536         * modules/mbsstr-tests (Makefile.am): Likewise.
56537         * modules/nl_langinfo-tests (Makefile.am): Likewise.
56538         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
56539         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56540         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56541         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56542         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56543         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
56544         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56545         * modules/wcrtomb-tests (Makefile.am): Likewise.
56546         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
56547         * modules/wcsrtombs-tests (Makefile.am): Likewise.
56548         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
56549         assignments from TESTS_ENVIRONMENT.
56550         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
56551         augmentation.
56552         * modules/argp-version-etc-tests (Makefile.am): Likewise.
56553         * modules/atexit-tests (Makefile.am): Likewise.
56554         * modules/binary-io-tests (Makefile.am): Likewise.
56555         * modules/closein-tests (Makefile.am): Likewise.
56556         * modules/dprintf-posix-tests (Makefile.am): Likewise.
56557         * modules/exclude-tests (Makefile.am): Likewise.
56558         * modules/fflush-tests (Makefile.am): Likewise.
56559         * modules/fpending-tests (Makefile.am): Likewise.
56560         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56561         * modules/freadahead-tests (Makefile.am): Likewise.
56562         * modules/freadptr-tests (Makefile.am): Likewise.
56563         * modules/freadseek-tests (Makefile.am): Likewise.
56564         * modules/fseek-tests (Makefile.am): Likewise.
56565         * modules/fseeko-tests (Makefile.am): Likewise.
56566         * modules/ftell-tests (Makefile.am): Likewise.
56567         * modules/ftello-tests (Makefile.am): Likewise.
56568         * modules/idpriv-drop-tests (Makefile.am): Likewise.
56569         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
56570         * modules/lseek-tests (Makefile.am): Likewise.
56571         * modules/parse-duration-tests (Makefile.am): Likewise.
56572         * modules/perror-tests (Makefile.am): Likewise.
56573         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
56574         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
56575         * modules/pipe-tests (Makefile.am): Likewise.
56576         * modules/pread-tests (Makefile.am): Likewise.
56577         * modules/printf-posix-tests (Makefile.am): Likewise.
56578         * modules/select-tests (Makefile.am): Likewise.
56579         * modules/sigpipe-tests (Makefile.am): Likewise.
56580         * modules/tsearch-tests (Makefile.am): Likewise.
56581         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
56582         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
56583         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56584         * modules/uniwidth/width-tests (Makefile.am): Likewise.
56585         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
56586         * modules/version-etc-tests (Makefile.am): Likewise.
56587         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56588         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56589         * modules/xalloc-die-tests (Makefile.am): Likewise.
56590         * modules/xprintf-posix-tests (Makefile.am): Likewise.
56591         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56592         * modules/xstrtol-tests (Makefile.am): Likewise.
56593         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56594         * modules/yesno-tests (Makefile.am): Likewise.
56595         Suggested by Jim Meyering.
56597 2010-01-24  Bruno Haible  <bruno@clisp.org>
56599         More documentation.
56600         * doc/gnulib.texi (Writing modules): New chapter.
56601         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
56602         the new chapter.
56604 2010-01-24  Jim Meyering  <meyering@redhat.com>
56606         maint.mk: do not prepend "./" after filtering
56607         * top/maint.mk (_prepend_srcdir_prefix): New variable
56608         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
56609         "./" when $(srcdir) is ".".
56611         define STREQ(a,b) consistently, removing useless parentheses
56612         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
56613         since the only risk is that "a" or "b" contains an unparenthesized
56614         comma, but if either did that, STREQ would have 3 or more arguments.
56615         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
56616         * lib/fts.c (STREQ): Remove unnecessary parentheses.
56617         * lib/hash-triple.c (STREQ): Likewise.
56618         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
56619         * lib/getugroups.c (STREQ): Likewise.
56621 2010-01-23  Jim Meyering  <meyering@redhat.com>
56623         maint.mk: fix syntax-check in a non-srcdir build directory
56624         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
56625         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
56627 2010-01-22  Jim Meyering  <meyering@redhat.com>
56629         userspec: add unit tests
56630         * tests/test-userspec.c: New file.
56631         * modules/userspec-tests: Likewise.
56633 2010-01-21  Jim Meyering  <meyering@redhat.com>
56635         maint.mk: handle source file names containing "." robustly
56636         * top/maint.mk (_dot_escaped_srcdir): Define.
56637         (VC_LIST): Use it in LHS of sed substitution.
56639 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
56641         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
56642         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
56643         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
56644         from a non-srcdir build.
56646 2010-01-20  Eric Blake  <ebb9@byu.net>
56648         warn-on-use: use instead of link-warning
56649         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
56650         * modules/unistd (Depends-on, Makefile.am): Likewise.
56651         * modules/arpa_inet (Depends-on): Replace link-warning with
56652         warn-on-use.
56653         (Makefile.am): Update rules accordingly.
56654         * modules/ctype (Depends-on, Makefile.am): Likewise.
56655         * modules/dirent (Depends-on, Makefile.am): Likewise.
56656         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
56657         * modules/inttypes (Depends-on, Makefile.am): Likewise.
56658         * modules/langinfo (Depends-on, Makefile.am): Likewise.
56659         * modules/locale (Depends-on, Makefile.am): Likewise.
56660         * modules/math (Depends-on, Makefile.am): Likewise.
56661         * modules/search (Depends-on, Makefile.am): Likewise.
56662         * modules/signal (Depends-on, Makefile.am): Likewise.
56663         * modules/spawn (Depends-on, Makefile.am): Likewise.
56664         * modules/stdlib (Depends-on, Makefile.am): Likewise.
56665         * modules/string (Depends-on, Makefile.am): Likewise.
56666         * modules/strings (Depends-on, Makefile.am): Likewise.
56667         * modules/sys_file (Depends-on, Makefile.am): Likewise.
56668         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
56669         * modules/sys_select (Depends-on, Makefile.am): Likewise.
56670         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
56671         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
56672         * modules/sys_times (Depends-on, Makefile.am): Likewise.
56673         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
56674         * modules/wchar (Depends-on, Makefile.am): Likewise.
56675         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
56676         should be poisoned.
56677         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
56678         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
56679         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
56680         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56681         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
56682         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
56683         * m4/math_h.m4 (gl_MATH_H): Likewise.
56684         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56685         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
56686         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
56687         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
56688         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
56689         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
56690         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
56691         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
56692         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
56693         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56694         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56695         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
56696         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56697         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
56698         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56699         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
56700         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
56701         GL_LINK_WARNING.
56702         * lib/ctype.in.h: Likewise.
56703         * lib/dirent.in.h: Likewise.
56704         * lib/fcntl.in.h: Likewise.
56705         * lib/inttypes.in.h: Likewise.
56706         * lib/langinfo.in.h: Likewise.
56707         * lib/locale.in.h: Likewise.
56708         * lib/math.in.h: Likewise.
56709         * lib/search.in.h: Likewise.
56710         * lib/signal.in.h: Likewise.
56711         * lib/spawn.in.h: Likewise.
56712         * lib/stdio.in.h: Likewise.
56713         * lib/stdlib.in.h: Likewise.
56714         * lib/string.in.h: Likewise.
56715         * lib/strings.in.h: Likewise.
56716         * lib/sys_file.in.h: Likewise.
56717         * lib/sys_ioctl.in.h: Likewise.
56718         * lib/sys_select.in.h: Likewise.
56719         * lib/sys_socket.in.h: Likewise.
56720         * lib/sys_stat.in.h: Likewise.
56721         * lib/sys_times.in.h: Likewise.
56722         * lib/sys_utsname.in.h: Likewise.
56723         * lib/unistd.in.h: Likewise.
56724         * lib/wchar.in.h: Likewise.
56726 2010-01-20  Bruno Haible  <bruno@clisp.org>
56728         Avoid duplicate -lm.
56729         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
56730         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
56731         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
56732         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
56733         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
56734         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
56735         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
56736         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
56737         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
56738         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
56739         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
56740         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
56741         Reported by Paolo Bonzini.
56743 2010-01-19  Bruno Haible  <bruno@clisp.org>
56745         langinfo, nl_langinfo: Relicense under LGPLv2+.
56746         * modules/langinfo (License): Change to LGPLv2+.
56747         * modules/nl_langinfo (License): Likewise.
56748         Patch by David Lutterkort <lutter@redhat.com>.
56750 2010-01-19  Bruno Haible  <bruno@clisp.org>
56752         Avoid compilation error with cc on OSF/1 5.1.
56753         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
56754         statement, not before.
56755         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56757 2010-01-18  Bruno Haible  <bruno@clisp.org>
56759         Avoid a link error due to the __printf__ symbol.
56760         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
56761         and 2.6.x.
56762         (__format__, __printf__): Remove definitions.
56763         * lib/argp-fmtstream.h: Likewise.
56764         * lib/argp.h: Likewise.
56765         * lib/error.h: Likewise.
56766         * lib/vasnprintf.h: Likewise.
56767         * lib/xprintf.h: Likewise.
56768         * lib/xvasprintf.h: Likewise.
56769         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56771 2010-01-18  Bruno Haible  <bruno@clisp.org>
56773         Tests for module 'tanl'.
56774         * modules/tanl-tests: New file.
56775         * tests/test-tanl.c: New file.
56777         Tests for module 'sqrtl'.
56778         * modules/sqrtl-tests: New file.
56779         * tests/test-sqrtl.c: New file.
56781         Tests for module 'sinl'.
56782         * modules/sinl-tests: New file.
56783         * tests/test-sinl.c: New file.
56785         Tests for module 'logl'.
56786         * modules/logl-tests: New file.
56787         * tests/test-logl.c: New file.
56789         Tests for module 'expl'.
56790         * modules/expl-tests: New file.
56791         * tests/test-expl.c: New file.
56793         Tests for module 'cosl'.
56794         * modules/cosl-tests: New file.
56795         * tests/test-cosl.c: New file.
56797         Tests for module 'atanl'.
56798         * modules/atanl-tests: New file.
56799         * tests/test-atanl.c: New file.
56801         Tests for module 'asinl'.
56802         * modules/asinl-tests: New file.
56803         * tests/test-asinl.c: New file.
56805         Tests for module 'acosl'.
56806         * modules/acosl-tests: New file.
56807         * tests/test-acosl.c: New file.
56809         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
56810         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
56811         tanl): Use the standard gnulib idiom.
56812         * lib/cosl.c: Don't include trigl.c and sincosl.c.
56813         * lib/sinl.c: Likewise.
56814         * lib/tanl.c: Don't include trigl.c.
56815         (kernel_tanl): Make static.
56816         * lib/sincosl.c: Include trigl.h first.
56817         * lib/trigl.c: Likewise.
56818         * m4/acosl.m4: New file.
56819         * m4/asinl.m4: New file.
56820         * m4/atanl.m4: New file.
56821         * m4/cosl.m4: New file.
56822         * m4/expl.m4: New file.
56823         * m4/logl.m4: New file.
56824         * m4/sinl.m4: New file.
56825         * m4/sqrtl.m4: New file.
56826         * m4/tanl.m4: New file.
56827         * m4/mathl.m4: Remove file.
56828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
56829         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
56830         Don't initialize GNULIB_MATHL.
56831         * modules/acosl: New file.
56832         * modules/asinl: New file.
56833         * modules/atanl: New file.
56834         * modules/cosl: New file.
56835         * modules/expl: New file.
56836         * modules/logl: New file.
56837         * modules/sinl: New file.
56838         * modules/sqrtl: New file.
56839         * modules/tanl: New file.
56840         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
56841         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
56842         substitute GNULIB_MATHL.
56843         * modules/mathl: Rewritten.
56844         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
56845         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
56846         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
56847         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
56848         * doc/posix-functions/expl.texi: Mention the 'expl' module.
56849         * doc/posix-functions/logl.texi: Mention the 'logl' module.
56850         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
56851         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
56852         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
56854 2010-01-18  Bruno Haible  <bruno@clisp.org>
56856         sqrt: Make gl_FUNC_SQRT requirable.
56857         * m4/sqrt.m4: New file.
56858         * modules/sqrt (Files): Add it.
56859         (configure.ac): Invoke gl_FUNC_SQRT.
56861 2010-01-18  Bruno Haible  <bruno@clisp.org>
56863         New modules for common <math.h> functions.
56864         * m4/mathfunc.m4: New file.
56865         * modules/acos: New file.
56866         * modules/asin: New file.
56867         * modules/atan: New file.
56868         * modules/atan2: New file.
56869         * modules/cbrt: New file.
56870         * modules/copysign: New file.
56871         * modules/cos: New file.
56872         * modules/cosh: New file.
56873         * modules/erf: New file.
56874         * modules/erfc: New file.
56875         * modules/exp: New file.
56876         * modules/fabs: New file.
56877         * modules/fmod: New file.
56878         * modules/hypot: New file.
56879         * modules/j0: New file.
56880         * modules/j1: New file.
56881         * modules/jn: New file.
56882         * modules/ldexp: New file.
56883         * modules/lgamma: New file.
56884         * modules/log: New file.
56885         * modules/log10: New file.
56886         * modules/log1p: New file.
56887         * modules/logb: New file.
56888         * modules/modf: New file.
56889         * modules/nextafter: New file.
56890         * modules/pow: New file.
56891         * modules/remainder: New file.
56892         * modules/rint: New file.
56893         * modules/sin: New file.
56894         * modules/sinh: New file.
56895         * modules/sqrt: New file.
56896         * modules/tan: New file.
56897         * modules/tanh: New file.
56898         * modules/y0: New file.
56899         * modules/y1: New file.
56900         * modules/yn: New file.
56901         * doc/posix-functions/acos.texi: Mention the 'acos' module.
56902         * doc/posix-functions/asin.texi: Mention the 'asin' module.
56903         * doc/posix-functions/atan.texi: Mention the 'atan' module.
56904         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
56905         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
56906         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
56907         * doc/posix-functions/cos.texi: Mention the 'cos' module.
56908         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
56909         * doc/posix-functions/erf.texi: Mention the 'erf' module.
56910         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
56911         * doc/posix-functions/exp.texi: Mention the 'exp' module.
56912         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
56913         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
56914         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
56915         * doc/posix-functions/j0.texi: Mention the 'j0' module.
56916         * doc/posix-functions/j1.texi: Mention the 'j1' module.
56917         * doc/posix-functions/jn.texi: Mention the 'jn' module.
56918         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
56919         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
56920         * doc/posix-functions/log.texi: Mention the 'log' module.
56921         * doc/posix-functions/log10.texi: Mention the 'log10' module.
56922         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
56923         * doc/posix-functions/logb.texi: Mention the 'logb' module.
56924         * doc/posix-functions/modf.texi: Mention the 'modf' module.
56925         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
56926         * doc/posix-functions/pow.texi: Mention the 'pow' module.
56927         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
56928         * doc/posix-functions/rint.texi: Mention the 'rint' module.
56929         * doc/posix-functions/sin.texi: Mention the 'sin' module.
56930         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
56931         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
56932         * doc/posix-functions/tan.texi: Mention the 'tan' module.
56933         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
56934         * doc/posix-functions/y0.texi: Mention the 'y0' module.
56935         * doc/posix-functions/y1.texi: Mention the 'y1' module.
56936         * doc/posix-functions/yn.texi: Mention the 'yn' module.
56938 2010-01-18  Jim Meyering  <meyering@redhat.com>
56940         ignore-value: relax license to LGPLv2+
56941         * modules/ignore-value (License): Relax to LGPLv2+.
56943         getdate: don't leak when TZ contains two or more '"'s
56944         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
56945         double quote in TZ after the first one.
56947         readtokens: do not leak internal token_lengths buffer
56948         * lib/readtokens.c (readtokens): Free the local, lengths,
56949         when the supplied "token_lengths" parameter is NULL.
56951 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56953         Fix a couple of missing LIBTHREAD link failures on AIX.
56954         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
56955         $(LIBTHREAD).
56956         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
56958         Link test-poll against INET_PTON_LIB.
56959         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
56960         for inet_pton on Solaris 10.
56962 2010-01-17  Bruno Haible  <bruno@clisp.org>
56964         unistdio/*-sprintf: Fix typo in module description.
56965         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
56966         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
56967         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
56968         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
56969         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
56970         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
56971         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
56972         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56974 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56976         gnulib-tool: fix filelist for AIX, HP-UX ksh.
56977         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
56978         variables in shell case patterns, for AIX and HP-UX ksh.
56980         Split large sed scripts, for HP-UX sed.
56981         * modules/stdio: Split sed scripts around 50 sed commands,
56982         to avoid HP-UX limit of 99 commands, in the near future.
56983         * modules/string: Likewise.
56984         * modules/unistd: Likewise.
56986         gnulib-tool: avoid writing in the current directory.
56987         * gnulib-tool (func_emit_lib_Makefile_am)
56988         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
56989         not in the current directory, so concurrent gnulib-tool
56990         instances do not interfere.
56992 2010-01-16  Jim Meyering  <meyering@redhat.com>
56994         doc: update users.txt
56995         * users.txt: Add grep.
56996         (diffutils, gzip): Update URLs.
56998 2010-01-12  Bruno Haible  <bruno@clisp.org>
57000         posix_spawn: Avoid test failure on Cygwin.
57001         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
57002         characters.
57003         Reported by Simon Josefsson.
57005 2010-01-12  Bruno Haible  <bruno@clisp.org>
57007         * tests/test-cond.c (main): When skipping the test, show the reason.
57009 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57011         * lib/striconv.c (str_cd_iconv): Avoid if before free.
57013 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57015         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
57016         VC_LIST_ALWAYS_EXCLUDE_REGEX.
57018 2010-01-12  Eric Blake  <ebb9@byu.net>
57020         build: guarantee AS_VAR_IF
57021         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
57022         (gl_AS_VAR_IF): Move...
57023         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
57024         Reported by Simon Josefsson.
57026 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57028         * lib/stdio.in.h: Fix typo.
57030 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57032         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
57033         libgpg-error.
57035 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57037         * tests/test-xalloc-die.sh: Use $EXEEXT.
57039 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57040             Bruno Haible  <bruno@clisp.org>
57042         getlogin, getlogin_r: Avoid test failure.
57043         * tests/test-getlogin.c: Include <stdio.h>.
57044         (main): Skip the test when the function fails because stdin is not a
57045         tty.
57046         * tests/test-getlogin_r.c: Include <stdio.h>.
57047         (main): Skip the test when the function fails because stdin is not a
57048         tty.
57050 2010-01-11  Eric Blake  <ebb9@byu.net>
57052         tests: avoid more large file warnings
57053         * tests/test-fflush.c: Avoid warning about ftell use.
57054         * tests/test-fseek.c: Avoid warning about fseek use.
57056 2010-01-10  Bruno Haible  <bruno@clisp.org>
57058         nproc: Work better on Linux when /proc and /sys are not mounted.
57059         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
57060         as lower bound when, on glibc/Linux systems,
57061         sysconf (_SC_NPROCESSORS_CONF) returns 1.
57062         Suggested by Pádraig Brady <P@draigbrady.com>.
57063         Reported by Dmitry V. Levin <ldv@altlinux.org>.
57065         nproc: Refactor.
57066         * lib/nproc.c (num_processors_via_affinity_mask): New function,
57067         extracted from num_processors.
57068         (num_processors): Call it.
57070 2010-01-11  Jim Meyering  <meyering@redhat.com>
57072         utimecmp: avoid new warning from upcoming gcc-4.5.0
57073         * lib/utimecmp.c (BILLION): Define using #define rather than an
57074         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
57076 2010-01-11  Eric Blake  <ebb9@byu.net>
57078         math: add portability warnings for classification macros
57079         * modules/math (Depends-on): Add warn-on-use.
57080         (Makefile.am): Provide new substitutions.
57081         * m4/math_h.m4 (gl_MATH_H): Require inline.
57082         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
57083         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
57084         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
57085         implement warnings.
57087         unistd: warn on use of environ without module
57088         * modules/unistd (Depends-on): Add warn-on-use.
57089         (Makefile.am): Provide new substitutions.
57090         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
57091         * lib/unistd.in.h (environ): Wrap with a warning helper function.
57093         stdio: warn on suspicious uses
57094         * modules/stdio (Depends-on): Add warn-on-use.
57095         (Makefile.am): Provide new substitutions.
57096         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
57097         fseeko.
57098         * lib/stdio.in.h (gets): Always warn on use.
57099         (fseek, ftell): Adjust when warnings are issued, and honor
57100         _GL_NO_LARGE_FILES as a way to silence the warning.
57101         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
57102         any warning about large file offsets.
57103         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
57104         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
57105         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
57106         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
57107         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
57108         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
57109         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
57110         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
57112         warn-on-use: new module
57113         * modules/warn-on-use: New file.
57114         * build-aux/warn-on-use.h: Likewise.
57115         * m4/warn-on-use.m4: Likewise.
57116         * MODULES.html.sh (Support for building): Mention it.
57118 2010-01-10  Bruno Haible  <bruno@clisp.org>
57120         Tests for module 'unistr/u32-strdup'.
57121         * modules/unistr/u32-strdup-tests: New file.
57122         * tests/unistr/test-u32-strdup.c: New file.
57124         Tests for module 'unistr/u16-strdup'.
57125         * modules/unistr/u16-strdup-tests: New file.
57126         * tests/unistr/test-u16-strdup.c: New file.
57128         Tests for module 'unistr/u8-strdup'.
57129         * modules/unistr/u8-strdup-tests: New file.
57130         * tests/unistr/test-u8-strdup.c: New file.
57131         * tests/unistr/test-strdup.h: New file.
57133         Tests for module 'unistr/u32-strncmp'.
57134         * modules/unistr/u32-strncmp-tests: New file.
57135         * tests/unistr/test-u32-strncmp.c: New file.
57137         Tests for module 'unistr/u16-strncmp'.
57138         * modules/unistr/u16-strncmp-tests: New file.
57139         * tests/unistr/test-u16-strncmp.c: New file.
57141         Tests for module 'unistr/u8-strncmp'.
57142         * modules/unistr/u8-strncmp-tests: New file.
57143         * tests/unistr/test-u8-strncmp.c: New file.
57144         * tests/unistr/test-strncmp.h: New file.
57146         Tests for module 'unistr/u32-strcoll'.
57147         * modules/unistr/u32-strcoll-tests: New file.
57148         * tests/unistr/test-u32-strcoll.c: New file.
57150         Tests for module 'unistr/u16-strcoll'.
57151         * modules/unistr/u16-strcoll-tests: New file.
57152         * tests/unistr/test-u16-strcoll.c: New file.
57154         Tests for module 'unistr/u8-strcoll'.
57155         * modules/unistr/u8-strcoll-tests: New file.
57156         * tests/unistr/test-u8-strcoll.c: New file.
57158         Tests for module 'unistr/u32-strcmp'.
57159         * modules/unistr/u32-strcmp-tests: New file.
57160         * tests/unistr/test-u32-strcmp.c: New file.
57161         * tests/unistr/test-u32-strcmp.h: New file.
57163         Tests for module 'unistr/u16-strcmp'.
57164         * modules/unistr/u16-strcmp-tests: New file.
57165         * tests/unistr/test-u16-strcmp.c: New file.
57166         * tests/unistr/test-u16-strcmp.h: New file.
57168         Tests for module 'unistr/u8-strcmp'.
57169         * modules/unistr/u8-strcmp-tests: New file.
57170         * tests/unistr/test-u8-strcmp.c: New file.
57171         * tests/unistr/test-u8-strcmp.h: New file.
57172         * tests/unistr/test-strcmp.h: New file.
57174         Tests for module 'unistr/u32-strncat'.
57175         * modules/unistr/u32-strncat-tests: New file.
57176         * tests/unistr/test-u32-strncat.c: New file.
57178         Tests for module 'unistr/u16-strncat'.
57179         * modules/unistr/u16-strncat-tests: New file.
57180         * tests/unistr/test-u16-strncat.c: New file.
57182         Tests for module 'unistr/u8-strncat'.
57183         * modules/unistr/u8-strncat-tests: New file.
57184         * tests/unistr/test-u8-strncat.c: New file.
57185         * tests/unistr/test-strncat.h: New file.
57187         Tests for module 'unistr/u32-strcat'.
57188         * modules/unistr/u32-strcat-tests: New file.
57189         * tests/unistr/test-u32-strcat.c: New file.
57191         Tests for module 'unistr/u16-strcat'.
57192         * modules/unistr/u16-strcat-tests: New file.
57193         * tests/unistr/test-u16-strcat.c: New file.
57195         Tests for module 'unistr/u8-strcat'.
57196         * modules/unistr/u8-strcat-tests: New file.
57197         * tests/unistr/test-u8-strcat.c: New file.
57198         * tests/unistr/test-strcat.h: New file.
57200         Tests for module 'unistr/u32-stpncpy'.
57201         * modules/unistr/u32-stpncpy-tests: New file.
57202         * tests/unistr/test-u32-stpncpy.c: New file.
57204         Tests for module 'unistr/u16-stpncpy'.
57205         * modules/unistr/u16-stpncpy-tests: New file.
57206         * tests/unistr/test-u16-stpncpy.c: New file.
57208         Tests for module 'unistr/u8-stpncpy'.
57209         * modules/unistr/u8-stpncpy-tests: New file.
57210         * tests/unistr/test-u8-stpncpy.c: New file.
57211         * tests/unistr/test-stpncpy.h: New file.
57213         Tests for module 'unistr/u32-strncpy'.
57214         * modules/unistr/u32-strncpy-tests: New file.
57215         * tests/unistr/test-u32-strncpy.c: New file.
57217         Tests for module 'unistr/u16-strncpy'.
57218         * modules/unistr/u16-strncpy-tests: New file.
57219         * tests/unistr/test-u16-strncpy.c: New file.
57221         Tests for module 'unistr/u8-strncpy'.
57222         * modules/unistr/u8-strncpy-tests: New file.
57223         * tests/unistr/test-u8-strncpy.c: New file.
57224         * tests/unistr/test-strncpy.h: New file.
57226         Tests for module 'unistr/u32-stpcpy'.
57227         * modules/unistr/u32-stpcpy-tests: New file.
57228         * tests/unistr/test-u32-stpcpy.c: New file.
57230         Tests for module 'unistr/u16-stpcpy'.
57231         * modules/unistr/u16-stpcpy-tests: New file.
57232         * tests/unistr/test-u16-stpcpy.c: New file.
57234         Tests for module 'unistr/u8-stpcpy'.
57235         * modules/unistr/u8-stpcpy-tests: New file.
57236         * tests/unistr/test-u8-stpcpy.c: New file.
57237         * tests/unistr/test-stpcpy.h: New file.
57239         Tests for module 'unistr/u32-strcpy'.
57240         * modules/unistr/u32-strcpy-tests: New file.
57241         * tests/unistr/test-u32-strcpy.c: New file.
57243         Tests for module 'unistr/u16-strcpy'.
57244         * modules/unistr/u16-strcpy-tests: New file.
57245         * tests/unistr/test-u16-strcpy.c: New file.
57247         Tests for module 'unistr/u8-strcpy'.
57248         * modules/unistr/u8-strcpy-tests: New file.
57249         * tests/unistr/test-u8-strcpy.c: New file.
57250         * tests/unistr/test-strcpy.h: New file.
57252         Tests for module 'unistr/u32-strnlen'.
57253         * modules/unistr/u32-strnlen-tests: New file.
57254         * tests/unistr/test-u32-strnlen.c: New file.
57256         Tests for module 'unistr/u16-strnlen'.
57257         * modules/unistr/u16-strnlen-tests: New file.
57258         * tests/unistr/test-u16-strnlen.c: New file.
57260         Tests for module 'unistr/u8-strnlen'.
57261         * modules/unistr/u8-strnlen-tests: New file.
57262         * tests/unistr/test-u8-strnlen.c: New file.
57263         * tests/unistr/test-strnlen.h: New file.
57265         Tests for module 'unistr/u32-strlen'.
57266         * modules/unistr/u32-strlen-tests: New file.
57267         * tests/unistr/test-u32-strlen.c: New file.
57269         Tests for module 'unistr/u16-strlen'.
57270         * modules/unistr/u16-strlen-tests: New file.
57271         * tests/unistr/test-u16-strlen.c: New file.
57273         Tests for module 'unistr/u8-strlen'.
57274         * modules/unistr/u8-strlen-tests: New file.
57275         * tests/unistr/test-u8-strlen.c: New file.
57277         Tests for module 'unistr/u32-prev'.
57278         * modules/unistr/u32-prev-tests: New file.
57279         * tests/unistr/test-u32-prev.c: New file.
57281         Tests for module 'unistr/u16-prev'.
57282         * modules/unistr/u16-prev-tests: New file.
57283         * tests/unistr/test-u16-prev.c: New file.
57285         Tests for module 'unistr/u8-prev'.
57286         * modules/unistr/u8-prev-tests: New file.
57287         * tests/unistr/test-u8-prev.c: New file.
57289         Tests for module 'unistr/u32-next'.
57290         * modules/unistr/u32-next-tests: New file.
57291         * tests/unistr/test-u32-next.c: New file.
57293         Tests for module 'unistr/u16-next'.
57294         * modules/unistr/u16-next-tests: New file.
57295         * tests/unistr/test-u16-next.c: New file.
57297         Tests for module 'unistr/u8-next'.
57298         * modules/unistr/u8-next-tests: New file.
57299         * tests/unistr/test-u8-next.c: New file.
57301         Tests for module 'unistr/u32-strmbtouc'.
57302         * modules/unistr/u32-strmbtouc-tests: New file.
57303         * tests/unistr/test-u32-strmbtouc.c: New file.
57305         Tests for module 'unistr/u16-strmbtouc'.
57306         * modules/unistr/u16-strmbtouc-tests: New file.
57307         * tests/unistr/test-u16-strmbtouc.c: New file.
57309         Tests for module 'unistr/u8-strmbtouc'.
57310         * modules/unistr/u8-strmbtouc-tests: New file.
57311         * tests/unistr/test-u8-strmbtouc.c: New file.
57313         Tests for module 'unistr/u32-strmblen'.
57314         * modules/unistr/u32-strmblen-tests: New file.
57315         * tests/unistr/test-u32-strmblen.c: New file.
57317         Tests for module 'unistr/u16-strmblen'.
57318         * modules/unistr/u16-strmblen-tests: New file.
57319         * tests/unistr/test-u16-strmblen.c: New file.
57321         Tests for module 'unistr/u8-strmblen'.
57322         * modules/unistr/u8-strmblen-tests: New file.
57323         * tests/unistr/test-u8-strmblen.c: New file.
57325         Tests for module 'unistr/u32-cpy-alloc'.
57326         * modules/unistr/u32-cpy-alloc-tests: New file.
57327         * tests/unistr/test-u32-cpy-alloc.c: New file.
57329         Tests for module 'unistr/u16-cpy-alloc'.
57330         * modules/unistr/u16-cpy-alloc-tests: New file.
57331         * tests/unistr/test-u16-cpy-alloc.c: New file.
57333         Tests for module 'unistr/u8-cpy-alloc'.
57334         * modules/unistr/u8-cpy-alloc-tests: New file.
57335         * tests/unistr/test-u8-cpy-alloc.c: New file.
57336         * tests/unistr/test-cpy-alloc.h: New file.
57338         Tests for module 'unistr/u32-mbsnlen'.
57339         * modules/unistr/u32-mbsnlen-tests: New file.
57340         * tests/unistr/test-u32-mbsnlen.c: New file.
57342         Tests for module 'unistr/u16-mbsnlen'.
57343         * modules/unistr/u16-mbsnlen-tests: New file.
57344         * tests/unistr/test-u16-mbsnlen.c: New file.
57346         Tests for module 'unistr/u8-mbsnlen'.
57347         * modules/unistr/u8-mbsnlen-tests: New file.
57348         * tests/unistr/test-u8-mbsnlen.c: New file.
57350         Tests for module 'unistr/u32-chr'.
57351         * modules/unistr/u32-chr-tests: New file.
57352         * tests/unistr/test-u32-chr.c: New file.
57354         Tests for module 'unistr/u16-chr'.
57355         * modules/unistr/u16-chr-tests: New file.
57356         * tests/unistr/test-u16-chr.c: New file.
57358         Tests for module 'unistr/u8-chr'.
57359         * modules/unistr/u8-chr-tests: New file.
57360         * tests/unistr/test-u8-chr.c: New file.
57361         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
57363         Tests for module 'unistr/u32-cmp2'.
57364         * modules/unistr/u32-cmp2-tests: New file.
57365         * tests/unistr/test-u32-cmp2.c: New file.
57367         Tests for module 'unistr/u16-cmp2'.
57368         * modules/unistr/u16-cmp2-tests: New file.
57369         * tests/unistr/test-u16-cmp2.c: New file.
57371         Tests for module 'unistr/u8-cmp2'.
57372         * modules/unistr/u8-cmp2-tests: New file.
57373         * tests/unistr/test-u8-cmp2.c: New file.
57374         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
57376         Tests for module 'unistr/u32-cmp'.
57377         * modules/unistr/u32-cmp-tests: New file.
57378         * tests/unistr/test-u32-cmp.c: New file.
57380         Tests for module 'unistr/u16-cmp'.
57381         * modules/unistr/u16-cmp-tests: New file.
57382         * tests/unistr/test-u16-cmp.c: New file.
57384         Tests for module 'unistr/u8-cmp'.
57385         * modules/unistr/u8-cmp-tests: New file.
57386         * tests/unistr/test-u8-cmp.c: New file.
57387         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
57389         Tests for module 'unistr/u32-set'.
57390         * modules/unistr/u32-set-tests: New file.
57391         * tests/unistr/test-u32-set.c: New file.
57393         Tests for module 'unistr/u16-set'.
57394         * modules/unistr/u16-set-tests: New file.
57395         * tests/unistr/test-u16-set.c: New file.
57397         Tests for module 'unistr/u8-set'.
57398         * modules/unistr/u8-set-tests: New file.
57399         * tests/unistr/test-u8-set.c: New file.
57400         * tests/unistr/test-set.h: New file.
57402         Tests for module 'unistr/u32-move'.
57403         * modules/unistr/u32-move-tests: New file.
57404         * tests/unistr/test-u32-move.c: New file.
57406         Tests for module 'unistr/u16-move'.
57407         * modules/unistr/u16-move-tests: New file.
57408         * tests/unistr/test-u16-move.c: New file.
57410         Tests for module 'unistr/u8-move'.
57411         * modules/unistr/u8-move-tests: New file.
57412         * tests/unistr/test-u8-move.c: New file.
57413         * tests/unistr/test-move.h: New file.
57415         Tests for module 'unistr/u32-cpy'.
57416         * modules/unistr/u32-cpy-tests: New file.
57417         * tests/unistr/test-u32-cpy.c: New file.
57419         Tests for module 'unistr/u16-cpy'.
57420         * modules/unistr/u16-cpy-tests: New file.
57421         * tests/unistr/test-u16-cpy.c: New file.
57423         Tests for module 'unistr/u8-cpy'.
57424         * modules/unistr/u8-cpy-tests: New file.
57425         * tests/unistr/test-u8-cpy.c: New file.
57426         * tests/unistr/test-cpy.h: New file.
57428 2010-01-09  Bruno Haible  <bruno@clisp.org>
57430         Tests for module 'unistr/u32-uctomb'.
57431         * modules/unistr/u32-uctomb-tests: New file.
57432         * tests/unistr/test-u32-uctomb.c: New file.
57434         Tests for module 'unistr/u16-uctomb'.
57435         * modules/unistr/u16-uctomb-tests: New file.
57436         * tests/unistr/test-u16-uctomb.c: New file.
57438         Tests for module 'unistr/u8-uctomb'.
57439         * modules/unistr/u8-uctomb-tests: New file.
57440         * tests/unistr/test-u8-uctomb.c: New file.
57442         Tests for module 'unistr/u32-mbtoucr'.
57443         * modules/unistr/u32-mbtoucr-tests: New file.
57444         * tests/unistr/test-u32-mbtoucr.c: New file.
57446         Tests for module 'unistr/u16-mbtoucr'.
57447         * modules/unistr/u16-mbtoucr-tests: New file.
57448         * tests/unistr/test-u16-mbtoucr.c: New file.
57450         Tests for module 'unistr/u8-mbtoucr'.
57451         * modules/unistr/u8-mbtoucr-tests: New file.
57452         * tests/unistr/test-u8-mbtoucr.c: New file.
57454         Tests for module 'unistr/u32-mbtouc'.
57455         * modules/unistr/u32-mbtouc-tests: New file.
57456         * tests/unistr/test-u32-mbtouc.c: New file.
57458         Tests for module 'unistr/u16-mbtouc'.
57459         * modules/unistr/u16-mbtouc-tests: New file.
57460         * tests/unistr/test-u16-mbtouc.c: New file.
57462         Tests for module 'unistr/u8-mbtouc'.
57463         * modules/unistr/u8-mbtouc-tests: New file.
57464         * tests/unistr/test-u8-mbtouc.c: New file.
57466         Tests for module 'unistr/u32-mbtouc-unsafe'.
57467         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
57468         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
57469         * tests/unistr/test-u32-mbtouc.h: New file.
57471         Tests for module 'unistr/u16-mbtouc-unsafe'.
57472         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
57473         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
57474         * tests/unistr/test-u16-mbtouc.h: New file.
57476         Tests for module 'unistr/u8-mbtouc-unsafe'.
57477         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
57478         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
57479         * tests/unistr/test-u8-mbtouc.h: New file.
57481         Tests for module 'unistr/u32-mblen'.
57482         * modules/unistr/u32-mblen-tests: New file.
57483         * tests/unistr/test-u32-mblen.c: New file.
57485         Tests for module 'unistr/u16-mblen'.
57486         * modules/unistr/u16-mblen-tests: New file.
57487         * tests/unistr/test-u16-mblen.c: New file.
57489         Tests for module 'unistr/u8-mblen'.
57490         * modules/unistr/u8-mblen-tests: New file.
57491         * tests/unistr/test-u8-mblen.c: New file.
57493         Tests for module 'unistr/u32-to-u16'.
57494         * modules/unistr/u32-to-u16-tests: New file.
57495         * tests/unistr/test-u32-to-u16.c: New file.
57497         Tests for module 'unistr/u32-to-u8'.
57498         * modules/unistr/u32-to-u8-tests: New file.
57499         * tests/unistr/test-u32-to-u8.c: New file.
57501         Tests for module 'unistr/u16-to-u32'.
57502         * modules/unistr/u16-to-u32-tests: New file.
57503         * tests/unistr/test-u16-to-u32.c: New file.
57505         Tests for module 'unistr/u16-to-u8'.
57506         * modules/unistr/u16-to-u8-tests: New file.
57507         * tests/unistr/test-u16-to-u8.c: New file.
57509         Tests for module 'unistr/u8-to-u32'.
57510         * modules/unistr/u8-to-u32-tests: New file.
57511         * tests/unistr/test-u8-to-u32.c: New file.
57513         Tests for module 'unistr/u8-to-u16'.
57514         * modules/unistr/u8-to-u16-tests: New file.
57515         * tests/unistr/test-u8-to-u16.c: New file.
57517         Tests for module 'unistr/u32-check'.
57518         * modules/unistr/u32-check-tests: New file.
57519         * tests/unistr/test-u32-check.c: New file.
57521         Tests for module 'unistr/u16-check'.
57522         * modules/unistr/u16-check-tests: New file.
57523         * tests/unistr/test-u16-check.c: New file.
57525         Tests for module 'unistr/u8-check'.
57526         * modules/unistr/u8-check-tests: New file.
57527         * tests/unistr/test-u8-check.c: New file.
57529         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
57530         (category_equals): New function.
57531         (main): Add more tests.
57532         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
57534         * tests/unictype/test-bidi_byname.c (main): Add more tests.
57536 2010-01-10  Bruno Haible  <bruno@clisp.org>
57538         unistr/u*-strcoll: Try harder to distinguish different strings.
57539         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
57540         compare s1 and s2 to see if they are different.
57542 2010-01-10  Bruno Haible  <bruno@clisp.org>
57544         unistr/u*-stpncpy: Fix the return value.
57545         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
57546         description of the return value consistent with stpncpy in glibc.
57547         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
57548         written non-NUL unit.
57550 2010-01-10  Bruno Haible  <bruno@clisp.org>
57552         unistr/u*-next: Add missing dependencies.
57553         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
57554         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
57555         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
57557 2010-01-10  Bruno Haible  <bruno@clisp.org>
57559         unistr/u8-mbsnlen: Fix return value for incomplete character.
57560         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
57561         u8_mblen.
57562         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
57563         Remove unistr/u8-mblen.
57564         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
57565         u16_mblen.
57566         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
57567         Remove unistr/u16-mblen.
57569 2010-01-10  Bruno Haible  <bruno@clisp.org>
57571         wchar: Fix compilation error when <wchar.h> is used from coreutils.
57572         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
57573         Reported by Brian Gough <bjg@gnu.org> and
57574         Chris Clayton <chris2553@googlemail.com> via
57575         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
57577 2010-01-09  Bruno Haible  <bruno@clisp.org>
57579         unistr/u16-to-u32: Reject invalid input.
57580         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
57581         u16_mbtouc.
57582         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
57583         Remove unistr/u16-mbtouc.
57585         unistr/u16-to-u8: Reject invalid input.
57586         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
57587         u16_mbtouc.
57588         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
57589         Remove unistr/u16-mbtouc.
57591         unistr/u8-to-u32: Reject invalid input.
57592         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
57593         u8_mbtouc.
57594         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
57595         Remove unistr/u8-mbtouc.
57597         unistr/u8-to-u16: Reject invalid input.
57598         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
57599         u8_mbtouc.
57600         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
57601         Remove unistr/u8-mbtouc.
57603 2010-01-09  Bruno Haible  <bruno@clisp.org>
57605         Tests for module 'getlogin'.
57606         * modules/getlogin-tests: New file.
57607         * tests/test-getlogin.c: New file.
57609         New module 'getlogin'.
57610         * lib/unistd.in.h (getlogin): New declaration.
57611         * lib/getlogin.c: New file.
57612         * m4/getlogin.m4: New file.
57613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
57614         HAVE_GETLOGIN.
57615         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
57616         HAVE_GETLOGIN.
57617         * modules/getlogin: New file.
57618         * doc/posix-functions/getlogin.texi: Mention the new module.
57619         Reported by John W. Eaton <jwe@gnu.org>.
57621 2010-01-09  Bruno Haible  <bruno@clisp.org>
57623         getlogin_r: Support for native Windows.
57624         * lib/getlogin_r.c: Include <windows.h>
57625         (getlogin_r): Implement for native Windows.
57626         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
57627         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
57628         via John W. Eaton <jwe@gnu.org>.
57630 2010-01-09  Bruno Haible  <bruno@clisp.org>
57632         getlogin_r: Small fixes.
57633         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
57634         succeeds.
57635         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
57636         before testing whether getlogin_r is declared. No need to set
57637         HAVE_DECL_GETLOGIN_R to 1.
57638         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
57640 2010-01-09  Bruno Haible  <bruno@clisp.org>
57642         * lib/unistd.in.h (getlogin_r): Add comment.
57644 2010-01-09  Bruno Haible  <bruno@clisp.org>
57646         Tests for module 'getlogin_r'.
57647         * modules/getlogin_r-tests: New file.
57648         * tests/test-getlogin_r.c: New file.
57650 2010-01-09  Jim Meyering  <meyering@redhat.com>
57652         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
57653         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
57654         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
57656 2010-01-08  Simon Josefsson  <simon@josefsson.org>
57658         * lib/dup2.c (rpl_dup2): Improve comment.
57660 2010-01-08  Eric Blake  <ebb9@byu.net>
57662         maint.mk: allow packages to add makefile @@ exceptions
57663         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
57664         (sc_makefile_check): Rename...
57665         (sc_makefile_at_at_check): ...to this, and use hook.
57667         dup2: work around mingw bug
57668         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
57669         Reported by Simon Josefsson.
57671 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
57673         glob: Fix C++ compilation.
57674         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
57675         C++.
57677 2010-01-07  Bruno Haible  <bruno@clisp.org>
57679         Fix indentation of wctype.in.h, broken since 2007-01-06.
57680         * lib/wctype.in.h: Fix indentation of preprocessor directives.
57682 2010-01-07  Bruno Haible  <bruno@clisp.org>
57684         mbslen: Avoid collision with system function.
57685         * lib/string.in.h [MirBSD]: Include <wchar.h>.
57686         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
57687         * m4/mbslen.m4: New file.
57688         * modules/mbslen (Files): Add it.
57689         (configure.ac): Invoke gl_MBSLEN.
57690         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
57691         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
57692         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
57693         via Ian Beckwith <ianb@erislabs.net>.
57695 2010-01-07  Bruno Haible  <bruno@clisp.org>
57697         dirent: Document the last fix.
57698         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
57700 2010-01-07  Bruno Haible  <bruno@clisp.org>
57702         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
57703         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
57704         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
57705         va_list are defined.
57706         * doc/posix-headers/stdio.texi: Document the bug of missing types.
57707         Reported by Eric Blake.
57709 2010-01-07  Bruno Haible  <bruno@clisp.org>
57711         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
57712         * modules/xlist (Depends-on): Add 'list',
57713         * modules/xoset (Depends-on): Add 'oset'.
57714         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57716 2010-01-07  Bruno Haible  <bruno@clisp.org>
57718         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
57719         * doc/posix-functions/strncasecmp.texi: Likewise.
57721 2010-01-07  Bruno Haible  <bruno@clisp.org>
57723         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
57725 2010-01-07  John W. Eaton  <jwe@octave.org>
57727         wctype: allow C++ use
57728         * lib/wctype.in.h: Add extern "C" block for C++.
57730 2010-01-06  Eric Blake  <ebb9@byu.net>
57732         maint.mk: detect incorrect GFDL usage
57733         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
57735 2010-01-06  Jim Meyering  <meyering@redhat.com>
57736         and Eric Blake  <ebb9@byu.net>
57738         maint.mk: ignore multi-line copyright in NEWS
57739         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
57741 2010-01-06  Eric Blake  <ebb9@byu.net>
57743         select: add missing dependency
57744         * modules/select-tests (Depends-on): Move sockets dependency...
57745         * modules/select (Depends-on): ...here.
57746         Reported by Ian Beckwith.
57748         doc: regenerate INSTALL
57749         * doc/INSTALL: Reflect recent autoconf update.
57750         * doc/INSTALL.ISO: Likewise.
57751         * doc/INSTALL.UTF-8: Likewise.
57753         pread: fix compilation on glibc
57754         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
57755         Reported by Ralf Wildenhues.
57757         dirent: fix test failure
57758         * lib/dirent.in.h (includes): Guarantee ino_t.
57759         Reported by Ralf Wildenhues.
57761 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
57763         linkat, renameat: avoid bad free
57764         * lib/at-func2.c (at_func2): Fix typo.
57765         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
57767 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57769         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
57770         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
57771         to avoid failure of symlink test later.
57773 2010-01-06  Eric Blake  <ebb9@byu.net>
57775         stdio, unistd: guarantee ssize_t
57776         * lib/unistd.in.h (includes): Ensure that types required by POSIX
57777         2008 are exposed when needed.
57778         * lib/stdio.in.h (includes): Likewise.
57779         Reported by Ralf Wildenhues.
57781 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
57783         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
57784         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
57785         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
57787 2010-01-06  Jim Meyering  <meyering@redhat.com>
57789         readtokens: this module *does* require xalloc.h
57790         It uses only functions that were omitted by the old syntax-check rule.
57791         * lib/readtokens.c: Include "xalloc.h" once again.
57792         * modules/readtokens (Depends-on): Add xalloc.
57793         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
57795 2010-01-05  Eric Blake  <ebb9@byu.net>
57797         maint: support 'make announcement' from a VPATH build
57798         * top/maint.mk (announcement): Look for correct NEWS file.
57800 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
57802         utimens (fdutimens): ignore a negative FD, per contract
57803         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
57804         when we have a valid file descriptor.  Otherwise, using a brand
57805         new glibc (with just-patched futimens that now fails with EBADF)
57806         would cause this function to fail with ENOSYS.
57807         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
57808         See also http://bugzilla.redhat.com/552320.
57810 2010-01-05  Eric Blake  <ebb9@byu.net>
57812         strcase: document what it provides
57813         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
57814         gnulib module.
57815         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
57816         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
57818 2010-01-05  Jim Meyering  <meyering@redhat.com>
57820         maint: remove useless inclusions of "xalloc.h"
57821         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
57822         * lib/readtokens.c: Likewise.
57823         * lib/same.c: Likewise.
57824         * modules/getloadavg (Depends-on): Remove xalloc.
57825         * modules/readtokens: Likewise.
57826         * modules/same: Likewise.
57828         maint.mk: include 4 more function names in alloca.h-checking regexp
57829         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
57830         regexp.  Before, we would give a false-positive (saying alloca.h
57831         is included unnecessarily) when the only uses involved omitted symbols.
57833         xalloc.h: use consistent formatting
57834         * lib/xalloc.h: Move declarations to start in the first column.
57836 2010-01-05  Eric Blake  <ebb9@byu.net>
57838         mkdir: avoid xalloc
57839         * lib/mkdir.c (includes): Drop unused header.
57840         Reported by John W. Eaton.
57842 2010-01-04  Jim Meyering  <meyering@redhat.com>
57844         nl_langinfo: avoid configure-time syntax error
57845         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
57846         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
57847         the empty string.  Don't let that provoke a shell syntax error.
57849         regcomp, regexec, fnmatch: avoid array bounds read error
57850         * lib/regcomp.c (build_equiv_class): From glibc:
57851         Use only the low 24 bits of a findidx return value as an index
57852         into the weights array.  Patch by Ulrich Drepper:
57853         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
57854         * lib/regexec.c (check_node_accept_bytes): Likewise.
57855         * lib/fnmatch_loop.c (FCT): Likewise.
57857         regcomp: skip collseq lookup when there are no rules
57858         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
57859         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
57861         regcomp: recognize ill-formed { } expressions
57862         * lib/regcomp.c (parse_dup_op): From glibc:
57863         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
57865         regcomp: fix typo in comment
57866         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
57867         s/satisfy/satisfies/.
57869         regcomp: sync from glibc: remove dead store
57870         * lib/regcomp.c (duplicate_node_closure): Remove useless
57871         search_duplicated_node call and dead store.
57873         regcomp: sync from glibc; always use nl_langinfo
57874         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
57875         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
57876         * modules/regex (Depends-on): Add nl_langinfo.
57878 2010-01-04  Eric Blake  <ebb9@byu.net>
57880         fdopendir: fix configure test
57881         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
57883 2010-01-01  Bruno Haible  <bruno@clisp.org>
57885         wchar: Remove unused configure check.
57886         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
57888 2010-01-01  Eric Blake  <ebb9@byu.net>
57890         headers: make check of system header explicit
57891         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
57892         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
57893         ourselves.
57894         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57895         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57896         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57897         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
57898         internals.
57899         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
57900         missing.
57901         Suggested by Bruno Haible.
57903 2010-01-01  Jim Meyering  <meyering@redhat.com>
57905         ChangeLog: tweak to eliminate unnecessary copyright line
57906         * ChangeLog: Remove a copyright line that was mistakenly updated
57907         by today's update-copyright run.  Reported by Eric Blake.
57909         test-update-copyright: don't let envvar setting cause test failure
57910         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
57912 2010-01-01  Bruno Haible  <bruno@clisp.org>
57914         localename: Avoid gcc warning.
57915         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
57916         function if it is not used.
57918 2010-01-01  Jim Meyering  <meyering@redhat.com>
57920         update nearly all FSF copyright year lists to include 2010
57921         Use the same procedure as for 2009, outlined in
57922         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
57924         version-etc: set COPYRIGHT_YEAR to 2010
57925         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
57927 2009-12-31  Eric Blake  <ebb9@byu.net>
57929         doc: correct availability of cygwin 1.5.x getopt
57930         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
57931         variables.
57932         * doc/posix-functions/opterr.texi (opterr): Likewise.
57933         * doc/posix-functions/optind.texi (optind): Likewise.
57934         * doc/posix-functions/optopt.texi (optopt): Likewise.
57935         * doc/posix-functions/tzname.texi (tzname): Likewise.
57937         openat: update maintainer
57938         * modules/openat (Maintainer): Add myself.
57940         utimens: avoid shadowing warning
57941         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
57942         buffers into one, to avoid shadowing, as well as avoiding a
57943         redundant stat.
57944         Reported by Jim Meyering.
57946         test-dup2: avoid compiler warning
57947         * tests/test-dup2.c (is_inheritable): Only define if used.
57949 2010-01-01  Bruno Haible  <bruno@clisp.org>
57951         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
57952         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
57953         defined, use wctomb instead of wcrtomb.
57955 2010-01-01  Bruno Haible  <bruno@clisp.org>
57957         iconv: Reject native Solaris iconv.
57958         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
57959         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
57961 2009-12-31  Bruno Haible  <bruno@clisp.org>
57963         * tests/test-signal.c (main): Remove test of 'SIG'.
57965 2009-12-31  Bruno Haible  <bruno@clisp.org>
57967         spawn: Fix incomplete fix.
57968         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
57969         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
57970         warnings for GNULIB_POSIXCHECK again.
57971         Reported by Eric Blake.
57973 2009-12-31  Bruno Haible  <bruno@clisp.org>
57975         Avoid namespace pollution on glibc systems.
57976         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
57977         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
57978         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
57979         glibc systems.
57981 2009-12-31  Bruno Haible  <bruno@clisp.org>
57983         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
57984         (gl_REPLACE_WCHAR_H): Turn into a no-op.
57985         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
57986         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
57987         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
57988         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
57989         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
57991 2009-12-31  Bruno Haible  <bruno@clisp.org>
57993         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
57994         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
57995         afterwards.
57997 2009-12-31  Bruno Haible  <bruno@clisp.org>
57999         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
58000         SYS_UTSNAME_H.
58002 2009-12-31  Bruno Haible  <bruno@clisp.org>
58004         spawn: Fix misapplied patch.
58005         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
58006         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
58007         warnings for GNULIB_POSIXCHECK.
58009 2009-12-31  Bruno Haible  <bruno@clisp.org>
58011         times: Update after sys_times changed.
58012         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
58013         * modules/times (Files): Add it.
58014         (configure.ac): Invoke gl_FUNC_TIMES.
58016 2009-12-31  Bruno Haible  <bruno@clisp.org>
58018         Use AC_C_INLINE where necessary.
58019         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
58020         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58021         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
58022         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58023         * m4/mbfile.m4 (gl_MBFILE): Likewise.
58024         * m4/mbiter.m4 (gl_MBITER): Likewise.
58025         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58026         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58027         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
58028         * modules/u64 (configure.ac): Likewise.
58030 2009-12-31  Bruno Haible  <bruno@clisp.org>
58032         Use AC_C_INLINE instead of module 'inline' where possible.
58033         * modules/inline (Description): Clarify purpose.
58034         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
58035         * modules/count-one-bits (Depends-on): Remove inline.
58036         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
58037         * modules/openat (Depends-on): Remove inline.
58038         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
58039         instead of depending on module 'inline'.
58040         * modules/filevercmp (Depends-on, configure.ac): Likewise.
58041         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
58042         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
58043         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
58044         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
58045         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
58046         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
58047         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
58048         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
58049         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
58050         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
58051         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
58052         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
58053         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
58054         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
58055         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
58056         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
58057         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
58058         Likewise.
58059         * modules/unictype/property-ascii-hex-digit (Depends-on,
58060         configure.ac): Likewise.
58061         * modules/unictype/property-bidi-arabic-digit (Depends-on,
58062         configure.ac): Likewise.
58063         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
58064         configure.ac): Likewise.
58065         * modules/unictype/property-bidi-block-separator (Depends-on,
58066         configure.ac): Likewise.
58067         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
58068         configure.ac): Likewise.
58069         * modules/unictype/property-bidi-common-separator (Depends-on,
58070         configure.ac): Likewise.
58071         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
58072         Likewise.
58073         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
58074         configure.ac): Likewise.
58075         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
58076         configure.ac): Likewise.
58077         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
58078         configure.ac): Likewise.
58079         * modules/unictype/property-bidi-european-digit (Depends-on,
58080         configure.ac): Likewise.
58081         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
58082         configure.ac): Likewise.
58083         * modules/unictype/property-bidi-left-to-right (Depends-on,
58084         configure.ac): Likewise.
58085         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
58086         configure.ac): Likewise.
58087         * modules/unictype/property-bidi-other-neutral (Depends-on,
58088         configure.ac): Likewise.
58089         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
58090         Likewise.
58091         * modules/unictype/property-bidi-segment-separator (Depends-on,
58092         configure.ac): Likewise.
58093         * modules/unictype/property-bidi-whitespace (Depends-on,
58094         configure.ac): Likewise.
58095         * modules/unictype/property-combining (Depends-on, configure.ac):
58096         Likewise.
58097         * modules/unictype/property-composite (Depends-on, configure.ac):
58098         Likewise.
58099         * modules/unictype/property-currency-symbol (Depends-on,
58100         configure.ac): Likewise.
58101         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
58102         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
58103         Likewise.
58104         * modules/unictype/property-default-ignorable-code-point (Depends-on,
58105         configure.ac): Likewise.
58106         * modules/unictype/property-deprecated (Depends-on, configure.ac):
58107         Likewise.
58108         * modules/unictype/property-diacritic (Depends-on, configure.ac):
58109         Likewise.
58110         * modules/unictype/property-extender (Depends-on, configure.ac):
58111         Likewise.
58112         * modules/unictype/property-format-control (Depends-on, configure.ac):
58113         Likewise.
58114         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
58115         Likewise.
58116         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
58117         Likewise.
58118         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
58119         Likewise.
58120         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
58121         Likewise.
58122         * modules/unictype/property-hyphen (Depends-on, configure.ac):
58123         Likewise.
58124         * modules/unictype/property-id-continue (Depends-on, configure.ac):
58125         Likewise.
58126         * modules/unictype/property-id-start (Depends-on, configure.ac):
58127         Likewise.
58128         * modules/unictype/property-ideographic (Depends-on, configure.ac):
58129         Likewise.
58130         * modules/unictype/property-ids-binary-operator (Depends-on,
58131         configure.ac): Likewise.
58132         * modules/unictype/property-ids-trinary-operator (Depends-on,
58133         configure.ac): Likewise.
58134         * modules/unictype/property-ignorable-control (Depends-on,
58135         configure.ac): Likewise.
58136         * modules/unictype/property-iso-control (Depends-on, configure.ac):
58137         Likewise.
58138         * modules/unictype/property-join-control (Depends-on, configure.ac):
58139         Likewise.
58140         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
58141         Likewise.
58142         * modules/unictype/property-line-separator (Depends-on, configure.ac):
58143         Likewise.
58144         * modules/unictype/property-logical-order-exception (Depends-on,
58145         configure.ac): Likewise.
58146         * modules/unictype/property-lowercase (Depends-on, configure.ac):
58147         Likewise.
58148         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
58149         * modules/unictype/property-non-break (Depends-on, configure.ac):
58150         Likewise.
58151         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
58152         Likewise.
58153         * modules/unictype/property-numeric (Depends-on, configure.ac):
58154         Likewise.
58155         * modules/unictype/property-other-alphabetic (Depends-on,
58156         configure.ac): Likewise.
58157         * modules/unictype/property-other-default-ignorable-code-point
58158         (Depends-on, configure.ac): Likewise.
58159         * modules/unictype/property-other-grapheme-extend (Depends-on,
58160         configure.ac): Likewise.
58161         * modules/unictype/property-other-id-continue (Depends-on,
58162         configure.ac): Likewise.
58163         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
58164         Likewise.
58165         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
58166         Likewise.
58167         * modules/unictype/property-other-math (Depends-on, configure.ac):
58168         Likewise.
58169         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
58170         Likewise.
58171         * modules/unictype/property-paired-punctuation (Depends-on,
58172         configure.ac): Likewise.
58173         * modules/unictype/property-paragraph-separator (Depends-on,
58174         configure.ac): Likewise.
58175         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
58176         Likewise.
58177         * modules/unictype/property-pattern-white-space (Depends-on,
58178         configure.ac): Likewise.
58179         * modules/unictype/property-private-use (Depends-on, configure.ac):
58180         Likewise.
58181         * modules/unictype/property-punctuation (Depends-on, configure.ac):
58182         Likewise.
58183         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
58184         Likewise.
58185         * modules/unictype/property-radical (Depends-on, configure.ac):
58186         Likewise.
58187         * modules/unictype/property-sentence-terminal (Depends-on,
58188         configure.ac): Likewise.
58189         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
58190         Likewise.
58191         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
58192         * modules/unictype/property-terminal-punctuation (Depends-on,
58193         configure.ac): Likewise.
58194         * modules/unictype/property-titlecase (Depends-on, configure.ac):
58195         Likewise.
58196         * modules/unictype/property-unassigned-code-value (Depends-on,
58197         configure.ac): Likewise.
58198         * modules/unictype/property-unified-ideograph (Depends-on,
58199         configure.ac): Likewise.
58200         * modules/unictype/property-uppercase (Depends-on, configure.ac):
58201         Likewise.
58202         * modules/unictype/property-variation-selector (Depends-on,
58203         configure.ac): Likewise.
58204         * modules/unictype/property-white-space (Depends-on, configure.ac):
58205         Likewise.
58206         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
58207         Likewise.
58208         * modules/unictype/property-xid-start (Depends-on, configure.ac):
58209         Likewise.
58210         * modules/unictype/property-zero-width (Depends-on, configure.ac):
58211         Likewise.
58212         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
58213         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
58214         Likewise.
58216 2009-12-31  Bruno Haible  <bruno@clisp.org>
58218         Remove unnecessary AC_C_INLINE invocation.
58219         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
58220         since 2009-08-21.
58222 2009-12-31  Jim Meyering  <meyering@redhat.com>
58224         maint.mk: don't require explicit gpg_key_ID in cfg.mk
58225         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
58226         With this change, we can all remove the gpg_key_ID = ... definition
58227         from our respective cfg.mk files.
58229         maint.mk: create announcement template in ~/, not in /tmp
58230         * top/maint.mk (emit_upload_commands): Adjust.
58231         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
58232         Remove temporary file, .ci-msg.
58234 2009-12-31  Eric Blake  <ebb9@byu.net>
58236         link-warning: always build headers with link warnings
58237         * modules/arpa_inet (Makefile.am): Always build replacement
58238         header.
58239         * modules/ctype (Makefile.am): Likewise.
58240         * modules/dirent (Makefile.am): Likewise.
58241         * modules/inttypes (Makefile.am): Likewise.
58242         * modules/langinfo (Makefile.am): Likewise.
58243         * modules/locale (Makefile.am): Likewise.
58244         * modules/spawn (Makefile.am): Likewise.
58245         * modules/sys_file (Makefile.am): Likewise.
58246         * modules/sys_ioctl (Makefile.am): Likewise.
58247         * modules/sys_select (Makefile.am): Likewise.
58248         * modules/sys_socket (Makefile.am): Likewise.
58249         * modules/sys_times (Makefile.am): Likewise.
58250         * modules/sys_utsname (Makefile.am): Likewise.
58251         * modules/sys_wait (Makefile.am): Likewise.
58252         * modules/wchar (Makefile.am): Likewise.
58253         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
58254         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
58255         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
58256         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
58257         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
58258         Likewise.
58259         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58260         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
58261         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
58262         Likewise.
58263         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
58264         Likewise.
58265         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
58266         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
58267         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
58268         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58269         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
58270         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58271         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58272         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
58273         (gl_WCHAR_H_DEFAULTS): Likewise.
58275 2009-12-31  Eric Blake  <ebb9@byu.net>
58277         signal, spawn: use link warnings
58278         * lib/signal.in.h (sigset_t): Make unconditional.
58279         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
58280         (sigpending, sigprocmask, sigaction): Add link warnings.
58281         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
58282         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
58283         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
58284         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
58285         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
58286         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
58287         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
58288         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
58289         (posix_spawn_file_actions_destroy)
58290         (posix_spawn_file_actions_addopen)
58291         (posix_spawn_file_actions_addclose)
58292         (posix_spawn_file_actions_adddup2): Likewise.
58293         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
58294         * tests/test-signal.c (main): Enhance test.
58296         spawn: improve wrapper support
58297         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
58298         (gl_SPAWN_H_DEFAULTS): New defaults.
58299         * modules/spawn (Makefile.am): Substitute them.
58300         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
58301         Only declare if missing or broken.
58303         sys_times, sys_utsname: use include_next
58304         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
58305         header.
58306         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
58307         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58308         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58309         * modules/sys_times (Depends-on): Add include_next.
58310         (Makefile.am): Substitute additional values.
58311         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
58312         * lib/sys_times.in.h (includes): Include native header, if
58313         available.
58314         * lib/sys_utsname.in.h (includes): Likewise.
58315         * tests/test-sys_times.c (main): Enhance test.
58317         fdutimensat: revert prior patch
58318         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
58319         utimens.h.
58320         Reported by Bruno Haible.
58322 2009-12-30  Eric Blake  <ebb9@byu.net>
58324         sys_wait: drop link-warning dependency
58325         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
58326         link-warning efforts.
58327         * lib/sys_wait.in.h: Likewise.
58329         fdutimensat: remove bogus dependency
58330         * modules/fdutimensat (Depends-on): Drop inline.
58332         unistd: fix typo
58333         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
58335 2009-12-30  Bruno Haible  <bruno@clisp.org>
58337         Fix compilation error with Solaris cc.
58338         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
58339         * lib/unicase/u16-is-invariant.c: Likewise.
58340         * lib/unicase/u32-is-invariant.c: Likewise.
58341         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58343 2009-12-30  Bruno Haible  <bruno@clisp.org>
58345         Fix test crash.
58346         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
58347         locales.
58348         Reported by Simon Josefsson <simon@josefsson.org>.
58350 2009-12-30  Bruno Haible  <bruno@clisp.org>
58352         Fix compilation error on most platforms.
58353         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
58354         Reported by Simon Josefsson <simon@josefsson.org>
58355         and Nelson H. F. Beebe <beebe@math.utah.edu>.
58357 2009-12-30  Eric Blake  <ebb9@byu.net>
58359         futimens, utimensat: work around ntfs-3g bug
58360         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
58361         a ctime bug is present, and expand workaround to cover ntfs-3g.
58362         * lib/utimens.c (fdutimens, lutimens): Likewise.
58363         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
58364         (validate_timespec): Adjust return value.
58365         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
58366         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58367         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
58369 2009-12-29  Eric Blake  <ebb9@byu.net>
58371         link-warning: make usage consistent
58372         * modules/ctype (Depends-on): Add link-warning.
58373         (Makefile.am): Update rules accordingly.
58374         * modules/langinfo (Depends-on, Makefile.am): Likewise.
58375         * modules/locale (Depends-on, Makefile.am): Likewise.
58376         * modules/sys_file (Makefile.am): Likewise.
58377         * modules/getopt-posix (Makefile.am): Delete unused link warning
58378         efforts.
58379         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
58380         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
58381         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
58382         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
58384         stdio: remove unused variables
58385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
58386         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
58387         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
58389         tests: test more substitute headers
58390         * modules/ctype-tests: New file.
58391         * modules/dirent-tests: Likewise.
58392         * modules/spawn-tests: Likewise.
58393         * modules/sys_file-tests: Likewise.
58394         * modules/sys_ioctl-tests: Likewise.
58395         * modules/sys_wait-tests: Likewise.
58396         * tests/test-ctype.c: Likewise.
58397         * tests/test-dirent.c: Likewise.
58398         * tests/test-spawn.c: Likewise.
58399         * tests/test-sys_file.c: Likewise.
58400         * tests/test-sys_ioctl.c: Likewise.
58401         * tests/test-sys_wait.c: Likewise.
58402         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
58403         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
58404         whether or not flock is in use.
58406         tests: remove License section from module
58407         * modules/arpa_inet-tests: Remove unneeded section.
58408         * modules/byteswap-tests: Likewise.
58409         * modules/ceilf-tests: Likewise.
58410         * modules/ceill-tests: Likewise.
58411         * modules/crypto/des-tests: Likewise.
58412         * modules/crypto/gc-arcfour-tests: Likewise.
58413         * modules/crypto/gc-arctwo-tests: Likewise.
58414         * modules/crypto/gc-des-tests: Likewise.
58415         * modules/crypto/gc-hmac-md5-tests: Likewise.
58416         * modules/crypto/gc-hmac-sha1-tests: Likewise.
58417         * modules/crypto/gc-md2-tests: Likewise.
58418         * modules/crypto/gc-md4-tests: Likewise.
58419         * modules/crypto/gc-md5-tests: Likewise.
58420         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
58421         * modules/crypto/gc-rijndael-tests: Likewise.
58422         * modules/crypto/gc-sha1-tests: Likewise.
58423         * modules/crypto/gc-tests: Likewise.
58424         * modules/crypto/md2-tests: Likewise.
58425         * modules/crypto/md4-tests: Likewise.
58426         * modules/fcntl-h-tests: Likewise.
58427         * modules/floorf-tests: Likewise.
58428         * modules/floorl-tests: Likewise.
58429         * modules/frexp-nolibm-tests: Likewise.
58430         * modules/frexp-tests: Likewise.
58431         * modules/frexpl-nolibm-tests: Likewise.
58432         * modules/frexpl-tests: Likewise.
58433         * modules/getaddrinfo-tests: Likewise.
58434         * modules/inttypes-tests: Likewise.
58435         * modules/isfinite-tests: Likewise.
58436         * modules/isinf-tests: Likewise.
58437         * modules/ldexpl-tests: Likewise.
58438         * modules/locale-tests: Likewise.
58439         * modules/math-tests: Likewise.
58440         * modules/netdb-tests: Likewise.
58441         * modules/netinet_in-tests: Likewise.
58442         * modules/printf-frexp-tests: Likewise.
58443         * modules/printf-frexpl-tests: Likewise.
58444         * modules/priv-set-tests: Likewise.
58445         * modules/random_r-tests: Likewise.
58446         * modules/round-tests: Likewise.
58447         * modules/roundf-tests: Likewise.
58448         * modules/roundl-tests: Likewise.
58449         * modules/search-tests: Likewise.
58450         * modules/select-tests: Likewise.
58451         * modules/signal-tests: Likewise.
58452         * modules/stdbool-tests: Likewise.
58453         * modules/stddef-tests: Likewise.
58454         * modules/stdint-tests: Likewise.
58455         * modules/stdio-tests: Likewise.
58456         * modules/stdlib-tests: Likewise.
58457         * modules/string-tests: Likewise.
58458         * modules/strings-tests: Likewise.
58459         * modules/sys_select-tests: Likewise.
58460         * modules/sys_socket-tests: Likewise.
58461         * modules/sys_stat-tests: Likewise.
58462         * modules/sys_time-tests: Likewise.
58463         * modules/sys_utsname-tests: Likewise.
58464         * modules/sysexits-tests: Likewise.
58465         * modules/time-tests: Likewise.
58466         * modules/trunc-tests: Likewise.
58467         * modules/truncf-tests: Likewise.
58468         * modules/truncl-tests: Likewise.
58469         * modules/tsearch-tests: Likewise.
58470         * modules/unistd-tests: Likewise.
58471         * modules/wchar-tests: Likewise.
58472         * modules/wctype-tests: Likewise.
58474         tests: fix license on several tests
58475         * tests/test-des.c: Update to GPLv3+.
58476         * tests/test-flock.c: Likewise.
58477         * tests/test-fsync.c: Likewise.
58478         * tests/test-futimens.h: Likewise.
58479         * tests/test-gc-arcfour.c: Likewise.
58480         * tests/test-gc-arctwo.c: Likewise.
58481         * tests/test-gc-des.c: Likewise.
58482         * tests/test-gc-hmac-md5.c: Likewise.
58483         * tests/test-gc-hmac-sha1.c: Likewise.
58484         * tests/test-gc-md2.c: Likewise.
58485         * tests/test-gc-md4.c: Likewise.
58486         * tests/test-gc-md5.c: Likewise.
58487         * tests/test-gc-pbkdf2-sha1.c: Likewise.
58488         * tests/test-gc-rijndael.c: Likewise.
58489         * tests/test-gc-sha1.c: Likewise.
58490         * tests/test-gc.c: Likewise.
58491         * tests/test-getcwd.c: Likewise.
58492         * tests/test-link.c: Likewise.
58493         * tests/test-link.h: Likewise.
58494         * tests/test-lutimens.h: Likewise.
58495         * tests/test-md2.c: Likewise.
58496         * tests/test-md4.c: Likewise.
58497         * tests/test-mkdir.h: Likewise.
58498         * tests/test-rename.c: Likewise.
58499         * tests/test-rename.h: Likewise.
58500         * tests/test-safe-alloc.c: Likewise.
58501         * tests/test-utimens-common.h: Likewise.
58502         * tests/test-utimens.h: Likewise.
58504         maint: sync license texts
58505         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
58506         * doc/gpl-3.0.texi: Revert copyright year update.
58507         * doc/lgpl-3.0.texi: Likewise.
58509 2009-12-29  Jim Meyering  <meyering@redhat.com>
58511         update nearly all FSF copyright year lists to include 2009
58512         The files named by the following are exempted:
58513             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
58514               test -f "$dst" && { echo "$dst"; continue; }
58515               test -d "$dst" || continue
58516               echo "$dst"/$(basename "$src")
58517             done > exempt
58518             git ls-files tests/unictype >> exempt
58519         In the remaining files, convert to all-interval notation if
58520         - there is already at least one year interval like 2000-2003
58521         - the file is maintained by me
58522         - the file is in lib/uni*/, where that style already prevails
58523         Otherwise, use update-copyright's default.
58525 2009-12-29  Simon Josefsson  <simon@josefsson.org>
58526         and Eric Blake  <ebb9@byu.net>
58528         tests: don't require debug system() to pass
58529         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
58530         * tests/test-rmdir.h (test_rmdir_func): Likewise.
58531         * tests/test-unlink.h (test_unlink_func): Likewise.
58532         * tests/test-fstatat.c (main): ...into callers.
58533         * tests/test-lstat.c (main): Likewise.
58534         * tests/test-rmdir.c (main): Likewise.
58535         * tests/test-unlink.c (main): Likewise.
58536         * tests/test-unlinkat.c (main): Likewise.
58537         * tests/test-areadlink-with-size.c (main): Don't require a
58538         debug-only system call to pass, aiding cross-testing to mingw.
58539         * tests/test-areadlink.c (main): Likewise.
58540         * tests/test-areadlinkat-with-size.c (main): Likewise.
58541         * tests/test-areadlinkat.c (main): Likewise.
58542         * tests/test-canonicalize-lgpl.c (main): Likewise.
58543         * tests/test-canonicalize.c (main): Likewise.
58544         * tests/test-chown.c (main): Likewise.
58545         * tests/test-fchownat.c (main): Likewise.
58546         * tests/test-lchown.c (main): Likewise.
58547         * tests/test-fdutimensat.c (main): Likewise.
58548         * tests/test-futimens.c (main): Likewise.
58549         * tests/test-link.c (main): Likewise.
58550         * tests/test-linkat.c (main): Likewise.
58551         * tests/test-mkdir.c (main): Likewise.
58552         * tests/test-mkdirat.c (main): Likewise.
58553         * tests/test-mkfifo.c (main): Likewise.
58554         * tests/test-mkfifoat.c (main): Likewise.
58555         * tests/test-mknod.c (main): Likewise.
58556         * tests/test-readlink.c (main): Likewise.
58557         * tests/test-remove.c (main): Likewise.
58558         * tests/test-rename.c (main): Likewise.
58559         * tests/test-renameat.c (main): Likewise.
58560         * tests/test-symlink.c (main): Likewise.
58561         * tests/test-symlinkat.c (main): Likewise.
58562         * tests/test-utimens.c (main): Likewise.
58563         * tests/test-utimensat.c (main): Likewise.
58565 2009-12-29  Simon Josefsson  <simon@josefsson.org>
58567         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
58568         on $(UNUSED_PARAMETER_H) to avoid build failure.
58570 2009-12-28  Jim Meyering  <meyering@redhat.com>
58572         update-copyright: you may specify a max. line length other than 72
58573         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
58575         maint: use consistent FSF copyright line syntax
58576         * lib/posixtm.c: Add missing comma in FSF copyright line.
58577         * lib/posixtm.h: Likewise.
58578         * lib/getugroups.c: Add missing ", Inc.".
58580         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
58581         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
58582         FSF copyright line.  Remove trailing blanks.
58584 2009-12-28  Eric Blake  <ebb9@byu.net>
58586         test-dup2: reduce dependencies
58587         * modules/cloexec (Configure.ac): Set witness.
58588         * modules/dup2-tests (Depends-on): Drop cloexec.
58589         * tests/test-dup2.c (main): Skip portion of test if cloexec module
58590         not present.
58591         Suggested by Bruno Haible.
58593 2009-12-26  Bruno Haible  <bruno@clisp.org>
58595         Remove an unneeded dependency.
58596         * modules/fseterr (Depends-on): Remove dup2.
58598 2009-12-26  Eric Blake  <ebb9@byu.net>
58600         tests: use macros.h in more places
58601         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
58602         (ASSERT_STREAM): Provide default of stderr.
58603         * tests/test-dirent-safer.c: Include macros.h, using alternate
58604         stream for assertions.
58605         * tests/test-dup-safer.c: Likewise.
58606         * tests/test-freopen-safer.c: Likewise.
58607         * tests/test-getopt.c: Likewise.
58608         * tests/test-openat-safer.c: Likewise.
58609         * tests/test-pipe.c: Likewise.
58610         * tests/test-popen-safer.c: Likewise.
58611         * modules/dirent-safer-tests (Files): Include macros.h.
58612         * modules/unistd-safer-tests (Files): Likewise.
58613         * modules/freopen-safer-tests (Files): Likewise.
58614         * modules/getopt-posix-tests (Files): Likewise.
58615         * modules/openat-safer-tests (Files): Likewise.
58616         * modules/pipe-tests (Files): Likewise.
58618 2009-12-26  Bruno Haible  <bruno@clisp.org>
58620         javacomp-script: Portability fix.
58621         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
58622         that it also works on Solaris.
58624 2009-12-26  Bruno Haible  <bruno@clisp.org>
58626         localename: Fix storage allocation of gl_locale_name_thread's result.
58627         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
58628         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
58629         all platforms that have 'uselocale'.
58630         (gl_locale_name_thread_unsafe): New function, extracted from
58631         gl_locale_name_thread.
58632         (gl_locale_name_thread): Call struniq on all platforms that have
58633         'uselocale'.
58634         * tests/test-localename.c (test_locale_name_thread): Check that the
58635         resulting strings are permanently allocated.
58636         * modules/localename-tests (Depends-on): Add strdup.
58638 2009-12-26  Bruno Haible  <bruno@clisp.org>
58640         * tests/test-localename.c (categories): Fill in the strings.
58642 2009-12-26  Jim Meyering  <meyering@redhat.com>
58644         isdir: complete the removal of m4/isdir.m4
58645         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
58647         isdir: clean up, since at least grep still uses it
58648         * lib/isdir.c: Include "isdir.h".
58649         (S_ISDIR): Remove now-unneeded definition.
58650         * modules/isdir (Files): Add lib/isdir.h.
58651         * lib/isdir.h: New file, with declaration.
58652         * m4/isdir.m4: Remove file -- unneeded.
58654 2009-12-25  Bruno Haible  <bruno@clisp.org>
58656         selinux-h: Make generated .h files standalone.
58657         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
58658         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
58659         * lib/se-selinux.in.h: Likewise.
58660         * modules/selinux-h (Depends-on): Add unused-parameter.
58661         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
58662         selinux/selinux.h and selinux/context.h.
58663         Suggested by Eric Blake.
58665 2009-12-25  Bruno Haible  <bruno@clisp.org>
58667         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
58668         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
58669         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
58670         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
58671         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
58673 2009-12-24  Bruno Haible  <bruno@clisp.org>
58675         openat: Fix warning.
58676         * lib/openat-proc.c: Include <unistd.h>.
58678 2009-12-24  Bruno Haible  <bruno@clisp.org>
58680         New module 'unused-parameter'.
58681         * build-aux/unused-parameter.h: New file, extracted from earlier
58682         gnulib-common.m4.
58683         * modules/unused-parameter: New file.
58684         * lib/unistr.h: Include unused-parameter.h.
58685         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
58686         _GL_UNUSED.
58687         * modules/unistr/base (Depends-on): Add unused-parameter.
58689 2009-12-24  Bruno Haible  <bruno@clisp.org>
58691         Add missing dependencies to 'extensions' module.
58692         * m4/extensions.m4: Add comment.
58693         * modules/accept4 (Depends-on): Add extensions.
58694         * modules/dup3 (Depends-on): Likewise.
58695         * modules/fcntl (Depends-on): Likewise.
58696         * modules/futimens (Depends-on): Likewise.
58697         * modules/mknod (Depends-on): Likewise.
58698         * modules/pipe2 (Depends-on): Likewise.
58699         * modules/stat-time (Depends-on): Likewise.
58700         * modules/strcasestr-simple (Depends-on): Likewise.
58701         * modules/strsignal (Depends-on): Likewise.
58702         * modules/utimensat (Depends-on): Likewise.
58703         * modules/localcharset (Depends-on): Likewise. Needed because of
58704         gl_FCNTL_O_FLAGS.
58705         * modules/wcrtomb (Depends-on): Likewise. Needed because of
58706         AC_TYPE_MBSTATE_T.
58707         * modules/wcsnrtombs (Depends-on): Likewise.
58708         * modules/wcsrtombs (Depends-on): Likewise.
58710 2009-12-24  Bruno Haible  <bruno@clisp.org>
58712         binary-io: Avoid gcc warning due to SET_BINARY.
58713         * lib/binary-io.h (SET_BINARY): Cast the result to void.
58714         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
58716 2009-12-24  Bruno Haible  <bruno@clisp.org>
58718         Avoid future namespace pollution on glibc systems.
58719         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
58720         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
58721         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
58722         glibc systems.
58724 2009-12-24  Bruno Haible  <bruno@clisp.org>
58726         Refactor common macros used in tests.
58727         * tests/macros.h: New file.
58728         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
58729         and/or <stdlib.h>, if appropriate.
58730         (ASSERT, SIZEOF): Remove macros.
58731         * tests/test-areadlink-with-size.c: Likewise.
58732         * tests/test-areadlinkat.c: Likewise.
58733         * tests/test-areadlinkat-with-size.c: Likewise.
58734         * tests/test-argmatch.c: Likewise.
58735         * tests/test-argv-iter.c: Likewise.
58736         * tests/test-array-mergesort.c: Likewise.
58737         * tests/test-array_list.c: Likewise.
58738         * tests/test-array_oset.c: Likewise.
58739         * tests/test-avltree_list.c: Likewise.
58740         * tests/test-avltree_oset.c: Likewise.
58741         * tests/test-avltreehash_list.c: Likewise.
58742         * tests/test-base64.c: Likewise.
58743         * tests/test-binary-io.c: Likewise.
58744         * tests/test-bitrotate.c: Likewise.
58745         * tests/test-btowc.c: Likewise.
58746         * tests/test-byteswap.c: Likewise.
58747         * tests/test-c-ctype.c: Likewise.
58748         * tests/test-c-stack.c: Likewise.
58749         * tests/test-c-strcasecmp.c: Likewise.
58750         * tests/test-c-strcasestr.c: Likewise.
58751         * tests/test-c-strncasecmp.c: Likewise.
58752         * tests/test-c-strstr.c: Likewise.
58753         * tests/test-canonicalize-lgpl.c: Likewise.
58754         * tests/test-canonicalize.c: Likewise.
58755         * tests/test-carray_list.c: Likewise.
58756         * tests/test-ceilf1.c: Likewise.
58757         * tests/test-ceilf2.c: Likewise.
58758         * tests/test-ceill.c: Likewise.
58759         * tests/test-chown.c: Likewise.
58760         * tests/test-cloexec.c: Likewise.
58761         * tests/test-copy-acl.c: Likewise.
58762         * tests/test-copy-file.c: Likewise.
58763         * tests/test-count-one-bits.c: Likewise.
58764         * tests/test-dprintf-posix.c: Likewise.
58765         * tests/test-dup2.c: Likewise.
58766         * tests/test-dup3.c: Likewise.
58767         * tests/test-duplocale.c: Likewise.
58768         * tests/test-fbufmode.c: Likewise.
58769         * tests/test-fchdir.c: Likewise.
58770         * tests/test-fchownat.c: Likewise.
58771         * tests/test-fcntl-safer.c: Likewise.
58772         * tests/test-fcntl.c: Likewise.
58773         * tests/test-fdopendir.c: Likewise.
58774         * tests/test-fdutimensat.c: Likewise.
58775         * tests/test-fflush2.c: Likewise.
58776         * tests/test-file-has-acl.c: Likewise.
58777         * tests/test-filevercmp.c: Likewise.
58778         * tests/test-flock.c: Likewise.
58779         * tests/test-floorf1.c: Likewise.
58780         * tests/test-floorf2.c: Likewise.
58781         * tests/test-floorl.c: Likewise.
58782         * tests/test-fnmatch.c: Likewise.
58783         * tests/test-fopen.h: Likewise.
58784         * tests/test-fpending.c: Likewise.
58785         * tests/test-fprintf-posix.c: Likewise.
58786         * tests/test-fpurge.c: Likewise.
58787         * tests/test-freadable.c: Likewise.
58788         * tests/test-freadahead.c: Likewise.
58789         * tests/test-freading.c: Likewise.
58790         * tests/test-freadptr.c: Likewise.
58791         * tests/test-freadptr2.c: Likewise.
58792         * tests/test-freadseek.c: Likewise.
58793         * tests/test-freopen.c: Likewise.
58794         * tests/test-frexp.c: Likewise.
58795         * tests/test-frexpl.c: Likewise.
58796         * tests/test-fseek.c: Likewise.
58797         * tests/test-fseeko.c: Likewise.
58798         * tests/test-fstatat.c: Likewise.
58799         * tests/test-fstrcmp.c: Likewise.
58800         * tests/test-fsync.c: Likewise.
58801         * tests/test-ftell.c: Likewise.
58802         * tests/test-ftello.c: Likewise.
58803         * tests/test-func.c: Likewise.
58804         * tests/test-futimens.c: Likewise.
58805         * tests/test-fwritable.c: Likewise.
58806         * tests/test-fwriting.c: Likewise.
58807         * tests/test-getcwd.c: Likewise.
58808         * tests/test-getdate.c: Likewise.
58809         * tests/test-getdelim.c: Likewise.
58810         * tests/test-getdtablesize.c: Likewise.
58811         * tests/test-getgroups.c: Likewise.
58812         * tests/test-getline.c: Likewise.
58813         * tests/test-getndelim2.c: Likewise.
58814         * tests/test-glob.c: Likewise.
58815         * tests/test-hash.c: Likewise.
58816         * tests/test-i-ring.c: Likewise.
58817         * tests/test-iconv-utf.c: Likewise.
58818         * tests/test-iconv.c: Likewise.
58819         * tests/test-idpriv-drop.c: Likewise.
58820         * tests/test-idpriv-droptemp.c: Likewise.
58821         * tests/test-inet_ntop.c: Likewise.
58822         * tests/test-inet_pton.c: Likewise.
58823         * tests/test-isblank.c: Likewise.
58824         * tests/test-isfinite.c: Likewise.
58825         * tests/test-isinf.c: Likewise.
58826         * tests/test-isnan.c: Likewise.
58827         * tests/test-isnand.h: Likewise.
58828         * tests/test-isnanf.h: Likewise.
58829         * tests/test-isnanl.h: Likewise.
58830         * tests/test-lchown.c: Likewise.
58831         * tests/test-ldexpl.c: Likewise.
58832         * tests/test-link.c: Likewise.
58833         * tests/test-linkat.c: Likewise.
58834         * tests/test-linked_list.c: Likewise.
58835         * tests/test-linkedhash_list.c: Likewise.
58836         * tests/test-localename.c: Likewise.
58837         * tests/test-lseek.c: Likewise.
58838         * tests/test-lstat.c: Likewise.
58839         * tests/test-mbmemcasecmp.c: Likewise.
58840         * tests/test-mbmemcasecoll.c: Likewise.
58841         * tests/test-mbrtowc.c: Likewise.
58842         * tests/test-mbscasecmp.c: Likewise.
58843         * tests/test-mbscasestr1.c: Likewise.
58844         * tests/test-mbscasestr2.c: Likewise.
58845         * tests/test-mbscasestr3.c: Likewise.
58846         * tests/test-mbscasestr4.c: Likewise.
58847         * tests/test-mbschr.c: Likewise.
58848         * tests/test-mbscspn.c: Likewise.
58849         * tests/test-mbsinit.c: Likewise.
58850         * tests/test-mbsncasecmp.c: Likewise.
58851         * tests/test-mbsnrtowcs.c: Likewise.
58852         * tests/test-mbspbrk.c: Likewise.
58853         * tests/test-mbspcasecmp.c: Likewise.
58854         * tests/test-mbsrchr.c: Likewise.
58855         * tests/test-mbsrtowcs.c: Likewise.
58856         * tests/test-mbsspn.c: Likewise.
58857         * tests/test-mbsstr1.c: Likewise.
58858         * tests/test-mbsstr2.c: Likewise.
58859         * tests/test-mbsstr3.c: Likewise.
58860         * tests/test-memchr.c: Likewise.
58861         * tests/test-memchr2.c: Likewise.
58862         * tests/test-memcmp.c: Likewise.
58863         * tests/test-memmem.c: Likewise.
58864         * tests/test-memrchr.c: Likewise.
58865         * tests/test-mkdir.c: Likewise.
58866         * tests/test-mkdirat.c: Likewise.
58867         * tests/test-mkfifo.c: Likewise.
58868         * tests/test-mkfifoat.c: Likewise.
58869         * tests/test-mknod.c: Likewise.
58870         * tests/test-nanosleep.c: Likewise.
58871         * tests/test-nl_langinfo.c: Likewise.
58872         * tests/test-obstack-printf.c: Likewise.
58873         * tests/test-open.c: Likewise.
58874         * tests/test-openat.c: Likewise.
58875         * tests/test-pipe-filter-gi1.c: Likewise.
58876         * tests/test-pipe-filter-gi2-main.c: Likewise.
58877         * tests/test-pipe-filter-ii1.c: Likewise.
58878         * tests/test-pipe-filter-ii2-main.c: Likewise.
58879         * tests/test-pipe2.c: Likewise.
58880         * tests/test-popen.h: Likewise.
58881         * tests/test-posixtm.c: Likewise.
58882         * tests/test-pread.c: Likewise.
58883         * tests/test-printf-frexp.c: Likewise.
58884         * tests/test-printf-frexpl.c: Likewise.
58885         * tests/test-printf-posix.c: Likewise.
58886         * tests/test-priv-set.c: Likewise.
58887         * tests/test-quotearg.c: Likewise.
58888         * tests/test-random_r.c: Likewise.
58889         * tests/test-rawmemchr.c: Likewise.
58890         * tests/test-rbtree_list.c: Likewise.
58891         * tests/test-rbtree_oset.c: Likewise.
58892         * tests/test-rbtreehash_list.c: Likewise.
58893         * tests/test-readlink.c: Likewise.
58894         * tests/test-remove.c: Likewise.
58895         * tests/test-rename.c: Likewise.
58896         * tests/test-renameat.c: Likewise.
58897         * tests/test-rmdir.c: Likewise.
58898         * tests/test-round1.c: Likewise.
58899         * tests/test-roundf1.c: Likewise.
58900         * tests/test-roundl.c: Likewise.
58901         * tests/test-safe-alloc.c: Likewise.
58902         * tests/test-sameacls.c: Likewise.
58903         * tests/test-set-mode-acl.c: Likewise.
58904         * tests/test-setenv.c: Likewise.
58905         * tests/test-sigaction.c: Likewise.
58906         * tests/test-signbit.c: Likewise.
58907         * tests/test-sleep.c: Likewise.
58908         * tests/test-snprintf-posix.c: Likewise.
58909         * tests/test-snprintf.c: Likewise.
58910         * tests/test-sprintf-posix.c: Likewise.
58911         * tests/test-stat-time.c: Likewise.
58912         * tests/test-stat.c: Likewise.
58913         * tests/test-strcasestr.c: Likewise.
58914         * tests/test-strchrnul.c: Likewise.
58915         * tests/test-strerror.c: Likewise.
58916         * tests/test-striconv.c: Likewise.
58917         * tests/test-striconveh.c: Likewise.
58918         * tests/test-striconveha.c: Likewise.
58919         * tests/test-strsignal.c: Likewise.
58920         * tests/test-strstr.c: Likewise.
58921         * tests/test-strtod.c: Likewise.
58922         * tests/test-strverscmp.c: Likewise.
58923         * tests/test-symlink.c: Likewise.
58924         * tests/test-symlinkat.c: Likewise.
58925         * tests/test-trunc1.c: Likewise.
58926         * tests/test-trunc2.c: Likewise.
58927         * tests/test-truncf1.c: Likewise.
58928         * tests/test-truncf2.c: Likewise.
58929         * tests/test-truncl.c: Likewise.
58930         * tests/test-uname.c: Likewise.
58931         * tests/test-unlink.c: Likewise.
58932         * tests/test-unlinkat.c: Likewise.
58933         * tests/test-unsetenv.c: Likewise.
58934         * tests/test-usleep.c: Likewise.
58935         * tests/test-utimens.c: Likewise.
58936         * tests/test-utimensat.c: Likewise.
58937         * tests/test-vasnprintf-posix.c: Likewise.
58938         * tests/test-vasnprintf-posix2.c: Likewise.
58939         * tests/test-vasnprintf.c: Likewise.
58940         * tests/test-vasprintf-posix.c: Likewise.
58941         * tests/test-vasprintf.c: Likewise.
58942         * tests/test-vdprintf-posix.c: Likewise.
58943         * tests/test-vfprintf-posix.c: Likewise.
58944         * tests/test-vprintf-posix.c: Likewise.
58945         * tests/test-vsnprintf-posix.c: Likewise.
58946         * tests/test-vsnprintf.c: Likewise.
58947         * tests/test-vsprintf-posix.c: Likewise.
58948         * tests/test-wcrtomb.c: Likewise.
58949         * tests/test-wcsnrtombs.c: Likewise.
58950         * tests/test-wcsrtombs.c: Likewise.
58951         * tests/test-wctype.c: Likewise.
58952         * tests/test-wcwidth.c: Likewise.
58953         * tests/test-xfprintf-posix.c: Likewise.
58954         * tests/test-xmemdup0.c: Likewise.
58955         * tests/test-xprintf-posix.c: Likewise.
58956         * tests/test-xvasprintf.c: Likewise.
58957         * tests/unicase/test-locale-language.c: Likewise.
58958         * tests/unicase/test-mapping-part1.h: Likewise.
58959         * tests/unicase/test-predicate-part1.h: Likewise.
58960         * tests/unicase/test-u8-casecmp.c: Likewise.
58961         * tests/unicase/test-u8-casecoll.c: Likewise.
58962         * tests/unicase/test-u8-casefold.c: Likewise.
58963         * tests/unicase/test-u8-is-cased.c: Likewise.
58964         * tests/unicase/test-u8-is-casefolded.c: Likewise.
58965         * tests/unicase/test-u8-is-lowercase.c: Likewise.
58966         * tests/unicase/test-u8-is-titlecase.c: Likewise.
58967         * tests/unicase/test-u8-is-uppercase.c: Likewise.
58968         * tests/unicase/test-u8-tolower.c: Likewise.
58969         * tests/unicase/test-u8-totitle.c: Likewise.
58970         * tests/unicase/test-u8-toupper.c: Likewise.
58971         * tests/unicase/test-u16-casecmp.c: Likewise.
58972         * tests/unicase/test-u16-casecoll.c: Likewise.
58973         * tests/unicase/test-u16-casefold.c: Likewise.
58974         * tests/unicase/test-u16-is-cased.c: Likewise.
58975         * tests/unicase/test-u16-is-casefolded.c: Likewise.
58976         * tests/unicase/test-u16-is-lowercase.c: Likewise.
58977         * tests/unicase/test-u16-is-titlecase.c: Likewise.
58978         * tests/unicase/test-u16-is-uppercase.c: Likewise.
58979         * tests/unicase/test-u16-tolower.c: Likewise.
58980         * tests/unicase/test-u16-totitle.c: Likewise.
58981         * tests/unicase/test-u16-toupper.c: Likewise.
58982         * tests/unicase/test-u32-casecmp.c: Likewise.
58983         * tests/unicase/test-u32-casecoll.c: Likewise.
58984         * tests/unicase/test-u32-casefold.c: Likewise.
58985         * tests/unicase/test-u32-is-cased.c: Likewise.
58986         * tests/unicase/test-u32-is-casefolded.c: Likewise.
58987         * tests/unicase/test-u32-is-lowercase.c: Likewise.
58988         * tests/unicase/test-u32-is-titlecase.c: Likewise.
58989         * tests/unicase/test-u32-is-uppercase.c: Likewise.
58990         * tests/unicase/test-u32-tolower.c: Likewise.
58991         * tests/unicase/test-u32-totitle.c: Likewise.
58992         * tests/unicase/test-u32-toupper.c: Likewise.
58993         * tests/unicase/test-ulc-casecmp.c: Likewise.
58994         * tests/unicase/test-ulc-casecoll.c: Likewise.
58995         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58996         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
58997         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58998         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58999         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
59000         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
59001         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59002         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59003         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59004         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
59005         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59006         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59007         * tests/unictype/test-bidi_byname.c: Likewise.
59008         * tests/unictype/test-bidi_name.c: Likewise.
59009         * tests/unictype/test-bidi_of.c: Likewise.
59010         * tests/unictype/test-bidi_test.c: Likewise.
59011         * tests/unictype/test-block_list.c: Likewise.
59012         * tests/unictype/test-block_of.c: Likewise.
59013         * tests/unictype/test-block_test.c: Likewise.
59014         * tests/unictype/test-categ_and.c: Likewise.
59015         * tests/unictype/test-categ_and_not.c: Likewise.
59016         * tests/unictype/test-categ_byname.c: Likewise.
59017         * tests/unictype/test-categ_name.c: Likewise.
59018         * tests/unictype/test-categ_none.c: Likewise.
59019         * tests/unictype/test-categ_of.c: Likewise.
59020         * tests/unictype/test-categ_or.c: Likewise.
59021         * tests/unictype/test-categ_test_withtable.c: Likewise.
59022         * tests/unictype/test-combining.c: Likewise.
59023         * tests/unictype/test-decdigit.c: Likewise.
59024         * tests/unictype/test-digit.c: Likewise.
59025         * tests/unictype/test-mirror.c: Likewise.
59026         * tests/unictype/test-numeric.c: Likewise.
59027         * tests/unictype/test-pr_byname.c: Likewise.
59028         * tests/unictype/test-pr_test.c: Likewise.
59029         * tests/unictype/test-predicate-part1.h: Likewise.
59030         * tests/unictype/test-scripts.c: Likewise.
59031         * tests/unictype/test-sy_c_ident.c: Likewise.
59032         * tests/unictype/test-sy_java_ident.c: Likewise.
59033         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
59034         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
59035         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
59036         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
59037         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
59038         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
59039         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
59040         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
59041         * tests/uninorm/test-canonical-decomposition.c: Likewise.
59042         * tests/uninorm/test-compat-decomposition.c: Likewise.
59043         * tests/uninorm/test-composition.c: Likewise.
59044         * tests/uninorm/test-decomposing-form.c: Likewise.
59045         * tests/uninorm/test-decomposition.c: Likewise.
59046         * tests/uninorm/test-u8-nfc.c: Likewise.
59047         * tests/uninorm/test-u8-nfd.c: Likewise.
59048         * tests/uninorm/test-u8-nfkc.c: Likewise.
59049         * tests/uninorm/test-u8-nfkd.c: Likewise.
59050         * tests/uninorm/test-u8-normcmp.c: Likewise.
59051         * tests/uninorm/test-u8-normcoll.c: Likewise.
59052         * tests/uninorm/test-u16-nfc.c: Likewise.
59053         * tests/uninorm/test-u16-nfd.c: Likewise.
59054         * tests/uninorm/test-u16-nfkc.c: Likewise.
59055         * tests/uninorm/test-u16-nfkd.c: Likewise.
59056         * tests/uninorm/test-u16-normcmp.c: Likewise.
59057         * tests/uninorm/test-u16-normcoll.c: Likewise.
59058         * tests/uninorm/test-u32-nfc.c: Likewise.
59059         * tests/uninorm/test-u32-nfd.c: Likewise.
59060         * tests/uninorm/test-u32-nfkc.c: Likewise.
59061         * tests/uninorm/test-u32-nfkd.c: Likewise.
59062         * tests/uninorm/test-u32-normalize-big.c: Likewise.
59063         * tests/uninorm/test-u32-normcmp.c: Likewise.
59064         * tests/uninorm/test-u32-normcoll.c: Likewise.
59065         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
59066         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
59067         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
59068         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
59069         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
59070         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
59071         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
59072         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
59073         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
59074         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
59075         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
59076         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
59077         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
59078         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
59079         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
59080         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
59081         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
59082         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
59083         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
59084         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
59085         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
59086         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
59087         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
59088         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
59089         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
59090         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
59091         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
59092         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
59093         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
59094         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
59095         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
59096         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
59097         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
59098         * tests/uniwidth/test-u8-strwidth.c: Likewise.
59099         * tests/uniwidth/test-u8-width.c: Likewise.
59100         * tests/uniwidth/test-u16-strwidth.c: Likewise.
59101         * tests/uniwidth/test-u16-width.c: Likewise.
59102         * tests/uniwidth/test-u32-strwidth.c: Likewise.
59103         * tests/uniwidth/test-u32-width.c: Likewise.
59104         * tests/uniwidth/test-uc_width.c: Likewise.
59105         * tests/uniwidth/test-uc_width2.c: Likewise.
59106         * modules/acl-tests (Files): Add tests/macros.h.
59107         * modules/areadlink-tests (Files): Likewise.
59108         * modules/areadlink-with-size-tests (Files): Likewise.
59109         * modules/areadlinkat-tests (Files): Likewise.
59110         * modules/areadlinkat-with-size-tests (Files): Likewise.
59111         * modules/argmatch-tests (Files): Likewise.
59112         * modules/argv-iter-tests (Files): Likewise.
59113         * modules/array-list-tests (Files): Likewise.
59114         * modules/array-mergesort-tests (Files): Likewise.
59115         * modules/array-oset-tests (Files): Likewise.
59116         * modules/avltree-list-tests (Files): Likewise.
59117         * modules/avltree-oset-tests (Files): Likewise.
59118         * modules/avltreehash-list-tests (Files): Likewise.
59119         * modules/base64-tests (Files): Likewise.
59120         * modules/binary-io-tests (Files): Likewise.
59121         * modules/bitrotate-tests (Files): Likewise.
59122         * modules/btowc-tests (Files): Likewise.
59123         * modules/byteswap-tests (Files): Likewise.
59124         * modules/c-ctype-tests (Files): Likewise.
59125         * modules/c-stack-tests (Files): Likewise.
59126         * modules/c-strcase-tests (Files): Likewise.
59127         * modules/c-strcasestr-tests (Files): Likewise.
59128         * modules/c-strstr-tests (Files): Likewise.
59129         * modules/canonicalize-lgpl-tests (Files): Likewise.
59130         * modules/canonicalize-tests (Files): Likewise.
59131         * modules/carray-list-tests (Files): Likewise.
59132         * modules/ceilf-tests (Files): Likewise.
59133         * modules/ceill-tests (Files): Likewise.
59134         * modules/chown-tests (Files): Likewise.
59135         * modules/cloexec-tests (Files): Likewise.
59136         * modules/copy-file-tests (Files): Likewise.
59137         * modules/count-one-bits-tests (Files): Likewise.
59138         * modules/dprintf-posix-tests (Files): Likewise.
59139         * modules/dup2-tests (Files): Likewise.
59140         * modules/dup3-tests (Files): Likewise.
59141         * modules/duplocale-tests (Files): Likewise.
59142         * modules/fbufmode-tests (Files): Likewise.
59143         * modules/fchdir-tests (Files): Likewise.
59144         * modules/fcntl-safer-tests (Files): Likewise.
59145         * modules/fcntl-tests (Files): Likewise.
59146         * modules/fdopendir-tests (Files): Likewise.
59147         * modules/fdutimensat-tests (Files): Likewise.
59148         * modules/fflush-tests (Files): Likewise.
59149         * modules/filevercmp-tests (Files): Likewise.
59150         * modules/flock-tests (Files): Likewise.
59151         * modules/floorf-tests (Files): Likewise.
59152         * modules/floorl-tests (Files): Likewise.
59153         * modules/fnmatch-tests (Files): Likewise.
59154         * modules/fopen-safer-tests (Files): Likewise.
59155         * modules/fopen-tests (Files): Likewise.
59156         * modules/fpending-tests (Files): Likewise.
59157         * modules/fprintf-posix-tests (Files): Likewise.
59158         * modules/fpurge-tests (Files): Likewise.
59159         * modules/freadable-tests (Files): Likewise.
59160         * modules/freadahead-tests (Files): Likewise.
59161         * modules/freading-tests (Files): Likewise.
59162         * modules/freadptr-tests (Files): Likewise.
59163         * modules/freadseek-tests (Files): Likewise.
59164         * modules/freopen-tests (Files): Likewise.
59165         * modules/frexp-nolibm-tests (Files): Likewise.
59166         * modules/frexp-tests (Files): Likewise.
59167         * modules/frexpl-nolibm-tests (Files): Likewise.
59168         * modules/frexpl-tests (Files): Likewise.
59169         * modules/fseek-tests (Files): Likewise.
59170         * modules/fseeko-tests (Files): Likewise.
59171         * modules/fstrcmp-tests (Files): Likewise.
59172         * modules/fsync-tests (Files): Likewise.
59173         * modules/ftell-tests (Files): Likewise.
59174         * modules/ftello-tests (Files): Likewise.
59175         * modules/func-tests (Files): Likewise.
59176         * modules/futimens-tests (Files): Likewise.
59177         * modules/fwritable-tests (Files): Likewise.
59178         * modules/fwriting-tests (Files): Likewise.
59179         * modules/getcwd-tests (Files): Likewise.
59180         * modules/getdate-tests (Files): Likewise.
59181         * modules/getdelim-tests (Files): Likewise.
59182         * modules/getdtablesize-tests (Files): Likewise.
59183         * modules/getgroups-tests (Files): Likewise.
59184         * modules/getline-tests (Files): Likewise.
59185         * modules/getndelim2-tests (Files): Likewise.
59186         * modules/glob-tests (Files): Likewise.
59187         * modules/hash-tests (Files): Likewise.
59188         * modules/i-ring-tests (Files): Likewise.
59189         * modules/iconv-tests (Files): Likewise.
59190         * modules/iconv_open-utf-tests (Files): Likewise.
59191         * modules/idpriv-drop-tests (Files): Likewise.
59192         * modules/idpriv-droptemp-tests (Files): Likewise.
59193         * modules/inet_ntop-tests (Files): Likewise.
59194         * modules/inet_pton-tests (Files): Likewise.
59195         * modules/isblank-tests (Files): Likewise.
59196         * modules/isfinite-tests (Files): Likewise.
59197         * modules/isinf-tests (Files): Likewise.
59198         * modules/isnan-tests (Files): Likewise.
59199         * modules/isnand-nolibm-tests (Files): Likewise.
59200         * modules/isnand-tests (Files): Likewise.
59201         * modules/isnanf-nolibm-tests (Files): Likewise.
59202         * modules/isnanf-tests (Files): Likewise.
59203         * modules/isnanl-nolibm-tests (Files): Likewise.
59204         * modules/isnanl-tests (Files): Likewise.
59205         * modules/lchown-tests (Files): Likewise.
59206         * modules/ldexpl-tests (Files): Likewise.
59207         * modules/link-tests (Files): Likewise.
59208         * modules/linkat-tests (Files): Likewise.
59209         * modules/linked-list-tests (Files): Likewise.
59210         * modules/linkedhash-list-tests (Files): Likewise.
59211         * modules/localename-tests (Files): Likewise.
59212         * modules/lseek-tests (Files): Likewise.
59213         * modules/lstat-tests (Files): Likewise.
59214         * modules/mbmemcasecmp-tests (Files): Likewise.
59215         * modules/mbmemcasecoll-tests (Files): Likewise.
59216         * modules/mbrtowc-tests (Files): Likewise.
59217         * modules/mbscasecmp-tests (Files): Likewise.
59218         * modules/mbscasestr-tests (Files): Likewise.
59219         * modules/mbschr-tests (Files): Likewise.
59220         * modules/mbscspn-tests (Files): Likewise.
59221         * modules/mbsinit-tests (Files): Likewise.
59222         * modules/mbsncasecmp-tests (Files): Likewise.
59223         * modules/mbsnrtowcs-tests (Files): Likewise.
59224         * modules/mbspbrk-tests (Files): Likewise.
59225         * modules/mbspcasecmp-tests (Files): Likewise.
59226         * modules/mbsrchr-tests (Files): Likewise.
59227         * modules/mbsrtowcs-tests (Files): Likewise.
59228         * modules/mbsspn-tests (Files): Likewise.
59229         * modules/mbsstr-tests (Files): Likewise.
59230         * modules/memchr-tests (Files): Likewise.
59231         * modules/memchr2-tests (Files): Likewise.
59232         * modules/memcmp-tests (Files): Likewise.
59233         * modules/memmem-tests (Files): Likewise.
59234         * modules/memrchr-tests (Files): Likewise.
59235         * modules/mkdir-tests (Files): Likewise.
59236         * modules/mkfifo-tests (Files): Likewise.
59237         * modules/mkfifoat-tests (Files): Likewise.
59238         * modules/mknod-tests (Files): Likewise.
59239         * modules/nanosleep-tests (Files): Likewise.
59240         * modules/nl_langinfo-tests (Files): Likewise.
59241         * modules/obstack-printf-tests (Files): Likewise.
59242         * modules/open-tests (Files): Likewise.
59243         * modules/openat-tests (Files): Likewise.
59244         * modules/pipe-filter-gi-tests (Files): Likewise.
59245         * modules/pipe-filter-ii-tests (Files): Likewise.
59246         * modules/pipe2-tests (Files): Likewise.
59247         * modules/popen-safer-tests (Files): Likewise.
59248         * modules/popen-tests (Files): Likewise.
59249         * modules/posixtm-tests (Files): Likewise.
59250         * modules/pread-tests (Files): Likewise.
59251         * modules/printf-frexp-tests (Files): Likewise.
59252         * modules/printf-frexpl-tests (Files): Likewise.
59253         * modules/printf-posix-tests (Files): Likewise.
59254         * modules/priv-set-tests (Files): Likewise.
59255         * modules/quotearg-tests (Files): Likewise.
59256         * modules/random_r-tests (Files): Likewise.
59257         * modules/rawmemchr-tests (Files): Likewise.
59258         * modules/rbtree-list-tests (Files): Likewise.
59259         * modules/rbtree-oset-tests (Files): Likewise.
59260         * modules/rbtreehash-list-tests (Files): Likewise.
59261         * modules/readlink-tests (Files): Likewise.
59262         * modules/remove-tests (Files): Likewise.
59263         * modules/rename-tests (Files): Likewise.
59264         * modules/renameat-tests (Files): Likewise.
59265         * modules/rmdir-tests (Files): Likewise.
59266         * modules/round-tests (Files): Likewise.
59267         * modules/roundf-tests (Files): Likewise.
59268         * modules/roundl-tests (Files): Likewise.
59269         * modules/safe-alloc-tests (Files): Likewise.
59270         * modules/setenv-tests (Files): Likewise.
59271         * modules/sigaction-tests (Files): Likewise.
59272         * modules/signbit-tests (Files): Likewise.
59273         * modules/sleep-tests (Files): Likewise.
59274         * modules/snprintf-posix-tests (Files): Likewise.
59275         * modules/snprintf-tests (Files): Likewise.
59276         * modules/sprintf-posix-tests (Files): Likewise.
59277         * modules/stat-tests (Files): Likewise.
59278         * modules/stat-time-tests (Files): Likewise.
59279         * modules/strcasestr-tests (Files): Likewise.
59280         * modules/strchrnul-tests (Files): Likewise.
59281         * modules/strerror-tests (Files): Likewise.
59282         * modules/striconv-tests (Files): Likewise.
59283         * modules/striconveh-tests (Files): Likewise.
59284         * modules/striconveha-tests (Files): Likewise.
59285         * modules/strsignal-tests (Files): Likewise.
59286         * modules/strstr-tests (Files): Likewise.
59287         * modules/strtod-tests (Files): Likewise.
59288         * modules/strverscmp-tests (Files): Likewise.
59289         * modules/symlink-tests (Files): Likewise.
59290         * modules/symlinkat-tests (Files): Likewise.
59291         * modules/trunc-tests (Files): Likewise.
59292         * modules/truncf-tests (Files): Likewise.
59293         * modules/truncl-tests (Files): Likewise.
59294         * modules/uname-tests (Files): Likewise.
59295         * modules/unicase/cased-tests (Files): Likewise.
59296         * modules/unicase/ignorable-tests (Files): Likewise.
59297         * modules/unicase/locale-language-tests (Files): Likewise.
59298         * modules/unicase/tolower-tests (Files): Likewise.
59299         * modules/unicase/totitle-tests (Files): Likewise.
59300         * modules/unicase/toupper-tests (Files): Likewise.
59301         * modules/unicase/u8-casecmp-tests (Files): Likewise.
59302         * modules/unicase/u8-casecoll-tests (Files): Likewise.
59303         * modules/unicase/u8-casefold-tests (Files): Likewise.
59304         * modules/unicase/u8-is-cased-tests (Files): Likewise.
59305         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
59306         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
59307         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
59308         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
59309         * modules/unicase/u8-tolower-tests (Files): Likewise.
59310         * modules/unicase/u8-totitle-tests (Files): Likewise.
59311         * modules/unicase/u8-toupper-tests (Files): Likewise.
59312         * modules/unicase/u16-casecmp-tests (Files): Likewise.
59313         * modules/unicase/u16-casecoll-tests (Files): Likewise.
59314         * modules/unicase/u16-casefold-tests (Files): Likewise.
59315         * modules/unicase/u16-is-cased-tests (Files): Likewise.
59316         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
59317         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
59318         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
59319         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
59320         * modules/unicase/u16-tolower-tests (Files): Likewise.
59321         * modules/unicase/u16-totitle-tests (Files): Likewise.
59322         * modules/unicase/u16-toupper-tests (Files): Likewise.
59323         * modules/unicase/u32-casecmp-tests (Files): Likewise.
59324         * modules/unicase/u32-casecoll-tests (Files): Likewise.
59325         * modules/unicase/u32-casefold-tests (Files): Likewise.
59326         * modules/unicase/u32-is-cased-tests (Files): Likewise.
59327         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
59328         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
59329         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
59330         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
59331         * modules/unicase/u32-tolower-tests (Files): Likewise.
59332         * modules/unicase/u32-totitle-tests (Files): Likewise.
59333         * modules/unicase/u32-toupper-tests (Files): Likewise.
59334         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
59335         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
59336         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
59337         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
59338         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
59339         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
59340         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
59341         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
59342         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
59343         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
59344         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
59345         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
59346         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
59347         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
59348         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
59349         * modules/unictype/bidicategory-name-tests (Files): Likewise.
59350         * modules/unictype/bidicategory-of-tests (Files): Likewise.
59351         * modules/unictype/bidicategory-test-tests (Files): Likewise.
59352         * modules/unictype/block-list-tests (Files): Likewise.
59353         * modules/unictype/block-of-tests (Files): Likewise.
59354         * modules/unictype/block-test-tests (Files): Likewise.
59355         * modules/unictype/category-C-tests (Files): Likewise.
59356         * modules/unictype/category-Cc-tests (Files): Likewise.
59357         * modules/unictype/category-Cf-tests (Files): Likewise.
59358         * modules/unictype/category-Cn-tests (Files): Likewise.
59359         * modules/unictype/category-Co-tests (Files): Likewise.
59360         * modules/unictype/category-Cs-tests (Files): Likewise.
59361         * modules/unictype/category-L-tests (Files): Likewise.
59362         * modules/unictype/category-Ll-tests (Files): Likewise.
59363         * modules/unictype/category-Lm-tests (Files): Likewise.
59364         * modules/unictype/category-Lo-tests (Files): Likewise.
59365         * modules/unictype/category-Lt-tests (Files): Likewise.
59366         * modules/unictype/category-Lu-tests (Files): Likewise.
59367         * modules/unictype/category-M-tests (Files): Likewise.
59368         * modules/unictype/category-Mc-tests (Files): Likewise.
59369         * modules/unictype/category-Me-tests (Files): Likewise.
59370         * modules/unictype/category-Mn-tests (Files): Likewise.
59371         * modules/unictype/category-N-tests (Files): Likewise.
59372         * modules/unictype/category-Nd-tests (Files): Likewise.
59373         * modules/unictype/category-Nl-tests (Files): Likewise.
59374         * modules/unictype/category-No-tests (Files): Likewise.
59375         * modules/unictype/category-P-tests (Files): Likewise.
59376         * modules/unictype/category-Pc-tests (Files): Likewise.
59377         * modules/unictype/category-Pd-tests (Files): Likewise.
59378         * modules/unictype/category-Pe-tests (Files): Likewise.
59379         * modules/unictype/category-Pf-tests (Files): Likewise.
59380         * modules/unictype/category-Pi-tests (Files): Likewise.
59381         * modules/unictype/category-Po-tests (Files): Likewise.
59382         * modules/unictype/category-Ps-tests (Files): Likewise.
59383         * modules/unictype/category-S-tests (Files): Likewise.
59384         * modules/unictype/category-Sc-tests (Files): Likewise.
59385         * modules/unictype/category-Sk-tests (Files): Likewise.
59386         * modules/unictype/category-Sm-tests (Files): Likewise.
59387         * modules/unictype/category-So-tests (Files): Likewise.
59388         * modules/unictype/category-Z-tests (Files): Likewise.
59389         * modules/unictype/category-Zl-tests (Files): Likewise.
59390         * modules/unictype/category-Zp-tests (Files): Likewise.
59391         * modules/unictype/category-Zs-tests (Files): Likewise.
59392         * modules/unictype/category-and-not-tests (Files): Likewise.
59393         * modules/unictype/category-and-tests (Files): Likewise.
59394         * modules/unictype/category-byname-tests (Files): Likewise.
59395         * modules/unictype/category-name-tests (Files): Likewise.
59396         * modules/unictype/category-none-tests (Files): Likewise.
59397         * modules/unictype/category-of-tests (Files): Likewise.
59398         * modules/unictype/category-or-tests (Files): Likewise.
59399         * modules/unictype/category-test-withtable-tests (Files): Likewise.
59400         * modules/unictype/combining-class-tests (Files): Likewise.
59401         * modules/unictype/ctype-alnum-tests (Files): Likewise.
59402         * modules/unictype/ctype-alpha-tests (Files): Likewise.
59403         * modules/unictype/ctype-blank-tests (Files): Likewise.
59404         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
59405         * modules/unictype/ctype-digit-tests (Files): Likewise.
59406         * modules/unictype/ctype-graph-tests (Files): Likewise.
59407         * modules/unictype/ctype-lower-tests (Files): Likewise.
59408         * modules/unictype/ctype-print-tests (Files): Likewise.
59409         * modules/unictype/ctype-punct-tests (Files): Likewise.
59410         * modules/unictype/ctype-space-tests (Files): Likewise.
59411         * modules/unictype/ctype-upper-tests (Files): Likewise.
59412         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
59413         * modules/unictype/decimal-digit-tests (Files): Likewise.
59414         * modules/unictype/digit-tests (Files): Likewise.
59415         * modules/unictype/mirror-tests (Files): Likewise.
59416         * modules/unictype/numeric-tests (Files): Likewise.
59417         * modules/unictype/property-alphabetic-tests (Files): Likewise.
59418         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
59419         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
59420         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
59421         Likewise.
59422         * modules/unictype/property-bidi-block-separator-tests (Files):
59423         Likewise.
59424         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
59425         Likewise.
59426         * modules/unictype/property-bidi-common-separator-tests (Files):
59427         Likewise.
59428         * modules/unictype/property-bidi-control-tests (Files): Likewise.
59429         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
59430         Likewise.
59431         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
59432         Likewise.
59433         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
59434         Likewise.
59435         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
59436         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
59437         Likewise.
59438         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
59439         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
59440         Likewise.
59441         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
59442         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
59443         * modules/unictype/property-bidi-segment-separator-tests (Files):
59444         Likewise.
59445         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
59446         * modules/unictype/property-byname-tests (Files): Likewise.
59447         * modules/unictype/property-combining-tests (Files): Likewise.
59448         * modules/unictype/property-composite-tests (Files): Likewise.
59449         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
59450         * modules/unictype/property-dash-tests (Files): Likewise.
59451         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
59452         * modules/unictype/property-default-ignorable-code-point-tests (Files):
59453         Likewise.
59454         * modules/unictype/property-deprecated-tests (Files): Likewise.
59455         * modules/unictype/property-diacritic-tests (Files): Likewise.
59456         * modules/unictype/property-extender-tests (Files): Likewise.
59457         * modules/unictype/property-format-control-tests (Files): Likewise.
59458         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
59459         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
59460         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
59461         * modules/unictype/property-hex-digit-tests (Files): Likewise.
59462         * modules/unictype/property-hyphen-tests (Files): Likewise.
59463         * modules/unictype/property-id-continue-tests (Files): Likewise.
59464         * modules/unictype/property-id-start-tests (Files): Likewise.
59465         * modules/unictype/property-ideographic-tests (Files): Likewise.
59466         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
59467         * modules/unictype/property-ids-trinary-operator-tests (Files):
59468         Likewise.
59469         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
59470         * modules/unictype/property-iso-control-tests (Files): Likewise.
59471         * modules/unictype/property-join-control-tests (Files): Likewise.
59472         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
59473         * modules/unictype/property-line-separator-tests (Files): Likewise.
59474         * modules/unictype/property-logical-order-exception-tests (Files):
59475         Likewise.
59476         * modules/unictype/property-lowercase-tests (Files): Likewise.
59477         * modules/unictype/property-math-tests (Files): Likewise.
59478         * modules/unictype/property-non-break-tests (Files): Likewise.
59479         * modules/unictype/property-not-a-character-tests (Files): Likewise.
59480         * modules/unictype/property-numeric-tests (Files): Likewise.
59481         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
59482         * modules/unictype/property-other-default-ignorable-code-point-tests
59483         (Files): Likewise.
59484         * modules/unictype/property-other-grapheme-extend-tests (Files):
59485         Likewise.
59486         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
59487         * modules/unictype/property-other-id-start-tests (Files): Likewise.
59488         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
59489         * modules/unictype/property-other-math-tests (Files): Likewise.
59490         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
59491         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
59492         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
59493         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
59494         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
59495         * modules/unictype/property-private-use-tests (Files): Likewise.
59496         * modules/unictype/property-punctuation-tests (Files): Likewise.
59497         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
59498         * modules/unictype/property-radical-tests (Files): Likewise.
59499         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
59500         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
59501         * modules/unictype/property-space-tests (Files): Likewise.
59502         * modules/unictype/property-terminal-punctuation-tests (Files):
59503         Likewise.
59504         * modules/unictype/property-test-tests (Files): Likewise.
59505         * modules/unictype/property-titlecase-tests (Files): Likewise.
59506         * modules/unictype/property-unassigned-code-value-tests (Files):
59507         Likewise.
59508         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
59509         * modules/unictype/property-uppercase-tests (Files): Likewise.
59510         * modules/unictype/property-variation-selector-tests (Files): Likewise.
59511         * modules/unictype/property-white-space-tests (Files): Likewise.
59512         * modules/unictype/property-xid-continue-tests (Files): Likewise.
59513         * modules/unictype/property-xid-start-tests (Files): Likewise.
59514         * modules/unictype/property-zero-width-tests (Files): Likewise.
59515         * modules/unictype/scripts-tests (Files): Likewise.
59516         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
59517         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
59518         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
59519         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
59520         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
59521         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
59522         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
59523         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
59524         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
59525         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
59526         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
59527         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
59528         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
59529         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
59530         * modules/uninorm/composition-tests (Files): Likewise.
59531         * modules/uninorm/decomposing-form-tests (Files): Likewise.
59532         * modules/uninorm/decomposition-tests (Files): Likewise.
59533         * modules/uninorm/filter-tests (Files): Likewise.
59534         * modules/uninorm/nfc-tests (Files): Likewise.
59535         * modules/uninorm/nfd-tests (Files): Likewise.
59536         * modules/uninorm/nfkc-tests (Files): Likewise.
59537         * modules/uninorm/nfkd-tests (Files): Likewise.
59538         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
59539         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
59540         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
59541         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
59542         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
59543         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
59544         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
59545         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
59546         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
59547         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
59548         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
59549         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
59550         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
59551         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
59552         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
59553         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
59554         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
59555         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
59556         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
59557         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
59558         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
59559         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
59560         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
59561         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
59562         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
59563         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
59564         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
59565         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
59566         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
59567         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
59568         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
59569         * modules/uniwidth/u8-width-tests (Files): Likewise.
59570         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
59571         * modules/uniwidth/u16-width-tests (Files): Likewise.
59572         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
59573         * modules/uniwidth/u32-width-tests (Files): Likewise.
59574         * modules/uniwidth/width-tests (Files): Likewise.
59575         * modules/unlink-tests (Files): Likewise.
59576         * modules/unsetenv-tests (Files): Likewise.
59577         * modules/usleep-tests (Files): Likewise.
59578         * modules/utimens-tests (Files): Likewise.
59579         * modules/utimensat-tests (Files): Likewise.
59580         * modules/vasnprintf-posix-tests (Files): Likewise.
59581         * modules/vasnprintf-tests (Files): Likewise.
59582         * modules/vasprintf-posix-tests (Files): Likewise.
59583         * modules/vasprintf-tests (Files): Likewise.
59584         * modules/vdprintf-posix-tests (Files): Likewise.
59585         * modules/vfprintf-posix-tests (Files): Likewise.
59586         * modules/vprintf-posix-tests (Files): Likewise.
59587         * modules/vsnprintf-posix-tests (Files): Likewise.
59588         * modules/vsnprintf-tests (Files): Likewise.
59589         * modules/vsprintf-posix-tests (Files): Likewise.
59590         * modules/wcrtomb-tests (Files): Likewise.
59591         * modules/wcsnrtombs-tests (Files): Likewise.
59592         * modules/wcsrtombs-tests (Files): Likewise.
59593         * modules/wctype-tests (Files): Likewise.
59594         * modules/wcwidth-tests (Files): Likewise.
59595         * modules/xmemdup0-tests (Files): Likewise.
59596         * modules/xprintf-posix-tests (Files): Likewise.
59597         * modules/xvasprintf-tests (Files): Likewise.
59599 2009-12-24  Eric Blake  <ebb9@byu.net>
59601         test-nanosleep: fix typo
59602         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
59603         patch.
59604         Reported by Bruno Haible.
59606 2009-12-24  Bruno Haible  <bruno@clisp.org>
59608         Reduce namespace pollution on glibc systems.
59609         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
59610         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
59611         systems.
59612         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
59613         <getopt.h> on glibc systems.
59614         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
59615         systems.
59616         * lib/fcntl.c: Include <unistd.h> here instead.
59618 2009-12-24  Bruno Haible  <bruno@clisp.org>
59620         * lib/stdlib.in.h (includes): Fix typo in today's commit.
59622 2009-12-24  Eric Blake  <ebb9@byu.net>
59624         tests: add signature checks
59625         * tests/signature.h (SIGNATURE_CHECK): New file.
59626         * modules/atexit-tests (Files): Use it.
59627         * modules/btowc-tests (Files): Likewise.
59628         * modules/canonicalize-lgpl-tests (Files): Likewise.
59629         * modules/ceilf-tests (Files): Likewise.
59630         * modules/ceill-tests (Files): Likewise.
59631         * modules/chown-tests (Files): Likewise.
59632         * modules/dprintf-posix-tests (Files): Likewise.
59633         * modules/dup2-tests (Files): Likewise.
59634         * modules/dup3-tests (Files): Likewise.
59635         * modules/duplocale-tests (Files): Likewise.
59636         * modules/fchdir-tests (Files): Likewise.
59637         * modules/fcntl-tests (Files): Likewise.
59638         * modules/fdopendir-tests (Files): Likewise.
59639         * modules/fflush-tests (Files): Likewise.
59640         * modules/flock-tests (Files): Likewise.
59641         * modules/floorf-tests (Files): Likewise.
59642         * modules/floorl-tests (Files): Likewise.
59643         * modules/fnmatch-tests (Files): Likewise.
59644         * modules/fopen-tests (Files): Likewise.
59645         * modules/fprintf-posix-tests (Files): Likewise.
59646         * modules/freopen-tests (Files): Likewise.
59647         * modules/frexp-nolibm-tests (Files): Likewise.
59648         * modules/frexp-tests (Files): Likewise.
59649         * modules/frexpl-nolibm-tests (Files): Likewise.
59650         * modules/frexpl-tests (Files): Likewise.
59651         * modules/fseek-tests (Files): Likewise.
59652         * modules/fseeko-tests (Files): Likewise.
59653         * modules/fsync-tests (Files): Likewise.
59654         * modules/ftell-tests (Files): Likewise.
59655         * modules/ftello-tests (Files): Likewise.
59656         * modules/futimens-tests (Files): Likewise.
59657         * modules/getaddrinfo-tests (Files): Likewise.
59658         * modules/getcwd-tests (Files): Likewise.
59659         * modules/getdelim-tests (Files): Likewise.
59660         * modules/getdtablesize-tests (Files): Likewise.
59661         * modules/getgroups-tests (Files): Likewise.
59662         * modules/gethostname-tests (Files): Likewise.
59663         * modules/getline-tests (Files): Likewise.
59664         * modules/getopt-posix-tests (Files): Likewise.
59665         * modules/gettimeofday-tests (Files): Likewise.
59666         * modules/glob-tests (Files): Likewise.
59667         * modules/iconv-tests (Files): Likewise.
59668         * modules/inet_ntop-tests (Files): Likewise.
59669         * modules/inet_pton-tests (Files): Likewise.
59670         * modules/isblank-tests (Files): Likewise.
59671         * modules/lchown-tests (Files): Likewise.
59672         * modules/ldexpl-tests (Files): Likewise.
59673         * modules/link-tests (Files): Likewise.
59674         * modules/linkat-tests (Files): Likewise.
59675         * modules/lseek-tests (Files): Likewise.
59676         * modules/lstat-tests (Files): Likewise.
59677         * modules/mbrtowc-tests (Files): Likewise.
59678         * modules/mbsinit-tests (Files): Likewise.
59679         * modules/mbsnrtowcs-tests (Files): Likewise.
59680         * modules/mbsrtowcs-tests (Files): Likewise.
59681         * modules/memchr-tests (Files): Likewise.
59682         * modules/memcmp-tests (Files): Likewise.
59683         * modules/memmem-tests (Files): Likewise.
59684         * modules/memrchr-tests (Files): Likewise.
59685         * modules/mkdir-tests (Files): Likewise.
59686         * modules/mkfifo-tests (Files): Likewise.
59687         * modules/mkfifoat-tests (Files): Likewise.
59688         * modules/mknod-tests (Files): Likewise.
59689         * modules/nanosleep-tests (Files): Likewise.
59690         * modules/nl_langinfo-tests (Files): Likewise.
59691         * modules/obstack-printf-tests (Files): Likewise.
59692         * modules/open-tests (Files): Likewise.
59693         * modules/openat-tests (Files): Likewise.
59694         * modules/perror-tests (Files): Likewise.
59695         * modules/pipe2-tests (Files): Likewise.
59696         * modules/poll-tests (Files): Likewise.
59697         * modules/popen-tests (Files): Likewise.
59698         * modules/posix_spawn-tests (Files): Likewise.
59699         * modules/posix_spawnp-tests (Files): Likewise.
59700         * modules/pread-tests (Files): Likewise.
59701         * modules/printf-posix-tests (Files): Likewise.
59702         * modules/pty-tests (Files): Likewise.
59703         * modules/random_r-tests (Files): Likewise.
59704         * modules/rawmemchr-tests (Files): Likewise.
59705         * modules/readlink-tests (Files): Likewise.
59706         * modules/remove-tests (Files): Likewise.
59707         * modules/rename-tests (Files): Likewise.
59708         * modules/renameat-tests (Files): Likewise.
59709         * modules/rmdir-tests (Files): Likewise.
59710         * modules/round-tests (Files): Likewise.
59711         * modules/roundf-tests (Files): Likewise.
59712         * modules/roundl-tests (Files): Likewise.
59713         * modules/select-tests (Files): Likewise.
59714         * modules/setenv-tests (Files): Likewise.
59715         * modules/sigaction-tests (Files): Likewise.
59716         * modules/sleep-tests (Files): Likewise.
59717         * modules/snprintf-posix-tests (Files): Likewise.
59718         * modules/snprintf-tests (Files): Likewise.
59719         * modules/sprintf-posix-tests (Files): Likewise.
59720         * modules/stat-tests (Files): Likewise.
59721         * modules/strcasestr-tests (Files): Likewise.
59722         * modules/strchrnul-tests (Files): Likewise.
59723         * modules/strerror-tests (Files): Likewise.
59724         * modules/strsignal-tests (Files): Likewise.
59725         * modules/strstr-tests (Files): Likewise.
59726         * modules/strtod-tests (Files): Likewise.
59727         * modules/strverscmp-tests (Files): Likewise.
59728         * modules/symlink-tests (Files): Likewise.
59729         * modules/symlinkat-tests (Files): Likewise.
59730         * modules/times-tests (Files): Likewise.
59731         * modules/trunc-tests (Files): Likewise.
59732         * modules/truncf-tests (Files): Likewise.
59733         * modules/truncl-tests (Files): Likewise.
59734         * modules/tsearch-tests (Files): Likewise.
59735         * modules/uname-tests (Files): Likewise.
59736         * modules/unlink-tests (Files): Likewise.
59737         * modules/unsetenv-tests (Files): Likewise.
59738         * modules/usleep-tests (Files): Likewise.
59739         * modules/utimensat-tests (Files): Likewise.
59740         * modules/vasprintf-tests (Files): Likewise.
59741         * modules/vdprintf-posix-tests (Files): Likewise.
59742         * modules/vfprintf-posix-tests (Files): Likewise.
59743         * modules/vprintf-posix-tests (Files): Likewise.
59744         * modules/vsnprintf-posix-tests (Files): Likewise.
59745         * modules/vsnprintf-tests (Files): Likewise.
59746         * modules/vsprintf-posix-tests (Files): Likewise.
59747         * modules/wcrtomb-tests (Files): Likewise.
59748         * modules/wcsnrtombs-tests (Files): Likewise.
59749         * modules/wcsrtombs-tests (Files): Likewise.
59750         * modules/wcwidth-tests (Files): Likewise.
59751         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
59752         * tests/test-isinf.c (isinf): Likewise.
59753         * tests/test-isnan.c (isnan): Likewise.
59754         * tests/test-signbit.c (signbit): Likewise.
59755         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
59756         declaration, either as macro or with correct signature.
59757         (select): Ensure function under test is declared with correct
59758         signature in correct header.
59759         * tests/test-atexit.c (atexit): Likewise.
59760         * tests/test-btowc.c (btowc): Likewise.
59761         * tests/test-canonicalize-lgpl.c (realpath)
59762         (canonicalize_file_name): Likewise.
59763         * tests/test-ceilf1.c (ceilf): Likewise.
59764         * tests/test-ceill.c (ceill): Likewise.
59765         * tests/test-chown.c (chown): Likewise.
59766         * tests/test-dprintf-posix.c (dprintf): Likewise.
59767         * tests/test-dup2.c (dup2): Likewise.
59768         * tests/test-dup3.c (dup3): Likewise.
59769         * tests/test-duplocale.c (duplocale): Likewise.
59770         * tests/test-fchdir.c (fchdir): Likewise.
59771         * tests/test-fchownat.c (fchownat): Likewise.
59772         * tests/test-fcntl.c (fcntl): Likewise.
59773         * tests/test-fdopendir.c (fdopendir): Likewise.
59774         * tests/test-fflush.c (fflush): Likewise.
59775         * tests/test-flock.c (flock): Likewise.
59776         * tests/test-floorf1.c (floorf): Likewise.
59777         * tests/test-floorl.c (floorl): Likewise.
59778         * tests/test-fnmatch.c (fnmatch): Likewise.
59779         * tests/test-fopen.c (fopen): Likewise.
59780         * tests/test-fprintf-posix.c (fprintf): Likewise.
59781         * tests/test-freopen.c (freopen): Likewise.
59782         * tests/test-frexp.c (frexp): Likewise.
59783         * tests/test-frexpl.c (frexpl): Likewise.
59784         * tests/test-fseek.c (fseek): Likewise.
59785         * tests/test-fseeko.c (fseeko): Likewise.
59786         * tests/test-fstatat.c (fstatat): Likewise.
59787         * tests/test-fsync.c (fsync): Likewise.
59788         * tests/test-ftell.c (ftell): Likewise.
59789         * tests/test-ftello.c (ftello): Likewise.
59790         * tests/test-futimens.c (futimens): Likewise.
59791         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
59792         (gai_strerror): Likewise.
59793         * tests/test-getcwd.c (getcwd): Likewise.
59794         * tests/test-getdelim.c (getdelim): Likewise.
59795         * tests/test-getdtablesize.c (getdtablesize): Likewise.
59796         * tests/test-getgroups.c (getgroups): Likewise.
59797         * tests/test-gethostname.c (gethostname): Likewise.
59798         * tests/test-getline.c (getline): Likewise.
59799         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
59800         Likewise.
59801         * tests/test-gettimeofday.c (gettimeofday): Likewise.
59802         * tests/test-glob.c (glob, globfree): Likewise.
59803         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
59804         * tests/test-inet_ntop.c (inet_ntop): Likewise.
59805         * tests/test-inet_pton.c (inet_pton): Likewise.
59806         * tests/test-isblank.c (isblank): Likewise.
59807         * tests/test-lchown.c (lchown): Likewise.
59808         * tests/test-ldexpl.c (ldexpl): Likewise.
59809         * tests/test-link.c (link): Likewise.
59810         * tests/test-linkat.c (linkat): Likewise.
59811         * tests/test-lseek.c (lseek): Likewise.
59812         * tests/test-lstat.c (lstat): Likewise.
59813         * tests/test-mbrtowc.c (mbrtowc): Likewise.
59814         * tests/test-mbsinit.c (mbsinit): Likewise.
59815         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
59816         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
59817         * tests/test-memchr.c (memchr): Likewise.
59818         * tests/test-memcmp.c (memcmp): Likewise.
59819         * tests/test-memmem.c (memmem): Likewise.
59820         * tests/test-memrchr.c (memrchr): Likewise.
59821         * tests/test-mkdir.c (mkdir): Likewise.
59822         * tests/test-mkdirat.c (mkdirat): Likewise.
59823         * tests/test-mkfifo.c (mkfifo): Likewise.
59824         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
59825         * tests/test-mknod.c (mknod): Likewise.
59826         * tests/test-nanosleep.c (nanosleep): Likewise.
59827         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
59828         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
59829         Likewise.
59830         * tests/test-open.c (open): Likewise.
59831         * tests/test-openat.c (openat): Likewise.
59832         * tests/test-perror.c (perror): Likewise.
59833         * tests/test-pipe2.c (pipe2): Likewise.
59834         * tests/test-poll.c (poll): Likewise.
59835         * tests/test-popen.c (popen, pclose): Likewise.
59836         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
59837         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
59838         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
59839         (posix_spawn_file_actions_destroy)
59840         (posix_spawn_file_actions_addclose)
59841         (posix_spawn_file_actions_addopen)
59842         (posix_spawn_file_actions_adddup2): Likewise.
59843         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
59844         * tests/test-pread.c (pread): Likewise.
59845         * tests/test-printf-posix.c (printf): Likewise.
59846         * tests/test-pty.c (openpty, forkpty): Likewise.
59847         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
59848         (random_r): Likewise.
59849         * tests/test-rawmemchr.c (rawmemchr): Likewise.
59850         * tests/test-readlink.c (readlink): Likewise.
59851         * tests/test-remove.c (remove): Likewise.
59852         * tests/test-rename.c (rename): Likewise.
59853         * tests/test-renameat.c (renameat): Likewise.
59854         * tests/test-rmdir.c (rmdir): Likewise.
59855         * tests/test-round1.c (round): Likewise.
59856         * tests/test-roundf1.c (roundf): Likewise.
59857         * tests/test-roundl.c (roundl): Likewise.
59858         * tests/test-setenv.c (setenv): Likewise.
59859         * tests/test-sigaction.c (sigaction): Likewise.
59860         * tests/test-sleep.c (sleep): Likewise.
59861         * tests/test-snprintf.c (snprintf): Likewise.
59862         * tests/test-sprintf-posix.c (sprintf): Likewise.
59863         * tests/test-stat.c (stat): Likewise.
59864         * tests/test-stpncpy.c (stpncpy): Likewise.
59865         * tests/test-strcasestr.c (strcasestr): Likewise.
59866         * tests/test-strchrnul.c (strchrnul): Likewise.
59867         * tests/test-strerror.c (strerror): Likewise.
59868         * tests/test-strsignal.c (strsignal): Likewise.
59869         * tests/test-strstr.c (strstr): Likewise.
59870         * tests/test-strtod.c (strtod): Likewise.
59871         * tests/test-strverscmp.c (strverscmp): Likewise.
59872         * tests/test-symlink.c (symlink): Likewise.
59873         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
59874         * tests/test-times.c (times): Likewise.
59875         * tests/test-trunc1.c (trunc): Likewise.
59876         * tests/test-truncf1.c (truncf): Likewise.
59877         * tests/test-truncl.c (truncl): Likewise.
59878         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
59879         Likewise.
59880         * tests/test-uname.c (uname): Likewise.
59881         * tests/test-unlink.c (unlink): Likewise.
59882         * tests/test-unlinkat.c (unlinkat): Likewise.
59883         * tests/test-unsetenv.c (unsetenv): Likewise.
59884         * tests/test-usleep.c (usleep): Likewise.
59885         * tests/test-utimensat.c (utimensat): Likewise.
59886         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
59887         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
59888         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
59889         * tests/test-vprintf-posix.c (vprintf): Likewise.
59890         * tests/test-vsnprintf.c (vsnprintf): Likewise.
59891         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
59892         * tests/test-wcrtomb.c (wcrtomb): Likewise.
59893         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
59894         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
59895         * tests/test-wcwidth.c (wcwidth): Likewise.
59897         build: pull in conditional headers during GNULIB_POSIXCHECK
59898         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
59899         definitions from any conditionally-included headers.
59900         * lib/stdlib.in.h (includes): Likewise.
59901         * lib/unistd.in.h (includes): Likewise.
59903 2009-12-24  Bruno Haible  <bruno@clisp.org>
59905         * tests/test-argv-iter.c: Include header file being tested immediately
59906         after config.h.
59907         * tests/test-base64.c: Likewise.
59908         * tests/test-flock.c: Likewise.
59909         * tests/test-fsync.c: Likewise.
59910         * tests/test-getdate.c: Likewise.
59911         * tests/test-getndelim2.c: Likewise.
59912         * tests/test-isfinite.c: Likewise.
59913         * tests/test-isinf.c: Likewise.
59914         * tests/test-strerror.c: Likewise.
59915         * tests/test-strsignal.c: Likewise.
59917 2009-12-23  Eric Blake  <ebb9@byu.net>
59919         unistd: work around cygwin bug
59920         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
59921         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
59922         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
59924 2009-12-23  Bruno Haible  <bruno@clisp.org>
59926         localename: More tests.
59927         * tests/test-localename.c (SIZEOF): New macro.
59928         (categories): New variable.
59929         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
59930         test_locale_name_default): Add test w.r.t. thread locale.
59931         (test_locale_name_thread): New function.
59932         (main): Invoke it.
59934         localename: Make aware of thread locale.
59935         * lib/localename.h (gl_locale_name_thread): New declaration.
59936         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
59937         behaviour with respect to thread locale.
59938         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
59939         <langinfo.h>, glthread/lock.h.
59940         (SIZE_BITS): New macro.
59941         (string_hash): New function.
59942         (struct hash_node): New type.
59943         (HASH_TABLE_SIZE): New macro.
59944         (struniq_hash_table, struniq_lock): New variables.
59945         (struniq): New function.
59946         (gl_locale_name_thread): New function.
59947         (gl_locale_name): Invoke it.
59948         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
59949         * modules/localename (Depends-on): Add lock.
59950         Reported by Mike Gran <spk121@yahoo.com>.
59952 2009-12-23  Eric Blake  <ebb9@byu.net>
59954         va-args: new module
59955         * modules/va-args: New file.
59956         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
59957         * MODULES.html.sh (Core language properties): Mention it.
59959         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
59960         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
59961         named alias for __attribute__((__unused__)).
59962         * lib/chown.c: Update client.
59963         * lib/fchmodat.c: Likewise.
59964         * lib/fts.c: Likewise.
59965         * lib/getdate.y: Likewise.
59966         * lib/getgroups.c: Likewise.
59967         * lib/getopt.c: Likewise.
59968         * lib/getugroups.c: Likewise.
59969         * lib/mkdir.c: Likewise.
59970         * lib/mkfifo.c: Likewise.
59971         * lib/mkfifoat.c: Likewise.
59972         * lib/mknod.c: Likewise.
59973         * lib/mknodat.c: Likewise.
59974         * lib/readlink.c: Likewise.
59975         * lib/se-context.in.h: Likewise.
59976         * lib/se-selinux.in.h: Likewise.
59977         * lib/sockets.c: Likewise.
59978         * lib/symlink.c: Likewise.
59979         * lib/symlinkat.c: Likewise.
59980         * lib/unicodeio.c: Likewise.
59981         * lib/unistr.h: Likewise.
59982         * tests/test-areadlink.c: Likewise.
59983         * tests/test-areadlinkat.c: Likewise.
59984         * tests/test-filenamecat.c: Likewise.
59985         * tests/test-fseeko.c: Likewise.
59986         * tests/test-ftello.c: Likewise.
59987         * tests/test-getdate.c: Likewise.
59988         * tests/test-getgroups.c: Likewise.
59989         * tests/test-gethostname.c: Likewise.
59990         * tests/test-quotearg.c: Likewise.
59991         * tests/test-version-etc.c: Likewise.
59992         * tests/test-xalloc-die.c: Likewise.
59993         * tests/test-xfprintf-posix.c: Likewise.
59994         * tests/test-xprintf-posix.c: Likewise.
59995         * tests/test-xvasprintf.c: Likewise.
59997         tests: avoid compiler warnings
59998         * tests/test-fcntl.c (main): Delete unused parameters.
59999         * tests/test-freopen-safer.c (main): Likewise.
60000         * tests/test-xalloc-die.c (main): Mark unused parameters.
60001         * tests/test-fseeko.c (main): Likewise.
60002         * tests/test-ftello.c (main): Likewise.
60003         * tests/test-nanosleep.c (main): Avoid declaration warning.
60004         * tests/test-sleep.c (main): Likewise.
60005         * tests/test-unsetenv.c (main): Silence warning about string
60006         literal.
60007         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
60009 2009-12-23  Bruno Haible  <bruno@clisp.org>
60011         * tests/test-localename.c (test_locale_name): New function, extracted
60012         from main. Also test mixed situations.
60013         (test_locale_name_posix, test_locale_name_environ,
60014         test_locale_name_default): New functions.
60015         (main): Invoke them all.
60016         * modules/localename-tests (configure.ac): Test for newlocale.
60018 2009-12-23  Bruno Haible  <bruno@clisp.org>
60020         unistd: Ensure getcwd gets declared before being overridden.
60021         * lib/unistd.in.h: Conditionally include <io.h>.
60023 2009-12-22  Bruno Haible  <bruno@clisp.org>
60025         wchar: Diagnose broken combination of glibc and gcc versions and flags.
60026         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
60027         (gl_WCHAR_H): Invoke it.
60028         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
60029         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
60030         Reported by Karl Berry <karl@freefriends.org>.
60032 2009-12-22  Eric Blake  <ebb9@byu.net>
60034         math, unistd: avoid redundant includes
60035         * lib/math.in.h (isnan): No need to re-include <math.h>.
60036         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
60038         getsubopt: work around cygwin bug
60039         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
60040         avoid conflicting with system getsubopt.
60041         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
60042         bug.
60044         getopt: synchronize from glibc
60045         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
60046         parameter order.  Adjust all callers.
60047         (_getopt_internal_r, main): Adjust quoting in error messages.
60048         Drop considerations for outdated POSIX 1003.2 error message.
60049         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
60050         callers.
60051         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
60053         test-getopt: test stderr behavior
60054         * modules/getopt-posix-tests (Depends-on): Add dup2.
60055         * tests/test-getopt.c (ASSERT): Avoid stderr.
60056         (main): Move stderr to a temporary file.
60057         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
60058         Instead, add parameter to inform caller if output occurred.
60059         (test_getopt): Adjust all existing tests to expect silence, and
60060         add new tests of leading ":".
60061         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
60062         glibc shortcomings with leading "-:" or "+:" in optstring.
60063         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60064         Likewise.
60065         * doc/posix-functions/getopt.texi (getopt): Likewise.
60067         test-getopt: enhance test
60068         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
60069         supports optind=0.
60070         * tests/test-getopt.c (OPTIND_MIN): Move...
60071         * tests/test-getopt.h (OPTIND_MIN): ...here.
60072         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
60073         Require that optind=0 works, since modern BSD supports it in
60074         addition to optreset, and since coreutils expects it.
60075         (test_getopt_long_only): New test.
60076         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
60077         glibc shortcomings with 'W;', and enforcement of optind=0.
60078         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60079         Likewise.
60081 2009-12-21  Bruno Haible  <bruno@clisp.org>
60083         localename: Improvements for MacOS X and Cygwin.
60084         * lib/localename.h (gl_locale_name_environ): New declaration.
60085         * lib/localename.c (gl_locale_name_environ): New function, extracted from
60086         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
60087         (gl_locale_name_posix): Invoke it.
60088         (gl_locale_name_default): Add comments. Use Windows native API also on
60089         Cygwin.
60091 2009-12-21  Bruno Haible  <bruno@clisp.org>
60093         Update list of Win32 locale ids.
60094         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
60095         (LANG_SAMI): Renamed from LANG_SAAMI.
60096         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
60097         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
60098         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
60099         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
60100         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
60101         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
60102         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
60103         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
60104         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
60105         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
60106         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
60107         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
60108         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
60109         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
60110         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
60111         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
60112         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
60113         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
60114         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
60115         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
60116         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
60117         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
60118         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
60119         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
60120         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
60121         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
60122         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
60123         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
60124         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
60125         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
60126         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
60127         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
60128         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
60129         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
60130         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
60131         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
60132         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
60133         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
60134         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
60135         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
60136         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
60137         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
60138         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
60139         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
60140         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
60141         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
60142         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
60143         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
60144         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
60145         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
60146         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
60147         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
60148         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
60149         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
60150         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
60151         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
60152         Add more languages and countries for Sami, Sorbian. Add more countries
60153         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
60154         for Pashto. Change country for Syriac, Tswana.
60156 2009-12-21  Eric Blake  <ebb9@byu.net>
60158         test-utimens: avoid spurious failure
60159         * tests/test-chown.h (nap): Factor...
60160         * tests/nap.h: ...into new file.
60161         * tests/test-lchown.h (nap): Avoid duplication.
60162         * tests/test-utimens-common.h (nap): Use shared implementation,
60163         necessary on file systems with 1-second resolution.
60164         * modules/chown-tests (Files): Include new file.
60165         * modules/fdutimensat-tests (Files): Likewise.
60166         * modules/futimens-tests (Files): Likewise.
60167         * modules/lchown-tests (Files): Likewise.
60168         * modules/openat-tests (Files): Likewise.
60169         * modules/utimens-tests (Files): Likewise.
60170         * modules/utimensat-tests (Files): Likewise.
60172 2009-12-19  Eric Blake  <ebb9@byu.net>
60174         futimens, utimensat: work around Linux bug
60175         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
60176         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
60177         * lib/utimensat.c (rpl_utimensat): Work around it.
60178         * lib/futimens.c (rpl_futimens): Adjust comment.
60180         utimens: work around Linux ctime bug
60181         * lib/utimens.c (detect_ctime_bug): New helper function.
60182         (update_timespec): Differentiate between workaround needed for
60183         this bug vs. what is needed for systems that lack utimensat.
60184         (fdutimens, lutimens): Work around bug.
60186         utimens: check for ctime update
60187         * tests/test-utimens-common.h (check_ctime): Define.
60188         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
60189         * tests/test-futimens.h (test_futimens): Likewise.
60190         * tests/test-lutimens.h (test_lutimens): Likewise.
60191         * doc/posix-functions/futimens.texi (futimens): Document the bug.
60192         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60194 2009-12-19  Bruno Haible  <bruno@clisp.org>
60196         dprintf-posix: Check against memory leak fixed on 2009-12-15.
60197         * tests/test-dprintf-posix2.sh: New file.
60198         * tests/test-dprintf-posix2.c: New file.
60199         * modules/dprintf-posix-tests (Files): Add them.
60200         (configure.ac): Check for getrlimit and setrlimit.
60201         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60203 2009-12-19  Bruno Haible  <bruno@clisp.org>
60205         fprintf-posix: Check against memory leak fixed on 2009-12-15.
60206         * tests/test-fprintf-posix3.sh: New file.
60207         * tests/test-fprintf-posix3.c: New file.
60208         * modules/fprintf-posix-tests (Files): Add them.
60209         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60211 2009-12-19  Eric Blake  <ebb9@byu.net>
60213         dirfd: fix prototype
60214         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
60215         * lib/dirfd.c (dirfd): Likewise.
60217         canonicalize: reduce memory usage
60218         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
60219         allocation to size.
60220         Reported by Solar Designer <solar@openwall.com>.
60222 2009-12-19  Bruno Haible  <bruno@clisp.org>
60224         New module attribute 'Applicability'.
60225         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
60226         * gnulib-tool: New option --extract-applicability.
60227         (func_usage): Document it.
60228         (sed_extract_prog): Recognize it.
60229         (func_get_applicability): New function.
60230         (func_import): Generalize handling of 'link-warning' module.
60231         * modules/link-warning (Applicability): New section.
60232         * modules/arg-nonnull (Applicability): New section.
60233         Repoted by Simon Josefsson <simon@josefsson.org>.
60235 2009-12-19  Bruno Haible  <bruno@clisp.org>
60237         fflush: tweak
60238         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
60239         * lib/fseeko.c (rpl_fseeko): Likewise.
60241 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
60243         * lib/gl_list.h: Fix typo in comment.
60245 2009-12-16  Eric Blake  <ebb9@byu.net>
60247         fcntl: use to simplify other modules
60248         * modules/cloexec (Depends-on): Add fcntl.
60249         * modules/fchdir (Depends-on): Likewise.
60250         * modules/fd-safer-flag (Depends-on): Likewise.
60251         * modules/unistd-safer (Depends-on): Likewise.
60252         * modules/dup3 (configure.ac): Set module indicator.
60253         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
60254         missing.
60255         * lib/fchdir.c (_gl_register_dup): Fix comment.
60256         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
60257         * lib/dup-safer.c (dup_safer): Likewise.
60258         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
60259         * lib/dup3.c (dup3): Likewise.
60260         * tests/test-fchdir.c (main): Enhance test.
60261         Fixes a dup_cloexec bug reported by Ondřej Vašík.
60263         fcntl: port portions of fcntl to mingw
60264         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
60265         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
60266         replacement for mingw.
60267         * modules/fcntl (Description): Update.
60268         (Depends-on): Add dup2.
60269         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
60270         * modules/fcntl-h (Makefile.am): Substitute it.
60271         * lib/fcntl.in.h (fcntl): Update declaration.
60272         (F_DUPFD, F_GETFD): New macros, when needed.
60273         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
60274         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
60275         * tests/test-fcntl.c (check_flags, main): Enhance test for items
60276         we now guarantee.
60278         fcntl: work around cygwin bug in F_DUPFD
60279         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
60280         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
60281         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
60282         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
60283         * doc/posix-functions/fcntl.texi (fcntl): Document it.
60285         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
60286         * modules/fcntl (Files): List new files.
60287         (configure.ac): Run a test.
60288         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
60289         * lib/fcntl.c (rpl_fcntl): Likewise.
60290         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
60291         (gl_FCNTL_H): Always replace fcntl.h.
60292         * modules/fcntl-h (Makefile.am): Substitute witnesses.
60293         * lib/fcntl.in.h (fcntl): Declare replacement.
60294         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
60295         needed, plus a witness.
60296         * doc/posix-functions/fcntl.texi (fcntl): Document this.
60297         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
60298         * tests/test-fcntl.c: New file.
60299         * modules/fcntl-tests: Likewise.
60301         binary-io: avoid potential compilation warning
60302         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
60303         directives.
60305         fflush: avoid compilation error on NetBSD
60306         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
60307         between off_t and fpos_t, since the latter is sometimes a struct.
60308         * lib/fseeko.c (rpl_fseeko): Likewise.
60309         Reported by Alexander Nasonov <alnsn@yandex.ru>.
60311 2009-12-15  Eric Blake  <ebb9@byu.net>
60313         fcntl-h, stdio, sys_ioctl: fix declarations
60314         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
60315         function must not take arguments.
60316         * lib/sys_ioctl.in.h (ioctl): Likewise.
60317         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
60318         (open): Add a link warning.
60320 2009-12-15  Jim Meyering  <meyering@redhat.com>
60322         areadlink, areadlink-with-size: relax license to LGPLv2+
60323         * modules/areadlink (License): Relax to LGPLv2+.
60324         * modules/areadlink-with-size (License): Likewise.
60326 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
60327             Bruno Haible  <bruno@clisp.org>
60329         *printf: Fix memory leak.
60330         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
60331         * lib/vfprintf.c (vfprintf): Likewise.
60332         * lib/dprintf.c (dprintf): Likewise.
60333         * lib/vdprintf.c (vdprintf): Likewise.
60335 2009-12-14  Eric Blake  <ebb9@byu.net>
60337         accept4: adjust module dependencies
60338         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
60340         utimens: one more try at avoiding compiler warning
60341         * lib/utimens.c (lutimens): Lower scope of result.
60343 2009-12-13  Bruno Haible  <bruno@clisp.org>
60345         Move the malloc checking from module 'list' to new module 'xlist'.
60346         * modules/xlist: New file.
60347         * lib/gl_xlist.h: New file.
60348         * lib/gl_xlist.c: New file.
60349         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
60350         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
60351         gl_list_add_last, gl_list_add_before, gl_list_add_after,
60352         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
60353         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
60354         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
60355         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
60356         gl_sortedlist_nx_add): New declarations.
60357         (struct gl_list_implementation): Rename and change methods accordingly.
60358         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
60359         (gl_list_nx_create): Renamed from gl_list_create.
60360         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60361         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60362         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60363         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60364         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60365         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60366         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60367         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60368         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
60369         gl_list_create_empty.
60370         (gl_list_nx_create): Renamed from gl_list_create.
60371         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60372         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60373         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60374         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60375         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60376         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60377         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60378         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60379         * lib/gl_array_list.c: Don't include xalloc.h.
60380         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
60381         NULL upon out-of-memory.
60382         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
60383         out-of-memory.
60384         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
60385         Change return type to 'int'.
60386         (gl_array_nx_set_at): Renamed from gl_array_set_at.
60387         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60388         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
60389         upon out-of-memory.
60390         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
60391         upon out-of-memory.
60392         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
60393         upon out-of-memory.
60394         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
60395         upon out-of-memory.
60396         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
60397         out-of-memory.
60398         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
60399         Update.
60400         (gl_array_list_implementation): Update.
60401         * lib/gl_carray_list.c: Don't include xalloc.h.
60402         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
60403         Return NULL upon out-of-memory.
60404         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
60405         out-of-memory.
60406         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
60407         Change return type to 'int'.
60408         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
60409         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60410         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
60411         upon out-of-memory.
60412         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
60413         upon out-of-memory.
60414         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
60415         out-of-memory.
60416         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
60417         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
60418         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
60419         Update.
60420         (gl_carray_list_implementation): Update.
60421         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
60422         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
60423         gl_linked_create_empty. Return NULL upon out-of-memory.
60424         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
60425         out-of-memory.
60426         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
60427         Change return type to 'int'. Return -1 upon out-of-memory.
60428         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
60429         out-of-memory.
60430         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
60431         upon out-of-memory.
60432         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
60433         upon out-of-memory.
60434         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
60435         NULL upon out-of-memory.
60436         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
60437         upon out-of-memory.
60438         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
60439         out-of-memory.
60440         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
60441         Update.
60442         * lib/gl_linked_list.c: Don't include xalloc.h.
60443         (gl_linked_list_implementation): Update.
60444         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
60445         (add_to_bucket): Change return type to 'int'.
60446         (gl_linkedhash_list_implementation): Update.
60447         * lib/gl_anytree_list1.h (free_subtree): New function.
60448         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
60449         gl_tree_create_empty. Return NULL upon out-of-memory.
60450         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
60451         Change return type to 'int'. Return -1 upon out-of-memory.
60452         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
60453         out-of-memory.
60454         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
60455         (gl_tree_remove_node): New function, moved here from
60456         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
60457         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
60458         Update.
60459         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
60460         malloc, not xmalloc. Return NULL upon out-of-memory.
60461         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
60462         out-of-memory.
60463         (gl_tree_remove_node_from_tree): New function, extracted from
60464         gl_tree_remove_node.
60465         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
60466         upon out-of-memory.
60467         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
60468         out-of-memory.
60469         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
60470         upon out-of-memory.
60471         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
60472         upon out-of-memory.
60473         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
60474         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
60475         not xmalloc. Return NULL upon out-of-memory.
60476         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
60477         out-of-memory.
60478         (gl_tree_remove_node_from_tree): New function, extracted from
60479         gl_tree_remove_node.
60480         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
60481         upon out-of-memory.
60482         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
60483         out-of-memory.
60484         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
60485         upon out-of-memory.
60486         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
60487         upon out-of-memory.
60488         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
60489         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
60490         gl_anytree_list1.h before gl_anyavltree_list2.h.
60491         (gl_avltree_list_implementation): Update.
60492         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
60493         gl_anytree_list1.h before gl_anyavltree_list2.h.
60494         (gl_rbtree_list_implementation): Update.
60495         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
60496         Change return type to 'int'. Return -1 upon out-of-memory. Use
60497         __builtin_expect.
60498         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
60499         (gl_avltreehash_list_implementation): Update.
60500         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
60501         (gl_rbtreehash_list_implementation): Update.
60502         * modules/array-list (Depends-on): Remove xalloc.
60503         * modules/carray-list (Depends-on): Likewise.
60504         * modules/linked-list (Depends-on): Likewise.
60505         * modules/linkedhash-list (Depends-on): Likewise.
60506         * modules/avltree-list (Depends-on): Likewise.
60507         * modules/rbtree-list (Depends-on): Likewise.
60508         * modules/avltreehash-list (Depends-on): Likewise.
60509         * modules/rbtreehash-list (Depends-on): Likewise.
60511         * modules/xsublist: New file.
60512         * lib/gl_xsublist.h: New file.
60513         * lib/gl_xsublist.c: New file.
60514         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
60515         (gl_sublist_nx_create): New declaration.
60516         * lib/gl_sublist.c: Don't include xalloc.h.
60517         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
60518         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
60519         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
60520         Change return type to 'int'. Return -1 upon out-of-memory.
60521         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
60522         upon out-of-memory.
60523         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
60524         NULL upon out-of-memory.
60525         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
60526         upon out-of-memory.
60527         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
60528         NULL upon out-of-memory.
60529         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
60530         NULL upon out-of-memory.
60531         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
60532         upon out-of-memory.
60533         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
60534         (gl_sublist_list_implementation): Update.
60535         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
60536         upon out-of-memory.
60537         * modules/sublist (Depends-on): Remove xalloc.
60539         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
60540         * tests/test-carray_list.c: Likewise.
60541         * tests/test-linked_list.c: Likewise.
60542         * tests/test-linkedhash_list.c: Likewise.
60543         * tests/test-avltree_list.c: Likewise.
60544         * tests/test-rbtree_list.c: Likewise.
60545         * tests/test-avltreehash_list.c: Likewise.
60546         * tests/test-rbtreehash_list.c: Likewise.
60547         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
60548         * modules/carray-list-tests (Makefile.am): Likewise.
60549         * modules/linked-list-tests (Makefile.am): Likewise.
60550         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60551         * modules/avltree-list-tests (Makefile.am): Likewise.
60552         * modules/rbtree-list-tests (Makefile.am): Likewise.
60553         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60554         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60556         * NEWS: Mention the changes.
60558         * lib/clean-temp.c: Include gl_xlist.h.
60559         * modules/clean-temp (Depends-on): Add xlist.
60561         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
60562         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
60564         * tests/test-array_oset.c: Include gl_xlist.h.
60565         * modules/array-oset-tests (Depends-on): Add xlist.
60567         Reported by José E. Marchesi <jemarch@gnu.org>.
60569 2009-12-13  Bruno Haible  <bruno@clisp.org>
60571         Move the malloc checking from module 'oset' to new module 'xoset'.
60572         * modules/xoset: New file.
60573         * lib/gl_xoset.h: New file.
60574         * lib/gl_xoset.c: New file.
60575         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
60576         declarations.
60577         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
60578         (struct gl_oset_implementation): Rename and change methods accordingly.
60579         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
60580         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
60581         'int'. Mark as __warn_unused_result__.
60582         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
60583         gl_oset_create_empty.
60584         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
60585         'int'.
60586         * lib/gl_array_oset.c: Don't include xalloc.h.
60587         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
60588         malloc, not xmalloc.
60589         (grow): Change return type to 'int'. Don't call xalloc_die.
60590         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
60591         to 'int'.
60592         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
60593         'int'.
60594         (gl_array_oset_implementation): Update.
60595         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
60596         gl_tree_create_empty.
60597         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
60598         'int'.
60599         * lib/gl_avltree_oset.c: Don't include xalloc.h.
60600         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
60601         xmalloc.
60602         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
60603         not xmalloc.
60604         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
60605         xmalloc.
60606         (gl_avltree_oset_implementation): Update.
60607         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
60608         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
60609         xmalloc.
60610         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
60611         not xmalloc.
60612         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
60613         xmalloc.
60614         (gl_rbtree_oset_implementation): Update.
60615         * modules/array-oset (Depends-on): Remove xalloc.
60616         * modules/avltree-oset (Depends-on): Likewise.
60617         * modules/rbtree-oset (Depends-on): Likewise.
60618         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
60619         * tests/test-avltree_oset.c: Likewise.
60620         * tests/test-rbtree_oset.c: Likewise.
60621         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60622         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
60623         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60624         * NEWS: Mention the change.
60626 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
60628         maint.mk: allow a project to override release-prep commands
60629         * top/maint.mk (alpha, beta, stable): Move release-preparatory
60630         commands into a new rule.
60631         (release-prep): New rule.
60632         (release-prep-hook): New overridable variable.
60634 2009-12-13  Bruno Haible  <bruno@clisp.org>
60636         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
60638 2009-12-13  Jim Meyering  <meyering@redhat.com>
60640         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
60641         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
60643 2009-12-12  Bruno Haible  <bruno@clisp.org>
60645         duplocale: Tweak.
60646         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
60648 2009-12-12  Karl Berry  <karl@gnu.org>
60650         * config/srclist.txt (strtoll.c): tab changes, no more sync.
60652 2009-12-12  Bruno Haible  <bruno@clisp.org>
60654         * m4/po.m4: Undo incorrect untabification.
60656 2009-12-12  Bruno Haible  <bruno@clisp.org>
60658         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
60659         * modules/c-strtod (Depends-on): Add locale.
60660         * modules/c-strtold (Depends-on): Likewise.
60662 2009-12-12  Bruno Haible  <bruno@clisp.org>
60664         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
60666 2009-12-11  Eric Blake  <ebb9@byu.net>
60668         setenv: relax requirement in light of POSIX ruling
60669         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
60670         not NULL.
60671         * tests/test-setenv.c (main): Relax test.
60672         * tests/test-unsetenv.c (main): Likewise.
60673         * doc/posix-functions/setenv.texi (setenv): Document this.
60674         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
60676 2009-12-11  Bruno Haible  <bruno@clisp.org>
60678         New module 'fd-safer-flag'.
60679         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
60680         * lib/dup-safer.c (dup_safer_flag): Remove function.
60681         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
60682         * lib/fd-safer.c (fd_safer_flag): Remove function.
60683         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
60684         * modules/cloexec (configure.ac): Drop indicator macro.
60685         * modules/fd-safer-flag: New file.
60686         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
60687         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
60688         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
60690 2009-12-11  Bruno Haible  <bruno@clisp.org>
60692         Tests for module 'nl_langinfo'.
60693         * modules/nl_langinfo-tests: New file.
60694         * tests/test-nl_langinfo.sh: New file.
60695         * tests/test-nl_langinfo.c: New file.
60697         New module 'nl_langinfo'.
60698         * lib/nl_langinfo.c: New file.
60699         * m4/nl_langinfo.m4: New file.
60700         * modules/nl_langinfo: New file.
60701         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
60703 2009-12-11  Bruno Haible  <bruno@clisp.org>
60705         Tests for module 'langinfo'.
60706         * modules/langinfo-tests: New file.
60707         * tests/test-langinfo.c: New file.
60709         New module 'langinfo'.
60710         * lib/langinfo.in.h: New file.
60711         * m4/langinfo_h.m4: New file.
60712         * modules/langinfo: New file.
60713         * doc/posix-headers/langinfo.texi: Mention the new module.
60715 2009-12-11  Bruno Haible  <bruno@clisp.org>
60717         * lib/config.charset: Untabify.
60719 2009-12-11  Bruno Haible  <bruno@clisp.org>
60721         * modules/unistd-safer (configure.ac): Drop indicator macro.
60723 2009-12-11  Bruno Haible  <bruno@clisp.org>
60725         Move pipe2-safer code to its own file.
60726         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
60727         * lib/pipe-safer.c (pipe2_safer): Remove function.
60728         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
60729         (Makefile.am): Add it to lib_SOURCES.
60731 2009-12-10  Bruno Haible  <bruno@clisp.org>
60733         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
60735 2009-12-10  Bruno Haible  <bruno@clisp.org>
60737         Declare which arguments expect non-NULL values, for GCC and clang.
60738         * build-aux/arg-nonnull.h: New file.
60739         * modules/arg-nonnull: New file.
60740         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
60741         (inet_ntop, inet_pton): Use it.
60742         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
60743         (closedir, dirfd, opendir, scandir, alphasort): Use it.
60744         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
60745         (open, openat): Use it.
60746         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
60747         (fnmatch): Use it.
60748         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
60749         (getopt, getopt_long, getopt_long_only): Use it.
60750         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
60751         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
60752         Use it.
60753         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
60754         (iconv_open): Use it.
60755         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
60756         (strtoimax, strtoumax): Use it.
60757         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
60758         (duplocale): Use it.
60759         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
60760         (frexp, frexpl): Use it.
60761         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
60762         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
60763         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
60764         (tsearch, tfind, tdelete, twalk): Use it.
60765         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
60766         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
60767         sigpending): Use it.
60768         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
60769         (posix_spawn, posix_spawnp, posix_spawnattr_init,
60770         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
60771         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
60772         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
60773         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
60774         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
60775         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
60776         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
60777         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
60778         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
60779         Use it.
60780         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
60781         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
60782         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
60783         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
60784         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
60785         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
60786         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
60787         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
60788         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
60789         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
60790         strtoull, unsetenv): Use it.
60791         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
60792         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
60793         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
60794         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
60795         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
60796         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
60797         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
60798         (strcasecmp, strncasecmp): Use it.
60799         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
60800         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
60801         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
60802         rpl_setsockopt): Use it.
60803         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
60804         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
60805         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
60806         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
60807         (gettimeofday): Use it.
60808         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
60809         (times): Use it.
60810         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
60811         (uname): Use it.
60812         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
60813         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
60814         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
60815         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
60816         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
60817         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
60818         unlinkat, write): Use it.
60819         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
60820         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
60821         * lib/argv-iter.h: Include arg-nonnull.h.
60822         (_ATTRIBUTE_NONNULL_): Remove macro.
60823         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
60824         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
60825         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
60826         optimization.
60827         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
60828         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
60829         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
60830         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
60831         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
60832         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
60833         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
60834         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
60835         * modules/arpa_inet (Depends-on): Add arg-nonnull.
60836         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
60837         * modules/dirent (Depends-on): Add arg-nonnull.
60838         (Makefile.am): Insert arg-nonnull.h into dirent.h.
60839         * modules/fcntl-h (Depends-on): Add arg-nonnull.
60840         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
60841         * modules/fnmatch (Depends-on): Add arg-nonnull.
60842         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
60843         * modules/getopt-posix (Depends-on): Add arg-nonnull.
60844         (Makefile.am): Insert arg-nonnull.h into getopt.h.
60845         * modules/glob (Depends-on): Add arg-nonnull.
60846         (Makefile.am): Insert arg-nonnull.h into glob.h.
60847         * modules/iconv_open (Depends-on): Add arg-nonnull.
60848         (Makefile.am): Insert arg-nonnull.h into iconv.h.
60849         * modules/inttypes (Depends-on): Add arg-nonnull.
60850         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
60851         * modules/locale (Depends-on): Add arg-nonnull.
60852         (Makefile.am): Insert arg-nonnull.h into locale.h.
60853         * modules/math (Depends-on): Add arg-nonnull.
60854         (Makefile.am): Insert arg-nonnull.h into math.h.
60855         * modules/netdb (Depends-on): Add arg-nonnull.
60856         (Makefile.am): Insert arg-nonnull.h into netdb.h.
60857         * modules/search (Depends-on): Add arg-nonnull.
60858         (Makefile.am): Insert arg-nonnull.h into search.h.
60859         * modules/signal (Depends-on): Add arg-nonnull.
60860         (Makefile.am): Insert arg-nonnull.h into signal.h.
60861         * modules/spawn (Depends-on): Add arg-nonnull.
60862         (Makefile.am): Insert arg-nonnull.h into spawn.h.
60863         * modules/stdio (Depends-on): Add arg-nonnull.
60864         (Makefile.am): Insert arg-nonnull.h into stdio.h.
60865         * modules/stdlib (Depends-on): Add arg-nonnull.
60866         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
60867         * modules/string (Depends-on): Add arg-nonnull.
60868         (Makefile.am): Insert arg-nonnull.h into string.h.
60869         * modules/strings (Depends-on): Add arg-nonnull.
60870         (Makefile.am): Insert arg-nonnull.h into strings.h.
60871         * modules/sys_socket (Depends-on): Add arg-nonnull.
60872         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
60873         * modules/sys_stat (Depends-on): Add arg-nonnull.
60874         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
60875         * modules/sys_time (Depends-on): Add arg-nonnull.
60876         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
60877         * modules/sys_times (Depends-on): Add arg-nonnull.
60878         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
60879         * modules/sys_utsname (Depends-on): Add arg-nonnull.
60880         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
60881         * modules/time (Depends-on): Add arg-nonnull.
60882         (Makefile.am): Insert arg-nonnull.h into time.h.
60883         * modules/unistd (Depends-on): Add arg-nonnull.
60884         (Makefile.am): Insert arg-nonnull.h into unistd.h.
60885         * modules/wchar (Depends-on): Add arg-nonnull.
60886         (Makefile.am): Insert arg-nonnull.h into wchar.h.
60887         * modules/argv-iter (Depends-on): Add arg-nonnull.
60888         * tests/test-canonicalize.c (null_ptr): New function.
60889         (main): Use it.
60890         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
60891         (main): Use it.
60892         * tests/test-memmem.c (null_ptr): New function.
60893         (main): Use it.
60894         Reported by Jim Meyering.
60896 2009-12-10  Bruno Haible  <bruno@clisp.org>
60898         Use spaces for indentation, not tabs.
60899         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
60900         * m4/*.m4: Untabify.
60901         * build-aux/*.h: Untabify.
60902         * tests/**/*.[hc]: Untabify.
60903         * README: New section "Indent with spaces, not TABs", based on
60904         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
60905         * NEWS: Mention the change.
60907 2009-12-10  Bruno Haible  <bruno@clisp.org>
60909         pty test: Fix link error.
60910         * modules/pty-tests (Makefile.am): Add the default LDADD value to
60911         test_pty_LDADD.
60913 2009-12-07  Simon Josefsson  <simon@josefsson.org>
60915         * modules/pty: New file.
60916         * modules/pty-tests: New file.
60917         * m4/pty.m4: New file.
60918         * tests/test-pty.c: New file.
60919         * doc/glibc-headers/pty.texi: Modified.
60920         * doc/glibc-functions/forkpty.texi: Modified.
60921         * doc/glibc-functions/openpty.texi: Modified.
60923 2009-12-10  Bruno Haible  <bruno@clisp.org>
60925         Avoid syntax error in C++ mode.
60926         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
60928 2009-12-10  Bruno Haible  <bruno@clisp.org>
60930         Use sed with option -e.
60931         * gnulib-tool (func_version, func_emit_copyright_notice,
60932         func_emit_initmacro_end, func_import, func_create_testdir): Pass
60933         option -e to sed.
60934         * modules/link-warning (Makefile.am): Likewise.
60936 2009-12-10  Jim Meyering  <meyering@redhat.com>
60938         mgetgroups: do not write bytes beyond end of malloc'd buffer
60939         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
60940         username, we call getgroups with a one-element-shorter buffer,
60941         but still told it the length was original, max_n_groups.
60943 2009-12-09  Eric Blake  <ebb9@byu.net>
60945         cloexec: relax license
60946         * modules/cloexec (Maintainer): Add myself.
60947         (License): Use LGPL, not GPL.
60949         link-warning: optimize generation
60950         * modules/link-warning (Makefile.am): Reduce process usage.
60952 2009-12-09  Bruno Haible  <bruno@clisp.org>
60954         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
60955         workaround was added on 2009-11-17.
60957 2009-12-09  Jim Meyering  <meyering@redhat.com>
60958             Bruno Haible  <bruno@clisp.org>
60960         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
60961         * modules/link-warning (Makefile.am): Make the comment-removing sed
60962         command more robust in the face of bootstrap-prepended comment lines.
60964 2009-12-09  Bruno Haible  <bruno@clisp.org>
60966         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
60967         most one group.
60969 2009-12-09  Simon Josefsson  <simon@josefsson.org>
60970             Bruno Haible  <bruno@clisp.org>
60972         * build-aux/link-warning.h: Add copyright notice.
60973         * modules/link-warning (Makefile.am): Generate link-warning.h from
60974         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
60975         * NEWS: Mention change in link-warning module.
60976         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
60977         * modules/dirent (Makefile.am): Add dependency to dirent.h.
60978         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
60979         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
60980         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
60981         * modules/math (Makefile.am): Add dependency to math.h.
60982         * modules/search (Makefile.am): Add dependency to search.h.
60983         * modules/signal (Makefile.am): Add dependency to signal.h.
60984         * modules/spawn (Makefile.am): Add dependency to spawn.h.
60985         * modules/stdio (Makefile.am): Add dependency to stdio.h.
60986         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
60987         * modules/string (Makefile.am): Add dependency to string.h.
60988         * modules/strings (Makefile.am): Add dependency to strings.h.
60989         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
60990         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
60991         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
60992         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
60993         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
60994         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
60995         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
60996         * modules/unistd (Makefile.am): Add dependency to unistd.h.
60997         * modules/wchar (Makefile.am): Add dependency to wchar.h.
60999 2009-12-09  Bruno Haible  <bruno@clisp.org>
61001         fchdir: Optimize away rpl_fstat when possible.
61002         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
61003         REPLACE_OPEN_DIRECTORY.
61004         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
61006 2009-12-09  Bruno Haible  <bruno@clisp.org>
61008         * lib/fchdir.c: Update comment.
61010 2009-12-09  Bruno Haible  <bruno@clisp.org>
61012         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
61014 2009-12-08  Eric Blake  <ebb9@byu.net>
61016         fchdir: avoid memory leak on re-registration.
61017         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
61019 2009-12-08  Jim Meyering  <meyering@redhat.com>
61021         init.sh: avoid Solaris 10 /bin/sh portability problem
61022         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
61023         sourced script:
61024           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
61025           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
61026           bar
61027         tests/init.sh relied on that, accepting a --set-path=DIR argument,
61028         and two tests used that idiom.
61029         * tests/init.sh: Update suggested usage comments.
61030         (path_prepend_): New function, to be used in place
61031         of the --src-path=DIR option.
61032         (setup_): Move PATH-prepending code into path_prepend_.
61033         * tests/test-pread.sh: Adapt to new usage.
61034         * tests/test-xalloc-die.sh: Likewise.
61036 2009-12-08  Simon Josefsson  <simon@josefsson.org>
61038         * doc/gnulib.texi (Glibc pty.h): Add.
61039         * doc/glibc-functions/forkpty.texi: Add.
61040         * doc/glibc-functions/openpty.texi: Add.
61041         Suggested by Bruno Haible.
61043 2009-12-08  Eric Blake  <ebb9@byu.net>
61045         fchdir: fix logic bugs
61046         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
61047         * tests/test-fchdir.c (main): Enhance test.
61048         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
61049         is in use.
61051         dup2: fix logic bugs
61052         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
61053         REPLACE_DUP2 to decide when rpl_dup2 is needed.
61054         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
61055         exists.
61056         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
61058 2009-12-07  Eric Blake  <ebb9@byu.net>
61060         unlink: fix m4 detection
61061         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
61063         unistd-safer: add unit test
61064         * modules/unistd-safer-tests: New file.
61065         * tests/test-dup-safer.c: Likewise.
61066         * tests/test-cloexec.c (setmode): Avoid compiler warning.
61067         * tests/test-dup2.c (setmode): Likewise.
61068         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
61070         cloexec: preserve text vs. binary across dup_cloexec
61071         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
61072         mode.
61073         * modules/dup2-tests (Depends-on): Add binary-io.
61074         * modules/cloexec-tests (Depends-on): Likewise.
61075         * tests/test-dup2.c (setmode, is_mode): New helpers.
61076         (main): Add tests that translation mode is preserved.
61077         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
61078         Reported by Bruno Haible.
61080         mgetgroups: reduce duplicate listings
61081         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
61082         resulting array.
61083         * tests/test-chown.h (test_chown): Simplify client.
61084         * tests/test-lchown.h (test_lchown): Likewise.
61086 2009-12-06  Bruno Haible  <bruno@clisp.org>
61088         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
61089         value.
61091 2009-12-06  Bruno Haible  <bruno@clisp.org>
61093         * lib/progname.c: Include stdio.h, stdlib.h.
61094         (set_program_name): Reject a NULL argument.
61096 2009-12-05  Eric Blake  <ebb9@byu.net>
61098         pipe2-safer: new module
61099         * modules/pipe2-safer: New file.
61100         * lib/unistd-safer.h (pipe2_safer): New prototype.
61101         * lib/unistd--.h (pipe2): New wrapper.
61102         * lib/pipe-safer.c (pipe2_safer): New function.
61103         * modules/pipe (Depends-on): Add pipe2-safer.
61104         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
61106         stdlib-safer: preserve cloexec flag for mkostemp[s]
61107         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
61108         fd_safer_flag.
61110         unistd-safer: allow preservation of cloexec status via flag
61111         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
61112         prototypes.
61113         * lib/dup-safer.c (dup_safer_flag): New function.
61114         * lib/fd-safer.c (fd_safer_flag): Likewise.
61115         * modules/cloexec (configure.ac): Set witness.
61117         test-dup2: enhance test
61118         * modules/dup2-tests (Depends-on): Add cloexec.
61119         * tests/test-dup2.c (main): Enhance test.
61121         cloexec: add dup_cloexec
61122         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
61123         header and comments.
61124         * lib/cloexec.c (set_cloexec_flag): Add comments.
61125         (dup_cloexec): New function, with mingw implementation borrowed
61126         from...
61127         * lib/w32spawn.h (dup_noinherit): ...here.
61128         * modules/execute (Depends-on): Add cloexec.
61129         * modules/pipe (Depends-on): Likewise.
61130         * modules/cloexec (Depends-on): Add dup2.
61131         * modules/cloexec-tests (Files): New file.
61132         * tests/test-cloexec.c: Likewise.
61134         test-xalloc-die: fix test for mingw
61135         * modules/xalloc-die-tests (Files): Add tests/init.sh.
61136         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
61137         directory and .exe suffix off argv[0] output.
61139         test-fseeko: fix test for mingw
61140         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
61141         than undefining fseek, so test will pass on mingw.
61143 2009-12-05  Bruno Haible  <bruno@clisp.org>
61145         * lib/progname.h (set_program_name): Clarify specification.
61146         * lib/progname.c (set_program_name): Likewise.
61147         Reported by Jim Meyering.
61149 2009-12-05  Jim Meyering  <meyering@redhat.com>
61151         maint.mk: backslash-escape parens in default regexp
61152         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
61153         backslash-escape the literal parentheses.
61155         maint.mk: news-date-check: use grep -E
61156         * top/maint.mk (today): Define a Make variable, not a...
61157         (news-date-check): ...shell variable.
61158         (news-date-regexp): Use the Make variable.
61159         Use grep's -E option.  Change the failing diagnostic to mention
61160         the variable, $(news-date-regexp).
61162 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
61164         maintainer-makefile: allow customization of NEWS entry format
61165         * top/maint.mk (news-date-regexp): New overridable variable.
61166         (news-date-check): Use it.
61168 2009-12-04  Eric Blake  <ebb9@byu.net>
61170         mgetgroups: add xgetgroups, and avoid ENOSYS failures
61171         * lib/mgetgroups.h (xgetgroups): New prototype.
61172         * lib/mgetgroups.c (xgetgroups): New wrapper.
61173         (mgetgroups): Handle ENOSYS.
61174         * modules/mgetgroups (Depends-on): Add realloc.
61175         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
61177         mgetgroups: avoid argument promotion issues with -1
61178         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
61179         for invalid gid_t.
61180         * tests/test-chown.h (getegid, test_chown): Likewise.
61181         * tests/test-lchown.h (getegid, test_lchown): Likewise.
61183 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
61185         exclude: Fix header file problems.
61186         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
61188 2009-12-01  Jim Meyering  <meyering@redhat.com>
61190         fts: fts_open: do not let an empty string cause immediate failure
61191         This is required in support of GNU rm, for which the command
61192         "rm A '' B" must process and remove both A and B, in spite of
61193         the empty string argument.
61194         * lib/fts.c (fts_open): Do not let the presence of an empty string
61195         cause fts_open to fail immediately.  Most fts-using tools must be
61196         able to process all arguments, in order, and can be expected to
61197         diagnose such arguments themselves.
61199 2009-11-30  Eric Blake  <ebb9@byu.net>
61201         utimens: fix compilation error
61202         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
61203         Declare variable at right scope.
61205 2009-11-29  Jim Meyering  <meyering@redhat.com>
61207         bootstrap: handle perl-5.11's changed --version output
61208         * build-aux/bootstrap (get_version): Handle perl separately,
61209         since perl-5.11's --version output is different.
61211 2009-11-28  Jim Meyering  <meyering@redhat.com>
61213         userspec: depend on the inttostr module, too
61214         * modules/userspec (Depends-on): Add inttostr.
61216         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
61217         * lib/userspec.c (parse_with_separator): Do not accept a user ID
61218         number of MAXUID when it evaluates to (uid_t) -1.
61219         Likewise for group ID.  Reported by Matt McCutchen in
61220         <http://savannah.gnu.org/bugs/?28113>
61222         userspec: reformat to use spaces, not TABs
61223         * lib/userspec.c: Expand TABs to spaces.
61224         Add Emacs' "indent-tabs-mode: nil" hint.
61226 2009-11-27  Eric Blake  <ebb9@byu.net>
61228         getopt-gnu: flush out another BSD bug
61229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
61230         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
61231         flush out BSD bug.
61232         * tests/test-getopt.h (test_getopt): End lists with NULL.
61233         * tests/test-getopt_long.h (test_getopt_long): Likewise.
61234         (test_getopt_long_posix): Enhance test.
61235         * modules/getopt-posix-tests (Depends-on): Add stdbool.
61236         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
61237         getopt-gnu.
61238         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
61239         Likewise.
61241 2009-11-27  Simon Josefsson  <simon@josefsson.org>
61243         * modules/idpriv-droptemp-tests (Notice): Fix text.
61245 2009-11-27  Jim Meyering  <meyering@redhat.com>
61247         test-xalloc-die: avoid spurious failure due to libtool argv difference
61248         In a libtool-enabled project, this test would fail due to a difference
61249         in the emitted program name, e.g.,
61250         -test-xalloc-die: memory exhausted
61251         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
61252         Use program to avoid that.
61253         * modules/xalloc-die-tests (Depends-on): Add progname.
61254         * tests/test-xalloc-die.c: Include progname.h".
61255         (program_name): Remove decl.
61256         (main): Call set_program_name.
61257         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
61259 2009-11-26  Richard Jones  <rjones@redhat.com>
61261         w32sock: leave win32 error in place.
61262         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
61264 2009-11-26  Eric Blake  <ebb9@byu.net>
61266         init.sh: suggest to use skip_ and fail_ functions in comments
61267         * tests/init.sh: Add a sentence.
61269 2009-11-25  Bruno Haible  <bruno@clisp.org>
61271         init.sh: add documentation in comments
61272         * tests/init.sh: Add some developer and user documentation.
61274 2009-11-26  Jim Meyering  <meyering@redhat.com>
61276         init.sh: accommodate even those who specify bogus srcdir manually
61277         * tests/init.sh: Normally, srcdir is guaranteed by automake and
61278         configure-time tests to be sanitized, so that there is no need to
61279         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
61280         (with no double quotes) suffices.  However, since tests may be
61281         invoked manually, and since you may explicitly set srcdir to the
61282         name of a directory containing spaces, do quote its uses here.
61283         * tests/test-pread.sh: Likewise.
61284         Suggested by Bruno Haible.
61286         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
61287         * tests/test-pread.sh: Write no data into the pipe, because
61288         test-pread actually reads none.  This avoids a diagnostic,
61289         "bash: echo: write error: Broken pipe", that arises in the unusual
61290         event something is ignoring SIGPIPE, and might be interpreted
61291         as some sort of failure.  Reported by Bruno Haible.
61293 2009-11-25  Jim Meyering  <meyering@redhat.com>
61295         test-pread: cover failure with ESPIPE and EINVAL
61296         * tests/test-pread.c (main): Test for failure, too.
61297         * tests/test-pread.sh: Invoke with stdin on a pipe.
61298         Suggested by Eric Blake.
61300         pread: improvement and fix
61301         * modules/pread (Depends-on): Depend on lseek, for portability to
61302         e.g., mingw.  Suggested by Eric Blake.
61303         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
61305         unistd.in.h: correct declaration of pread
61306         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
61307         Reported by Richard W.M. Jones.
61309         test-pread.sh: distribute the test script
61310         * modules/pread-tests (Files): Include test-pread.sh.
61312         test-pread.sh: clean up
61313         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
61314         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
61315         That is unnecessary, since it's always ".".
61316         Suggestion from Eric Blake.
61318         test-pread.sh: make executable
61319         * tests/test-pread.sh: Set executable bit.
61320         Reported by Eric Blake.
61322         correct typo in test-pread.sh
61323         * tests/test-pread.sh: Add #! line.
61325         test pread
61326         * tests/test-pread.c: New file.
61327         * tests/test-pread.sh: Likewise.
61328         * modules/pread-tests: Likewise.
61330         pread: new module
61331         * modules/pread: New file.
61332         * lib/unistd.in.h (pread): Define/declare.
61333         * lib/pread.c (pread): New file.
61334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
61335         * modules/unistd (Makefile.am): Substitute witnesses.
61336         * doc/posix-functions/pread.texi (pread): Update.
61337         * MODULES.html.sh: Add pread.
61339 2009-11-25  Jim Meyering  <meyering@redhat.com>
61341         tests/init.sh: new file to be used via most *.sh tests
61342         * tests/init.sh: New file.
61344 2009-11-25  Eric Blake  <ebb9@byu.net>
61346         utimens: work around older Linux failure with symlinks
61347         * lib/utimens.c (lutimensat_works_really): New variable.
61348         (fdutimens, lutimens): Use it to manage kernels that support
61349         nanosecond times on files, but not on symlinks.
61350         Reported by Ondřej Vašík.
61352         utimes: fix configure grammar
61353         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
61355 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
61357         regex: Fix fastmap for multibyte character ranges.
61358         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
61359         characters when a multibyte character range is included.
61361 2009-11-22  Andy Wingo  <wingo@pobox.com>
61363         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
61364         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
61366 2009-11-24  Bruno Haible  <bruno@clisp.org>
61368         doc: Most *_l functions exist in MacOS X 10.5.
61369         * doc/posix-functions/duplocale.texi: Update platforms list.
61370         * doc/posix-functions/freelocale.texi: Likewise.
61371         * doc/posix-functions/newlocale.texi: Likewise.
61372         * doc/posix-functions/uselocale.texi: Likewise.
61373         * doc/posix-functions/isalnum_l.texi: Likewise.
61374         * doc/posix-functions/isalpha_l.texi: Likewise.
61375         * doc/posix-functions/isblank_l.texi: Likewise.
61376         * doc/posix-functions/iscntrl_l.texi: Likewise.
61377         * doc/posix-functions/isdigit_l.texi: Likewise.
61378         * doc/posix-functions/isgraph_l.texi: Likewise.
61379         * doc/posix-functions/islower_l.texi: Likewise.
61380         * doc/posix-functions/isprint_l.texi: Likewise.
61381         * doc/posix-functions/ispunct_l.texi: Likewise.
61382         * doc/posix-functions/isspace_l.texi: Likewise.
61383         * doc/posix-functions/isupper_l.texi: Likewise.
61384         * doc/posix-functions/iswalnum_l.texi: Likewise.
61385         * doc/posix-functions/iswalpha_l.texi: Likewise.
61386         * doc/posix-functions/iswblank_l.texi: Likewise.
61387         * doc/posix-functions/iswcntrl_l.texi: Likewise.
61388         * doc/posix-functions/iswctype_l.texi: Likewise.
61389         * doc/posix-functions/iswdigit_l.texi: Likewise.
61390         * doc/posix-functions/iswgraph_l.texi: Likewise.
61391         * doc/posix-functions/iswlower_l.texi: Likewise.
61392         * doc/posix-functions/iswprint_l.texi: Likewise.
61393         * doc/posix-functions/iswpunct_l.texi: Likewise.
61394         * doc/posix-functions/iswspace_l.texi: Likewise.
61395         * doc/posix-functions/iswupper_l.texi: Likewise.
61396         * doc/posix-functions/iswxdigit_l.texi: Likewise.
61397         * doc/posix-functions/isxdigit_l.texi: Likewise.
61398         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
61399         * doc/posix-functions/strcasecmp_l.texi: Likewise.
61400         * doc/posix-functions/strcoll_l.texi: Likewise.
61401         * doc/posix-functions/strfmon_l.texi: Likewise.
61402         * doc/posix-functions/strftime_l.texi: Likewise.
61403         * doc/posix-functions/strncasecmp_l.texi: Likewise.
61404         * doc/posix-functions/strxfrm_l.texi: Likewise.
61405         * doc/posix-functions/tolower_l.texi: Likewise.
61406         * doc/posix-functions/toupper_l.texi: Likewise.
61407         * doc/posix-functions/towctrans_l.texi: Likewise.
61408         * doc/posix-functions/towlower_l.texi: Likewise.
61409         * doc/posix-functions/towupper_l.texi: Likewise.
61410         * doc/posix-functions/wcscoll_l.texi: Likewise.
61411         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
61412         * doc/posix-functions/wctrans_l.texi: Likewise.
61413         * doc/posix-functions/wctype_l.texi: Likewise.
61414         * doc/glibc-functions/strptime_l.texi: Likewise.
61415         * doc/glibc-functions/strtod_l.texi: Likewise.
61416         * doc/glibc-functions/strtof_l.texi: Likewise.
61417         * doc/glibc-functions/strtol_l.texi: Likewise.
61418         * doc/glibc-functions/strtold_l.texi: Likewise.
61419         * doc/glibc-functions/strtoll_l.texi: Likewise.
61420         * doc/glibc-functions/strtoul_l.texi: Likewise.
61421         * doc/glibc-functions/strtoull_l.texi: Likewise.
61422         * doc/glibc-functions/wcsftime_l.texi: Likewise.
61423         * doc/glibc-functions/wcstod_l.texi: Likewise.
61424         * doc/glibc-functions/wcstof_l.texi: Likewise.
61425         * doc/glibc-functions/wcstol_l.texi: Likewise.
61426         * doc/glibc-functions/wcstold_l.texi: Likewise.
61427         * doc/glibc-functions/wcstoll_l.texi: Likewise.
61428         * doc/glibc-functions/wcstoul_l.texi: Likewise.
61429         * doc/glibc-functions/wcstoull_l.texi: Likewise.
61431 2009-11-24  Bruno Haible  <bruno@clisp.org>
61433         duplocale: Fix logic bug.
61434         * lib/duplocale.c: Don't include <langinfo.h>.
61435         (_NL_LOCALE_NAME): Remove macro.
61436         (rpl_duplocale): Use setlocale instead of nl_langinfo.
61437         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
61439 2009-11-23  Jim Meyering  <meyering@redhat.com>
61441         test-update-copyright: don't hard-code /usr/bin/perl
61442         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
61443         perl to print the current year.  Gilles Espinasse reported that
61444         the replaced use of perl was hard-coded as /usr/bin/perl.
61446 2009-11-23  Bruno Haible  <bruno@clisp.org>
61448         duplocale: Add support for glibc 2.3.x.
61449         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
61451 2009-11-22  Bruno Haible  <bruno@clisp.org>
61453         vasnprintf: Tiny optimization.
61454         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
61455         MacOS X.
61457 2009-11-22  Bruno Haible  <bruno@clisp.org>
61459         Tests for module 'duplocale'.
61460         * modules/duplocale-tests: New file.
61461         * tests/test-duplocale.c: New file.
61463         New module 'duplocale'.
61464         * m4/duplocale.m4: New file.
61465         * lib/locale.in.h (duplocale): New declaration.
61466         * lib/duplocale.c: New file.
61467         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
61468         gl_LOCALE_H_DEFAULTS): New macros.
61469         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
61470         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
61471         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
61472         REPLACE_DUPLOCALE.
61473         * modules/duplocale: New file.
61474         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
61476 2009-11-22  Bruno Haible  <bruno@clisp.org>
61478         * modules/locale-tests (configure.ac): Test for newlocale function.
61479         * tests/test-locale.c: When the system has extended locale functions,
61480         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
61482         locale: Make locale_t available when possible.
61483         * lib/locale.in.h: Include <xlocale.h> when it exists.
61484         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
61485         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
61486         * modules/locale (Depends-on): Add extensions.
61487         (Makefile.am): Also substitute HAVE_XLOCALE_H.
61488         * doc/posix-headers/locale.texi: Document the problem with locale_t.
61490 2009-11-22  Bruno Haible  <bruno@clisp.org>
61492         Add comments.
61493         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
61494         invocation.
61495         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
61496         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
61497         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61499 2009-11-22  Bruno Haible  <bruno@clisp.org>
61501         error: account for the possibility of freopen (stdout).
61502         * lib/error.c: Include <unistd.h>.
61503         (flush_stdout): New function, extracted from error and error_at_line.
61504         Determine stdout's fd dynamically.
61505         (error, error_at_line): Invoke flush_stdout.
61506         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
61507         * modules/error (Depends-on): Add unistd.
61509 2009-11-22  Bruno Haible  <bruno@clisp.org>
61511         diffseq: Add comment.
61512         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
61514 2009-11-22  Jim Meyering  <meyering@redhat.com>
61516         c-stack: avoid defining an unused static function
61517         * lib/c-stack.c (find_stack_direction): Do not define this function
61518         when it will not be used.
61520         diffseq: avoid spurious gcc warnings
61521         * lib/diffseq.h (IF_LINT2): Define.
61522         (compareseq): Use it to initialize two members of "part".
61523         This avoids two used-uninitialized warnings.
61525 2009-11-21  Jim Meyering  <meyering@redhat.com>
61527         c-stack: avoid "ignoring return value of `write'" warning
61528         * lib/c-stack.c: Include "ignore-value.h".
61529         (die): Explicitly ignore each write return value.
61530         * modules/c-stack (Depends-on): Add ignore-value.
61532 2009-11-21  Bruno Haible  <bruno@clisp.org>
61534         diffseq: reduce scope of variable 'best'.
61535         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
61536         variable, earlier used for two different purposes.
61538 2009-11-21  Jim Meyering  <meyering@redhat.com>
61540         diffseq: remove useless assignment to "best"
61541         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
61542         assignment.  At that point "best" is already guaranteed to be zero.
61544 2009-11-20  Eric Blake  <ebb9@byu.net>
61546         build: mention ftp redirector in release announcements
61547         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
61548         values that used to come from cfg.mk; mention FTP redirect URL.
61549         * build-aux/announce-gen: Mention the mirror list.
61550         Suggested by Karl Berry.
61552         nanosleep: improve port to mingw
61553         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
61554         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
61555         LIB_NANOSLEEP, but only when needed.
61556         * modules/select (Link): Document LIBSOCKET.
61557         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
61558         enough.
61560         nanosleep: work around cygwin bug
61561         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
61562         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
61563         bug.
61564         (getnow): Delete, not needed.
61565         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
61566         LIB_CLOCK_GETTIME.
61567         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
61568         clock-time, gettime.
61569         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
61570         bug.
61571         * modules/nanosleep-tests: New test.
61572         * tests/test-nanosleep.c: New file.
61574         sleep: work around cygwin bug
61575         * lib/sleep.c (rpl_sleep): Work around the bug.
61576         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
61577         (gl_PREREQ_SLEEP): Delete unused macro.
61578         * modules/sleep (Depends-on): Add verify.
61579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
61580         * modules/unistd (Makefile.am): Substitute witness.
61581         * lib/unistd.in.h (sleep): Update prototype.
61582         * doc/posix-functions/sleep.texi (sleep): Document the bug.
61583         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
61584         * modules/sleep-tests (Depends-on): Check for alarm.
61586 2009-11-20  Jim Meyering  <meyering@redhat.com>
61588         maint.mk: improve sc_prohibit_magic_number_exit
61589         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
61590         so it does not match uses like System.exit(1).
61591         Add comments showing how to correct all offenders.
61593 2009-11-19  Eric Blake  <ebb9@byu.net>
61595         xalloc-die-tests: add missing library
61596         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
61598         test-xvasprintf: silence compiler warnings
61599         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
61600         empty string from gcc.
61602 2009-11-19  Jim Meyering  <meyering@redhat.com>
61604         xfreopen: new module, from coreutils
61605         * modules/xfreopen: New module.
61606         * lib/xfreopen.c: New file.
61607         * lib/xfreopen.h: New file.
61608         * MODULES.html.sh (File stream based Input/Output"): Add it.
61610 2009-11-19  Eric Blake  <ebb9@byu.net>
61612         manywarnings: depend on warnings
61613         * modules/manywarnings (Depends-on): Add warnings.
61615         build: avoid compiler warnings
61616         * lib/select.c (rpl_select): Delete unused variable.
61617         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
61619 2009-11-18  Eric Blake  <ebb9@byu.net>
61621         tests: avoid false negative with --with-packager
61622         * tests/test-version-etc.sh: Discard packager information.
61623         * tests/test-argp-version-etc-1.sh: Likewise.
61624         Reported by Mike Frysinger.
61626         utimens: fix regression on Solaris
61627         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
61628         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
61629         can only change fd timestamps via futimesat.  Instead, use an
61630         additional witness macro to avoid BSD bug.
61631         Reported by Jim Meyering.
61633 2009-11-17  Eric Blake  <ebb9@byu.net>
61635         usleep: use it to simplify tests
61636         * modules/stat-time-tests (Depends-on): Add usleep.
61637         (configure.ac): Drop usleep check.
61638         * modules/chown-tests (Depends-on, configure.ac): Likewise.
61639         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
61640         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
61641         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
61642         * modules/openat-tests (Depends-on, configure.ac): Likewise.
61643         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
61644         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
61645         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
61646         Likewise.
61647         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
61648         * tests/test-lchown.h (nap): Likewise.
61649         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
61650         * tests/test-stat-time.c (nap): Likewise.
61651         * tests/test-utimens-common.h (nap): Update comments.
61653         usleep: new module
61654         * modules/usleep: New file.
61655         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
61656         * lib/usleep.c (usleep): Likewise.
61657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
61658         * modules/unistd (Makefile.am): Substitute witnesses.
61659         * lib/unistd.in.h (usleep): Add declaration.
61660         * doc/pastposix-functions/usleep.texi (usleep): Document this.
61661         * MODULES.html.sh (Date and time): Likewise.
61662         * modules/usleep-tests (Depends-on): New test.
61663         * tests/test-usleep.c: New file.
61665         chown: work around OpenBSD bug
61666         * lib/chown.c (rpl_chown): Work around the bug.
61667         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
61668         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
61669         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
61670         * modules/chown (Depends-on): Add stdbool.
61671         * modules/lchown (Depends-on): Likewise.
61672         * doc/posix-functions/chown.texi (chown): Document the bug.
61673         * doc/posix-functions/lchown.texi (lchown): Likewise.
61674         * tests/test-lchown.h (test_chown): Relax test.
61676         mkstemp: avoid conflict with C++ keyword template
61677         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
61678         * lib/mkostemp.c (mkostemp): Likewise.
61679         * lib/mkostemps.c (mkostemps): Likewise.
61680         * lib/mkstemp.c (mkstemp): Likewise.
61681         * lib/mkstemps.c (mkstemps): Likewise.
61683         xalloc-die-tests: optimize
61684         * tests/test-xalloc-die.sh: Reduce number of processes.
61686 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61688         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
61689         patch from ludo@gnu.org (Ludovic Courtès).
61691 2009-11-17  Jim Meyering  <meyering@redhat.com>
61693         version-etc: use proper license string
61694         * modules/version-etc (License): Use LGPL, not LGPLv3+.
61695         * modules/version-etc-fsf: Likewise.
61697 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61699         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
61700         printed to stdout.  Deal with EOL differences.
61702 2009-11-17  Eric Blake  <ebb9@byu.net>
61704         unsetenv: work around Solaris bug
61705         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
61706         * lib/unsetenv.c (rpl_unsetenv): Work around it.
61707         Reported by Jim Meyering.
61709         vasnprintf: avoid compiler warnings
61710         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
61711         variables.
61712         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
61714 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61716         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
61717         settings since xalloc-die is no longer the self test,
61718         xalloc-die.sh is.
61720 2009-11-17  Jim Meyering  <meyering@redhat.com>
61722         test-xalloc-die.sh: make the code agree with the commit log
61723         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
61724         at the end, just in case you happen to have a test-xalloc-die
61725         program in some other PATH directory.
61727         test-xalloc-die.sh: fix a portability bug
61728         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
61729         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
61730         Otherwise, argv[0] (as often seen in diagnostics) would be too
61731         system-dependent, sometimes with, and sometimes without the leading "./".
61733         version-etc-fsf: relax license to LGPLv3+
61734         * modules/version-etc-fsf (License): Relax license.
61736 2009-11-16  Eric Blake  <ebb9@byu.net>
61738         xalloc-die-tests: avoid printing null pointer
61739         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
61740         shell script.
61741         * tests/test-xalloc-die.c (program_name): Declare.
61742         * tests/test-xalloc-die.sh (tmpfiles): New file.
61744         setenv, unsetenv: work around various bugs
61745         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
61746         (setenv) [HAVE_SETENV]: Work around bugs.
61747         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
61748         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
61749         for bugs.
61750         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
61751         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
61752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
61753         * modules/stdlib (Makefile.am): Update substitutions.
61754         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
61755         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
61756         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
61757         * modules/setenv-tests: New test.
61758         * modules/unsetenv-tests: Likewise.
61759         * tests/test-setenv.c: New file.
61760         * tests/test-unsetenv.c: Likewise.
61762 2009-11-16  Jim Meyering  <meyering@redhat.com>
61764         version-etc: relax license to LGPLv3+
61765         * modules/version-etc (License): Relax license.
61767         better AC_REQUIRE expanded-before-required-warning avoidance
61768         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
61769         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
61770         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
61771         which is no longer needed.
61773 2009-11-16  Eric Blake  <ebb9@byu.net>
61775         test-freading: clean up temporary file
61776         * tests/test-freading.c (main): Remove file on success, and use
61777         ASSERT more liberally.
61778         Reported by Jim Meyering.
61780 2009-11-16  Jim Meyering  <meyering@redhat.com>
61782         avoid new AC_REQUIRE expanded-before-required warnings
61783         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
61784         merely using it.
61785         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
61786         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
61788 2009-11-15  Simon Josefsson  <simon@josefsson.org>
61790         * tests/test-xalloc-die.c: New file.
61791         * modules/xalloc-die-tests: New file.
61792         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
61793         XFAIL_TESTS so it can be appended by modules.
61795 2009-11-15  Simon Josefsson  <simon@josefsson.org>
61797         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
61798         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
61800 2009-11-14  Eric Blake  <ebb9@byu.net>
61802         fnmatch: avoid compiler warning
61803         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
61804         to silence compiler warning about mismatch signedness in ?:.
61805         Reported by Robert Millan.
61807         intprops: add double-inclusion guard
61808         * lib/intprops.h: Allow idempotent includes.
61809         Suggested by Bruce Korb.
61811         openat: detect Solaris fchownat bug
61812         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
61813         penalizing glibc chownat when only lchownat is broken.
61814         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
61815         trailing slash bugs.
61816         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
61817         * modules/openat-tests (Files): Include more files.
61818         (Depends-on): Add mgetgroups, sleep, stat-time.
61819         (configure.ac): Add additional checks.
61820         (Makefile.am): Build new test.
61821         * tests/test-fchownat.c: New file.
61823         lchown: detect Solaris and FreeBSD bug
61824         * lib/lchown.c (rpl_lchown): Work around bug.
61825         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
61826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61827         * modules/unistd (Makefile.am): Populate it.
61828         * lib/unistd.in.h (lchown): Update declaration.
61829         * doc/posix-functions/lchown.texi (lchown): Document the bug.
61830         * modules/lchown-tests: New file.
61831         * tests/test-lchown.h (test_lchown): Likewise.
61832         * tests/test-lchown.c (main): Likewise.
61834         chown: detect Solaris and FreeBSD bug
61835         * lib/chown.c (rpl_chown): Work around bug.
61836         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
61837         (gl_PREREQ_CHOWN): Delete.
61838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61839         * modules/unistd (Makefile.am): Populate it.
61840         * lib/unistd.in.h (chown): Update declaration.
61841         * lib/lchown.c (chown): Update client.
61842         * modules/lchown (Depends-on): Add lstat.
61843         * doc/posix-functions/chown.texi (chown): Document the bug.
61844         * doc/posix-functions/getgroups.texi (getgroups): Document
61845         getgroups pitfall.
61846         * modules/chown-tests: New file.
61847         * tests/test-chown.h (test_chown): Likewise.
61848         * tests/test-chown.c (main): Likewise.
61850 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
61852         gnulib-tool: correctly detect absence of m4 directories
61853         * gnulib-tool: Avoid extra newline on data passed to wc -l.
61855 2009-11-14  Jim Meyering  <meyering@redhat.com>
61857         maint.mk: Prohibit inclusion of "xalloc.h" without use.
61858         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
61860 2009-11-14  John W. Eaton  <jwe@gnu.org>
61862         strftime.h: wrap function declaration in extern "C" block
61863         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
61865 2009-11-13  Eric Blake  <ebb9@byu.net>
61867         getgroups: avoid compiler warning
61868         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
61870         getgroups: work around FreeBSD bug
61871         * lib/getgroups.c (rpl_getgroups): Work around the bug.
61872         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
61873         * doc/posix-functions/getgroups.texi (getgroups): Document it.
61874         * tests/test-getgroups.c (main): Fix buffer overrun.
61876         getgroups: avoid compilation failure
61877         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
61878         * modules/getgroups (Depends-on): Add stdint.
61880 2009-11-13  Jim Meyering  <meyering@redhat.com>
61882         test-getgroups: avoid compilation failure
61883         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
61885 2009-11-13  Eric Blake  <ebb9@byu.net>
61887         mgetgroups: new module, taken from coreutils
61888         * modules/mgetgroups: New file.
61889         * lib/mgetgroups.h: Likewise.
61890         * lib/mgetgroups.c (mgetgroups): Likewise.
61891         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
61892         * MODULES.html.sh (Users and groups): Mention it.
61894         getgroups: don't expose GETGROUPS_T to user
61895         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
61896         an element at a time if GETGROUPS_T is wrong size.
61897         * lib/getugroups.h (getugroups): Change signature.
61898         * lib/unistd.in.h (getgroups): Likewise.
61899         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
61900         signature needs fixing.
61901         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
61902         AC_TYPE_GETGROUPS.
61903         * modules/group-member (Depends-on): Add getgroups.
61904         * lib/group-member.c (group_info, get_group_info): Use gid_t.
61905         (group_member): Rely on getgroups replacement.
61906         * lib/getugroups.c (getugroups): Use gid_t.
61907         * tests/test-getgroups.c (main): Likewise.
61908         * NEWS: Mention the signature change.
61909         * doc/posix-functions/getgroups.texi (getgroups): Mention the
61910         problem with signature.
61911         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
61912         GETGROUPS_T is still useful for setgroups.
61914         getgroups, getugroups: provide stubs for mingw
61915         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
61916         * lib/getugroups.c (getugroups): Likewise.
61917         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
61918         function.  Modernize replacement scheme.
61919         (gl_PREREQ_GETGROUPS): Delete.
61920         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
61921         * modules/getgroups (configure.ac): Declare witness.
61922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
61923         * modules/unistd (Depends-on): Substitute witness.
61924         * lib/unistd.in.h (getgroups): Declare replacement.
61926         getgroups: avoid calling exit
61927         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
61928         drop xalloc.
61929         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
61930         dependencies.
61931         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
61932         exiting, in the rare case of malloc failure.
61934         getgroups: fix logic error
61935         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
61936         has more than 20 groups.
61937         * modules/getgroups-tests: New test.
61938         * tests/test-getgroups.c: New file.
61940 2009-11-13  Simon Josefsson  <simon@josefsson.org>
61942         * tests/test-base64.c: Improve.
61944 2009-11-13  Simon Josefsson  <simon@josefsson.org>
61946         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
61947         Blake <ebb9@byu.net>.
61949 2009-11-13  Simon Josefsson  <simon@josefsson.org>
61951         * tests/test-xvasprintf.c: Add %s%s related checks.
61953 2009-11-12  Eric Blake  <ebb9@byu.net>
61955         version-etc: match standards.texi style
61956         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
61957         and use <> only for URLs.
61959 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
61961         fts: do not fail on a submount during traversal
61962         * lib/fts.c (fts_build): Read the stat info again after opening
61963         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
61964         Original report at http://bugzilla.redhat.com/501848.
61966 2009-11-12  Jim Meyering  <meyering@redhat.com>
61968         bootstrap: sync from coreutils
61969         * build-aux/bootstrap (bootstrap_epilogue): New function.
61970         Use git_modules_config in one more place.  This make bootstrap's
61971         --gnulib-srcdir option more useful for testing.
61973         bootstrap: generalize autoheader check
61974         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
61975         AC_CONFIG_HEADERS.
61977 2009-11-11  Eric Blake  <ebb9@byu.net>
61979         mkfifoat: use new modules for Solaris and BSD bugs
61980         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
61981         * lib/mkfifoat.c (mknodat): Split...
61982         * lib/mknodat.c (mknodat): ...into new file.
61983         * modules/mkfifoat (Files): Ship new file.
61984         (Depends-on): Add mkfifo, mknod.
61985         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
61986         (Depends-on): Add symlink.
61987         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
61988         redundant with test_mkfifo.h.
61989         (do_mkfifoat, do_mknodat): New helpers.
61991         mknod: new module
61992         * modules/mknod: New file.
61993         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
61994         * lib/mknod.c (mknod): Likewise.
61995         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
61996         defaults.
61997         * modules/sys_stat (Makefile.am): Substitute them.
61998         * lib/sys_stat.in.h (mknod): Declare replacement.
61999         * MODULES.html.sh (Support for systems lacking POSIX:2008):
62000         Document it.
62001         * doc/posix-functions/mknod.texi (mknod): Likewise.
62002         * modules/mknod-tests: New test.
62003         * tests/test-mknod.c: Likewise.
62005         mkfifo: new module
62006         * modules/mkfifo: New file.
62007         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
62008         * lib/mkfifo.c (mkfifo): Likewise.
62009         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
62010         defaults.
62011         * modules/sys_stat (Makefile.am): Substitute them.
62012         * lib/sys_stat.in.h (mkfifo): Declare replacement.
62013         * MODULES.html.sh (Support for systems lacking POSIX:2008):
62014         Document it.
62015         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
62016         * modules/mkfifo-tests: New test.
62017         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
62018         from test-mkfifoat.c.
62019         * tests/test-mkfifo.c: New file.
62021         readlink: detect FreeBSD bug
62022         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
62023         slash on symlink.
62024         * doc/posix-functions/readlink.texi (readlink): Document the bug.
62025         * tests/test-readlink.h (test_readlink): Enhance test.
62027         symlink: detect FreeBSD bug
62028         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
62029         slash on symlink.
62030         * doc/posix-functions/symlink.texi (symlink): Document the bug.
62031         * tests/test-symlink.h (test_symlink): Enhance test.
62033 2009-11-10  Eric Blake  <ebb9@byu.net>
62035         link: detect FreeBSD bug
62036         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
62037         symlink.
62038         * doc/posix-functions/link.texi (link): Document the bug.
62039         * tests/test-link.h (test_link): Enhance test.
62040         * tests/test-linkat.c (main): Update caller.
62042         unlink, remove: detect FreeBSD bug
62043         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
62044         slash on symlink.
62045         * doc/posix-functions/unlink.texi (unlink): Document the bug.
62046         * doc/posix-functions/remove.texi (remove): Likewise.
62047         * tests/test-unlink.h (test_unlink): Enhance test.
62048         * tests/test-remove.c (main): Likewise.
62050 2009-11-09  Eric Blake  <ebb9@byu.net>
62052         rename: detect FreeBSD bug
62053         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
62054         slash on symlink.
62055         * modules/renameat-tests (Depends-on): Add filenamecat.
62056         * tests/test-rename.h (test_rename): Allow one more errno.
62057         * tests/test-renameat.c (main): Likewise.
62058         * doc/posix-functions/rename.texi (rename): Document the bug.
62060         open: detect FreeBSD bug
62061         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
62062         symlink.
62063         * doc/posix-functions/open.texi (open): Document the bug.
62064         * doc/posix-functions/utimes.texi (utimes): Likewise.
62065         * tests/test-open.h (test_open): Add parameters, and test symlink
62066         handling.
62067         * tests/test-open.c (main): Adjust caller.
62068         * tests/test-fcntl-safer.c (main): Likewise.
62069         * modules/open-tests (Depends-on): Add stdbool, symlink.
62070         * modules/fcntl-safer-tests (Depends-on): Likewise.
62071         * tests/test-openat.c (main): Add test-open tests.
62073         stat: detect FreeBSD bug
62074         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
62075         symlink.
62076         * doc/posix-functions/stat.texi (stat): Document the bug.
62077         * tests/test-stat.h (test_stat_func): Add argument.
62078         * tests/test-stat.c (main): Adjust caller.
62079         * tests/test-fstatat.c (main): Likewise.
62080         * modules/stat-tests (Depends-on): Add stdbool, symlink.
62081         Reported by Jim Meyering.
62083 2009-11-09  James Youngman  <jay@gnu.org>
62085         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
62086         * lib/strftime.c: Correct placement of #include "ignore-value.h".
62088 2009-11-08  Jim Meyering  <meyering@redhat.com>
62090         utimens: remove invalid futimesat call
62091         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
62092         It used the file descriptor of the target file as the DIR_FD
62093         parameter and NULL as the file name.  That caused failure with
62094         errno == EFAULT on FreeBSD-8.0-rc2
62096 2009-11-07  Eric Blake  <ebb9@byu.net>
62098         fflush, freadseek: use fseeko, not fseek
62099         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
62100         (clear_ungetc_buffer): Avoid potential problems on large files.
62101         * lib/freadseek.c (freadseek): Likewise.
62102         * modules/freadseek (Depends-on): Add fseeko.
62103         * modules/fseek (configure.ac): Set a witness.
62104         * tests/test-fflush.c (main): Use fseeko.
62105         * tests/test-fpurge.c (fseek): Disable link warning.
62106         * tests/test-freadable.c (fseek): Likewise.
62107         * tests/test-freading.c (fseek): Likewise.
62108         * tests/test-fseeko.c (fseek): Likewise.
62109         * tests/test-ftell.c (fseek): Likewise.
62110         * tests/test-ftello.c (fseek): Likewise.
62111         * tests/test-fwritable.c (fseek): Likewise.
62112         * tests/test-fwriting.c (fseek): Likewise.
62114 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62116         * modules/memchr (Depends-on): Drop getpagesize dependency.
62118 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62120         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
62121         Reported by Ludovic Courtès.
62122         * build-aux/pmccabe2html: Improve example usage.
62123         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
62125 2009-11-06  Jim Meyering  <meyering@redhat.com>
62127         do-release-commit-and-tag: New module.
62128         Automate the release-commit and tag process.
62129         * build-aux/do-release-commit-and-tag: New script, from coreutils.
62130         * modules/do-release-commit-and-tag: New file.
62131         * MODULES.html.sh (Support for maintaining and releasing): Add it.
62133 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62135         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
62136         because test-select.c uses inet_pton.
62138 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62140         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
62141         GETADDRINFO_LIB.  Bump serial number.
62142         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
62143         Suggested by Eric Blake <ebb9@byu.net>.
62145 2009-11-05  Eric Blake  <ebb9@byu.net>
62147         strtod: detect darwin bug
62148         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
62149         Reported by Leo Davis.
62151         freopen-safer: new module
62152         * modules/freopen-safer: New module.
62153         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
62154         * lib/freopen-safer.c (freopen_safer): New file.
62155         * lib/stdio-safer.h (freopen_safer): New declaration.
62156         * lib/stdio--.h (freopen): New override.
62157         * MODULES.html.sh (File stream based Input/Output): Mention it.
62158         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
62159         freopen-safer module.
62160         * doc/posix-functions/stderr.texi (stderr): Likewise.
62161         * doc/posix-functions/stdin.texi (stdin): Likewise.
62162         * doc/posix-functions/stdout.texi (stdout): Likewise.
62163         * modules/freopen-safer-tests: New test.
62164         * tests/test-reopen-safer.c: New file.
62166 2009-11-05  Jim Meyering  <meyering@redhat.com>
62168         maint.mk: Prohibit inclusion of "close-stream.h" without use.
62169         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
62171 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62173         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
62175 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62177         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
62179 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62181         Fix link error.
62182         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
62183         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
62185 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62187         * tests/test-func.c: Also test value of __func__.
62189 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62191         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
62192         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
62194 2009-11-05  Bruno Haible  <bruno@clisp.org>
62196         Fix link error.
62197         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
62198         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
62199         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
62201 2009-11-05  Bruno Haible  <bruno@clisp.org>
62203         Tests for module 'inet_pton'.
62204         * modules/inet_pton-tests: New file.
62205         * tests/test-inet_pton.c: New file.
62207 2009-11-05  Bruno Haible  <bruno@clisp.org>
62209         Tests for module 'inet_ntop'.
62210         * modules/inet_ntop-tests: New file.
62211         * tests/test-inet_ntop.c: New file.
62213 2009-11-04  Eric Blake  <ebb9@byu.net>
62215         stdlib-safer: wrap all mkstemp variants
62216         * modules/mkostemp (configure.ac): Set witness.
62217         * modules/mkostemps (configure.ac): Likewise.
62218         * modules/mkstemps (configure.ac): Likewise.
62219         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
62220         (mkstemps_safer): Wrap more functions.
62221         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
62222         wrapping.
62223         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
62224         (mkstemps_safer): Implement the wrappers.
62226         mkstemps, mkostemps: new modules
62227         * modules/mkostemps: New module.
62228         * modules/mkstemps: Likewise.
62229         * lib/mkostemps.c (mkostemps): New file.
62230         * lib/mkstemps.c (mkstemps): Likewise.
62231         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
62232         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
62233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
62234         * modules/stdlib (Makefile.am): Substitute them.
62235         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
62236         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
62237         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
62238         * doc/gnulib.texi (Glibc stdlib.h): Include them.
62239         * MODULES.html.sh (File system functions): Mention them.
62241         tempname: resync from glibc
62242         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
62243         same values for __GT_FILE as glibc.  Abort even when assertions
62244         are disabled.
62245         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
62246         match its value otherwise.  Allow idempotent inclusion.
62247         * lib/mkdtemp.c (mkdtemp): Adjust caller.
62248         * lib/mkostemp.c (mkostemp): Likewise.
62249         * lib/mkstemp.c (mkstemp): Likewise.
62250         * lib/tmpfile.c (tmpfile): Likewise.
62251         * NEWS: Document this.
62253         utimens: fix use of futimens on older Linux
62254         * lib/utimens.c (fdutimens): Use updated, rather than original,
62255         timespec to avoid bug in older Linux kernel.
62256         Reported by Simon Josefsson.
62258 2009-11-04  Bruno Haible  <bruno@clisp.org>
62260         Make num_processors more flexible and consistent.
62261         * lib/nproc.h (enum nproc_query): New type.
62262         (num_processors): Add a 'query' argument.
62263         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
62264         (num_processors): Add a 'query' argument. Test the value of the
62265         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
62266         mingw, count the number of CPUs available for the current process.
62267         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
62268         Check for sched_getaffinity and sched_getaffinity_np.
62269         * modules/nproc (Depends-on): Add c-ctype, extensions.
62270         * NEWS: Mention the change.
62272 2009-11-03  Bruno Haible  <bruno@clisp.org>
62274         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
62276 2009-11-03  Jim Meyering  <meyering@redhat.com>
62278         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
62279         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
62280         if it is defined.
62282 2009-11-02  Eric Blake  <ebb9@byu.net>
62284         mktime, timegm: share common declaration
62285         * lib/mktime-internal.h: New file.
62286         * lib/mktime.c: Use it rather than open-coding a declaration.
62287         * lib/timegm.c: Likewise.
62288         * modules/mktime (Files): Ship it.
62289         * modules/timegm (Files): Likewise.
62290         Suggested by Bruno Haible.
62292         test-update-copyright: update test to match script changes
62293         * tests/test-update-copyright.sh: Avoid hard-coding perl
62294         location.  Don't update *.bak created by earlier runs.
62296 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62297             Simon Josefsson  <simon@josefsson.org>
62298             Bruno Haible  <bruno@clisp.org>
62300         Fix link error on Solaris 8.
62301         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
62302         also in libnsl. Define also INET_PTON_LIB.
62303         * modules/inet_pton (Link): New section.
62305 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62306             Bruno Haible  <bruno@clisp.org>
62308         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
62309         * modules/inet_ntop (Link): New section.
62310         Reported by Boyan Kasarov <bkasarov@gmail.com>.
62312 2009-11-02  Eric Blake  <ebb9@byu.net>
62314         maint: avoid compiler warnings in m4 macros
62315         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
62316         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
62318 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62320         * m4/pmccabe2html.m4: Remove file.
62321         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
62322         function.  Change maintainer.
62323         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
62324         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
62325         Courtès).
62327 2009-10-31  Eric Blake  <ebb9@byu.net>
62329         fseeko: fix m4 regression
62330         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
62331         regression from 2009-10-27.
62332         Reported by Ralf Wildenhues.
62334 2009-10-31  Jim Meyering  <meyering@redhat.com>
62336         inttostr: aesthetics and improved (compile-time) safety
62337         Define inttype_is_signed rather than inttype_is_unsigned,
62338         since the sole use is via "#if inttype_is_signed".
62339         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
62340         inttype_is_unsigned.
62341         * lib/offtostr.c (inttype_is_signed): Likewise.
62342         * lib/uinttostr.c (inttype_is_signed): Likewise.
62343         * lib/umaxtostr.c (inttype_is_signed): Likewise.
62344         * lib/inttostr.c (inttostr): Use verify to cross-check the
62345         inttype_is_signed value and the signedness of the actual type.
62346         * modules/inttostr (Depends-on): Add verify.
62348 2009-10-30  Eric Blake  <ebb9@byu.net>
62350         build: avoid compiler warnings
62351         * lib/fchmodat.c (lchmod): Mark unused variables.
62352         * lib/getopt.c (_getopt_initialize): Likewise.
62353         * lib/mktime.c (__mktime_internal): Provide prototype.
62354         * lib/inttostr.c (inttostr): Avoid compiler warning even with
62355         older gcc that do not understand #pragma GCC diagnostic.
62356         * lib/uinttostr.c (inttype_is_unsigned): Define.
62357         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
62359 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
62361         stat: fix compilation on AIX
62362         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
62363         only see struct stat64.
62365 2009-10-30  Eric Blake  <ebb9@byu.net>
62367         exclude: make more robust
62368         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
62369         rather than masking a coding bug.
62370         Suggested by Bruno Haible.
62372 2009-10-30  Jim Meyering  <meyering@redhat.com>
62374         perl scripts: remove #!/usr/bin/perl in favor of more portable...
62375         Rather than putting #!/usr/bin/perl on the first line,
62376         start with a variant of what's recommended by "man perlrun" that
62377         invokes the first "perl" program from your shell's search path.
62378         * build-aux/gitlog-to-changelog: Replace #!... as above.
62379         Add a "Local Variables" perl mode setting.
62380         Prompted by a patch from Ludovic Courtès.
62381         Improved by Eric Blake.
62382         * build-aux/useless-if-before-free: Likewise.
62383         * build-aux/announce-gen: Likewise.
62384         * build-aux/update-copyright: Likewise.
62386 2009-10-29  Eric Blake  <ebb9@byu.net>
62388         filenamecat-lgpl: adjust clients
62389         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
62390         filenamecat.
62391         * modules/renameat (Depends-on): Likewise.
62393         filenamecat: split into filenamecat-lgpl
62394         * modules/filenamecat-lgpl: New module.
62395         * modules/filenamecat (Files): Move library-safe files into
62396         filenamecat-lgpl.
62397         (Depends-on): Add filenamecat-lgpl.
62398         (configure.ac): Declare witness.
62399         * lib/filenamecat.h (file_name_concat): Only declare when using
62400         GPL module.
62401         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
62402         Move...
62403         * lib/filenamecat-lgpl.c: ...into new file.
62404         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
62405         (gl_FILE_NAME_CONCAT): Use it.
62406         * MODULES.html.sh (File system functions): Mention new module.
62408         argp: avoid memory leak
62409         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
62410         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
62411         base_name, since the latter malloc()s and can call exit().
62412         Leak introduced 2006-07-03.
62414         dirname-lgpl: adjust clients that don't need full dirname
62415         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
62416         * modules/filenamecat (Depends-on): Likewise.
62417         * modules/linkat (Depends-on): Likewise.
62418         * modules/mkancesdirs (Depends-on): Likewise.
62419         * modules/mkdir (Depends-on): Likewise.
62420         * modules/openat (Depends-on): Likewise.
62421         * modules/savewd (Depends-on): Likewise.
62422         * modules/rename (Depends-on): Likewise.
62423         (License): Relax license.
62424         * modules/mkdir-tests (Depends-on): Drop progname.
62425         (Makefile.am): Delete unneeded LDADD.
62426         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
62428         dirname: split into dirname-lgpl
62429         * modules/dirname-lgpl: New module.
62430         * modules/dirname (Files): Move library-safe files into
62431         dirname-lgpl.
62432         (Depends-on): Add dirname-lgpl.
62433         (configure.ac): Declare witness.
62434         * modules/double-slash-root (License): Relax license.
62435         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
62436         module.
62437         * lib/dirname.c (dir_len, mdir_name): Move...
62438         * lib/dirname-lgpl.c: ...into new file.
62439         * lib/basename.c (last_component, base_len): Move...
62440         * lib/basename-lgpl.c: ...into new file.
62441         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
62442         (gl_DIRNAME): Use it.
62443         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
62444         Mention new module.
62445         * modules/dirname-tests (Depends-on): Add progname.
62446         * tests/test-dirname.c (program_name): Delete.
62448         mkdir: make safe for libraries
62449         * modules/mkdir (Depends-on): Drop xalloc.
62450         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
62451         exit.
62453         tests: avoid some compiler warnings
62454         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
62455         literals.
62456         * tests/test-memchr.c (main): Avoid type mismatch.
62457         * tests/test-arpa_inet.c (main): Avoid unused parameters.
62458         * tests/test-base64.c (main): Likewise.
62459         * tests/test-getdelim.c (main): Likewise.
62460         * tests/test-gethostname.c (main): Likewise.
62461         * tests/test-getline.c (main): Likewise.
62462         * tests/test-netinet_in.c (main): Likewise.
62463         * tests/test-select.c (open_server_socket, main): Likewise.
62464         * tests/test-select-stdin.c (main): Likewise.
62465         * tests/test-sockets.c (main): Likewise.
62466         * tests/test-strsignal.c (main): Likewise.
62467         * tests/test-sys_select.c (main): Likewise.
62468         * tests/test-sys_socket.c (main): Likewise.
62469         * tests/test-u64.c (main): Likewise.
62470         * tests/test-xfprintf-posix.c (main): Likewise.
62471         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
62473         sockets: avoid compiler warning
62474         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
62476         maint: detect usage(1) and other suspicious exits
62477         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
62479 2009-10-29  Jim Meyering  <meyering@redhat.com>
62481         timespec: long-to-int truncation could make timespec_cmp malfunction
62482         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
62483         a multiple of 2^32 nanoseconds as no difference.
62485 2009-10-28  Jim Meyering  <meyering@redhat.com>
62487         fprintftime: wrap macro code argument in "do {...} while(0)"
62488         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
62489         cpy macro must be a statement that can be followed by a semicolon.
62490         Now that the else clause contains a comment and is hence longer
62491         than one line, I require curly braces.  That in turn requires
62492         that we wrap this code block in the standard do...while(0).
62494         fprintftime: remove stray semicolon from previous change
62495         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
62497         fprintftime: avoid a warning about ignored fwrite return value
62498         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
62499         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
62500         that is unsafe.
62501         * modules/fprintftime (Depends-on): Add ignore-value.
62503         exclude: avoid an unwarranted warning
62504         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
62506 2009-10-27  Eric Blake  <ebb9@byu.net>
62508         fseek: avoid compilation failure when fflush is replaced
62509         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
62510         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
62511         module is in use.
62512         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
62513         module is not in use; since REPLACE_FSEEK worked otherwise.
62514         (GNULIB_FTELLO): Likewise for ftell.
62515         Reported by Ian Beckwith and others.
62517 2009-10-27  Bruno Haible  <bruno@clisp.org>
62519         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
62520         Reported by Jim Meyering.
62522 2009-10-27  Jim Meyering  <jim@meyering.net>
62523             Bruno Haible  <bruno@clisp.org>
62525         Avoid warning despite dropping the return value of fwrite.
62526         * lib/unicodeio.c: Include ignore-value.h.
62527         (fwrite_success_callback): Explicitly ignore fwrite's return value.
62528         * modules/unicodeio (Depends-on): Add ignore-value.
62530 2009-10-26  Eric Blake  <ebb9@byu.net>
62532         areadlinkat: fix fallback path
62533         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
62534         pointer and zero.
62536 2009-10-22  Pádraig Brady  <P@draigBrady.com>
62538         Use a better IO block size for modern systems
62539         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
62540         * lib/md2.c: Likewise.
62541         * lib/md4.c: Likewise.
62542         * lib/md5.c: Likewise.
62543         * lib/sha1.c: Likewise.
62544         * lib/sha256.c: Likewise.
62545         * lib/sha512.c: Likewise.
62547 2009-10-22  Eric Blake  <ebb9@byu.net>
62549         tests: avoid several compiler warnings
62550         * tests/test-getcwd.c (main): Avoid buffer underflow.
62551         * tests/test-getdate.c (main): String literals are not safe with
62552         putenv, so use setenv.  Declare unused argument.
62553         * modules/getdate-tests (Depends-on): Add setenv.
62554         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
62555         problems with string literals in char *.
62556         * tests/test-hash.c (main): Avoid shadowing declaration.
62557         (insert_new): Treat string literals as char const *.
62558         * tests/test-getopt.h (test_getopt): Likewise.
62559         (getopt_loop): Alter types to minimize casting elsewhere.
62560         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
62561         (test_getopt_long_posix): Likewise.
62562         (do_getopt_long): Add wrapper to minimize casting.
62563         * tests/test-atexit.c (clear_temp_file): Use void.
62564         * tests/test-areadlink-with-size.c (main): Declare unused
62565         arguments.
62566         * tests/test-areadlink.c (main): Likewise.
62567         * tests/test-areadlinkat-with-size.c (main): Likewise.
62568         * tests/test-areadlinkat.c (main): Likewise.
62569         * tests/test-canonicalize-lgpl.c (main): Likewise.
62570         * tests/test-canonicalize.c (main): Likewise.
62571         * tests/test-dirent-safer.c (main): Likewise.
62572         * tests/test-dirname.c (main): Likewise.
62573         * tests/test-dup2.c (main): Likewise.
62574         * tests/test-fchdir.c (main): Likewise.
62575         * tests/test-fcntl-h.c (main): Likewise.
62576         * tests/test-fcntl-safer.c (main): Likewise.
62577         * tests/test-fdopendir.c (main): Likewise.
62578         * tests/test-fdutimensat.c (main): Likewise.
62579         * tests/test-fflush.c (main): Likewise.
62580         * tests/test-filenamecat.c (main): Likewise.
62581         * tests/test-filevercmp.c (main): Likewise.
62582         * tests/test-fopen-safer.c (main): Likewise.
62583         * tests/test-fopen.c (main): Likewise.
62584         * tests/test-fpending.c (main): Likewise.
62585         * tests/test-fpurge.c (main): Likewise.
62586         * tests/test-freading.c (main): Likewise.
62587         * tests/test-fstatat.c (main): Likewise.
62588         * tests/test-fsync.c (main): Likewise.
62589         * tests/test-futimens.c (main): Likewise.
62590         * tests/test-getndelim2.c (main): Likewise.
62591         * tests/test-gettimeofday.c (main): Likewise.
62592         * tests/test-getopt.c (main): Likewise.
62593         * tests/test-i-ring.c (main): Likewise.
62594         * tests/test-inttypes.c (main): Likewise.
62595         * tests/test-link.c (main): Likewise.
62596         * tests/test-lstat.c (main): Likewise.
62597         * tests/test-math.c (main): Likewise.
62598         * tests/test-md5.c (main): Likewise.
62599         * tests/test-memchr2.c (main): Likewise.
62600         * tests/test-memrchr.c (main): Likewise.
62601         * tests/test-mkdir.c (main): Likewise.
62602         * tests/test-mkdirat.c (main): Likewise.
62603         * tests/test-mkfifoat.c (main): Likewise.
62604         * tests/test-open.c (main): Likewise.
62605         * tests/test-openat-safer.c (main): Likewise.
62606         * tests/test-openat.c (main): Likewise.
62607         * tests/test-quotearg.c (main): Likewise.
62608         * tests/test-rawmemchr.c (main): Likewise.
62609         * tests/test-readlink.c (main): Likewise.
62610         * tests/test-remove.c (main): Likewise.
62611         * tests/test-rename.c (main): Likewise.
62612         * tests/test-renameat.c (main): Likewise.
62613         * tests/test-rmdir.c (main): Likewise.
62614         * tests/test-sha1.c (main): Likewise.
62615         * tests/test-signal.c (main): Likewise.
62616         * tests/test-sigaction.c (main): Likewise.
62617         * tests/test-stat.c (main): Likewise.
62618         * tests/test-stat-time.c (main): Likewise.
62619         * tests/test-stddef.c (main): Likewise.
62620         * tests/test-stdint.c (main): Likewise.
62621         * tests/test-stdio.c (main): Likewise.
62622         * tests/test-stdlib.c (main): Likewise.
62623         * tests/test-strchrnul.c (main): Likewise.
62624         * tests/test-strerror.c (main): Likewise.
62625         * tests/test-string.c (main): Likewise.
62626         * tests/test-strtod.c (main): Likewise.
62627         * tests/test-strverscmp.c (main): Likewise.
62628         * tests/test-symlink.c (main): Likewise.
62629         * tests/test-symlinkat.c (main): Likewise.
62630         * tests/test-sys_stat.c (main): Likewise.
62631         * tests/test-sys_time.c (main): Likewise.
62632         * tests/test-time.c (main): Likewise.
62633         * tests/test-unistd.c (main): Likewise.
62634         * tests/test-unlink.c (main): Likewise.
62635         * tests/test-unlinkat.c (main): Likewise.
62636         * tests/test-utimens.c (main): Likewise.
62637         * tests/test-utimensat.c (main): Likewise.
62638         * tests/test-version-etc.c (main): Likewise.
62639         * tests/test-wchar.c (main): Likewise.
62640         * tests/test-wctype.c (main): Likewise.
62641         * tests/test-xprintf-posix.c (main): Likewise.
62642         * tests/test-posixtm.c (main): Likewise.
62643         (STREQ): Delete unused macro.
62644         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
62645         shadowed variables.
62646         * tests/test-memchr.c (main): Likewise.
62648 2009-10-21  Eric Blake  <ebb9@byu.net>
62650         areadlinkat: avoid failure on older glibc
62651         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
62652         rather than mis-comparing 0 against FUNC_RESULT of char*.
62654 2009-10-21  Bruno Haible  <bruno@clisp.org>
62656         * modules/stpncpy (License): Relicense under LGPLv2+.
62657         Reported by David Lutterkort <lutter@redhat.com>.
62659 2009-10-20  Eric Blake  <ebb9@byu.net>
62661         utimensat: work around Solaris 9 bug
62662         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
62663         has trailing slash bugs.
62664         * tests/test-lutimens.h (test_lutimens): Enhance test.
62665         * tests/test-utimens.h (test_utimens): Likewise.
62666         * doc/posix-functions/utime.texi (utime): Enhance documentation.
62667         * doc/posix-functions/utimes.texi (utimes): Likewise.
62668         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
62669         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
62670         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
62671         * doc/posix-functions/futimens.texi (futimens): Likewise.
62673         fdutimensat: new module
62674         * modules/fdutimensat: New file.
62675         * lib/fdutimensat.c (fdutimensat): Likewise.
62676         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
62677         * MODULES.html.sh (File system functions): Mention module.
62678         * modules/fdutimensat-tests: New test.
62679         * tests/test-fdutimensat.c: Likewise.
62681         doc: regenerate INSTALL
62682         * doc/INSTALL: Reflect recent autoconf update.
62683         * doc/INSTALL.ISO: Likewise.
62684         * doc/INSTALL.UTF-8: Likewise.
62686 2009-10-20  Pádraig Brady  <P@draigBrady.com>
62688         acl: warn if ACL support is not detected
62689         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
62691 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
62693         * lib/nproc.h: Add extern "C" block for C++.
62695 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
62696             Bruno Haible  <bruno@clisp.org>
62698         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
62699         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
62700         * doc/posix-functions/isalpha.texi: Likewise.
62701         * doc/posix-functions/isblank.texi: Likewise.
62702         * doc/posix-functions/iscntrl.texi: Likewise.
62703         * doc/posix-functions/isdigit.texi: Likewise.
62704         * doc/posix-functions/isgraph.texi: Likewise.
62705         * doc/posix-functions/islower.texi: Likewise.
62706         * doc/posix-functions/isprint.texi: Likewise.
62707         * doc/posix-functions/ispunct.texi: Likewise.
62708         * doc/posix-functions/isspace.texi: Likewise.
62709         * doc/posix-functions/isupper.texi: Likewise.
62710         * doc/posix-functions/isxdigit.texi: Likewise.
62712 2009-10-18  Bruno Haible  <bruno@clisp.org>
62714         Tests for module 'isblank'.
62715         * modules/isblank-tests: New file.
62716         * tests/test-isblank.c: New file.
62718         New module 'isblank'.
62719         * lib/isblank.c: New file.
62720         * m4/isblank.m4: New file.
62721         * modules/isblank: New file.
62722         * doc/posix-functions/isblank.texi: Mention the new module.
62724 2009-10-18  Bruno Haible  <bruno@clisp.org>
62726         New module 'ctype'.
62727         * lib/ctype.in.h: New file.
62728         * m4/ctype.m4: New file.
62729         * modules/ctype: New file.
62730         * doc/posix-headers/ctype.texi: Mention the new module.
62732 2009-10-18  Jim Meyering  <meyering@redhat.com>
62734         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
62735         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
62736         right after its initialization, rather than farther down.
62737         Keeping these in close proximity makes it easier to ensure
62738         that each such variable is initialized.  E.g.,
62740             LIB_CLOCK_GETTIME=
62741             AC_SUBST([LIB_CLOCK_GETTIME])
62743         This change also increments these serial numbers.
62744         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
62745         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62746         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62748 2009-10-18  Bruno Haible  <bruno@clisp.org>
62750         Don't let environment variables perturb build.
62751         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
62752         (gl_PREREQ_GETHRXTIME): ... not here.
62754 2009-10-18  Bruno Haible  <bruno@clisp.org>
62756         Avoid symlink attack in localcharset module.
62757         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
62758         (O_NOFOLLOW): Define fallback.
62759         (get_charset_aliases): Don't open the file if it is a symbolic link.
62760         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
62761         gl_FCNTL_H.
62762         (gl_FCNTL_H): Require it.
62763         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
62764         * modules/localcharset (Files): Add m4/fcntl_h.m4.
62765         Reported by Fergal Glynn <fglynn@veracode.com>.
62767 2009-10-18  Bruno Haible  <bruno@clisp.org>
62769         Implement nproc for mingw.
62770         * lib/nproc.c: Include <windows.h>
62771         (num_processors): On native Windows platforms, try GetSystemInfo.
62773 2009-10-18  Bruno Haible  <bruno@clisp.org>
62775         Implement nproc for IRIX.
62776         * lib/nproc.c: Include <sys/sysmp.h>.
62777         (num_processors): On IRIX systems, try sysmp.
62778         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
62780 2009-10-18  Bruno Haible  <bruno@clisp.org>
62782         Implement nproc for HP-UX.
62783         * lib/nproc.c: Include <sys/pstat.h>
62784         (num_processors): On HP-UX systems, try pstat_getdynamic.
62785         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
62786         pstat_getdynamic.
62788 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
62789             Bruno Haible  <bruno@clisp.org>
62791         Implement nproc for NetBSD, OpenBSD.
62792         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
62793         (ARRAY_SIZE): New macro.
62794         (num_processors): On BSD systems, try sysctl of HW_NCPU.
62795         * m4/nproc.m4: New file.
62796         * modules/nproc (Files): Add m4/nproc.m4.
62797         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
62798         (Makefile.am): Instead, augment lib_SOURCES.
62800 2009-10-18  Bruno Haible  <bruno@clisp.org>
62802         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
62803         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
62804         sys/param.h.
62806 2009-10-16  Eric Blake  <ebb9@byu.net>
62808         utimensat: new module
62809         * modules/utimensat: New file.
62810         * lib/utimensat.c (utimensat): Likewise.
62811         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
62812         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
62813         so we can work around Linux bugs.
62814         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
62815         * modules/sys_stat (Makefile.am): Substitute them.
62816         * lib/sys_stat.in.h (utimensat): Declare it.
62817         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
62818         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
62819         * modules/utimensat-tests: New test.
62820         * tests/test-utimensat.c: Likewise.
62822         utimens: let lutimens work on non-symlinks
62823         * lib/utimens.c (lutimens): Fall back to utimens rather than
62824         failing with ENOSYS, when file is not a symlink.
62825         (utimens): Reduce redirection.
62826         * tests/test-lutimens.h (test_lutimens): Update test to cover
62827         non-symlinks.
62828         * tests/test-utimens.h (test_utimens): Update test to cover
62829         symlinks.
62830         * tests/test-utimens.c (main): Update caller.
62832         utimens: cache whether utimensat syscall works
62833         * lib/utimens.c (utimensat_works_really): New cache variable.
62834         (fdutimens, lutimens): Use it to avoid failing syscall.
62836         test-stat-time, test-utimens: improve portability
62837         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
62838         ext4 on alpha, and for cygwin.
62839         * tests/test-utimens-common.h: New file.
62840         (nap): Factor delays into single function.
62841         * tests/test-lutimens.h (test_lutimens): Use new header.
62842         * tests/test-futimens.h (test_futimens): Likewise.
62843         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
62844         timestamps to occur from same machine, as was done previously for
62845         test_utimens.
62846         * modules/utimens-tests (Files): Ship new file.
62847         * modules/futimens-tests (Files): Likewise.
62848         Reported in part by Jim Meyering.
62850         sys_stat: sort replacement declarations
62851         * lib/sys_stat.in.h: Sort declarations.
62852         * lib/futimens.c (futimens): Fix typo.
62854 2009-10-15  Jim Meyering  <meyering@redhat.com>
62856         don't let environment settings perturb build
62857         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
62858         could cause a configure-time and/or build-time malfunction.
62859         Typically, a configure-time function-in-library test is performed
62860         via code like this:
62862           LIB_VAR=
62863           AC_SUBST([LIB_VAR])
62864           prefix_saved_LIBS=$LIBS
62865             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
62866                        [test "$ac_cv_search_FUNC" = "none required" ||
62867                         LIB_VAR=$ac_cv_search_FUNC])
62868           LIBS=$prefix_saved_LIBS
62870         However, in each of the files affected by this change, the LIB_VAR=
62871         initialization was omitted.  Thus, when set in the environment, its
62872         value would propagate into generated Makefiles when FUNC is not found
62873         in LIB_NAME.
62874         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
62875         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62876         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62878 2009-10-14  Eric Blake  <ebb9@byu.net>
62880         fchdir: avoid infinite recursion in mingw
62881         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
62882         recursing.
62884         test-stat-time: port to mingw
62885         * tests/test-stat-time.c (force_unlink): Return a value.
62886         (test_ctime) [W32]: Fix compilation error.
62887         (nap): Don't call usleep with too large an argument.  Use
62888         force_unlink.
62889         * doc/pastposix-functions/usleep.texi (usleep): Document the
62890         portability issue.
62892 2009-10-13  Jim Meyering  <meyering@redhat.com>
62894         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
62895         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
62896         * modules/pipe-filter-ii: Likewise.
62897         * modules/sys_socket-tests: Likewise.
62898         * modules/tsearch-tests: Likewise.
62899         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
62900         (check): Depend on it.
62902 2009-10-12  Eric Blake  <ebb9@byu.net>
62904         utimens-tests: port to NFS file systems
62905         * tests/test-utimens.h (test_utimens): Refactor utimecmp
62906         comparisons to avoid spurious failures from timestamp drift
62907         between NFS machines.
62909 2009-10-12  Eric Blake  <ebb9@byu.net>
62911         stat-time-tests: minor cleanups
62912         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
62913         * tests/test-stat-time.c (nap): Separate assignment from call.
62914         Suggested by Paolo Bonzini and Bruno Haible.
62916         sys_stat: guarantee struct timespec
62917         * lib/sys_stat.in.h (includes): Always include <time.h>
62918         * modules/sys_stat (Depends-on): Add time.
62919         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
62920         mode_t permission values.
62921         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
62922         get at subsecond timestamps.
62924 2009-10-10  Eric Blake  <ebb9@byu.net>
62926         futimens: new module
62927         * modules/futimens: New file.
62928         * lib/futimens.c (futimens): Likewise.
62929         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
62930         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
62931         we can work around Linux bugs.
62932         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
62933         * modules/sys_stat (Makefile.am): Substitute them.
62934         * lib/sys_stat.in.h (futimens): Declare it.
62935         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
62936         * doc/posix-functions/futimens.texi (futimens): Likewise.
62937         * modules/futimens-tests: New test.
62938         * tests/test-futimens.c: Likewise.
62940         utimens: introduce fdutimens
62941         * lib/utimens.h (fdutimens): New prototype.
62942         * lib/utimens.c (gl_futimens): Move guts...
62943         (fdutimens): ...to new interface.
62944         * tests/test-utimens.c (do_fdutimens): Use it.
62946         utimens: add UTIME_NOW and UTIME_OMIT support
62947         * lib/utimens.c (validate_timespec, update_timespec): New helper
62948         functions.
62949         (gl_futimens, lutimens): Use them.
62950         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
62951         stdbool, sys_stat.
62952         (Link): Mention resulting library dependency.
62953         * modules/utimecmp (Link): Likewise.
62954         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
62955         (Makefile.am): Pick up library dependency.
62956         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
62957         definition.
62958         * tests/test-sys_stat.c: Test the definitions.
62959         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
62960         * NEWS: Document library dependency.
62962         utimecmp: support symlink timestamps
62963         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
62964         hashing when possible.  Use pathconf when available.
62965         (SYSCALL_RESOLUTION): Recognize tighter resolution.
62966         * modules/utimecmp (Depends-on): Add lstat.
62968         utimens: add lutimens interface
62969         * lib/utimens.c (lutimens): New function.
62970         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
62971         * lib/utimens.h (lutimens): Declare new interface.
62972         * tests/test-utimens.c (main): Enhance test.
62973         * tests/test-lutimens.h (test_lutimens): New file.
62974         * modules/utimens-tests (Files): Distribute it.
62975         (Depends-on): Add symlink.
62976         (configure.ac): Check for usleep.
62978         utimens: validate futimens usage
62979         * lib/utimens.c (gl_futimens): Require valid fd up front, using
62980         fewer syscalls on failure later on.  Avoid compiler warning on
62981         mingw.
62982         * modules/utimens (Depends-on): Add dup2.
62984         utimens: add test
62985         * modules/utimens-tests: New test.
62986         * tests/test-utimens.h: New file.
62987         * tests/test-futimens.h: Likewise.
62988         * tests/test-utimens.c: Likewise.
62990         doc: mention timestamp portability issues
62991         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
62992         instead.
62993         * doc/posix-functions/utime.texi (utime): Likewise.
62994         * doc/posix-functions/utimes.texi (utimes): Likewise.
62995         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
62996         instead.
62997         * doc/posix-functions/futimens.texi (futimens): Mention utimens
62998         module.
62999         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
63000         Mention weakness with symlink timestamps.
63001         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
63002         to utimensat/futimens instead.
63003         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
63005         test-dup2: enhance test
63006         * tests/test-dup2.c (main): Also check AT_FDCWD.
63008         test-stat-time: avoid more spurious failures
63009         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
63010         xfs; and avoid race if the two timestamps cross quantization edge.
63012         relocatable: prefer 'file system' over 'filesystem'
63013         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
63014         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
63015         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
63016         * doc/relocatable.texi (Enabling Relocatability): Likewise.
63017         * lib/relocatable.c (compute_curr_prefix): Likewise.
63019 2009-10-10  Jim Meyering  <meyering@redhat.com>
63021         stat-time-tests: check for the usleep function
63022         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
63024 2009-10-10  Bruno Haible  <bruno@clisp.org>
63026         * modules/xnanosleep: Put the Link section after the Include section.
63028 2009-10-09  Eric Blake  <ebb9@byu.net>
63030         dup2: work around FreeBSD 6.1 bug
63031         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
63032         * doc/posix-functions/dup2.texi (dup2): Document it.
63033         Reported by Nelson H. F. Beebe and Jim Meyering.
63035         test-stat-time: port to buggy NFS clients
63036         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
63037         (test_ctime): Also skip test if mtime and ctime are skewed.
63039         maint: prefer 'file system' over 'filesystem'
63040         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
63041         * doc/posix-functions/lstat.texi (lstat): Likewise.
63042         * lib/file-has-acl.c (file_has_acl): Likewise.
63043         * lib/fwriteerror.c [TEST]: Likewise.
63044         * tests/test-areadlink.h (test_areadlink): Likewise.
63045         * tests/test-areadlinkat-with-size.c (main): Likewise.
63046         * tests/test-areadlinkat.c (main): Likewise.
63047         * tests/test-canonicalize-lgpl.c (main): Likewise.
63048         * tests/test-canonicalize.c (main): Likewise.
63049         * tests/test-fstatat.c (main): Likewise.
63050         * tests/test-linkat.c (main): Likewise.
63051         * tests/test-lstat.h (test_lstat_func): Likewise.
63052         * tests/test-mkdir.h (test_mkdir): Likewise.
63053         * tests/test-readlink.h (test_readlink): Likewise.
63054         * tests/test-remove.c (main): Likewise.
63055         * tests/test-rename.h (test_rename): Likewise.
63056         * tests/test-renameat.c (main): Likewise.
63057         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63058         * tests/test-symlink.h (test_symlink): Likewise.
63059         * tests/test-symlinkat.c (main): Likewise.
63060         * tests/test-unlink.h (test_unlink_func): Likewise.
63061         * tests/test-unlinkat.c (main): Likewise.
63063         maint: make realtime library usage explicit
63064         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
63065         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
63066         * modules/settime (Link): Likewise.
63067         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
63069         test-stat-time: speed up execution
63070         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
63071         warning on mingw.
63072         (nap): New helper function.
63073         (prepare_test): Use it to reduce sleep time.
63074         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
63075         execution.
63076         * modules/stat-time-tests (configure.ac): Check for usleep.
63078 2009-10-09  Jim Meyering  <meyering@redhat.com>
63080         selinux-h: always use getfilecon wrappers
63081         * lib/getfilecon.c: New file.
63082         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
63083         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
63084         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
63085         (fgetfilecon): Provide a stub.
63086         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
63087         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
63088         file unconditionally.
63089         When <selinux/selinux.h> is found, arrange to use wrappers.
63090         * modules/selinux-h (Files): Add getfilecon.c.
63091         (Makefile.am): Substitute include-next-related bits
63092         into the now-always-generated selinux/selinux.h file.
63093         * doc/glibc-functions/lgetfilecon.texi: New file.
63094         * doc/glibc-functions/fgetfilecon.texi: New file.
63095         * doc/glibc-functions/getfilecon.texi: New file.
63096         * doc/glibc-functions/getfilecon-desc.texi: New file.
63097         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
63098         which to pull in the new files.
63099         * MODULES.html.sh (Misc): Add selinux-h.
63101 2009-10-08  Jim Meyering  <meyering@redhat.com>
63103         unistd: fix comment typo
63104         * lib/unistd.in.h (euidaccess): Fix a comment typo.
63106 2009-10-08  Eric Blake  <ebb9@byu.net>
63108         areadlink: use SIZE_MAX consistently
63109         * modules/areadlink (Depends-on): Add stdint.
63110         * modules/areadlink-with-size (Depends-on): Likewise.
63111         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
63112         gives NULL; drop sys/types, since unistd gives size_t; and add
63113         stdint for SIZE_MAX.
63114         (SIZE_MAX): Rely on headers.
63115         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
63116         and add stdint.
63117         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
63118         (SIZE_MAX): Likewise.
63119         (INITIAL_BUF_SIZE): Turn into enum.
63120         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
63122 2009-10-08  Jim Meyering  <meyering@redhat.com>
63124         areadlinkat: avoid compilation failure
63125         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
63126         Fix typo in comment.
63128 2009-10-07  Eric Blake  <ebb9@byu.net>
63130         areadlinkat-with-size: new module
63131         * modules/areadlinkat-with-size: New module.
63132         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
63133         * lib/areadlink.h (areadlinkat): Declare it.
63134         * MODULES.html.sh (File system functions): Mention it.
63135         * modules/areadlinkat-with-size-tests: New test.
63136         * tests/test-areadlinkat-with-size.c: New file.
63138         xreadlinkat: new module
63139         * modules/xreadlinkat: New module.
63140         * lib/xreadlinkat.c (xreadlinkat): New file.
63141         * lib/xreadlink.h (xreadlinkat): Declare it.
63142         * MODULES.html.sh (File system functions): Mention it.
63144         areadlinkat: new module
63145         * lib/at-func.c (FUNC_FAIL): New define.
63146         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
63147         * modules/areadlinkat: New module.
63148         * lib/linkat.c (areadlinkat): Move...
63149         * lib/areadlinkat.c (areadlinkat): ...to new file.
63150         * lib/areadlink.h (areadlinkat): Declare it.
63151         * modules/linkat (Depends-on): Add areadlinkat.
63152         * MODULES.html.sh (File system functions): Mention it.
63153         * modules/areadlinkat-tests: New test.
63154         * tests/test-areadlinkat.c: New file.
63156         areadlink, areadlink-with-size: add tests
63157         * modules/areadlink-tests: New test.
63158         * modules/areadlink-with-size-tests: Likewise.
63159         * tests/test-areadlink.h: New file.
63160         * tests/test-areadlink.c: Likewise.
63161         * tests/test-areadlink-with-size.c: Likewise.
63163         maint: minor cleanups
63164         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
63165         _UNUSED_PARAMETER_ instead.
63166         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
63167         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
63168         * modules/linkat-tests (Files): Distribute test-link.h.
63170         openat, utimens: whitespace cleanup
63171         * lib/openat.c: Prefer space throughout, rather than mix of 8
63172         spaces vs. tabs.
63173         * lib/at-func.c: Likewise.
63174         * lib/utimens.c: Likewise.
63176         openat: avoid using wrong fd
63177         * lib/openat.c (openat_permissive): Reject user's fd if saving the
63178         working directory chooses same fd.
63179         * lib/at-func.c (AT_FUNC_NAME): Likewise.
63181         mkdir, mkdirat: fix cygwin 1.5.x bug
63182         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
63183         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
63184         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
63185         bug.
63186         (gl_PREREQ_MKDIR): Delete unused macro.
63187         * modules/mkdir (Files): Track file rename.
63188         (configure.ac): Update macro name.
63189         * modules/openat (Depends-on): Add mkdir.
63190         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
63192         mkdir, mkdirat: add tests
63193         * modules/mkdir-tests: New test.
63194         * tests/test-mkdir.h: New file.
63195         * tests/test-mkdir.c: Likewise.
63196         * tests/test-mkdirat.c: Likewise.
63197         * modules/openat-tests (Files): Add new files.
63198         (Makefile.am): Run new test.
63200 2009-10-06  Eric Blake  <ebb9@byu.net>
63202         doc: tweak *at function documentation
63203         * doc/posix-functions/faccessat.texi (faccessat): Mention
63204         known issue with replacement.
63205         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
63206         * doc/posix-functions/linkat.texi (linkat): Likewise.
63207         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
63208         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
63209         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63210         * doc/posix-functions/renameat.texi (renameat): Likewise.
63211         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
63213         openat: fix GNU/Hurd bug in unlinkat
63214         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
63215         broken.
63216         * doc/posix-functions/unlink.texi (unlink): Document this.
63217         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
63219         fdopendir: fix GNU/Hurd bug
63220         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
63221         allowing non-directory fds.
63222         * lib/fdopendir.c (rpl_fdopendir): Work around it.
63223         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
63224         * modules/dirent (Makefile.am): Substitute it.
63225         * lib/dirent.in.h (fdopendir): Declare replacement.
63226         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
63227         * tests/test-fdopendir.c (main): Test something other than
63228         /dev/null, since on Hurd that behaves like a directory.
63230         test-symlink: port to GNU/Hurd
63231         * tests/test-symlink.h (test_symlink): Relax expected errno.
63233         doc: tweak more cygwin information
63234         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
63235         now compatible with glibc.
63236         * doc/posix-functions/getopt.texi (getopt): Likewise.
63238         getopt-gnu: add another test
63239         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
63240         guarantee behavior relied on by m4.
63241         * tests/test-getopt.c (main): Use it.
63242         * modules/getopt-posix-tests (Depends-on): Add setenv.
63243         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
63245         getopt: fix compilation on darwin
63246         * lib/getopt.in.h (includes): Leave breadcrumbs during system
63247         include.
63248         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
63249         Reported by Ludovic Courtès.
63251 2009-10-06  Bruno Haible  <bruno@clisp.org>
63253         * modules/size_max (Description): Discourage its use.
63254         Reported by Simon Josefsson.
63256 2009-10-06  Jim Meyering  <meyering@redhat.com>
63258         linkat: avoid compilation failure
63259         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
63261 2009-10-05  Eric Blake  <ebb9@byu.net>
63263         linkat: support Linux 2.6.17
63264         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
63265         linkat on Linux, but allow cache variable override.
63266         * lib/linkat.c (rpl_linkat): Define override.
63267         * modules/linkat (Depends-on): Add symlinkat.
63268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
63269         * modules/unistd (Makefile.am): Substitute it.
63270         * lib/unistd.in.h (linkat): Declare replacement.
63271         Reported by Pádraig Brady.
63273         quotearg: port test to systems with C.UTF-8 locale
63274         * tests/test-quotearg.c (struct result_strings): Add another
63275         member, differentiating between C.ASCII and C.UTF-8 handling.
63276         (compare_strings): Add parameter.
63277         (main): Adjust all callers.
63279         getopt: avoid clash with FreeBSD _getopt_internal
63280         * lib/getopt.in.h (_getopt_internal): Override the name.
63281         * lib/getopt_int.h (includes): Pick up any overrides.
63282         Reported by Reuben Thomas.
63284         hash: allow C89 compilation
63285         * lib/hash.c (check_tuning): Move declaration before statement.
63286         Reported by Reuben Thomas.
63288 2009-10-05  Karl Berry  <karl@gnu.org>
63290         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
63292 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
63293             Bruno Haible  <bruno@clisp.org>
63295         * lib/uname.c (uname): Use a table-driven algorithm to compute
63296         Windows NT versions.
63298 2009-10-04  Bruno Haible  <bruno@clisp.org>
63300         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
63301         program_invocation_short_name.
63302         * modules/progname (configure.ac): Test for presence of
63303         program_invocation_short_name.
63304         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
63306 2009-10-04  Bruno Haible  <bruno@clisp.org>
63308         * lib/progname.c (set_program_name): Fix comment.
63309         Reported by Jim Meyering.
63311 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63312             Bruno Haible  <bruno@clisp.org>
63314         * lib/uname.c: Include <string.h>.
63315         (uname): Do only one call to GetVersionEx in the common case.
63317 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63318             Bruno Haible  <bruno@clisp.org>
63320         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
63321         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
63322         (uname): Add support for Windows CE and various non-x86 CPU types.
63324 2009-10-03  Bruno Haible  <bruno@clisp.org>
63326         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
63327         invocation to tests/configure.ac.
63328         Reported by Ian Beckwith <ianb@erislabs.net>.
63330 2009-10-02  Eric Blake  <ebb9@byu.net>
63332         fchdir: avoid compiler warning
63333         * lib/fchdir.c (canonicalize_file_name)
63334         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
63336         test-open: support mingw errno values
63337         * tests/test-open.h (test_open): Relax test.
63338         * tests/test-fopen.h (test_fopen): Likewise.
63339         * tests/test-openat-safer.c (main): Likewise.
63341         open: fix opening directory on mingw
63342         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
63344         test-open: on GNU/Hurd, /dev/null is a directory
63345         * tests/test-fopen.h (main): Rename...
63346         (test_fopen): ...to this.  Use a guaranteed non-directory when
63347         confirming open behavior on trailing slash.
63348         * tests/test-openat-safer.c (main): Likewise.
63349         * tests/test-open.h (main): Likewise....
63350         (test_open): ...to this.
63351         * tests/test-fopen.c (main): Adjust caller.
63352         * tests/test-fopen-safer.c (main): Likewise.
63353         * tests/test-open.c (main): Likewise.
63354         * tests/test-fcntl-safer.c (main): Likewise.
63355         Reported by Samuel Thibault.
63357         rename, fchdir: don't ignore chdir failure
63358         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
63359         * lib/rename.c (rpl_rename) [W32]: Likewise.
63360         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
63361         an empty destination directory if source cannot be renamed,
63362         although there is still possibility for failure.
63363         * doc/posix-functions/rename.texi (rename): Document the race.
63364         Reported by Jim Meyering.
63366         maint: cleanup whitespace in recent commits
63367         * lib/rename.c (rpl_rename): Remove tabs.
63368         * tests/test-link.h (test_link): Likewise.
63369         * lib/fchdir.c (get_name): Likewise.
63370         Reported by Jim Meyering.
63372 2009-10-02  Ben Pfaff  <blp@gnu.org>
63374         relocatable-prog-wrapper: Add missing dependency on
63375         double-slash-root.
63376         * modules/relocatable-prog-wrapper: Add dependency.
63377         Reported by Ian Beckwith <ianb@erislabs.net>.
63379 2009-10-02  Eric Blake  <ebb9@byu.net>
63381         renameat: fix Solaris bugs
63382         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
63383         needed fixing.
63384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
63385         * modules/stdio (Makefile.am): Substitute it.
63386         * lib/stdio.in.h (renameat): Declare replacement.
63387         * lib/renameat.c (rpl_renameat): Implement fix.
63389         renameat: new module
63390         * modules/renameat: New file.
63391         * lib/renameat.c (renameat): Likewise.
63392         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
63393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
63394         * modules/stdio (Makefile.am): Substitute them.
63395         * lib/stdio.in.h (renameat): Declare it.
63396         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63397         * doc/posix-functions/renameat.texi (renameat): Likewise.
63398         * modules/renameat-tests: New test.
63399         * tests/test-renameat.c: Likewise.
63401         rename: fix mingw bugs
63402         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
63403         directory overwrite bugs.
63405         rename: fix another cygwin 1.5 bug
63406         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
63407         checks.
63408         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
63409         unnecessary cygwin workarounds.  Also work around bug with moving
63410         full directory onto an empty one.
63411         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
63413         rename-dest-slash: merge into rename module
63414         * modules/rename-dest-slash (Status): Mark obsolete.
63415         (Depends-on): Add rename.
63416         (Files): Let rename do it all.
63417         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
63418         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
63419         * m4/rename-dest-slash.m4: ...so this file can be deleted.
63420         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
63421         * lib/rename.c (rpl_rename): Update comments.
63423         rename: fix cygwin 1.5.x bugs
63424         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
63425         * lib/rename.c (rpl_rename): Work around them.
63426         * modules/rename (Depends-on): Add same-inode.
63428         rename: fix Solaris 10 bug
63429         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63430         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
63431         was the only bug.
63433         rename: fix Solaris 9 bug
63434         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
63435         on non-directory.  Avoid calling exit.
63436         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
63437         strdup.
63438         * modules/rename-tests (Depends-on): Drop lstat.
63439         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63440         (gl_PREREQ_RENAME): Delete unused macro.
63442         rename-dest-slash: fix NetBSD bug
63443         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
63444         links.
63445         * modules/rename-dest-slash (Depends-on): Add same-inode.
63447         rename-tests: new test, exposes several platform bugs
63448         * modules/rename-tests: New file.
63449         * tests/test-rename.h: Likewise.
63450         * tests/test-rename.c: Likewise.
63451         * doc/posix-functions/rename.texi (rename): Improve documentation,
63452         including bugs that will eventually be fixed in gnulib.
63454 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
63456         * lib/uname.c: Include <stdlib.h>
63457         (uname): Assume version info is available.
63459 2009-10-02  Jim Meyering  <meyering@redhat.com>
63461         gnu-web-doc-update: correct --help output
63462         * build-aux/gnu-web-doc-update: Make --help output relevant.
63464         gnu-web-doc-update: add standard options
63465         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
63467         gnu-web-doc-update: New module.
63468         Use this script to automatically update the on-line web documentation
63469         for your GNU project at http://www.gnu.org/software/$pkg/manual/
63470         * modules/gnu-web-doc-update: New file, from coreutils.
63471         * build-aux/gnu-web-doc-update: New script.
63473 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
63475         link: LoadLibrary is not needed.
63476         * lib/link.c: Use GetModuleHandle.
63478 2009-10-01  Eric Blake  <ebb9@byu.net>
63480         getopt: bump serial number
63481         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
63482         change.
63484         tests: tighten link, rmdir, and remove tests
63485         * tests/test-link.h (includes): No need to use <config.h> here.
63486         Clean up if directory hard link was created, otherwise test for
63487         trailing '.'.
63488         * tests/test-linkat.c (main): Simplify.
63489         * tests/test-remove.c (main): Enhance test for trailing '.'.
63490         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63492 2009-10-01  Jim Meyering  <meyering@redhat.com>
63494         maint.mk: requiring "make major" was annoying, for a "minor" release.
63495         What is intended is "stable", to contrast with alpha and beta,
63496         so require "make stable", not "make major".
63497         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
63498         (get_tool_versions): Likewise.
63499         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
63501 2009-09-30  Ben Pfaff  <blp@gnu.org>
63503         Fix broken build of replacement for Windows tmpfile().
63504         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
63505         flags argument added along with the 'mkostemp' module.
63507 2009-09-28  Bruno Haible  <bruno@clisp.org>
63509         Avoid identifier clash with POSIX function 'remove' defined as a macro.
63510         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
63511         to 'remove_elt'.
63512         (gl_list_remove): Update.
63513         * lib/gl_list.c (gl_list_remove): Update.
63514         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
63515         to 'remove_elt'.
63516         (gl_oset_remove): Update.
63517         * lib/gl_list.c (gl_oset_remove): Update.
63518         Reported by Eric Blake.
63520 2009-09-28  Eric Blake  <ebb9@byu.net>
63522         doc: mention yet more cygwin 1.7 status
63523         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
63524         cygwin.
63525         * doc/glibc-functions/execvpe.texi (execvpe): New file.
63526         * doc/gnulib.texi (Glibc unistd.h): Mention it.
63528         argp: fix test failure
63529         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
63530         that are not upper-case.  Pass correct range to tolower.
63532 2009-09-27  Jim Meyering  <meyering@redhat.com>
63534         test-yesno: work around sparc-dash here-document infelicity
63535         Without this change, the literal \177 byte in a here document
63536         would make dash 0.5.5.1-3 access uninitialized memory.
63537         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
63538         Instead, use a marker, "@", and filter through tr to create the desired
63539         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
63541 2009-09-27  Bruno Haible  <bruno@clisp.org>
63543         Disable untested support for new flavours of ACLs on AIX.
63544         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
63545         progress.
63546         * lib/set-mode-acl.c (qset_acl): Likewise.
63548 2008-12-07  Bruno Haible  <bruno@clisp.org>
63550         Add support for new flavours of ACLs on AIX. (Untested.)
63551         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
63552         (file_has_acl): Add support for newer AIX.
63553         * lib/set-mode-acl.c (qset_acl): Likewise.
63554         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
63555         Rainer Tammer <tammer@tammer.net>.
63557 2009-09-26  Eric Blake  <ebb9@byu.net>
63559         argp: fix compilation of getopt
63560         * lib/getopt.in.h (includes): Use different guard than glibc.
63561         Reported by Sergey Poznyakoff.
63563         doc: mention more cygwin 1.7 status
63564         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
63565         bug.
63566         * doc/posix-functions/execl.texi (execl): Likewise.
63567         * doc/posix-functions/execle.texi (execle): Likewise.
63568         * doc/posix-functions/execlp.texi (execlp): Likewise.
63569         * doc/posix-functions/execv.texi (execv): Likewise.
63570         * doc/posix-functions/execve.texi (execve): Likewise.
63571         * doc/posix-functions/execvp.texi (execvp): Likewise.
63572         * doc/glibc-functions/canonicalize_file_name.texi
63573         (canonicalize_file_name): Cygwin 1.7 now provides this.
63574         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
63575         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
63576         on AT_SYMLINK_NOFOLLOW.
63578 2009-09-24  Eric Blake  <ebb9@byu.net>
63580         test-linkat: make test more robust
63581         * tests/test-linkat.c (main): Avoid collision with EEXIST.
63583         getopt: fix inclusion guards for cygwin
63584         * modules/getopt-posix (Depends-on): Add include-next.
63585         (Makefile.am): Substitute more items in replacement header.
63586         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
63587         <getopt.h>.
63588         * lib/getopt.in.h (includes): Use split inclusion guard, and
63589         prefer <getopt.h> over include <unistd.h> when one is present.
63590         (option): Also override name of 'struct option'.
63592         same-inode: revert prior change; it is not yet ready
63593         * NEWS: Undo mention of this change.
63594         * lib/same-inode.h (same-inode.h): Undo tri-state change.
63595         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
63596         * lib/cycle-check.c (cycle_check): Likewise.
63597         * lib/same.c (same_name): Likewise.
63598         * lib/at-func2.c (at_func2): Likewise.
63600 2009-09-23  Eric Blake  <ebb9@byu.net>
63602         linkat: new module
63603         * modules/linkat: New file.
63604         * lib/at-func2.c (at_func2): Likewise.
63605         * lib/linkat.c (linkat): Likewise.
63606         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
63607         * lib/openat-priv.h (at_func2): Add declaration.
63608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
63609         * modules/unistd (Makefile.am): Substitute them.
63610         * lib/unistd.in.h (linkat): Declare it.
63611         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63612         * doc/posix-functions/linkat.texi (linkat): Likewise.
63613         * doc/posix-functions/link.texi (link): Tweak wording.
63614         * tests/test-link.c (main): Move guts...
63615         * tests/test-link.h (test_link): ...into new file.
63616         * modules/linkat-tests: New test.
63617         * tests/test-linkat.c: Likewise.
63618         * modules/link-tests (Files): Ship new file.
63619         (Depends-on): Add stdbool.
63621         dirname: add library-safe mdir_name
63622         * lib/dirname.h (mdir_name): New prototype.
63623         * lib/dirname.c (dir_name): Move guts...
63624         (mdir_name): ...to new function that avoids xalloc_die.
63626         fchdir: another mingw fix
63627         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
63628         * lib/fchdir.c (get_name): New helper method; skips canonicalize
63629         on mingw (where it has not yet been ported), and make it optional
63630         elsewhere.
63631         (_gl_register_fd): Use it.
63633         same-inode: make SAME_INODE tri-state, to port to mingw
63634         * NEWS: Mention this change.
63635         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
63636         st_ino always being 0.
63637         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
63638         * lib/cycle-check.c (cycle_check): Likewise.
63639         * lib/same.c (same_name): Likewise.
63641         lstat: avoid mingw compilation error
63642         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
63643         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
63644         lstat ourselves.
63645         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
63646         was adequate.
63647         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
63648         the checks for lstat.
63649         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
63651         link: fix test failure on Solaris 9
63652         * lib/link.c (rpl_link): Don't assume link will catch bogus
63653         trailing slash on source.
63655         test-symlinkat: enhance test
63656         * tests/test-readlink.c (main): Move guts...
63657         * tests/test-readlink.h (test_readlink): ...into new file.
63658         * tests/test-symlink.c (main): Move guts...
63659         * tests/test-symlink.h (test_symlink): ...into new file.
63660         * tests/test-symlinkat.c (main): Use new files for further
63661         coverage.
63662         (do_symlink, do_readlink): New helper functions.
63663         * modules/symlink-tests (Files): Ship new file.
63664         (Depends-on): Add stdbool.
63665         * modules/readlink-tests (Files): Ship new file.
63666         (Depends-on): Add stdbool.
63667         * modules/symlinkat-tests (Files): Use new files.
63669 2009-09-23  Eric Blake  <ebb9@byu.net>
63671         readlink: document portability issue with symlink length
63672         * doc/posix-functions/lstat.texi (lstat): Mention that some file
63673         systems have bogus st_size on symlinks, and mention the
63674         areadlink-with-size module.
63675         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
63676         * doc/posix-functions/readlink.texi (readlink): Mention the
63677         areadlink module, and ERANGE failure.
63678         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63679         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
63681         readlink: fix Solaris 9 bug with trailing slash
63682         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
63683         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
63684         * doc/posix-functions/readlink.texi (readlink): Document this.
63685         * modules/readlink-tests: New test.
63686         * tests/test-readlink.c: Likewise.
63688         readlink: fix cygwin 1.5.x bug with return type
63689         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
63690         * lib/unistd.in.h (readlink): Use ssize_t.
63691         * lib/readlink.c (readlink): Likewise.
63692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63693         * modules/unistd (Makefile.am): Substitute it.
63694         * lib/unistd.in.h (readlink): Declare replacement.
63695         * doc/posix-functions/readlink.texi (readlink): Document this.
63697         symlink: use throughout gnulib
63698         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
63699         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
63700         symlink is not used.
63701         * modules/symlinkat (Depends-on): Add symlink.
63702         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
63703         * modules/canonicalize-tests (Depends-on): Likewise.
63704         * modules/lstat-tests (Depends-on): Likewise.
63705         * modules/openat-tests (Depends-on): Likewise.
63706         * modules/remove-tests (Depends-on): Likewise.
63707         * modules/rmdir-tests (Depends-on): Likewise.
63708         * modules/unlink-tests (Depends-on): Likewise.
63709         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
63710         * tests/test-canonicalize.c (symlink): Likewise.
63711         * tests/test-fstatat.c (symlink): Likewise.
63712         * tests/test-lstat.c (symlink): Likewise.
63713         * tests/test-remove.c (symlink): Likewise.
63714         * tests/test-rmdir.c (symlink): Likewise.
63715         * tests/test-unlink.c (symlink): Likewise.
63716         * tests/test-unlinkat.c (symlink): Likewise.
63718         symlink: new module, for Solaris 9 bug
63719         * modules/symlink: New file.
63720         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
63721         * lib/symlink.c: Likewise.
63722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
63723         * modules/unistd (Makefile.am): Substitute them.
63724         * lib/unistd.in.h (symlink): Declare replacement.
63725         * MODULES.html.sh (File system functions): Mention it.
63726         * doc/posix-functions/symlink.texi (symlink): Likewise.
63727         * modules/symlink-tests: New test.
63728         * tests/test-symlink.c: Likewise.
63730 2009-09-23  Bruno Haible  <bruno@clisp.org>
63732         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
63733         when needed.
63734         Test case: gnulib-tool --import --with-tests atexit inttypes.
63735         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
63737 2009-09-23  Bruno Haible  <bruno@clisp.org>
63739         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
63740         subcommand, not in a subshell.
63742 2009-09-22  Eric Blake  <ebb9@byu.net>
63744         unistd: sort replacement declarations
63745         * lib/unistd.in.h: Sort declarations.
63747         open, openat: minor optimization
63748         * lib/open.c (open): If open succeeded, len is non-zero.
63749         * lib/openat.c (rpl_openat): Likewise.
63751         link-follow: ensure correct result
63752         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
63753         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
63754         distinguish between possible failures.
63756 2009-09-21  Eric Blake  <ebb9@byu.net>
63758         fts: avoid compiler warning
63759         * lib/fts.c (dirent_inode_sort_may_be_useful)
63760         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
63762 2009-09-19  Bruno Haible  <bruno@clisp.org>
63764         * lib/progreloc.c (canonicalize_file_name): New declaration.
63766 2009-09-19  Eric Blake  <ebb9@byu.net>
63768         link: fix quoting
63769         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
63771         openat: fix openat bugs on Solaris 9
63772         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
63773         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
63774         * modules/openat (Depends-on): Add open.
63775         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
63776         * modules/fcntl-h (Makefile.am): Substitute it.
63777         * lib/fcntl.in.h (openat): Declare replacement.
63778         * doc/posix-functions/openat.texi (openat): Document this.
63780         openat: move fstatat and unlinkat into correct files
63781         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
63782         compiled.
63783         * lib/openat.c (fstatat, unlinkat): Move...
63784         * lib/fstatat.c (fstatat): ...into correct files.
63785         * lib/unlinkat.c (unlinkat): Likewise.
63787         openat: fix unlinkat bugs on Solaris 9
63788         * lib/unlinkat.c (unlinkat): New file.
63789         * modules/openat (Depends-on): Add unlink.
63790         (Files): Distribute it.
63791         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
63792         trailing slash behavior is broken.
63793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63794         * modules/unistd (Makefile.am): Substitute it.
63795         * lib/unistd.in.h (unlinkat): Declare replacement.
63796         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
63798         openat: fix fstatat bugs on Solaris 9
63799         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
63800         stat.
63801         * doc/posix-functions/fstatat.texi (fstatat): Document this.
63803         test-unlinkat: enhance test, to expose Solaris 9 bug
63804         * tests/test-unlink.c (main): Factor guts...
63805         * tests/test-unlink.h (test_rmdir_func): ...into new file.
63806         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
63807         * tests/test-rmdir.c (main): Adjust caller.
63808         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
63809         (unlinker): New helper function.
63810         (rmdirat): Enhance check.
63811         * modules/rmdir-tests (Depends-on): Add stdbool.
63812         * modules/unlink-tests (Depends-on): Likewise.
63813         (Files): Add test-unlink.h.
63814         * modules/openat-tests (Files): Likewise.
63815         (Depends-on): Add unlinkdir.
63817         test-fstatat: new test, to expose Solaris 9 bugs
63818         * tests/test-stat.c (main): Factor guts...
63819         * tests/test-stat.h (test_stat_func): ...into new file.
63820         * tests/test-lstat.c (main): Factor guts...
63821         * tests/test-lstat.h (test_lstat_func): ...into new file.
63822         * tests/test-fstatat.c: New file.
63823         * modules/stat-tests (Files): Add test-stat.h.
63824         * modules/lstat-tests (Files): Add test-lstat.h.
63825         (Depends-on): Add stdbool.
63826         * modules/openat-tests (Depends-on): Add pathmax.
63827         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
63828         (Makefile.am): Run new test.
63830         remove: new module, for mingw and Solaris 9 bugs
63831         * modules/remove: New file.
63832         * lib/remove.c: Likewise.
63833         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
63834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
63835         * modules/stdio (Makefile.am): Use them.
63836         * lib/stdio.in.h (remove): Declare replacement.
63837         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63838         * doc/posix-functions/remove.texi (remove): Likewise.
63839         * modules/remove-tests: New test.
63840         * tests/test-remove.c: Likewise.
63842         unlink: new module, for Solaris 9 bug
63843         * modules/unlink: New file.
63844         * lib/unlink.c: Likewise.
63845         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
63846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
63847         * modules/unistd (Makefile.am): Use them.
63848         * lib/unistd.in.h (stat): Declare replacement.
63849         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63850         * doc/posix-functions/unlink.texi (unlink): Likewise.
63851         * modules/unlink-tests: New test.
63852         * tests/test-unlink.c: Likewise.
63854         lstat: fix Solaris 9 bug
63855         * lib/lstat.c (lstat): Also check for trailing slash on
63856         non-symlink, non-directories.  Use stat module to simplify logic.
63857         * doc/posix-functions/lstat.texi (lstat): Document it.
63858         * modules/lstat-tests (Depends-on): Add errno, same-inode.
63859         (configure.ac): Check for symlink.
63860         * tests/test-lstat.c (main): Add more tests.
63862         stat: add as dependency to other modules
63863         * modules/chown (Depends-on): Add stat.
63864         * modules/euidaccess (Depends-on): Likewise.
63865         * modules/fchdir (Depends-on): Likewise.
63866         * modules/isdir (Depends-on): Likewise.
63867         * modules/link (Depends-on): Likewise.
63868         * modules/lstat (Depends-on): Likewise.
63869         * modules/mkdir-p (Depends-on): Likewise.
63870         * modules/modechange (Depends-on): Likewise.
63871         * modules/open (Depends-on): Likewise.
63872         * modules/readlink (Depends-on): Likewise.
63873         * modules/same (Depends-on): Likewise.
63875         stat: fix Solaris 9 bug
63876         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
63877         slash.
63878         * lib/stat.c (rpl_stat): Work around it.
63879         * doc/posix-functions/stat.texi (stat): Update documentation.
63881         stat: new module, for mingw bug
63882         * modules/stat: New file.
63883         * lib/stat.c: Likewise.
63884         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
63885         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
63886         * modules/sys_stat (Makefile.am): Use them.
63887         * lib/sys_stat.in.h (stat): Declare replacement.
63888         * lib/openat.c (fstatat): Deal with lstat and stat being function
63889         macros.
63890         * modules/openat (Depends-on): Add inline.
63891         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63892         * doc/posix-functions/stat.texi (stat): Likewise.
63893         * modules/stat-tests: New test.
63894         * tests/test-stat.c: Likewise.
63896 2009-09-19  Jim Meyering  <meyering@redhat.com>
63898         syntax-check: detect unnecessary inclusion of canonicalize.h
63899         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
63901 2009-09-19  Eric Blake  <ebb9@byu.net>
63903         canonicalize-lgpl: adjust clients to use correct header
63904         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
63905         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
63906         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
63907         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
63908         * lib/progreloc.c (includes): Likewise.
63910 2009-09-19  Jim Meyering  <meyering@redhat.com>
63912         test-posixtm.c: correct a comment
63913         * tests/test-posixtm.c: Correct first-line comment.
63914         Spotted by Eric Blake.
63916 2009-09-16  Jim Meyering  <meyering@redhat.com>
63918         posixtm-tests: make T const-correct; add a test case
63919         * tests/test-posixtm.c (T): Declare const.
63920         Add a test for -(2^31+1).
63921         Remove useless can-succeed-only-in-2002 test.
63923         posixtm-tests: adjust the sole failing test
63924         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
63925         expected output matches what mktime now produces.  Cross-checked via
63926         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
63928         posixtm: move #ifdef'd tests into a new module
63929         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
63930         * tests/test-posixtm.c: ... this new file.
63931         * modules/posixtm-tests: New module.
63933 2009-09-19  Eric Blake  <ebb9@byu.net>
63935         openat: simplify use of at-func.c
63936         * lib/at-func.c (includes): Include prerequisites here, to
63937         simplify requirements on client files.
63938         * lib/openat-priv.h: Add double-inclusion guard.
63939         * lib/faccessat.c (includes): Simplify.
63940         * lib/fchmodat.c (includes): Likewise.
63941         * lib/fchownat.c (includes): Likewise.
63942         * lib/mkdirat.c (includes): Likewise.
63943         * lib/mkfifoat.c (includes): Likewise.
63944         * lib/symlinkat.c (includes): Likewise.
63946         openat: allow return of fd 0
63947         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
63948         * modules/save-cwd (Depends-on): Replace fcntl-safer with
63949         unistd-safer.
63950         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
63951         <fcntl.h>; this module does not leak fds.
63952         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
63953         must be allowed to return 0, leaving openat_safer to add the
63954         safety.
63955         (openat_permissive): Avoid writing to just-opened fd 2 if
63956         restoring the current directory fails.
63957         * lib/openat-die.c (openat_restore_fail): Add comment.
63958         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
63959         (save_cwd): Guarantee safe fd, but without use of open_safer.
63960         * tests/test-openat.c: New test.
63961         * modules/openat-tests (Files, Makefile.am): Distribute and build
63962         new file.
63964         relocatable-prog-wrapper: fix build
63965         * modules/relocatable-prog-wrapper (Files): Update name of
63966         canonicalize m4 file, broken on 2009-09-17.
63967         Reported by emad hajjar <aleppos@hotmail.com>.
63969 2009-09-19  Bruno Haible  <bruno@clisp.org>
63971         * lib/safe-alloc.h: Use the standard header with GPL copyright.
63972         * lib/safe-alloc.c: Likewise.
63973         Reported by Ian Beckwith <ianb@erislabs.net>.
63975 2009-09-18  Bruno Haible  <bruno@clisp.org>
63977         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
63978         Reported by <erobles@sensacd.com.mx>.
63980 2009-09-17  Eric Blake  <ebb9@byu.net>
63982         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
63983         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
63984         slashes when checking if last component is missing.
63985         * tests/test-canonicalize.c (main): Test this.
63987         canonicalize, canonicalize-lgpl: honor // if distinct from /
63988         * modules/canonicalize (Files): Add double-slash-root.m4.
63989         * modules/canonicalize-lgpl (Files): Likewise.
63990         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
63991         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
63992         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
63993         fallback definition.
63994         (canonicalize_filename_mode): Use it to protect //.
63995         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
63996         (__realpath): Likewise.
63997         * tests/test-canonicalize.c (main): Test this.
63998         * tests/test-canonicalize-lgpl.c (main): Likewise.
63999         * modules/canonicalize-tests (Depends-on): Add same-inode.
64000         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
64002         canonicalize-lgpl: fix glibc bug with trailing slash
64003         * m4/canonicalize-lgpl.m4: Move contents...
64004         * m4/canonicalize.m4: ...here.
64005         (gl_CANONICALIZE_LGPL): Factor realpath check...
64006         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
64007         glibc 2.3.5 bug, fixed 2005-04-27.
64008         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
64009         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
64010         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
64011         * modules/canonicalize-lgpl (Files): Manage file rename.
64012         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
64013         * modules/stdlib (Makefile.am): Substitute witness.
64014         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
64015         is needed.
64016         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
64017         replacement is required.
64018         * lib/canonicalize.c (canonicalize_file_name): Likewise.
64019         * doc/glibc-functions/canonicalize_file_name.texi
64020         (canonicalize_file_name): Document this.
64021         * doc/posix-functions/realpath.texi (realpath): Likewise.
64023         canonicalize-lgpl: reject non-directory with trailing slash
64024         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
64025         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
64026         catches failures in glibc 2.3.5.
64027         * tests/test-canonicalize.c (main): Likewise.
64029         canonicalize-lgpl: use native realpath if it works
64030         * lib/canonicalize-lgpl.c (realpath): Guard with
64031         FUNC_REALPATH_WORKS.
64032         * lib/stdlib.in.h (realpath): Make declaration optional based on
64033         HAVE_REALPATH.
64034         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
64035         native realpath works.
64036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
64037         * modules/stdlib (Makefile.am): Substitute witness.
64039         canonicalize, canonicalize-lgpl: use <stdlib.h>
64040         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
64041         (Include): Mention <stdlib.h>.
64042         (configure.ac): Mention functions we provide.
64043         * modules/canonicalize (configure.ac): Likewise.
64044         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
64045         realpath if canonicalize_file_name is missing.
64046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
64047         * modules/stdlib (Makefile.am): Substitute witnesses.
64048         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
64049         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
64050         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
64051         * NEWS: Document this.
64052         * doc/glibc-functions/canonicalize_file_name.texi
64053         (canonicalize_file_name): Likewise.
64054         * doc/posix-functions/realpath.texi (realpath): Likewise.
64055         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
64057         test-canonicalize: consolidate into single C program
64058         * tests/test-canonicalize.sh: Delete; move setup into...
64059         * tests/test-canonicalize.c (main): ...the program, making it
64060         easier to run in debugger.  Add some tests.
64061         * modules/canonicalize-tests (Files): Remove unused file.
64062         (Depends-on): Add progname.
64063         (configure.ac, Makefile.am): Simplify.
64065         test-canonicalize-lgpl: consolidate into single C program
64066         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
64067         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
64068         easier to run in debugger.  Add some tests.
64069         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
64070         (configure.ac, Makefile.am): Simplify.
64072         canonicalize: avoid resolvepath
64073         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
64074         unnecessary checks.
64075         * lib/canonicalize.c (includes): Simplify.
64076         (canonicalize_file_name): Drop resolvepath implementation.
64077         * modules/canonicalize (Depends-on): Drop filenamecat.
64079         canonicalize: don't lose errno
64080         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
64081         over calls to free.
64083         canonicalize: simplify errno handling
64084         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
64085         assignment.
64087         canonicalize, canonicalize-lgpl: update module dependencies
64088         * modules/canonicalize (Depends-on): Add extensions, lstat,
64089         pathmax, stdlib.
64090         (Files): Drop pathmax.h.
64091         (configure.ac): Adjust macro name.
64092         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
64093         lstat, stdlib, sys_stat.
64094         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
64095         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
64096         extensions.
64097         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
64098         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
64099         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
64100         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
64101         declaration, if available.
64102         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
64103         we can rely on the readlink module.
64104         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
64105         (includes): Use <unistd.h> unconditionally.
64107 2009-09-17  Eric Blake  <ebb9@byu.net>
64109         maint: make Include sections of modules consistent
64110         * modules/alloca: Use only header name; no need to list #include.
64111         * modules/alloca-opt: Likewise.
64112         * modules/arpa_inet: Likewise.
64113         * modules/canon-host: Likewise.
64114         * modules/configmake: Likewise.
64115         * modules/dirent: Likewise.
64116         * modules/eealloc: Likewise.
64117         * modules/environ: Likewise.
64118         * modules/fchdir: Likewise.
64119         * modules/fcntl: Likewise.
64120         * modules/fcntl-h: Likewise.
64121         * modules/gethrxtime: Likewise.
64122         * modules/gettime: Likewise.
64123         * modules/ignore-value: Likewise.
64124         * modules/inet_ntop: Likewise.
64125         * modules/inet_pton: Likewise.
64126         * modules/inttypes: Likewise.
64127         * modules/isnand-nolibm: Likewise.
64128         * modules/isnanf-nolibm: Likewise.
64129         * modules/mbchar: Likewise.
64130         * modules/mbfile: Likewise.
64131         * modules/mbiter: Likewise.
64132         * modules/mbuiter: Likewise.
64133         * modules/netdb: Likewise.
64134         * modules/netinet_in: Likewise.
64135         * modules/nproc: Likewise.
64136         * modules/pagealign_alloc: Likewise.
64137         * modules/poll: Likewise.
64138         * modules/printf-frexp: Likewise.
64139         * modules/pthread: Likewise.
64140         * modules/putenv: Likewise.
64141         * modules/random_r: Likewise.
64142         * modules/relocatable-prog: Likewise.
64143         * modules/search: Likewise.
64144         * modules/select: Likewise.
64145         * modules/selinux-h: Likewise.
64146         * modules/settime: Likewise.
64147         * modules/signal: Likewise.
64148         * modules/size_max: Likewise.
64149         * modules/socklen: Likewise.
64150         * modules/ssize_t: Likewise.
64151         * modules/stdarg: Likewise.
64152         * modules/stdbool: Likewise.
64153         * modules/stddef: Likewise.
64154         * modules/stdint: Likewise.
64155         * modules/stdio: Likewise.
64156         * modules/stdlib: Likewise.
64157         * modules/string: Likewise.
64158         * modules/strings: Likewise.
64159         * modules/sys_file: Likewise.
64160         * modules/sys_ioctl: Likewise.
64161         * modules/sys_select: Likewise.
64162         * modules/sys_socket: Likewise.
64163         * modules/sys_stat: Likewise.
64164         * modules/sys_time: Likewise.
64165         * modules/sys_times: Likewise.
64166         * modules/sys_utsname: Likewise.
64167         * modules/sys_wait: Likewise.
64168         * modules/sysexits: Likewise.
64169         * modules/time: Likewise.
64170         * modules/times: Likewise.
64171         * modules/tmpfile: Likewise.
64172         * modules/trim: Likewise.
64173         * modules/unistd: Likewise.
64174         * modules/wchar: Likewise.
64175         * modules/wctype: Likewise.
64177 2009-09-17  Bruno Haible  <bruno@clisp.org>
64179         Make getdate.y compile on QNX and NetBSD 5 / i386.
64180         * m4/getdate.m4 (gl_GETDATE): Conditionally define
64181         TIME_T_FITS_IN_LONG_INT.
64182         * lib/getdate.y (long_time_t): New type.
64183         (relative_time): Change type of 'seconds' field to long_time_t.
64184         (get_date): Update types of local variables. Check against overflow
64185         during conversion from long_time_t to time_t.
64186         Reported by Matt Kraai <kraai@ftbfs.org>
64187         and Hasso Tepper <hasso@netbsd.org>.
64189 2009-09-17  Bruno Haible  <bruno@clisp.org>
64191         * modules/COPYING: Update copyright years.
64192         * modules/README: Likeiwse.
64193         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
64194         Reported by Ian Beckwith <ianb@erislabs.net>.
64196 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
64198         * users.txt: Update references for gnuit package.
64200 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
64202         * m4/getdelim.m4: Fix typo in copyright line.
64204 2009-09-17  Bruno Haible  <bruno@clisp.org>
64206         * lib/atoll.c: Use the standard header with GPL copyright.
64207         * lib/argz.in.h: Likewise.
64208         * lib/glob.c: Likewise.
64209         * lib/glob-libc.h: Likewise.
64210         * lib/random_r.c: Likewise.
64211         * lib/siglist.h: Likewise.
64212         * lib/strsignal.c: Likewise.
64213         Reported by Ian Beckwith <ianb@erislabs.net>.
64215 2009-09-17  Eric Blake  <ebb9@byu.net>
64217         rmdir: ensure correct dependency order
64218         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
64220 2009-09-17  Bruno Haible  <bruno@clisp.org>
64222         Disable assertion that fails on NetBSD 5 / i386.
64223         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
64224         Reported by Sam Steingold <sds@gnu.org>
64225         and Hasso Tepper <hasso@netbsd.org>.
64227 2009-09-16  Eric Blake  <ebb9@byu.net>
64229         unlinkdir: port to mingw
64230         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
64231         on which no one can unlink a directory.
64233         stdlib: sort witness names
64234         * modules/stdlib (Makefile.am): Sort replacements.
64235         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
64236         * lib/stdlib.in.h: Likewise.
64238         parse-duration-tests: avoid link failure
64239         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
64240         LIBINTL.
64241         Reported by Tom G. Christensen.
64243         openat-tests: ensure unlinkat behaves like rmdir
64244         * tests/test-rmdir.c (main): Factor guts...
64245         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
64246         * modules/rmdir-tests (Files): Ship new file.
64247         * modules/openat-tests: New test.
64248         * tests/test-unlinkat.c: Likewise.
64250         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
64251         * modules/rmdir-errno (Status, Notice): Now obsolete.
64253         rmdir: work around cygwin 1.5.x and mingw bugs
64254         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
64255         * lib/rmdir.c (rmdir): Work around it.
64256         * modules/rmdir (Status, Notice): No longer obsolete.
64257         (Files): Add dos.m4.
64258         (Depends-on): Add unistd.
64259         (configure.ac): Set witnesses.
64260         (License): Relax to LGPLv2+.
64261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
64262         * modules/unistd (Makefile.am): Substitute witnesses.
64263         * lib/unistd.in.h (rmdir): Declare replacement.
64264         * doc/posix-functions/rmdir.texi (rmdir): Document this.
64265         * modules/rmdir-tests: New tests.
64266         * tests/test-rmdir.c: Likewise.
64268 2009-09-15  Eric Blake  <ebb9@byu.net>
64270         fchdir: improve use of replacement functions
64271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
64272         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
64273         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
64274         REPLACE_CLOSEDIR.
64275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
64276         * modules/sys_stat (Makefile.am): Substitute correct witness.
64277         * modules/dirent (Makefile.am): Likewise.
64278         * modules/unistd (Makefile.am): Likewise.
64279         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
64280         * lib/unistd.in.h (dup): Likewise.
64281         * lib/sys_stat.in.h (fstat): Likewise.
64283         maint: ignore gnulib-tool temp files
64284         * .gitignore: Ignore files created during gnulib-tool --test.
64286 2009-09-13  Jim Meyering  <meyering@redhat.com>
64288         posixtm: don't reject a time that specify "60" as the number of seconds
64289         * lib/posixtm.c (posixtime): The code to reject invalid dates
64290         would also reject a time specified with the .60 suffix.
64291         But POSIX allows that, in order to accommodate leap seconds.
64292         So don't reject it.
64293         (main): Adjust tests accordingly.
64294         * modules/posixtm (Depends-on): Add stpcpy.
64296 2009-09-11  Jim Meyering  <meyering@redhat.com>
64298         announce-gen: include [$release_type] in emitted Subject:
64299         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
64300         e.g., [stable] in the emitted Subject: line.
64302 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64304         Remove obsolete macros from several modules.
64305         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
64306         obsolete Autoconf macros with their modern counterparts.
64307         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
64308         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
64309         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
64310         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64311         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
64312         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64313         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
64314         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
64315         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
64316         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
64317         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
64318         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
64319         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
64320         * m4/sockets.m4 (gl_SOCKETS): Likewise.
64321         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
64322         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
64323         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64324         * m4/time_r.m4 (gl_TIME_R): Likewise.
64325         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
64326         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
64327         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64329         Fix copyright header in build-aux scripts.
64330         * build-aux/git-version-gen: Fix copyright header to match GPLv3
64331         recommendation.
64332         * build-aux/ncftpput-ftp: Likewise.
64333         * build-aux/update-copyright: Likewise.
64335 2009-09-09  Eric Blake  <ebb9@byu.net>
64337         test-link: allow Linux choice of errno
64338         * tests/test-link.c (main): Relax test for alternate error.
64340         strndup: fix improper m4 caching
64341         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
64342         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
64343         (gl_PREREQ_STRNDUP): Delete.
64344         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
64345         * modules/string (Makefile.am): Substitute it.
64346         * lib/string.in.h (strndup): Modernize prototype.
64348         getcwd: port to mingw
64349         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
64350         different from the POSIX assumptions made throughout the getcwd
64351         module; fortunately, the mingw getcwd does not need replacement.
64352         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
64353         * modules/getcwd-tests: New test.
64354         * tests/test-getcwd.c: Likewise.
64356         link: fix platform bugs
64357         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
64358         * lib/link.c (link): Work around them.  Fix related mingw bug.
64359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
64360         * modules/unistd (Makefile.am): Substitute it.
64361         * lib/unistd.in.h (link): Declare replacement.
64362         * doc/posix-functions/link.texi (link): Document this.
64363         * modules/link (Depends-on): Add strdup-posix, sys_stat.
64365         test-link: consolidate into single C program, test more cases
64366         * tests/test-link.sh: Delete.
64367         * tests/test-link.c: Test more error conditions.  Exposes bugs on
64368         at least Cygwin and Solaris.
64369         * modules/link-tests (Files): Remove unused file.
64370         (Depends-on): Add errno, sys_stat.
64371         (Makefile.am): Simplify.
64373 2009-09-08  Bruno Haible  <bruno@clisp.org>
64375         Work around towlower, towupper bug on mingw.
64376         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
64377         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
64378         * doc/posix-functions/towlower.texi: Mention the mingw bug.
64379         * doc/posix-functions/towupper.texi: Likewise.
64380         Reported by Eric Blake.
64382 2009-09-08  Jim Meyering  <meyering@redhat.com>
64384         build: don't try to run autoheader if we don't use it
64385         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
64386         is not used in configure.ac.
64388 2009-09-08  Eric Blake  <ebb9@byu.net>
64390         euidaccess: fix compilation error
64391         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
64393         rawmemchr: relax license
64394         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
64395         okay.
64396         Reported by Jim Meyering.
64398         mkfifoat: new module
64399         * modules/mkfifoat: New file.
64400         * lib/mkfifoat.c: Likewise.
64401         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
64402         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
64403         * modules/sys_stat (Makefile.am): Use them.
64404         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
64405         * MODULES.html.sh (File system functions): Mention module.
64406         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
64407         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
64408         * modules/mkfifoat-tests: New test.
64409         * tests/test-mkfifoat.c: Likewise.
64411         strchrnul: relax license
64412         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
64413         okay.
64414         Reported by Jim Meyering.
64416 2009-09-08  Eric Blake  <ebb9@byu.net>
64418         fstatat: fix compilation on Solaris
64419         * lib/fstatat.c (includes): Add fcntl.h.
64420         Reported by Pádraig Brady.
64422 2009-09-07  Eric Blake  <ebb9@byu.net>
64424         rename: modernize replacement
64425         * modules/rename (Depends-on): Add stdio.
64426         (configure.ac): Declare witness.
64427         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
64428         stdio take care of replacement.
64429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64430         * modules/stdio (Makefile.am): Substitute them.
64431         * lib/stdio.in.h (rename): Declare replacement.
64432         * lib/rename.c (includes): Allow cross-compilation to non-windows
64433         machines.
64434         * doc/posix-functions/rename.texi (rename): Improve
64435         documentation.
64437         stdio: sort witness names
64438         * modules/stdio (Makefile.am): Sort replacements.
64439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64440         * lib/stdio.in.h: Likewise.
64442         getcwd: minor cleanups
64443         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
64444         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
64446         openat: provide more convenience names
64447         * modules/faccessat (configure.ac): Add C witness.
64448         * lib/unistd.in.h (readlinkat): Fix typo.
64449         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
64450         convenience wrappers.
64451         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
64452         wrappers in syntax checks.
64454 2009-09-06  Eric Blake  <ebb9@byu.net>
64456         doc: fix comments in recent patches
64457         * lib/faccessat.c: Mention correct function.
64458         * lib/fchmodat.c: Likewise.
64459         * lib/fchownat.c: Likewise.
64460         * lib/symlinkat.c: Likewise.
64461         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
64462         constants.
64464         faccessat, symlinkat: continue cleanup of previous patch
64465         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
64466         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
64467         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
64468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
64469         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
64470         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
64471         set.
64473 2009-09-06  Bruno Haible  <bruno@clisp.org>
64475         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
64476         (fstatat): Declare if GNULIB_FSTATAT is set.
64477         (mkdirat): Declare if GNULIB_MKDIRAT is set.
64478         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
64479         (unlinkat): Declare if GNULIB_UNLINKAT is set.
64480         * modules/fcntl-h (Files): Remove m4/openat.m4.
64481         * modules/sys_stat (Files): Remove m4/openat.m4.
64482         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
64483         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
64484         * modules/unistd (Files): Remove m4/openat.m4.
64485         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
64486         GNULIB_OPENAT.
64487         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
64488         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
64489         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
64490         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
64491         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
64492         gl_OPENAT_DEFAULTS.
64493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
64494         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
64495         Don't require gl_OPENAT_DEFAULTS.
64496         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
64497         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
64498         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
64499         (gl_OPENAT_DEFAULTS): Remove macro.
64501 2009-09-06  Bruno Haible  <bruno@clisp.org>
64503         * modules/openat (configure.ac): Remove unneeded witness.
64505 2009-09-06  Bruno Haible  <bruno@clisp.org>
64507         Set errno to ENOSYS when a function is entirely unsupported.
64508         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
64509         EOPNOTSUPP.
64510         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
64511         * modules/chown (Depends-on): Remove errno.
64513 2009-09-06  Bruno Haible  <bruno@clisp.org>
64515         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
64517 2009-09-06  Bruno Haible  <bruno@clisp.org>
64519         * lib/sys_stat.in.h: Fix preprocessor command indentation.
64521 2009-09-06  Ben Pfaff  <blp@gnu.org>
64522             Bruno Haible  <bruno@clisp.org>
64524         Work around a glibc bug in strtok_r.
64525         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
64526         Undefine if UNDEFINE_STRTOK_R is set.
64527         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
64528         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64529         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
64530         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
64531         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
64532         UNDEFINE_STRTOK_R.
64533         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
64535 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
64537         exclude: minor fix
64538         * lib/exclude.c: Include wctype.h
64540 2009-09-06  Akim Demaille  <demaille@gostai.com>
64542         bootstrap: improve error message
64543         * build-aux/bootstrap (find_tool): Upon failure, report the list
64544         of candidates.
64545         Honor the initial value of the envvar.
64547 2009-09-05  Eric Blake  <ebb9@byu.net>
64549         symlinkat: new module
64550         * modules/symlinkat: New file.
64551         * lib/symlinkat.c: Likewise.
64552         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
64553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
64554         * modules/unistd (Makefile.am): Use them.
64555         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
64556         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
64557         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
64558         * MODULES.html.sh (File system functions): Mention module.
64559         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
64560         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
64561         * modules/symlinkat-tests: New test.
64562         * tests/test-symlinkat.c: Likewise.
64564         test-openat-safer: add more checks
64565         * tests/test-openat-safer.c (main): Check more code paths.
64567 2009-09-05  Jim Meyering  <meyering@redhat.com>
64569         syntax-check: detect unnecessary inclusion of openat.h
64570         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
64572 2009-09-05  Bruno Haible  <bruno@clisp.org>
64574         Support towlower, towupper.
64575         * doc/posix-functions/towlower.texi: Mention module wctype.
64576         * doc/posix-functions/towupper.texi: Likewise.
64577         * lib/wctype.in.h (towlower, towupper): New functions.
64578         * tests/test-wctype.c: Include stdio.h, stdlib.h.
64579         (ASSERT): New macro.
64580         (e): New variable.
64581         (main): Test also towlower, towupper. Test WEOF argument.
64582         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
64584 2009-09-05  Bruno Haible  <bruno@clisp.org>
64586         Fix conversion behaviour when the input is invalid.
64587         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
64588         mark occurring in first pass of indirect conversion.
64589         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
64590         input.
64591         Found by clang's static analyzer.
64593 2009-09-05  Bruno Haible  <bruno@clisp.org>
64595         * tests/test-striconveh.c (main): Test indirect conversion on platforms
64596         where direct conversion is possible.
64598 2009-09-04  Eric Blake  <ebb9@byu.net>
64600         openat: fail with ENOENT on empty name
64601         * lib/openat-proc.c (openat_proc_name): Special-case the empty
64602         buffer.
64604         link-follow: fix logic bug in prior patch
64605         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
64606         reversed sense of yes and no in prior patch.  Avoid confusing
64607         compilation failure with desired semantics.
64609         link-follow: accommodate mingw and cross-compilation
64610         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
64611         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
64612         cross-compilation results to -1, to make linkat easier to
64613         implement when cross-compiling.  Trivially support mingw.
64614         * modules/link-follow (configure.ac): Call new name.
64615         * NEWS: Mention this.
64617 2009-09-03  Eric Blake  <ebb9@byu.net>
64619         faccessat: compile replacement
64620         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
64621         needed.
64623         fts: fix compilation error
64624         * lib/fts.c (includes): Re-add "openat.h", for
64625         openat_needs_fchdir.
64627         faccessat: new module
64628         * modules/faccessat: New file.
64629         * lib/faccessat.c: Likewise.
64630         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
64631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64632         * modules/unistd (Makefile.am): Use it.
64633         * lib/unistd.in.h (faccessat): Declare it.
64634         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
64635         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
64636         * MODULES.html.sh (File system functions): Mention it.
64637         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
64638         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
64640         euidaccess: prefer POSIX over non-standard implementation
64641         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
64642         * lib/euidaccess.c (euidaccess): Use it if available.
64644         openat: make template easier to use
64645         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
64646         AT_FUNC_F2 to be undefined.
64647         (VALIDATE_FLAG): New macro; use it to reject bad flags.
64648         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
64649         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
64650         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
64651         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
64652         Likewise.
64653         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
64654         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
64655         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
64656         Likewise.
64658         openat: declare in POSIX headers
64659         * NEWS: Mention this.
64660         * modules/openat (configure.ac): Declare witnesses.
64661         (Depends-on): Add fcntl-h, sys_stat, unistd.
64662         (Include): Mention correct headers.
64663         * modules/fcntl-h (Depends-on): Add link-warning.
64664         (Files): Add openat.m4.
64665         (Makefile.am): Substitute witnesses.
64666         * modules/sys_stat (Files, Makefile.am): Likewise.
64667         * modules/unistd (Files, Makefile.am): Likewise.
64668         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
64669         (gl_OPENAT_DEFAULTS): New macro.
64670         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
64671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
64672         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
64673         (SYS_STAT_H): Remove unused variable.
64674         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
64675         * lib/fcntl--.h (includes): Remove unneeded header.
64676         * lib/openat-safer.c (includes): Likewise.
64677         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
64678         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
64679         appropriate headers.
64680         (__OPENAT_PREFIX): Delete.
64681         * lib/fcntl.in.h (openat): Provide declaration.
64682         (AT_FDCWD): Fix Solaris bug.
64683         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
64684         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
64685         * lib/fchmodat.c (includes):  Adjust to find declaration.
64686         * lib/fchownat.c (includes): Likewise.
64687         * lib/mkdirat.c (includes): Likewise.
64688         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
64689         still visible.
64691 2009-09-02  Eric Blake  <ebb9@byu.net>
64693         errno: use consistently
64694         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
64695         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
64696         * lib/canonicalize.c (ELOOP): Likewise.
64697         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
64698         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
64699         * lib/lchown.c (EOPNOTSUPP): Likewise.
64700         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
64701         * lib/savewd.c (ESTALE): Likewise.
64702         * lib/settime.c (ENOSYS): Likewise.
64703         * lib/utimens.c (ENOSYS): Likewise.
64704         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
64705         * lib/chdir-safer.c (ELOOP): Likewise.
64706         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
64707         * modules/c-stack (Depends-on): Add errno.
64708         * modules/canonicalize (Depends-on): Likewise.
64709         * modules/chdir-safer (Depends-on): Likewise.
64710         * modules/fdopendir (Depends-on): Likewise.
64711         * modules/inet_ntop (Depends-on): Likewise.
64712         * modules/inet_pton (Depends-on): Likewise.
64713         * modules/lchown (Depends-on): Likewise.
64714         * modules/openat (Depends-on): Likewise.
64715         * modules/savewd (Depends-on): Likewise.
64716         * modules/settime (Depends-on): Likewise.
64717         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
64719         fts: avoid leaking fds
64720         * modules/fts (Depends-on): Add cloexec.
64721         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
64722         flag.
64724         fts: make directory fds more robust
64725         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
64726         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
64728         backupfile, chdir-long, fts, savedir: make safer
64729         * lib/backupfile.c (includes): Use "dirent--.h", since
64730         numbered_backup can write to stderr during readdir.
64731         * lib/savedir.c (includes): Likewise.
64732         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
64733         emulation can write to stderr on failure.
64734         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
64735         * lib/getcwd.c: Document why opendir_safer is unused.
64736         * lib/glob.c: Likewise.
64737         * lib/scandir.c: Likewise.
64738         * lib/openat-proc.c: Likewise, for open_safer.
64739         * modules/backupfile (Depends-on): Add dirent-safer.
64740         * modules/savedir (Depends-on): Likewise.
64741         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
64742         * modules/chdir-long (Depends-on): Add openat-safer.
64744         openat-safer: new module
64745         * modules/openat-safer: New file.
64746         * lib/openat-safer.c: Likewise.
64747         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
64748         * lib/fcntl-safer.h (openat_safer): Declare.
64749         * lib/fcntl--.h (openat): Override.
64750         * MODULES.html.sh (File descriptor based I/O): Mention it.
64751         * lib/openat.h: Add double-inclusion guards.
64752         * lib/openat.c (includes): Only include "fcntl-safer.h", not
64753         "fcntl--.h", so we can implement openat.
64754         * modules/openat-safer-tests: New test.
64755         * tests/test-openat-safer.c: New file.
64757         dirent-safer: new module
64758         * modules/dirent-safer: New file.
64759         * lib/dirent--.h: Likewise.
64760         * lib/dirent-safer.h: Likewise.
64761         * lib/opendir-safer.c: Likewise.
64762         * m4/dirent-safer.m4: Likewise.
64763         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
64764         * modules/dirent-safer-tests: New test.
64765         * tests/test-dirent-safer.c: New file.
64766         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
64768         fdopendir: optimize on mingw
64769         * lib/unistd.in.h (_gl_directory_name): New prototype.
64770         * lib/fchdir.c (_gl_directory_name): Implement it.
64771         (fchdir): Use it to simplify implementation.
64772         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
64773         fchdir, when available, to avoid calling [f]chdir().
64775         fdopendir: split into its own module
64776         * lib/openat.c (fdopendir): Move...
64777         * lib/fdopendir.c: ...into new file.
64778         * modules/fdopendir: New module.
64779         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
64780         * modules/openat (Depends-on): Add fdopendir.
64781         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
64782         fdopendir here.
64783         * modules/savedir (Depends-on): Only need fdopendir, not full
64784         openat.
64785         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
64786         * lib/openat.h (fdopendir): Drop prototype.
64787         * lib/dirent.in.h (fdopendir): Provide prototype.
64788         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
64789         * modules/dirent (Makefile.am): Substitute them.
64790         * MODULES.html.sh (File system functions): Mention it.
64791         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
64792         * modules/fdopendir-tests: New file.
64793         * tests/test-fdopendir.c: Likewise.
64795         fchdir: use more consistent macro convention
64796         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
64797         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
64798         REPLACE_FCHDIR, rather than relying on config.h macros.
64799         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
64800         inside a single make-time REPLACE_FCHDIR block, rather than using
64801         the config.h FCHDIR_REPLACEMENT.
64802         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
64803         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
64804         Manage fstat replacement.
64805         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
64806         REPLACE_FCHDIR.
64807         * modules/sys_stat (Files): Add m4/unistd_h.m4.
64808         (Makefile.am): Substitute REPLACE_FCHDIR.
64809         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
64810         FCHDIR_REPLACEMENT.
64811         * lib/dup-safer.c (dup_safer): Likewise.
64812         * lib/dup2.c (rpl_dup2): Likewise.
64813         * lib/dup3.c (rpl_dup3): Likewise.
64814         * lib/open.c (rpl_open): Likewise.
64816         fchdir: simplify error handling, and support dup3
64817         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
64818         stdbool, malloc-posix, realloc-posix.
64819         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
64820         (ensure_dirs_slot): Return false on allocation failure.
64821         (rpl_dup2): Delete.
64822         (_gl_register_dup): New function.
64823         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
64824         (_gl_register_fd): Close fd on allocation failure.
64825         * lib/fcntl.in.h (_gl_register_fd): Update signature.
64826         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
64827         prototype.
64828         (rpl_dup2_fchdir): Delete prototype.
64829         * lib/open.c (open): Update caller.
64830         * lib/dup2.c (dup2): Track fchdir metadata.
64831         * lib/dup3.c (dup3): Likewise.
64832         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
64833         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
64835 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64837         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
64838         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
64839         don't pass arguments to AC_OUTPUT.
64841 2009-09-02  Bruno Haible  <bruno@clisp.org>
64843         * modules/mkdtemp (License): Relicense under LGPLv2+.
64844         Reported by Paolo Bonzini.
64846 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64848         Replace uses of obsolete autoconf macros in Jim's modules.
64849         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
64850         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
64851         can evoke a warning from autoconf when run with -Wobsolete
64852         enabled.  They were declared obsolete for good reasons (see
64853         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
64854         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
64855         should not continue using the deprecated macros.
64856         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
64857         obsolete Autoconf macros with modern counterparts.
64858         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
64859         * m4/dos.m4 (gl_AC_DOS): Likewise.
64860         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
64861         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
64862         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
64863         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
64864         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
64865         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
64866         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
64867         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
64868         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
64869         Likewise.
64870         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
64871         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64872         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
64873         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
64874         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64875         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64877 2009-09-01  Eric Blake  <ebb9@byu.net>
64879         fchdir: fix off-by-one bug in previous patch
64880         * lib/fchdir.c (rpl_fstat): Use correct bounds.
64881         (_gl_unregister_fd): Delete useless if.
64883 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
64885         maint.mk: sort the list of syntax-check rules
64886         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
64887         easier to get a sense of progress when the rules are run sequentially
64888         and take a long time.
64890 2009-09-01  Simon Josefsson  <simon@josefsson.org>
64892         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
64893         * modules/netinet_in: Likewise.
64894         * modules/sys_file: Likewise.
64895         * modules/sys_ioctl: Likewise.
64896         * modules/sys_select: Likewise.
64897         * modules/sys_socket: Likewise.
64898         * modules/sys_stat: Likewise.
64899         * modules/sys_time: Likewise.
64900         * modules/sys_times: Likewise.
64901         * modules/sys_utsname: Likewise.
64902         * modules/sys_wait: Likewise.
64904 2009-09-01  Jim Meyering  <meyering@redhat.com>
64906         fts: help ensure that return values are not ignored
64907         * lib/fts_.h (__GNUC_PREREQ): Define.
64908         (__attribute_warn_unused_result__): Define.
64909         (fts_children, fts_close, fts_open, fts_read): Declare with
64910         __attribute_warn_unused_result__.
64912         fts: fts_close now fails also when closing a dir file descriptor fails
64913         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
64914         and propagate to caller, along with errno.
64916         announce-gen: correct formatting in --help output
64917         * build-aux/announce-gen (usage): Move the one-line description in
64918         --help output "up", to where it belongs, just after Usage:.
64920 2009-08-31  Eric Blake  <ebb9@byu.net>
64922         fchdir: port to mingw
64923         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
64924         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
64925         opened, then use a substitute.
64926         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
64927         replacement.
64928         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
64929         (_gl_register_fd): No need to check stat if open already filters
64930         all directories.
64931         (fchdir): Fix error condition to match POSIX.
64932         * modules/fchdir (Depends-on): Add sys_stat.
64933         * doc/posix-functions/open.texi (open): Document the limitation.
64934         * modules/fchdir-tests: New file.
64935         * tests/test-fchdir.c: Likewise.
64937         canonicalize: allow cross-testing from cygwin to mingw
64938         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
64939         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
64940         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
64941         Likewise.
64942         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
64943         target does not support symlinks.
64944         * tests/test-canonicalize-lgpl.sh: Likewise.
64946         chown: avoid compilation warning on mingw
64947         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
64948         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
64949         mingw.
64950         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
64951         * modules/chown (Depends-on): Add errno.
64953 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
64955         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
64956         command.
64958 2009-08-31  Jim Meyering  <meyering@redhat.com>
64960         canonicalize: remove useless initialization
64961         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
64962         initialization of local, "end".
64964 2009-08-30  Bruno Haible  <bruno@clisp.org>
64966         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
64967         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
64968         ENOSYS.
64970 2009-08-30  Bruno Haible  <bruno@clisp.org>
64972         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
64973         /usr/xpg4/bin/tr when it exists.
64974         * tests/test-pipe-filter-gi1.sh: Likewise.
64976 2009-08-30  Bruno Haible  <bruno@clisp.org>
64978         Work around deficient /usr/bin/id program on Solaris.
64979         * tests/test-file-has-acl.sh (ID): New variable.
64980         * tests/test-set-mode-acl.sh (ID): Likewise.
64981         * tests/test-copy-acl.sh (ID): Likewise.
64982         * tests/test-copy-file.sh (ID): Likewise.
64984 2009-08-30  Bruno Haible  <bruno@clisp.org>
64986         New module 'xstriconveh'.
64987         * lib/xstriconveh.h: New file.
64988         * lib/xstriconveh.c: New file.
64989         * modules/xstriconveh: New file.
64991 2009-08-30  Bruno Haible  <bruno@clisp.org>
64993         Make it easier to use mem_cd_iconveh.
64994         * lib/striconveh.h (iconveh_t): New type.
64995         (iconveh_open, iconveh_close): New declarations.
64996         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
64997         with a single 'const iconveh_t *' argument.
64998         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
64999         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
65000         with a single 'const iconveh_t *' argument.
65001         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
65002         * tests/test-striconveh.c (main): Update.
65003         * NEWS: Mention the change.
65005 2009-08-30  Bruno Haible  <bruno@clisp.org>
65007         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
65008         problem.
65010 2009-08-30  Bruno Haible  <bruno@clisp.org>
65012         Work around iconv_open problem on Solaris.
65013         * lib/iconv_open-solaris.gperf: New file.
65014         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
65015         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
65016         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
65017         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
65018         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
65019         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
65021 2009-08-29  Jim Meyering  <meyering@redhat.com>
65023         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
65024         * top/maint.mk (cvs-check): Remove target; it was just an alias
65025         to the better-named vc-diff-check.
65026         (maintainer-distcheck): Remove rule.  It was used only from
65027         the (alpha/beta/major) target, and all of its commands but one
65028         were coreutils-specific.
65029         (vc-dist): Remove rule.
65030         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
65031         Run vc-diff-check, not vc-dist.
65032         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
65034 2009-08-27  Bruno Haible  <bruno@clisp.org>
65036         * tests/test-bitrotate.c (main): Remove test that uses a shift count
65037         of 0.
65039 2009-08-27  Bruno Haible  <bruno@clisp.org>
65041         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
65042         compilers.
65043         * doc/func.texi: Document the SunPRO C bug.
65045 2009-08-27  Bruno Haible  <bruno@clisp.org>
65047         Fix link error on Solaris.
65048         * tests/test-parse-duration.c (xstrdup): Remove function.
65050 2009-08-26  Pádraig Brady  <P@draigbrady.com>
65052         ignore-value: handle pointer types, too
65053         * lib/ignore-value.h (__attribute__): Remove definition.
65054         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
65055         of a more concise and more-often effective "(void) i" statement.
65056         (ignore_ptr): New function to suppress warnings from functions that
65057         return pointers, and to make it explicit that one function doesn't
65058         handle all cases.
65060 2009-08-25  Bruno Haible  <bruno@clisp.org>
65062         dup2: work around a Linux bug.
65063         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
65064         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
65065         * doc/posix-functions/dup2.texi: Mention the Linux bug.
65066         Reported by Simon Josefsson.
65068 2009-08-25  Jim Meyering  <meyering@redhat.com>
65070         libguestfs uses gnulib
65071         * users.txt: Add libguestfs.
65073 2009-08-24  Eric Blake  <ebb9@byu.net>
65075         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
65076         * lib/pipe2.c (includes): Add binary-io.h.
65077         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
65079 2009-08-24  Bruno Haible  <bruno@clisp.org>
65081         Tolerate declared but missing accept4 syscall.
65082         * lib/accept4.c (accept4): Invoke original accept4 function first, if
65083         available.
65084         * lib/sys_socket.in.h (accept4): If the function is already present,
65085         override it.
65086         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
65087         * modules/accept4 (Makefile.am): Compile accept4.c always.
65088         Reported by Paolo Bonzini and Eric Blake.
65090 2009-08-23  Bruno Haible  <bruno@clisp.org>
65092         New module 'accept4'.
65093         * lib/sys_socket.in.h (accept4): New declaration.
65094         * lib/accept4.c: New file.
65095         * m4/accept4.m4: New file.
65096         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
65097         GNULIB_ACCEPT4, HAVE_ACCEPT4.
65098         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
65099         HAVE_ACCEPT4.
65100         * modules/accept4: New file.
65101         * doc/glibc-functions/accept4.texi: Mention the new module.
65103 2009-08-24  Jim Meyering  <meyering@redhat.com>
65105         progname: also set global program_invocation_name, when possible
65106         Before this change, a libtool-enabled program that calls glibc's
65107         error function would report the program name as
65108         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
65109         * modules/progname (configure.ac): Check for a declaration of
65110         program_invocation_name.
65111         * lib/progname.c:  Include <errno.h>.
65112         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
65113         Set program_invocation_name.
65115 2009-08-23  Bruno Haible  <bruno@clisp.org>
65117         * lib/dup3.c: Include <string.h>.
65119 2009-08-23  Bruno Haible  <bruno@clisp.org>
65121         * lib/dup3.c (dup3): Test only once whether the system actually exists.
65122         * lib/pipe2.c (pipe2): Likewise.
65123         Suggested by Eric Blake.
65125 2009-08-23  Bruno Haible  <bruno@clisp.org>
65127         Tolerate declared but missing dup3 syscall.
65128         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
65129         * lib/unistd.in.h (dup3): If the function is already present,
65130         override it.
65131         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
65132         * modules/dup3 (Makefile.am): Compile dup3.c always.
65133         Reported by Paolo Bonzini.
65135 2009-08-23  Bruno Haible  <bruno@clisp.org>
65137         Tolerate declared but missing pipe2 syscall.
65138         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
65139         available.
65140         * lib/unistd.in.h (pipe2): If the function is already present,
65141         override it.
65142         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
65143         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
65144         Reported by Paolo Bonzini.
65146 2009-08-23  Bruno Haible  <bruno@clisp.org>
65148         * lib/pipe2.c (pipe2): Move #ifs inside function.
65150 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65152         quotearg: document limitations of quote_these_too
65153         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
65154         those limitations are created.
65155         * lib/quotearg.h (set_char_quoting): Document that digits and
65156         letters that are special after backslash are not permitted.
65157         (quotearg_char): Cross-reference set_char_quoting documentation.
65159 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
65161         quotearg: implement custom_quoting_style
65162         * lib/quotearg.c: (struct quoting_options): Add left_quote and
65163         right_quote fields.
65164         (set_custom_quoting): New public function.
65165         (quotearg_buffer_restyled): Add left_quote and right_quote
65166         arguments, handle them very much like locale quoting, and update
65167         all uses.
65168         (quotearg_n_custom): New public function.
65169         (quotearg_n_custom_mem): New public function.
65170         (quotearg_custom): New public function.
65171         (quotearg_custom_mem): New public function.
65172         * lib/quotearg.h: Prototype and document new public functions.
65173         (enum quoting_style): For escape_quoting_style and
65174         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
65175         ignored even though they're otherwise like c_quoting_style.
65176         Add custom_quoting_style member and document with comparison to
65177         clocale_quoting_style.
65178         * tests/test-quotearg.c (custom_quotes): New array.
65179         (custom_results): New array.
65180         (main): Extend to test custom quoting.
65182 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65184         quotearg: fix right quote escaping when it's in quote_these_too
65185         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
65186         quote, be sure to prepend only one backslash.
65187         * tests/test-quotearg.c (use_quote_double_quotes): New function.
65188         (main): Test it.
65190 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65192         quotearg-tests: test escaping of embedded locale quotes
65193         * tests/test-quotearg.c (struct result_strings): Add member for
65194         new input.
65195         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
65196         (inputs): Add new input.
65197         (results_g): Add expected results.
65198         (flag_results): Likewise.
65199         (locale_results): Likewise.
65200         (compare_strings): Check those.
65202 2009-08-23  Bruno Haible  <bruno@clisp.org>
65204         Tests for module 'dup3'.
65205         * modules/dup3-tests: New file.
65206         * tests/test-dup3.c: New file.
65208         New module 'dup3'.
65209         * lib/unistd.in.h (dup3): New declaration.
65210         * lib/dup3.c: New file.
65211         * m4/dup3.m4: New file.
65212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
65213         HAVE_DUP3.
65214         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
65215         * modules/dup3: New file.
65216         * doc/glibc-functions/dup3.texi: Mention the new module.
65218 2009-08-23  Bruno Haible  <bruno@clisp.org>
65220         Tweak the dup2 test.
65221         * tests/test-dup2.c (main): Create the test file empty. Verify that an
65222         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
65223         the test file is still empty. Fix argument order of lseek.
65225 2009-08-23  Bruno Haible  <bruno@clisp.org>
65227         Avoid test link errors when the modules getopt-gnu, gettext are used.
65228         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
65229         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65231 2009-08-23  Bruno Haible  <bruno@clisp.org>
65233         Fix getdtablesize() on mingw.
65234         * lib/getdtablesize.c (getdtablesize): Implement differently.
65235         * lib/unistd.in.h (getdtablesize): Improve comment.
65237 2009-08-23  Bruno Haible  <bruno@clisp.org>
65239         New module 'mkostemp'.
65240         Based on Ulrich Drepper's 2007-08-10 change in glibc.
65241         * lib/stdlib.in.h (mksotemp): New declaration.
65242         * lib/mkostemp.c: New file, from glibc with modifications.
65243         * lib/tempname.h (GT_FILE): Remove outdated comment.
65244         (gen_tempname): Add flags argument.
65245         * lib/tempname.c (__GT_BIGFILE): Remove macro.
65246         (__GT_FILE): Map to 1.
65247         (small_open, large_open): Remove macros.
65248         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
65249         * lib/mkstemp.c (mkstemp): Update.
65250         * lib/mkdtemp.c (mkdtemp): Likewise.
65251         * m4/mkostemp.m4: New file.
65252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
65253         HAVE_MKOSTEMP.
65254         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
65255         HAVE_MKOSTEMP.
65256         * modules/mkostemp: New file, based on modules/mkstemp.
65257         * doc/glibc-functions/mkostemp.texi: Mention the new module.
65258         * NEWS: Mention the change.
65260 2009-08-23  Bruno Haible  <bruno@clisp.org>
65262         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
65263         Reported by Eric Blake.
65265 2009-08-23  Bruno Haible  <bruno@clisp.org>
65267         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
65268         Reported by Eric Blake.
65270 2009-08-23  Bruno Haible  <bruno@clisp.org>
65272         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
65273         * modules/pipe2 (Depends-on): Likewise.
65275 2009-08-23  Eric Blake  <ebb9@byu.net>
65277         fcntl-h: add O_TTY_INIT support
65278         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
65279         * tests/test-fcntl-h.c (o): Test it.
65280         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65282         fcntl-h: rename from fcntl, in preparation for fcntl(2)
65283         * modules/fcntl: Move <fcntl.h> header replacement...
65284         * modules/fcntl-h: ...to new name, so as not to collide with
65285         like-named function.
65286         * tests/test-fcntl.c: Rename...
65287         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
65288         * modules/fcntl-tests: Rename...
65289         * modules/fcntl-h-tests: ...to this.  Update test file name.
65290         * modules/chdir-long (Depends-on): Update clients.
65291         * modules/chdir-safer (Depends-on): Likewise.
65292         * modules/fcntl-safer (Depends-on): Likewise.
65293         * modules/fts (Depends-on): Likewise.
65294         * modules/mkancesdirs (Depends-on): Likewise.
65295         * modules/mkdir-p (Depends-on): Likewise.
65296         * modules/open (Depends-on): Likewise.
65297         * modules/savewd (Depends-on): Likewise.
65298         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
65299         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65301 2009-08-22  Bruno Haible  <bruno@clisp.org>
65303         * modules/binary-io (License): Relicense under LGPL.
65304         * modules/pipe2 (License): Likewise.
65306 2009-08-22  Bruno Haible  <bruno@clisp.org>
65308         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
65309         return value.
65310         * lib/pipe-filter-gi.c (filter_init): Likewise.
65311         Reported by Eric Blake.
65313 2009-08-22  Bruno Haible  <bruno@clisp.org>
65315         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
65316         * modules/pipe (Depends-on): Add pipe2.
65318 2009-08-22  Bruno Haible  <bruno@clisp.org>
65320         Tests for module 'pipe2'.
65321         * modules/pipe2-tests: New file.
65322         * tests/test-pipe2.c: New file.
65324         New module 'pipe2'.
65325         * lib/unistd.in.h (pipe2): New declaration.
65326         * lib/pipe2.c: New file.
65327         * m4/pipe2.m4: New file.
65328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
65329         HAVE_PIPE2.
65330         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
65331         * modules/pipe2: New file.
65332         * doc/glibc-functions/pipe2.texi: Mention the new module.
65334 2009-08-22  Bruno Haible  <bruno@clisp.org>
65336         Reference some new glibc functions.
65337         * doc/glibc-functions/accept4.texi: New file.
65338         * doc/glibc-functions/dup3.texi: New file.
65339         * doc/glibc-functions/mkostemp.texi: New file.
65340         * doc/glibc-functions/pipe2.texi: New file.
65341         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
65342         (Glibc sys/socket.h): Refer to accept4.
65343         (Glibc unistd.h): Refer to dup3, pipe2.
65344         Reported by Eric Blake.
65346 2009-08-22  Jim Meyering  <meyering@redhat.com>
65347             Bruno Haible  <bruno@clisp.org>
65349         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
65350         This makes it so packages using automake-1.11's silent-rules option
65351         can print e.g., a single "GEN    configmake.h" line, rather than
65352         the 30+ statements that perform the job.  If you want to see the
65353         actual commands, you can still run "make V=1".
65354         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
65355         so that make output is abbreviated when those variables are defined
65356         appropriately.
65357         * modules/argz: Likewise.
65358         * modules/arpa_inet: Likewise.
65359         * modules/byteswap: Likewise.
65360         * modules/configmake: Likewise.
65361         * modules/dirent: Likewise.
65362         * modules/errno: Likewise.
65363         * modules/fcntl: Likewise.
65364         * modules/float: Likewise.
65365         * modules/fnmatch: Likewise.
65366         * modules/getopt-posix: Likewise.
65367         * modules/glob: Likewise.
65368         * modules/iconv_open: Likewise.
65369         * modules/inttypes: Likewise.
65370         * modules/localcharset: Likewise.
65371         * modules/locale: Likewise.
65372         * modules/math: Likewise.
65373         * modules/netdb: Likewise.
65374         * modules/netinet_in: Likewise.
65375         * modules/poll: Likewise.
65376         * modules/posix_spawnp-tests: Likewise.
65377         * modules/sched: Likewise.
65378         * modules/search: Likewise.
65379         * modules/selinux-h: Likewise.
65380         * modules/signal: Likewise.
65381         * modules/spawn: Likewise.
65382         * modules/stdarg: Likewise.
65383         * modules/stdbool: Likewise.
65384         * modules/stddef: Likewise.
65385         * modules/stdint: Likewise.
65386         * modules/stdio: Likewise.
65387         * modules/stdlib: Likewise.
65388         * modules/string: Likewise.
65389         * modules/strings: Likewise.
65390         * modules/sys_file: Likewise.
65391         * modules/sys_ioctl: Likewise.
65392         * modules/sys_select: Likewise.
65393         * modules/sys_socket: Likewise.
65394         * modules/sys_stat: Likewise.
65395         * modules/sys_time: Likewise.
65396         * modules/sys_times: Likewise.
65397         * modules/sys_utsname: Likewise.
65398         * modules/sys_wait: Likewise.
65399         * modules/sysexits: Likewise.
65400         * modules/time: Likewise.
65401         * modules/unistd: Likewise.
65402         * modules/wchar: Likewise.
65403         * modules/wctype: Likewise.
65405 2009-08-22  Jim Meyering  <meyering@redhat.com>
65407         announce-gen: detect write failure
65408         * build-aux/announce-gen: Add Coda at end.
65409         Remove equivalent-but-more-verbose block at top.
65411 2009-08-19  Akim Demaille  <demaille@gostai.com>
65413         bootstrap: --help to stdout.
65414         * bootstrap (usage): Don't send --help to stderr.
65415         Use a here doc instead of a long string.
65417 2009-08-21  Eric Blake  <ebb9@byu.net>
65419         test-popen-safer: split from test-popen
65420         * tests/test-popen.c (main): Move...
65421         * tests/test-popen.h: ...into new file.
65422         * tests/test-popen-safer2.c: New file.
65423         * modules/popen-tests (Files): Add test-popen.h.
65424         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
65425         Suggested by Bruno Haible.
65427         test-fcntl-safer: split from test-open
65428         * tests/test-open.c (main): Move...
65429         * tests/test-open.h: ...into new file.
65430         * tests/test-fcntl-safer.c: New file.
65431         * modules/open-tests (Files): Add test-open.h.
65432         * modules/fcntl-safer-tests: New file.
65433         Suggested by Bruno Haible.
65435         test-fopen-safer: split from test-fopen
65436         * tests/test-fopen.c (main): Move...
65437         * tests/test-fopen.h: ...into new file.
65438         * tests/test-fopen-safer.c: New file.
65439         * modules/fopen-tests (Files): Add test-fopen.h.
65440         * modules/fopen-safer-tests: New file.
65441         Suggested by Bruno Haible.
65443 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65445         popen-safer: test O_CLOEXEC at run-time.
65446         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
65448 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65450         fcntl: move more flags to the header
65451         * lib/cloexec.c: Do not define FD_CLOEXEC here.
65452         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
65453         * lib/fcntl.in.h: Do both things here.
65455 2009-08-21  Jim Meyering  <meyering@redhat.com>
65457         consistently remove $@-t before redirecting to it
65458         * modules/argz: Remove $@-t and $@ before redirecting to the former.
65459         * modules/alloca-opt: Likewise.
65460         * modules/byteswap: Likewise.
65461         * modules/fnmatch: Likewise.
65462         * modules/getopt-posix: Likewise.
65463         * modules/glob: Likewise.
65464         * modules/poll: Likewise.
65465         * modules/posix_spawnp-tests: Likewise.
65466         * modules/sys_socket: Likewise.
65467         * modules/sysexits: Likewise.
65469 2009-08-21  Eric Blake  <ebb9@byu.net>
65471         popen: simplify access to original popen
65472         * lib/popen.c (rpl_popen): No need to worry about popen being a
65473         macro.
65474         Reported by Bruno Haible.
65476 2009-08-20  Eric Blake  <ebb9@byu.net>
65478         build: avoid some compiler warnings
65479         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
65480         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
65481         type.
65482         (new_exclude_segment, excluded_file_pattern_p)
65483         (excluded_file_name_p): Reduce scope.
65484         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
65485         old-style declaration.
65487 2009-08-20  Simon Josefsson  <simon@josefsson.org>
65489         * tests/test-exclude1.sh: Handle Windows EOL.
65490         * tests/test-exclude2.sh: Likewise.
65491         * tests/test-exclude3.sh: Likewise.
65492         * tests/test-exclude4.sh: Likewise.
65493         * tests/test-exclude5.sh: Likewise.
65494         * tests/test-exclude6.sh: Likewise.
65495         * tests/test-exclude7.sh: Likewise.
65497 2009-08-19  Akim Demaille  <demaille@gostai.com>
65499         bootstrap: find sha1sum when named gsha1sum.
65500         * bootstrap (find_tool): New.
65501         ($SHA1SUM): New.
65502         Use it.
65504 2009-08-20  Jim Meyering  <meyering@redhat.com>
65506         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
65507         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
65508         expression that converts "." in a file name to "\." in the resulting
65509         regexp.  Start with a dummy statement, so that prior shell variable
65510         definitions are expanded portably.  Reported by Simon Josefsson.
65512 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
65514         Fix polling for writeability of a screen buffer.
65515         * lib/poll.c: Distinguish input and screen buffers for the
65516         Win32 implementation.
65517         * lib/select.c: Likewise.
65519 2009-08-19  Eric Blake  <ebb9@byu.net>
65521         popen-safer: prevent popen from clobbering std descriptors
65522         * modules/popen-safer: New file.
65523         * lib/popen-safer.c: Likewise.
65524         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
65525         * lib/stdio--.h (popen): Provide override.
65526         * lib/stdio-safer.h (popen_safer): Provide declaration.
65527         * tests/test-popen.c (includes): Partially test this.
65528         * modules/popen-safer-tests: New file, for more tests.
65529         * tests/test-popen-safer.c: Likewise.
65530         * MODULES.html.sh (file stream based Input/Output): Mention it.
65532         tests: test some of the *-safer modules
65533         * modules/fopen-safer (Depends-on): Add fopen.
65534         * modules/fcntl-safer (Depends-on): Add fcntl.
65535         * modules/stdlib-safer (Depends-on): Add stdlib.
65536         (configure.ac): Set indicator.
65537         * modules/unistd-safer (configure.ac): Likewise.
65538         * modules/tmpfile-safer (configure.ac): Likewise.
65539         (Depends-on): Add tmpfile.
65540         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
65541         active.
65542         * tests/test-fopen.c (includes): Test safer versions when they are
65543         in use.
65544         * tests/test-open.c (includes): Likewise.
65546         popen: fix cygwin 1.5 bug when stdin closed
65547         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
65548         * modules/popen: New file.
65549         * modules/popen-tests: Likewise.
65550         * tests/test-popen.c: Likewise.
65551         * m4/popen.m4: Likewise.
65552         * lib/popen.c: Likewise.
65553         * lib/stdio.in.h (popen): New declaration.
65554         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
65555         * modules/stdio (Makefile.am): Likewise.
65556         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
65558 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
65560         maint.mk: give full control over update-copyright exclusions
65561         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
65562         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
65563         (update-copyright): Don't force inclusion of top-level
65564         ChangeLog.  Don't force exclusion of all COPYING files, but make
65565         them the default exclusion instead.
65567 2009-08-16  Bruno Haible  <bruno@clisp.org>
65569         Fix test failures on Solaris 10.
65570         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
65571         tests when Solaris iconv() is used.
65572         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65573         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65574         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65575         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65576         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65578 2009-08-16  Bruno Haible  <bruno@clisp.org>
65580         Fix test failures on Solaris 10.
65581         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
65582         'tr' program and pass it as first argument.
65583         * tests/test-pipe-filter-gi1.sh: Likewise.
65584         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
65585         program as first argument.
65586         * tests/test-pipe-filter-gi1.c (main): Likewise.
65588 2009-08-16  Eric Blake  <ebb9@byu.net>
65590         fpurge: fix previous commits
65591         * modules/fpurge (Makefile.am): Make replacement conditional,
65592         partially reverting 2007-04-29 change; missed in previous
65593         attempt.
65594         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
65595         is missing.
65597 2009-08-16  Bruno Haible  <bruno@clisp.org>
65599         Clarify fpurge's effect on the file position.
65600         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
65601         * tests/test-fpurge.c (main): Make a second pass for checking the file
65602         position.
65604 2009-08-16  Bruno Haible  <bruno@clisp.org>
65606         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
65607         declaration of fpurge is missing.
65608         * tests/test-fpurge.c (main): Check that the file has not more contents
65609         than expected. Close the file before removing it.
65611 2009-08-15  Eric Blake  <ebb9@byu.net>
65613         fpurge: don't wrap working cygwin implementation
65614         * lib/fpurge.c (fpurge): Fix comment typo.
65615         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
65616         1.7 to avoid replacement.
65617         * tests/test-fpurge.c (main): Enhance test.
65619 2009-08-15  Eric Blake  <ebb9@byu.net>
65620         and Jim Meyering  <meyering@redhat.com>
65622         test-update-copyright: skip if perl is insufficient
65623         * tests/test-update-copyright.sh: Failure to run maintainer tool
65624         should not cause testsuite failure on cygwin 1.5.
65626 2009-08-14  Eric Blake  <ebb9@byu.net>
65628         doc: mention more functions added in cygwin 1.7.0
65629         * doc/posix-headers/limits.texi (limits.h): Update for recent
65630         cygwin additions.
65631         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
65632         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
65633         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
65634         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
65635         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
65637 2009-08-14  Eric Blake  <ebb9@byu.net>
65639         maint.mk: simplify update-copyright rule
65640         * top/maint.mk (update-copyright-local): Delete, and document how
65641         to do it in cfg.mk instead.
65642         (update-copyright-exclude-regexp): Delete, and document how to do
65643         it in .x-update-copyright instead.
65644         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
65645         exclude ChangeLog.
65647 2009-08-14  Bruno Haible  <bruno@clisp.org>
65649         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
65651 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65653         maint.mk: support update-copyright-env
65654         * top/maint.mk (update-copyright-env): Define place-holder.
65655         (update-copyright): Expand $(update-copyright-env) before
65656         invoking update-copyright.
65658 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65660         update-copyright: implement forced reformatting
65661         * build-aux/update-copyright: Implement and document
65662         UPDATE_COPYRIGHT_FORCE.
65663         * tests/test-update-copyright.sh: Test it.
65665 2009-08-14  Eric Blake  <ebb9@byu.net>
65666         and Bruno Haible  <bruno@clisp.org>
65668         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
65669         * tests/test-locale.c: Revert previous patch related to NULL.
65670         * tests/test-stdio.c: Likewise.
65671         * tests/test-stdlib.c: Likewise.
65672         * tests/test-string.c: Likewise.
65673         * tests/test-unistd.c: Likewise.
65674         * modules/time-tests (Depends-on): Add verify.
65675         * modules/wchar-tests (Depends-on): Likewise.
65676         * tests/test-time.c: Test for NULL compliance.
65677         * tests/test-wchar.c: Likewise.
65678         * modules/locale (Depends-on): Add stddef.
65679         * modules/stdio (Depends-on): Likewise.
65680         * modules/stdlib (Depends-on): Likewise.
65681         * modules/string (Depends-on): Likewise.
65682         * modules/time (Depends-on): Likewise.
65683         * modules/unistd (Depends-on): Likewise.
65684         * modules/wchar (Depends-on): Likewise.
65685         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
65686         * lib/stdlib.in.h (includes): Likewise.
65687         * lib/string.in.h (includes): Likewise.
65688         * lib/time.in.h (includes): Likewise.
65689         * lib/unistd.in.h (includes): Likewise.
65690         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
65691         replaced.
65692         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65693         * m4/stddef_h.m4: New file.
65694         * modules/stddef: Likewise.
65695         * lib/stddef.in.h: Likewise.
65696         * modules/stddef-tests: Likewise.
65697         * tests/test-stddef.c: Likewise.
65698         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
65699         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
65700         * doc/posix-headers/locale.texi (locale.h): Likewise.
65701         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
65702         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65703         * doc/posix-headers/string.texi (string.h): Likewise.
65704         * doc/posix-headers/time.texi (time.h): Likewise.
65705         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
65706         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
65708 2009-08-14  Eric Blake  <ebb9@byu.net>
65710         doc: improve git diff of texinfo files
65711         * .gitattributes: Add rule for *.texi files, with hint on how to
65712         use it.
65713         Copied from m4, and based on a report by Bruno Haible.
65715 2009-08-14  Bruno Haible  <bruno@clisp.org>
65717         Disable multithread support by default on Cygwin 1.5.x for real.
65718         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
65720 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65722         update-copyright: much ado about intervals
65723         * build-aux/update-copyright: Implement and document
65724         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
65725         of copyright year intervals.
65726         Also, document UPDATE_COPYRIGHT_YEAR.
65727         * tests/test-update-copyright.sh: Test it.
65729         update-copyright: convert 2-digit to 4-digit years
65730         * build-aux/update-copyright: Implement and document.
65731         * tests/test-update-copyright.sh: Update.
65733 2009-08-14  Jim Meyering  <meyering@redhat.com>
65735         test-exclude: avoid coreutils "make check" failure
65736         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
65737         just as in test-argmatch.c.
65739 2009-08-13  Eric Blake  <ebb9@byu.net>
65741         test-dup2: fix bad assumption
65742         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
65743         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
65745         test-version-etc: fix CRLF portability issue
65746         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
65747         recognize \r.
65748         * tests/test-argp-version-etc-1.sh: Likewise.
65750         getopt: update client modules
65751         * modules/argp (Depends-on): Use getopt-gnu.
65752         * modules/git-merge-changelog (Depends-on): Likewise.
65753         * modules/long-options (Depends-on): Likewise.
65754         * modules/xstrtol (Depends-on): Likewise.
65756 2009-08-13  Simon Josefsson  <simon@josefsson.org>
65758         * tests/test-version-etc.sh: Don't fail on different
65759         project/version.  Don't fail on CRLF differences.  Rewrite to use
65760         multiple -e instead of multiple sed forks, suggested by Eric Blake
65761         <ebb9@byu.net>.
65762         * tests/test-argp-version-etc-1.sh: Likewise.
65764 2009-08-13  Simon Josefsson  <simon@josefsson.org>
65766         * tests/test-version-etc.sh: Don't fail on different
65767         project/version.
65769 2009-08-12  Bruno Haible  <bruno@clisp.org>
65771         Tests for modules 'getopt-posix', 'getopt-gnu'.
65772         * modules/getopt-posix-tests: New file.
65773         * tests/test-getopt.c: New file.
65774         * tests/test-getopt.h: New file.
65775         * tests/test-getopt_long.h: New file.
65777         New modules 'getopt-posix', 'getopt-gnu'.
65778         * modules/getopt-gnu: New file, renamed from modules/getopt.
65779         * modules/getopt-posix: New file.
65780         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
65781         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
65782         (gl_GETOPT): Remove macro.
65783         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
65784         Disable the test against BSD systems that declare optreset. Test
65785         against mingw bug. Test against lack of support of optional arguments
65786         on many platforms.
65787         * doc/glibc-headers/getopt.texi: Update module name and list of
65788         relevant platforms.
65789         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
65790         'getopt-gnu' and more portability problems.
65791         * NEWS: Mention the changes.
65793 2009-08-12  Bruno Haible  <bruno@clisp.org>
65795         Ensure that optarg etc. get declared by <unistd.h>.
65796         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
65797         AC_USE_SYSTEM_EXTENSIONS.
65798         * modules/getopt (Depends-on): Add 'extensions'.
65800 2009-08-12  Bruno Haible  <bruno@clisp.org>
65802         Avoid test link errors.
65803         * modules/pipe-filter-ii-tests (Makefile.am): Define
65804         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
65805         * modules/pipe-filter-gi-tests (Makefile.am): Define
65806         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
65807         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65809 2009-08-12  Bruno Haible  <bruno@clisp.org>
65811         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
65812         gl_GETOPT_SUBSTITUTE before.
65813         (gl_GETOPT): Use it.
65814         * m4/argp.m4 (gl_ARGP): Update.
65815         Reported by Sergey Poznyakoff.
65817         * m4/getopt.m4: Reorder macros.
65818         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
65819         (gl_GETOPT_SUBSTITUTE): Remove macro.
65821 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65823         Minor improvement in gitlog-to-changelog
65825         * build-aux/gitlog-to-changelog: New option `--format' makes
65826         output format string configurable.
65828 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65830         Optimize exclude: use hash tables for non-wildcard patterns.
65832         * lib/exclude.c: Include hash.h and mbuiter.h
65833         (struct exclude_pattern, exclude_segment): New data types.
65834         (struct exclude): Rewrite.
65835         (fnmatch_pattern_has_wildcards): New function.
65836         (new_exclude_segment, free_exclude_segment): New functions.
65837         (excluded_file_pattern_p, excluded_file_name_p): New functions.
65838         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
65839         * lib/exclude.h (is_fnmatch_pattern): New prototype.
65840         * modules/exclude: Depend on hash and mbuiter.
65842         * modules/exclude-tests: New file.
65843         * tests/test-exclude.c: New file.
65844         * tests/test-exclude1.sh: New file.
65845         * tests/test-exclude2.sh: New file.
65846         * tests/test-exclude3.sh: New file.
65847         * tests/test-exclude4.sh: New file.
65848         * tests/test-exclude5.sh: New file.
65849         * tests/test-exclude6.sh: New file.
65850         * tests/test-exclude7.sh: New file.
65852 2009-08-12  Bruno Haible  <bruno@clisp.org>
65854         Ensure that getopt() gets declared by <unistd.h>.
65855         * lib/unistd.in.h: Conditionally include getopt.h.
65856         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
65857         Set GNULIB_UNISTD_H_GETOPT.
65858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65859         GNULIB_UNISTD_H_GETOPT.
65860         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
65862 2009-08-12  Bruno Haible  <bruno@clisp.org>
65864         Clarify logic.
65865         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
65866         gl_replace_getopt instead of GETOPT_H.
65868 2009-08-12  Bruno Haible  <bruno@clisp.org>
65870         * m4/getopt.m4: Add comments.
65872 2009-08-12  Bruno Haible  <bruno@clisp.org>
65874         Disable multithread support by default on Cygwin 1.5.x.
65875         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
65876         set gl_use_threads=no if not specified otherwise.
65878 2009-08-11  Bruno Haible  <bruno@clisp.org>
65880         Avoid compilation error on NetBSD 5.0.
65881         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
65882         * tests/test-stdio.c: Likewise.
65883         * tests/test-stdlib.c: Likewise.
65884         * tests/test-string.c: Likewise.
65885         * tests/test-unistd.c: Likewise.
65886         Reported by Greg Troxel <gdt@ir.bbn.com>
65887         at <https://savannah.gnu.org/support/?106973>.
65889 2009-08-11  Bruno Haible  <bruno@clisp.org>
65891         * modules/dup2-tests (Depends-on): Remove close.
65893         Undo 2009-07-19 commit.
65894         * modules/acl-tests (Depends-on): Remove close.
65895         * modules/binary-io-tests (Depends-on): Likewise.
65896         * modules/closein-tests (Depends-on): Likewise.
65897         * modules/flock-tests (Depends-on): Likewise.
65898         * modules/fsync-tests (Depends-on): Likewise.
65899         * modules/lseek-tests (Depends-on): Likewise.
65900         * modules/pipe-tests (Depends-on): Likewise.
65901         * modules/posix_spawn-tests (Depends-on): Likewise.
65902         * modules/posix_spawnp-tests (Depends-on): Likewise.
65903         * modules/stat-time-tests (Depends-on): Likewise.
65904         * modules/yesno-tests (Depends-on): Likewise.
65906 2009-08-10  Bruno Haible  <bruno@clisp.org>
65908         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
65910 2009-08-10  Bruno Haible  <bruno@clisp.org>
65912         Fix a gcc warning.
65913         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
65915 2009-08-10  Bruno Haible  <bruno@clisp.org>
65917         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
65918         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
65919         not only the first time.
65920         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
65921         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
65922         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
65923         is 1, not only the first time.
65925 2009-08-10  Bruno Haible  <bruno@clisp.org>
65927         Make it possible to use module 'gethostname' without module 'close'.
65928         * lib/unistd.in.h (close): Evoke a link error only if
65929         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
65930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65931         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
65932         * modules/unistd (Makefile.am): Substitute
65933         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
65934         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
65935         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
65936         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
65937         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
65938         * modules/sys_ioctl (Makefile.am): Substitute
65939         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
65940         * modules/socket (configure.ac): On native Windows, set
65941         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
65942         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
65943         Reported by Sam Steingold <sds@gnu.org>.
65945 2009-08-10  Bruno Haible  <bruno@clisp.org>
65947         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
65948         * modules/ioctl (configure.ac): Likewise.
65950 2009-08-10  Bruno Haible  <bruno@clisp.org>
65952         Avoid collision between gnulib wrapper and libintl wrapper.
65953         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
65954         already defined in intl/printf.c.
65955         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
65956         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
65958 2009-08-09  Bruno Haible  <bruno@clisp.org>
65960         Make <sys/select.h> really self-contained, also on Solaris 10.
65961         * lib/sys_select.in.h: Include <string.h>.
65962         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
65963         Solaris 10 problem.
65964         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
65965         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
65966         Reported by Jim Meyering.
65968 2009-08-09  Bruno Haible  <bruno@clisp.org>
65970         Avoid warnings from 'aclocal' that are due to a use of macro name
65971         AM_XGETTEXT_OPTION that is not defined in automake.
65972         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
65973         automake.
65974         * modules/error (configure.ac): Likewise.
65975         * modules/propername (configure.ac): Likewise.
65976         * modules/vasprintf (configure.ac): Likewise.
65977         * modules/verror (configure.ac): Likewise.
65978         * modules/xprintf (configure.ac): Likewise.
65979         * modules/xvasprintf (configure.ac): Likewise.
65981 2009-08-08  Bruno Haible  <bruno@clisp.org>
65983         Avoid compilation error in C++ mode.
65984         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
65985         Reported by Sam Steingold <sds@gnu.org>.
65987 2009-08-08  Bruno Haible  <bruno@clisp.org>
65989         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
65990         for the various Unix platforms.
65991         * doc/posix-headers/limits.texi: Update platforms list regarding
65992         HOST_NAME_MAX.
65993         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65995 2009-08-07  Jim Meyering  <meyering@redhat.com>
65997         selinux-at: fix typo in a comment
65998         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
65999         Spotted by Paolo Bonzini.
66001         selinux-at: remove redundant m4 code, add documentation
66002         * modules/selinux-at (configure.ac): Remove redundant code.
66003         LIB_SELINUX is already set via the dependent module, selinux-h.
66004         (Include): Add quotes around selinux-at.h.
66005         * lib/selinux-at.h: Add documentation.
66006         Reported by Bruno Haible in
66007         http://marc.info/?l=gnulib-bug&m=124958988300749
66009 2009-08-07  Bruno Haible  <bruno@clisp.org>
66011         Avoid link error on MacOS X 10.3 and 10.4.
66012         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
66013         on non-ELF systems.
66014         * lib/argp-pv.c (argp_program_version): Likewise.
66015         Reported by Simon Josefsson.
66017 2009-08-07  Simon Josefsson  <simon@josefsson.org>
66019         * tests/test-version-etc.sh: Use $EXEEXT.
66021 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
66023         update-copyright: update documentation to point to maint.mk
66024         * build-aux/update-copyright: Here.
66026 2009-08-06  Jim Meyering  <meyering@redhat.com>
66028         maint.mk: support update-copyright-local
66029         * top/maint.mk (update-copyright-local): Define place-holder.
66030         (update-copyright): Depend on $(update-copyright-local).
66032 2009-08-06  Jim Meyering  <meyering@redhat.com>
66034         selinux-at: new module
66035         Initially written for coreutils, this module will soon be
66036         used by findutils, too.
66037         * MODULES.html.sh [Misc]: Add selinux-at.
66038         * lib/selinux-at.h: New file, from coreutils.
66039         * lib/selinux-at.c: Likewise.
66040         * modules/selinux-at: Likewise.
66041         (License): Change from LGPL to GPL, since it depends
66042         on the GPL'd openat module.
66044         doc: update README
66045         * README: Remove references to cogito.
66046         Remove cvs-repo-updating instructions from 2007.
66047         Don't imply that CVS is better if you have limited disk space.
66049 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66051         update-copyright: support C-style comments
66052         * build-aux/update-copyright: Implement and document.
66053         * tests/test-update-copyright.sh: Test.
66055 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66057         update-copyright: support omitted "(C)"
66058         * build-aux/update-copyright: Implement and document.  Also,
66059         allow variable whitespace before "(C)".
66060         * tests/test-update-copyright.sh: Test.
66062 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66064         update-copyright: don't trip on non-FSF copyright statements
66065         * build-aux/update-copyright: Fix so that the first correctly
66066         formatted FSF copyright statement is recognized no matter what
66067         appears before it.  Update documentation.
66068         * tests/test-update-copyright.sh: Test that.
66070 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66072         update-copyright: clean up code a little
66073         * build-aux/update-copyright: Append "_re" to the name of any
66074         variable holding a regular expression.
66075         Replace "old" and "new" with "stmt" in variable names.
66076         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
66077         handled correctly.
66078         Format code more consistently.
66080 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66082         update-copyright-tests: improve portability
66083         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
66084         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
66086 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
66088         update-copyright: support @copyright{} and &copy;
66089         * build-aux/update-copyright: Implement and document.
66090         * tests/test-update-copyright.sh: Test.
66092 2009-08-04  Jim Meyering  <meyering@redhat.com>
66094         update-copyright-tests: correctly test EOL=\r\n handling
66095         * tests/test-update-copyright.sh: Put \r at the end of some lines
66096         for the dos-eol tests.  Based on a patch by Joel E. Denny.
66098         maint.mk: make update-copyright exclusion list more configurable
66099         * top/maint.mk (update-copyright): Default to excluding COPYING,
66100         but allow an override, in case someone does want to update that file.
66102         maint.mk: don't update copyright date in COPYING
66103         * top/maint.mk (update-copyright): Exclude COPYING.
66105         maint.mk: add a copyright-updating rule
66106         * top/maint.mk (update-copyright): New rule.
66107         Derived from coreutils/Makefile.am.
66109         update-copyright: rename some variables
66110         * build-aux/update-copyright: Rename a few variables for clarity.
66111         Tweak syntax.  List Joel E. Denny as coauthor.
66113 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
66115         update-copyright: fix bug for 2-digit last year and add tests
66116         * build-aux/update-copyright: Fix bug.
66117         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
66118         specified.
66119         * modules/update-copyright-tests: New
66120         * tests/test-update-copyright.sh: New.
66122 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66124         update-copyright: handle leading tabs in line prefix
66125         * build-aux/update-copyright: Count leading tabs as 8 spaces
66126         when computing margin.  This helps with the formatting of
66127         ChangeLogs, for example.
66128         Fix documentation a little.
66130 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66132         update-copyright: support EOL=\r\n
66133         * build-aux/update-copyright: Implement that.
66135 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66137         update-copyright: automatically format copyright statements
66138         * build-aux/update-copyright: Implement that.
66139         Also, be a little more predictable and safer by always failing
66140         when the full copyright format is not perfectly recognized as an
66141         unbroken whole.  Discussed at
66142         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
66143         Rewrite documentation.
66145 2009-08-03  Bruno Haible  <bruno@clisp.org>
66147         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
66149 2009-08-02  Bruno Haible  <bruno@clisp.org>
66151         Tests for module 'uname'.
66152         * modules/uname-tests: New file.
66153         * tests/test-uname.c: New file.
66155         New module 'uname'.
66156         * lib/uname.c: New file.
66157         * m4/uname.m4: New file.
66158         * modules/uname: New file.
66159         * doc/posix-functions/uname.texi: Mention the new module.
66161 2009-08-02  Bruno Haible  <bruno@clisp.org>
66163         Tests for module 'sys_utsname'.
66164         * modules/sys_utsname-tests: New file.
66165         * tests/test-sys_utsname.c: New file.
66167         New module 'sys_utsname'.
66168         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
66169         * m4/sys_utsname_h.m4: New file.
66170         * modules/sys_utsname: New file.
66171         * doc/posix-headers/sys_utsname.texi: Mention the new module.
66173 2009-08-02  Bruno Haible  <bruno@clisp.org>
66175         Implicitly initialize the sockets library.
66176         * lib/gethostname.c: Include sockets.h.
66177         (rpl_gethostname): Invoke gl_sockets_startup.
66178         * lib/socket.c: Include sockets.h.
66179         (rpl_socket): Invoke gl_sockets_startup.
66180         * modules/gethostname (Depends-on): Add sockets.
66181         * modules/socket (Depends-on): Likewise.
66182         * tests/test-poll.c: Don't include sockets.h.
66183         (main): Don't invoke gl_sockets_startup.
66184         * tests/test-select.c: Don't include sockets.h.
66185         (main): Don't invoke gl_sockets_startup.
66187 2009-08-02  Bruno Haible  <bruno@clisp.org>
66189         Allow multiple calls to gl_sockets_startup.
66190         * lib/sockets.c (initialized_sockets_version): New variable.
66191         (gl_sockets_startup): Do nothing if already called for this or a higher
66192         version.
66193         (gl_sockets_cleanup): Reset initialized_sockets_version.
66195 2009-08-03  Simon Josefsson  <simon@josefsson.org>
66197         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
66198         different project/version.
66200 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
66201             Bruno Haible  <bruno@clisp.org>
66203         Tests for module 'pipe-filter-gi'.
66204         * modules/pipe-filter-gi-tests: New file.
66205         * tests/test-pipe-filter-gi1.sh: New file.
66206         * tests/test-pipe-filter-gi1.c: New file.
66207         * tests/test-pipe-filter-gi2.sh: New file.
66208         * tests/test-pipe-filter-gi2-main.c: New file.
66209         * tests/test-pipe-filter-gi2-child.c: New file.
66211         New module 'pipe-filter-gi'.
66212         * lib/pipe-filter-gi.c: New file.
66213         * modules/pipe-filter-gi: New file.
66215 2009-08-02  Bruno Haible  <bruno@clisp.org>
66216             Paolo Bonzini  <bonzini@gnu.org>
66218         Tests for module 'pipe-filter-ii'.
66219         * modules/pipe-filter-ii-tests: New file.
66220         * tests/test-pipe-filter-ii1.sh: New file.
66221         * tests/test-pipe-filter-ii1.c: New file.
66222         * tests/test-pipe-filter-ii2.sh: New file.
66223         * tests/test-pipe-filter-ii2-main.c: New file.
66224         * tests/test-pipe-filter-ii2-child.c: New file.
66226         New module 'pipe-filter-ii'.
66227         * lib/pipe-filter.h: New file.
66228         * lib/pipe-filter-ii.c: New file.
66229         * lib/pipe-filter-aux.h: New file.
66230         * modules/pipe-filter-ii: New file.
66232 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66234         * lib/gc-libgcrypt.c: Change copyright to FSF.
66235         * lib/gc-gnulib.c: Likewise.
66237 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
66239         * lib/gethostname.c: Include limits.h.
66241 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66242             Bruno Haible  <bruno@clisp.org>
66244         Ensure HOST_NAME_MAX as part of the gethostname module.
66245         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
66246         define also HOST_NAME_MAX.
66247         * tests/test-gethostname.c: Include <limits.h>.
66248         (main): Check also HOST_NAME_MAX.
66249         * doc/posix-headers/limits.texi: Document the mingw problem.
66251 2009-08-02  Bruno Haible  <bruno@clisp.org>
66253         * lib/gethostname.c (gethostname): Fix handling of large len argument.
66254         Add comments.
66256 2009-03-31  Simon Josefsson  <simon@josefsson.org>
66258         * lib/gethostname.c: Add Windows wrapper.
66259         * m4/gethostname.m4: Look for gethostname in -lws2_32.
66260         * modules/gethostname: Depend on sys_socket & errno, for also
66261         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
66262         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
66264 2009-07-31  Jim Meyering  <meyering@redhat.com>
66266         getloadavg: fix symbol name in comment
66267         * lib/getloadavg.c: Correct a typo I introduced when adding
66268         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
66269         Matt Kraai spotted the problem.
66271 2009-07-29  Matt Kraai  <mkraai@beckman.com>
66273         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
66274         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
66275         code also if ! defined N_NAME_POINTER.
66276         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
66277         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
66278         but the n_name member is a 12-byte array.
66280 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
66282         update-copyright: generalize comment handling
66283         * build-aux/update-copyright: Handle copyright statements
66284         within more comment styles.
66285         Document usage.
66286         Report any file with an external copyright holder or parse failure.
66288 2009-07-29  Jim Meyering  <meyering@redhat.com>
66290         mktime: correct setting of REPLACE_MKTIME
66291         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
66293         update-copyright: new module
66294         * modules/update-copyright: New file.
66295         * build-aux/update-copyright: New file.
66296         * MODULES.html.sh (maint+release support): Add update-copyright.
66298 2009-07-27  Bruno Haible  <bruno@clisp.org>
66300         Fix compilation error when <ctime> is used and mktime is replaced.
66301         * lib/time.in.h (mktime): New declaration.
66302         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
66303         REPLACE_MKTIME instead of defining mktime in config.h.
66304         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
66305         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
66306         Reported by Ross McFarland <rwmcfa1@neces.com>.
66308 2009-07-27  Bruno Haible  <bruno@clisp.org>
66310         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
66311         Reported by Matt Kraai <mkraai@beckman.com>.
66313 2009-07-25  Jim Meyering  <meyering@redhat.com>
66315         maint.mk: avoid warnings about missing files
66316         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
66317         diagnostic when .prev-version does not exist.
66318         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
66319         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
66320         nonexistent cfg.mk.
66321         Suggestions from Simon Josefsson.
66323 2009-07-25  Bruno Haible  <bruno@clisp.org>
66325         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
66326         defined as macros. Needed on QNX 6.4.1.
66327         Reported by Matt Kraai <mkraai@beckman.com>.
66329 2009-07-23  Jim Meyering  <meyering@redhat.com>
66331         maint.mk: invoke "make dist" with a working value of XZ_OPT
66332         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
66334 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
66336         Make fseeko.c compile on QNX.
66337         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
66339 2009-07-22  Peter Simons  <simons@cryp.to>
66341         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
66342         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
66343         * lib/md4.h: Likewise.
66344         * lib/md5.h: Likewise.
66345         * lib/sha1.h: Likewise.
66346         * lib/sha256.h: Likewise.
66347         * lib/sha512.h: Likewise.
66349         tests-sha1: don't assign literal string to 'char *' variable
66350         * tests/test-sha1.c (main): Declare locals with "const" to match
66351         attributes of the right hand side.
66353 2009-07-21  Eric Blake  <ebb9@byu.net>
66355         dup2: fix more mingw problems
66356         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
66357         fd to itself.
66358         * doc/posix-functions/dup2.texi (dup2): Document the bug.
66359         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
66360         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
66361         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
66362         care of mingw bugs.
66364 2009-07-21  Jim Meyering  <meyering@redhat.com>
66366         vc-list-files: avoid failure when /bin/sh is dash
66367         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
66368         On some Debian based systems, /bin/sh is a symlink to dash, and running
66369         this command would omit the "/" following each 'tests' prefix:
66370           dash -x build-aux/vc-list-files -C . tests
66371         That is because bash and dash work differently:
66372           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
66373           bash ok
66374           dash odd
66376 2009-07-21  Eric Blake  <ebb9@byu.net>
66378         dup2-tests: test previous patch
66379         * modules/dup2-tests: New file.
66380         * tests/test-dup2.c: Likewise.
66381         * tests/test-open.c (main): Avoid unspecified behavior.
66382         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
66383         test.
66385         dup2: work around mingw and cygwin 1.5 bug
66386         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
66387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
66388         * modules/unistd (Makefile.am): Substitute it.
66389         * lib/unistd.in.h (dup2): Declare the replacement.
66390         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
66391         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
66392         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
66393         * modules/execute (Depends-on): Add dup2.
66394         * modules/fseterr (Depends-on): Likewise.
66395         * modules/pipe (Depends-on): Likewise.
66396         * modules/posix_spawn-internal (Depends-on): Likewise.
66398 2009-07-21  Bruno Haible  <bruno@clisp.org>
66400         * modules/.gitattributes: New file.
66402 2009-07-20  Bruno Haible  <bruno@clisp.org>
66404         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
66405         (main): Use it.
66407 2009-07-20  Eric Blake  <ebb9@byu.net>
66409         test-pipe: make a bit more robust.
66410         * tests/test-pipe.c (myerr): Allow error messages regardless of
66411         what we do to stderr.
66412         (test_pipe): Rearrange to avoid deadlock.
66413         (child_main): Try a larger read, to ensure we avoided deadlock.
66414         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
66415         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
66416         if misused.
66418 2009-07-19  Jim Meyering  <meyering@redhat.com>
66420         fts: avoid false-positive cycle-detection
66421         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
66422         for each new command line argument.
66424 2009-07-19  Bruno Haible  <bruno@clisp.org>
66426         Fix build error on mingw with the modules sys_select and unistd.
66427         * modules/acl-tests (Depends-on): Add close.
66428         * modules/binary-io-tests (Depends-on): Likewise.
66429         * modules/closein-tests (Depends-on): Likewise.
66430         * modules/flock-tests (Depends-on): Likewise.
66431         * modules/fsync-tests (Depends-on): Likewise.
66432         * modules/lseek-tests (Depends-on): Likewise.
66433         * modules/pipe-tests (Depends-on): Likewise.
66434         * modules/posix_spawn-tests (Depends-on): Likewise.
66435         * modules/posix_spawnp-tests (Depends-on): Likewise.
66436         * modules/stat-time-tests (Depends-on): Likewise.
66437         * modules/yesno-tests (Depends-on): Likewise.
66439 2009-07-19  Bruno Haible  <bruno@clisp.org>
66441         Unify conditionals.
66442         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
66443         macros, not at the compiler macros.
66444         * lib/pipe.c: Likewise.
66445         * lib/execute.c: Likewise.
66446         * lib/spawni.c: Likewise.
66448 2009-07-19  Bruno Haible  <bruno@clisp.org>
66450         Fix handling of closed stdin/stdout/stderr on mingw.
66451         * lib/w32spawn.h: Include unistd.h.
66452         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
66453         file descriptor with O_NOINHERIT flag.
66454         (fd_safer_noinherit): New function, based on fd-safer.c.
66455         (dup_safer_noinherit): New function, based on dup-safer.c.
66456         (undup_safer_noinherit): New function.
66457         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
66458         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
66459         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
66460         instead of fd_safer.
66461         * tests/test-pipe.c: Include <windows.h>.
66462         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
66463         result.
66465         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
66466         from main.
66467         (test_pipe): Pass an extra argument for disambiguation.
66468         (main): Invoke parent_main or child_main.
66470         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
66471         consistently.
66473 2009-07-18  Eric Blake  <ebb9@byu.net>
66475         test-pipe: fix mingw build
66476         * tests/test-pipe.c (main): Avoid fcntl on mingw.
66478 2009-07-18  Bruno Haible  <bruno@clisp.org>
66480         * modules/pipe-tests (Makefile.am): Fix typo.
66482 2009-07-18  Eric Blake  <ebb9@byu.net>
66484         error: fix mingw build
66485         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
66486         Reported by Bruno Haible.
66488         error: avoid undefined use of stdout
66489         * lib/error.c (error, error_at_line): Check that fd 1 is open
66490         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
66491         is handling faults and the close_stdout module wants to report the
66492         detection of closed stdout as an error.
66494 2009-07-17  Eric Blake  <ebb9@byu.net>
66496         pipe: be robust in face of closed fds
66497         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
66498         should cause child to misbehave.
66499         * modules/pipe-tests: New module.
66500         * tests/test-pipe.c: New file.
66501         * tests/test-pipe.sh: New file.
66502         Reported by Akim Demaille.
66504 2009-07-14  Bruno Haible  <bruno@clisp.org>
66506         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
66507         Reported by anonymous kc.
66509 2009-07-07  Jim Meyering  <meyering@redhat.com>
66511         maint.mk: don't look for translatable strings in *.m4 or *.mk
66512         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
66513         when searching for translatable strings.
66515 2009-07-05  Jim Meyering  <meyering@redhat.com>
66517         remove superfluous parentheses in STREQ definition
66518         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
66519         * lib/getugroups.c (STREQ): Likewise.
66520         * lib/fnmatch.c (STREQ): Likewise.
66521         Spotted by Bruno Haible.
66523 2009-07-04  Jim Meyering  <meyering@redhat.com>
66525         argv-iter: new module
66526         * MODULES.html.sh: Add argv-iter.
66527         * lib/argv-iter.c, lib/argv-iter.h: New files.
66528         * modules/argv-iter: New file.
66529         * modules/argv-iter-tests: New file.
66530         * tests/test-argv-iter.c: Test it.
66532 2009-07-04  Bruno Haible  <bruno@clisp.org>
66534         Fix assertion.
66535         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
66536         contains more exact copies of a given entry than file2, leave the extra
66537         copies unpaired rather than aborting.
66538         Reported by Eric Blake.
66540 2009-07-02  Bruno Haible  <bruno@clisp.org>
66542         Speedup git-merge-changelog for git cherry-pick.
66543         * lib/git-merge-changelog.c (struct entries_mapping): New type.
66544         (entries_mapping_get): New function, extracted from compute_mapping.
66545         (entries_mapping_reverse_get): New function.
66546         (compute_mapping): Add a 'full' argument. Return the result in a
66547         'struct entries_mapping'.
66548         (main): Update. Access the mappings through entries_mapping_get.
66549         Reported by Eric Blake.
66551 2009-07-02  Bruno Haible  <bruno@clisp.org>
66553         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
66554         best_i.
66556 2009-07-02  Bruno Haible  <bruno@clisp.org>
66558         Speed up approximate search for matching ChangeLog entries.
66559         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
66560         argument. Call fstrcmp_bounded instead of fstrcmp.
66561         (compute_mapping, try_split_merged_entry, main): Update callers.
66563 2009-07-02  Bruno Haible  <bruno@clisp.org>
66565         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
66567 2009-06-30  Bruno Haible  <bruno@clisp.org>
66569         Reduce the number of uc_is_cased calls.
66570         * lib/unicase.h (casing_suffix_context_t): Add
66571         'first_char_except_ignorable' field.
66572         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
66573         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
66574         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
66575         Update initializer.
66576         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
66577         case-ignorable characters.
66578         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
66579         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
66580         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
66581         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
66582         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
66584 2009-06-30  Bruno Haible  <bruno@clisp.org>
66586         Tests for module 'unicase/ignorable'.
66587         * modules/unicase/ignorable-tests: New file.
66588         * tests/unicase/test-ignorable.c: New file, generated by
66589         gen-uni-tables.
66591         Tests for module 'unicase/cased'.
66592         * modules/unicase/cased-tests: New file.
66593         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
66594         * tests/unicase/test-predicate-part1.h: New file, derived from
66595         tests/unictype/test-predicate-part1.h.
66596         * tests/unicase/test-predicate-part2.h: New file, same as
66597         tests/unictype/test-predicate-part2.h.
66599         Fix evaluation of "Before C" condition of FINAL_SIGMA.
66600         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
66601         (output_casing_properties): New function.
66602         (main): Call it.
66603         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
66604         * lib/unicase/cased.c: Include unictype/bitmap.h.
66605         (uc_is_cased): Define through a bitmap lookup.
66606         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
66607         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
66608         (uc_is_case_ignorable): Define through a bitmap lookup.
66609         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
66610         lib/unictype/bitmap.h.
66611         (Depends-on): Add inline. Clean up.
66612         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
66613         lib/unictype/bitmap.h.
66614         (Depends-on): Add inline. Clean up.
66615         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
66616         recognition.
66617         * tests/unicase/test-u16-tolower.c (main): Likewise.
66618         * tests/unicase/test-u32-tolower.c (main): Likewise.
66620 2009-06-30  Bruno Haible  <bruno@clisp.org>
66622         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
66623         * lib/unicase/u16-casemap.c: Likewise.
66624         * lib/unicase/u32-casemap.c: Likewise.
66626 2009-06-29  Bruno Haible  <bruno@clisp.org>
66628         Define u32_casefold as a wrapper around u32_ct_casefold.
66629         * lib/unicase/u32-casefold.c: Update.
66630         * modules/unicase/u32-casefold (Depends-on): Add
66631         unicase/u32-ct-casefold, unicase/empty-prefix-context,
66632         unicase/empty-suffix-context. Clean up.
66634         Define u16_casefold as a wrapper around u16_ct_casefold.
66635         * lib/unicase/u16-casefold.c: Update.
66636         * modules/unicase/u16-casefold (Depends-on): Add
66637         unicase/u16-ct-casefold, unicase/empty-prefix-context,
66638         unicase/empty-suffix-context. Clean up.
66640         Define u8_casefold as a wrapper around u8_ct_casefold.
66641         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
66642         * lib/unicase/u8-casefold.c: Update.
66643         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
66644         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66646         Define u32_totitle as a wrapper around u32_ct_totitle.
66647         * lib/unicase/u32-totitle.c: Update.
66648         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
66649         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66651         Define u16_totitle as a wrapper around u16_ct_totitle.
66652         * lib/unicase/u16-totitle.c: Update.
66653         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
66654         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66656         Define u8_totitle as a wrapper around u8_ct_totitle.
66657         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
66658         functions.
66659         (FUNC): Delegate to U_CT_TOTITLE.
66660         * lib/unicase/u8-totitle.c: Update.
66661         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
66662         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66664         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
66665         invocation.
66666         * modules/unicase/u32-tolower (Depends-on): Add
66667         unicase/empty-prefix-context, unicase/empty-suffix-context.
66669         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
66670         invocation.
66671         * modules/unicase/u16-tolower (Depends-on): Add
66672         unicase/empty-prefix-context, unicase/empty-suffix-context.
66674         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
66675         * modules/unicase/u8-tolower (Depends-on): Add
66676         unicase/empty-prefix-context, unicase/empty-suffix-context.
66678         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
66679         invocation.
66680         * modules/unicase/u32-toupper (Depends-on): Add
66681         unicase/empty-prefix-context, unicase/empty-suffix-context.
66683         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
66684         invocation.
66685         * modules/unicase/u16-toupper (Depends-on): Add
66686         unicase/empty-prefix-context, unicase/empty-suffix-context.
66688         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
66689         * modules/unicase/u8-toupper (Depends-on): Add
66690         unicase/empty-prefix-context, unicase/empty-suffix-context.
66692         New module 'unicase/u32-ct-casefold'.
66693         * lib/unicase/u32-ct-casefold.c: New file.
66694         * modules/unicase/u32-ct-casefold: New file.
66696         New module 'unicase/u16-ct-casefold'.
66697         * lib/unicase/u16-ct-casefold.c: New file.
66698         * modules/unicase/u16-ct-casefold: New file.
66700         New module 'unicase/u8-ct-casefold'.
66701         * lib/unicase/u8-ct-casefold.c: New file.
66702         * lib/unicase/u-ct-casefold.h: New file, derived from
66703         lib/unicase/u-casefold.h.
66704         * modules/unicase/u8-ct-casefold: New file.
66706         New module 'unicase/u32-ct-totitle'.
66707         * lib/unicase/u32-ct-totitle.c: New file.
66708         * modules/unicase/u32-ct-totitle: New file.
66710         New module 'unicase/u16-ct-totitle'.
66711         * lib/unicase/u16-ct-totitle.c: New file.
66712         * modules/unicase/u16-ct-totitle: New file.
66714         New module 'unicase/u8-ct-totitle'.
66715         * lib/unicase/u8-ct-totitle.c: New file.
66716         * lib/unicase/u-ct-totitle.h: New file, derived from
66717         lib/unicase/u-totitle.h.
66718         * modules/unicase/u8-ct-totitle: New file.
66720         New module 'unicase/u32-ct-tolower'.
66721         * lib/unicase/u32-ct-tolower.c: New file.
66722         * modules/unicase/u32-ct-tolower: New file.
66724         New module 'unicase/u16-ct-tolower'.
66725         * lib/unicase/u16-ct-tolower.c: New file.
66726         * modules/unicase/u16-ct-tolower: New file.
66728         New module 'unicase/u8-ct-tolower'.
66729         * lib/unicase/u8-ct-tolower.c: New file.
66730         * modules/unicase/u8-ct-tolower: New file.
66732         New module 'unicase/u32-ct-toupper'.
66733         * lib/unicase/u32-ct-toupper.c: New file.
66734         * modules/unicase/u32-ct-toupper: New file.
66736         New module 'unicase/u16-ct-toupper'.
66737         * lib/unicase/u16-ct-toupper.c: New file.
66738         * modules/unicase/u16-ct-toupper: New file.
66740         New module 'unicase/u8-ct-toupper'.
66741         * lib/unicase/u8-ct-toupper.c: New file.
66742         * modules/unicase/u8-ct-toupper: New file.
66744         Add context arguments to u*_casemap functions.
66745         * lib/unicase/unicasemap.h: Include unicase.h.
66746         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
66747         suffix_context arguments.
66748         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
66749         functions.
66750         (FUNC): Add prefix_context and suffix_context arguments. Use
66751         uc_is_cased and uc_is_case_ignorable.
66752         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
66753         * lib/unicase/u16-casemap.c: Likewise.
66754         * lib/unicase/u32-casemap.c: Likewise.
66755         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
66756         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66757         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
66758         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66759         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
66760         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66762         New module 'unicase/u32-suffix-context'.
66763         * lib/unicase/u32-suffix-context.c: New file.
66764         * modules/unicase/u32-suffix-context: New file.
66766         New module 'unicase/u16-suffix-context'.
66767         * lib/unicase/u16-suffix-context.c: New file.
66768         * modules/unicase/u16-suffix-context: New file.
66770         New module 'unicase/u8-suffix-context'.
66771         * lib/unicase/u8-suffix-context.c: New file.
66772         * lib/unicase/u-suffix-context.h: New file.
66773         * modules/unicase/u8-suffix-context: New file.
66775         New module 'unicase/empty-suffix-context'.
66776         * lib/unicase/empty-suffix-context.c: New file.
66777         * modules/unicase/empty-suffix-context: New file.
66779         New module 'unicase/u32-prefix-context'.
66780         * lib/unicase/u32-prefix-context.c: New file.
66781         * modules/unicase/u32-prefix-context: New file.
66783         New module 'unicase/u16-prefix-context'.
66784         * lib/unicase/u16-prefix-context.c: New file.
66785         * modules/unicase/u16-prefix-context: New file.
66787         New module 'unicase/u8-prefix-context'.
66788         * lib/unicase/u8-prefix-context.c: New file.
66789         * lib/unicase/u-prefix-context.h: New file.
66790         * lib/unicase/context.h: New file.
66791         * modules/unicase/u8-prefix-context: New file.
66793         New module 'unicase/empty-prefix-context'.
66794         * lib/unicase/empty-prefix-context.c: New file.
66795         * modules/unicase/empty-prefix-context: New file.
66797         New module 'unicase/ignorable'.
66798         * lib/unicase/ignorable.c: New file.
66799         * modules/unicase/ignorable: New file.
66801         New module 'unicase/cased'.
66802         * lib/unicase/caseprop.h: New file.
66803         * lib/unicase/cased.c: New file.
66804         * modules/unicase/cased: New file.
66806         New functions for case mapping of substrings.
66807         * lib/unicase.h (casing_prefix_context_t): New type.
66808         (unicase_empty_prefix_context): New variable.
66809         (u8_casing_prefix_context, u16_casing_prefix_context,
66810         u32_casing_prefix_context, u8_casing_prefixes_context,
66811         u16_casing_prefixes_context, u32_casing_prefixes_context): New
66812         declarations.
66813         (casing_suffix_context_t): New type.
66814         (unicase_empty_suffix_context): New variable.
66815         (u8_casing_suffix_context, u16_casing_suffix_context,
66816         u32_casing_suffix_context, u8_casing_suffixes_context,
66817         u16_casing_suffixes_context, u32_casing_suffixes_context,
66818         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
66819         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
66820         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
66821         declarations.
66823 2009-06-28  Jim Meyering  <meyering@redhat.com>
66825         boostrap: indent only with spaces
66826         * build-aux/bootstrap: Indent only with spaces, never TABs.
66828         bootstrap: split long lines
66829         * build-aux/bootstrap: Keep line length < 80.
66831         bootstrap: sync from coreutils
66832         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
66833         just as autoreconf does.  Verify a list of prerequisite
66834         package-name,version-number pairs if defined in bootstrap.conf.
66835         Refer to README-prereq, if prerequisites are not satisfied.
66837 2009-06-27  Eric Blake  <ebb9@byu.net>
66839         tests: add test for bogus NULL definition
66840         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
66841         * tests/test-stdlib.c: Likewise.
66842         * tests/test-string.c: Likewise.
66843         * tests/test-locale.c: Likewise.
66844         * tests/test-unistd.c: Likewise.
66845         * modules/stdio-tests (Depends-on): Add verify.
66846         * modules/stdlib-tests (Depends-on): Likewise.
66847         * modules/string-tests (Depends-on): Likewise.
66848         * modules/locale-tests (Depends-on): Likewise.
66849         * modules/unistd-tests (Depends-on): Likewise.
66851 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
66853         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
66854         self-explaining comment.
66855         * m4/selinux-selinux-h: Update serial.
66856         (gl_LIBSELINUX): New macro, adding a warning for missing development
66857         packages to code extracted from...
66858         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
66859         Add warning for missing development packages here, too.
66861 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
66863         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
66865 2009-06-25  Eric Blake  <ebb9@byu.net>
66867         version-etc: fix regression
66868         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
66869         gcc.
66870         (version_etc): Use it, to catch bugs with trailing NULL.
66871         * lib/version-etc.c (version_etc_arn): Delete unused argument.
66872         (version_etc_va): Fix logic bug.
66873         * modules/version-etc-tests: Add test.
66874         * tests/test-version-etc.c: New file.
66875         * tests/test-version-etc.sh: Likewise.
66877 2009-06-25  Sam Steingold  <sds@gnu.org>
66879         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
66880         mbtowc declaration.
66882 2009-06-25  Eric Blake  <ebb9@byu.net>
66884         fpurge: migrate into <stdio.h>
66885         * lib/fpurge.h: Delete...
66886         * lib/stdio.in.h (fpurge): ...and declare here, instead.
66887         * lib/fpurge.c (fpurge): Change declaring header.
66888         * modules/fpurge (Files): Drop deleted file.
66889         (Depends-on): Add stdio.
66890         (configure.ac): Set witness.
66891         * modules/stdio (Makefile.am): Support fpurge macros.
66892         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66893         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
66894         * lib/fflush.c: Update client.
66895         * tests/test-fpurge.c: Likewise.
66896         * NEWS: Mention the change.
66898 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66900         * lib/argp-version-etc.c (program_authors): Add const
66901         qualifier.
66902         * lib/version-etc.c: Fix typos in the comments.
66903         * modules/argp-version-etc: Depends on version-etc.
66905 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66907         argp-version-etc: new module.
66909         * lib/argp-version-etc.c: New file.
66910         * lib/argp-version-etc.h: New file.
66911         * modules/argp-version-etc: New file.
66912         * modules/argp-version-etc-tests: New file.
66913         * tests/test-argp-version-etc.c: New test.
66914         * tests/test-argp-version-etc-1.sh: New test.
66916 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66918         Provide additional interfaces and documentation for version-etc
66919         module.
66921         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
66922         interfaces.
66923         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
66924         prototypes.
66926 2009-06-24  Bruno Haible  <bruno@clisp.org>
66928         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
66929         HAVE_LIB${NAME} macro.
66930         Reported by Sam Steingold <sds@gnu.org>.
66932 2009-06-23  Simon Josefsson  <simon@josefsson.org>
66934         * modules/hash-tests (test_hash_LDADD): Link to libintl when
66935         needed.
66937 2009-06-21  Bruno Haible  <bruno@clisp.org>
66939         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
66940         work.
66941         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
66942         together with LIB${NAME}, LTLIB${NAME}.
66943         Reported by Sam Steingold <sds@gnu.org>.
66945 2009-06-20  Jim Meyering  <meyering@redhat.com>
66947         tests: make sc_require_test_exit_idiom more generic
66948         * top/maint.mk (Exit_witness_file): New overridable variable.
66949         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
66950         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
66952 2009-06-19  Jim Meyering  <meyering@redhat.com>
66954         hash: reverse order of src/dst parameters in an internal interface
66955         * lib/hash.c (transfer_entries): Reverse order of parameters to
66956         put DST before SRC.  Adjust callers.
66958         tests: test-hash: avoid wholesale duplication
66959         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
66960         Instead, use a loop and add a single conditional.
66962         tests: test-hash: allow seed selection via a command line argument
66963         * tests/test-hash.c (get_seed): New function.
66964         (main): Use it.
66966 2009-06-19  Eric Blake  <ebb9@byu.net>
66968         hash: avoid memory leak on allocation failure
66969         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
66970         failure.  Factor repeated algorithm...
66971         (transfer_entries): ...into new helper routine.
66972         (hash_delete): React to hash_rehash return value.
66974         hash: reduce memory pressure in hash_rehash no-op case
66975         * lib/hash.c (next_prime): Avoid overflow.
66976         (hash_initialize): Factor bucket size computation...
66977         (compute_bucket_size): ...into new helper function.
66978         (hash_rehash): Use new function and open coding to reduce memory
66979         pressure, and avoid a memory leak in USE_OBSTACK code.
66980         Reported by Jim Meyering.
66982 2009-06-18  Eric Blake  <ebb9@byu.net>
66984         hash: make rotation more obvious
66985         * modules/hash (Depends-on): Add bitrotate and stdint.
66986         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
66987         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
66988         (SIZE_MAX): Rely on headers for definition.
66989         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
66990         (raw_hasher): Use rotr_sz.
66991         Suggested by Jim Meyering.
66993         hash: fix memory leak in last patch
66994         * lib/hash.c (hash_rehash): Avoid memory leak.
66996         hash: avoid no-op rehashing
66997         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
66999         hash: provide default callback functions
67000         * lib/hash.c (raw_hasher, raw_comparator): New functions.
67001         (hash_initialize): Use them as defaults.
67002         * tests/test-hash.c (main): Test this.
67004         hash: minor optimization
67005         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
67006         when possible.
67007         (hash_initialize): Document this promise.
67008         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
67009         * tests/test-hash.c (hash_compare_strings): Test this.
67011 2009-06-18  Bruno Haible  <bruno@clisp.org>
67013         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
67014         going to be replaced anyway.
67016 2009-06-18  Bruno Haible  <bruno@clisp.org>
67018         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
67019         in one place.
67020         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
67021         be replaced anyway.
67023 2009-06-18  Eric Blake  <ebb9@byu.net>
67025         hash: check for resize before insertion
67026         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
67027         threshold before insertion, so that a pathological hash_rehash
67028         that fills every bucket can still trigger another rehash.
67030 2009-06-18  Jim Meyering  <meyering@redhat.com>
67032         hash-tests: add a loop around the small tests
67033         * tests/test-hash.c (main): Repeat small tests with selected
67034         small initial table sizes.
67036 2009-06-17  Eric Blake  <ebb9@byu.net>
67038         hash: minor cleanups
67039         * lib/hash.h (hash_entry): Make opaque, by moving...
67040         * lib/hash.c (hash_entry): ...here.
67041         (hash_insert): Clarify restrictions on what can be inserted.
67042         (hash_get_next): Clarify when it is safe to remove an element
67043         during traversal.
67044         (check_tuning): Skip verification when tuning is known safe.
67045         (hash_initialize): Clarify restrictions on tuning.
67047 2009-06-17  Jim Meyering  <jim@meyering.net>
67048         and Eric Blake  <ebb9@byu.net>
67050         hash-tests: new module
67051         * modules/hash-tests: New file.
67052         * tests/test-hash.c: New file.
67054 2009-06-17  Eric Blake  <ebb9@byu.net>
67056         strstr-simple: document new module
67057         * MODULES.html.sh: Document new module.
67059         strstr, strcasestr: replace on platforms with broken memchr
67060         * modules/strstr: Split into...
67061         * modules/strstr-simple: ...new module that does not care about
67062         performance, but does care about glibc bug.
67063         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
67064         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
67065         if platform memchr is broken, per Debian bug 521737.
67066         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
67067         memchr.
67068         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
67069         * doc/posix-functions/strstr.texi (strstr): Document the fix.
67070         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
67071         * modules/mountlist (Depends-on): Add strstr-simple.
67072         * modules/gen-uni-tables (Depends-on): Likewise.
67073         * modules/argz (Depends-on): Add strstr.
67075 2009-06-17  Bruno Haible  <bruno@clisp.org>
67077         * modules/posix_spawn-internal (Depends-on): Add errno.
67079 2009-06-17  Bruno Haible  <bruno@clisp.org>
67081         Define missing ESTALE on Interix 3.5.
67082         * lib/errno.in.h (ESTALE): Assign a value if missing.
67083         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
67084         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
67085         missing.
67086         * doc/posix-headers/errno.texi: Mention the Interix bug.
67087         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
67089 2009-06-15  Eric Blake  <ebb9@byu.net>
67091         memchr, memchr2: add valgrind exception
67092         * lib/memchr.valgrind: New file.
67093         * lib/memchr2.valgrind: New file.
67094         * modules/memchr (Files): Distribute valgrind file.
67095         * modules/memchr2 (Files): Likewise.
67097         docs: memchr is no longer obsolete
67098         * MODULES.html.sh: Move memchr from obsolete to string.h section.
67099         * lib/string.in.h (memchr): Simplify logic.
67101 2009-06-14  Jim Meyering  <meyering@redhat.com>
67103         link-follow: fix the "checking..." message to not mention trailing slash
67104         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
67105         never considered trailing slashes.
67107 2009-06-14  Bruno Haible  <bruno@clisp.org>
67109         * m4/memchr.m4: Mention also the bug on IA-64.
67110         * doc/posix-functions/memchr.texi: Likewise.
67112 2009-06-12  Eric Blake  <ebb9@byu.net>
67114         memchr: detect broken x86_64 and alpha implementations
67115         * modules/memchr-tests (Depends-on): Move mmap detection...
67116         * modules/memchr (Depends-on): ...here.
67117         (configure.ac): Set indicator.
67118         * lib/string.in.h (memchr): Declare replacement.
67119         * modules/string (Makefile.am): Trigger replacement.
67120         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
67121         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
67122         bugs.
67123         * doc/posix-functions/memchr.texi (memchr): Document the bug.
67124         * modules/getpagesize (License): Relax license.
67126 2009-06-11  Bruno Haible  <bruno@clisp.org>
67128         * lib/idpriv.h: Add more references.
67130 2009-06-08  Bruno Haible  <bruno@clisp.org>
67132         Tests for module 'idpriv-droptemp'.
67133         * modules/idpriv-droptemp-tests: New file.
67134         * tests/test-idpriv-droptemp.sh: New file.
67135         * tests/test-idpriv-droptemp.su.sh: New file.
67136         * tests/test-idpriv-droptemp.c: New file.
67138         New module 'idpriv-droptemp'.
67139         * lib/idpriv-droptemp.c: New file.
67140         * modules/idpriv-droptemp: New file.
67142 2009-06-08  Bruno Haible  <bruno@clisp.org>
67144         Tests for module 'idpriv-drop'.
67145         * modules/idpriv-drop-tests: New file.
67146         * tests/test-idpriv-drop.sh: New file.
67147         * tests/test-idpriv-drop.su.sh: New file.
67148         * tests/test-idpriv-drop.c: New file.
67150         New module 'idpriv-drop'.
67151         * lib/idpriv.h: New file.
67152         * lib-idpriv-drop.c: New file.
67153         * m4/idpriv.m4: New file.
67154         * modules/idpriv-drop: New file.
67156 2009-06-08  Bruno Haible  <bruno@clisp.org>
67158         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
67159         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
67160         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
67161         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
67162         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
67163         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
67164         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
67166 2009-06-08  Eric Blake  <ebb9@byu.net>
67168         test-strstr: use memory fence, when possible
67169         * tests/test-strstr.c (main): Use memory fence, in order to be
67170         more likely to trigger Debian bug 521737.
67171         * modules/strstr-tests (Files): Pull in additional files.
67173         memchr: no longer obsolete, for wider field testing
67174         * modules/memchr (Status, Notice): Delete, this module is no
67175         longer obsolete.
67176         * modules/vasnprintf (Depends-on): Add memchr.
67178 2009-06-07  Jim Meyering  <meyering@redhat.com>
67180         hash: declare some functions with the warn_unused_result attribute
67181         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
67183 2009-06-07  Bruno Haible  <bruno@clisp.org>
67185         * tests/test-alignof.c: Don't test int64_t if it does not exist.
67186         Reported by Eric Blake.
67188 2009-06-06  Eric Blake  <ebb9@byu.net>
67190         test-alignof: fix typo with long double
67191         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
67192         compiler error.
67194 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
67196         Escape non-texinfo { and }s.
67197         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
67198         markup error.
67200 2009-06-04  Jim Meyering  <meyering@redhat.com>
67202         gitlog-to-changelog: don't infloop on an empty commit log
67203         * build-aux/gitlog-to-changelog: Warn about an empty log message.
67204         Reported by Boris Petersen <transacid@centerim.org>.
67206 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
67208         version-etc: extend for packagers
67209         Add three new configure options, intended for packagers:
67210           --with-packager="packager name"
67211           --with-packager-version="packager-specific version"
67212           --with-packager-bug-reports="packager bug reporting"
67213         An example with coreutils:
67214           $ ./configure \
67215             --with-packager=Gentoo \
67216             --with-packager-bug-report=http://bugs.gentoo.org/ \
67217             --with-packager-version="patchset 1.6"
67218           $ ./src/ls --version | head -n2
67219           ls (GNU coreutils) 7.1-dirty
67220           Packaged by Gentoo (patchset 1.6)
67221         Note that the bug reporting info via --help doesn't show up because
67222         coreutils uses its own custom emit_bug_reporting_address() implementation
67223         in src/system.h.  If it didn't, it'd look like:
67224           $ ./src/ls --help | tail -n4
67225           Report bugs to <bug-coreutils@gnu.org>.
67226           Report Gentoo bugs to <http://bugs.gentoo.org/>.
67227           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
67228           General help using GNU software: <http://www.gnu.org/gethelp/>.
67229         * lib/version-etc.c: Print new information, if provided.
67230         * m4/version-etc.m4: New file.
67231         * modules/version-etc (Files): Add m4/version-etc.m4.
67232         (configure.ac): Add gl_VERSION_ETC.
67234 2009-05-31  Bruno Haible  <bruno@clisp.org>
67236         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
67237         and 'int64_t'.
67238         * modules/alignof-tests (Dependencies): Add stdint.
67239         Reported by Eric Blake.
67241 2009-05-31  Bruno Haible  <bruno@clisp.org>
67243         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
67244         restriction due to compiler bugs.
67245         Reported by Eric Blake.
67247 2009-05-31  Simon Josefsson  <simon@josefsson.org>
67248             Bruno Haible  <bruno@clisp.org>
67250         Fix test-alignof failure.
67251         * lib/alignof.h (alignof_slot): New macro.
67252         (alignof_type): New macro, with the same semantics as the previous
67253         'alignof'.
67254         (alignof): Alias to alignof_slot.
67255         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
67256         check that the results are usable as constant expressions.
67258 2009-05-31  Bruno Haible  <bruno@clisp.org>
67260         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
67261         * tests/test-memchr.c (main): Check that memchr does not read past the
67262         first occurrence of the byte.
67263         * tests/test-strstr.c (main): Update comment.
67264         Suggested by Eric Blake.
67266 2009-05-30  Bruno Haible  <bruno@clisp.org>
67268         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
67269         detail how to use dumpbin.
67270         Reported by David Byron <dbyron@dbyron.com>.
67272 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67274         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
67276 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67278         * m4/manywarnings.m4: Add GCC 4.4 warnings.
67280 2009-05-28  Bruno Haible  <bruno@clisp.org>
67282         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
67283         build-aux/ files.
67285 2009-05-28  Simon Josefsson  <simon@josefsson.org>
67287         * gnulib-tool (func_import): Transform license on build-aux/ files too.
67289 2009-05-27  Simon Josefsson  <simon@josefsson.org>
67291         * gnulib-tool (sed_transform_main_lib_file)
67292         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
67293         regexps.
67295 2009-05-26  Simon Josefsson  <simon@josefsson.org>
67297         * tests/test-strstr.c: Add another self-test.
67298         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
67299         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
67301 2009-05-23  Bruno Haible  <bruno@clisp.org>
67303         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
67304         change.
67306 2009-05-21  Bruno Haible  <bruno@clisp.org>
67308         Simplify use of mode_t varargs.
67309         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
67310         uses 'mode_t' or 'int'.
67311         * lib/openat.c (openat): Likewise.
67312         * lib/open-safer.c (open_safer): Likewise.
67313         * m4/mode_t.m4: New file.
67314         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
67315         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
67316         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
67317         * modules/open (Files): Add m4/mode_t.m4.
67318         * modules/openat (Files): Likewise.
67319         * modules/fcntl-safer (Files): Likewise.
67320         Suggested by Eric Blake.
67322 2009-05-21  Pádraig Brady  <P@draigbrady.com>
67324         * doc/glibc-functions/fallocate.texi: New file.
67325         * doc/gnulib.texi: Include it.
67327 2009-05-21  Eric Blake  <ebb9@byu.net>
67328             Bruno Haible  <bruno@clisp.org>
67330         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
67331         invocations.
67332         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
67334 2009-05-21  Eric Blake  <ebb9@byu.net>
67335             Bruno Haible  <bruno@clisp.org>
67337         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
67338         include_next. Fix of 2008-11-20 commit.
67339         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
67340         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
67341         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
67342         NEXT_MATH_H.
67343         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
67344         instead of NEXT_MATH_H.
67346 2009-05-21  Bruno Haible  <bruno@clisp.org>
67348         Avoid redefinition warnings for SIZE_MAX.
67349         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
67350         Reported by Simon Josefsson.
67352 2009-05-21  Bruno Haible  <bruno@clisp.org>
67354         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
67355         AC_CACHE_VAL.
67357 2009-05-20  Bruno Haible  <bruno@clisp.org>
67359         Make zeroptr.h work on mingw.
67360         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
67361         mprotect.
67362         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
67363         * modules/memchr2-tests (configure.ac): Likewise.
67364         * modules/memcmp-tests (configure.ac): Likewise.
67365         * modules/memmem-tests (configure.ac): Likewise.
67366         * modules/memrchr-tests (configure.ac): Likewise.
67367         Reported by Simon Josefsson.
67369 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67371         * tests/test-glob.c: Include string.h for strcmp prototype.
67373 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67375         * modules/getdelim (Depends-on): Add explicit stdint, although it
67376         was implicitly already pulled in via realloc-posix.
67377         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
67379 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67381         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
67382         G. Christensen" <tgc@jupiterrise.com>.
67383         * m4/sys_socket_h.m4: Check for sa_family_t.
67384         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
67385         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
67386         * tests/test-sys_socket.c: Check that sa_family_t works.
67388 2009-05-18  Eric Blake  <ebb9@byu.net>
67390         maint.mk: allow gnulib_dir in VPATH build
67391         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
67393 2009-05-15  Jim Meyering  <meyering@redhat.com>
67395         maint.mk: Give gnulib_dir a default definition.
67396         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
67397         Thus, most packages no longer need to specify this variable in cfg.mk
67399 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
67401         rename.m4: fix typos that would make non-mingw cross-configure fail
67402         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
67404 2009-05-13  Eric Blake  <ebb9@byu.net>
67406         mmap-anon: avoid out-of-order autoconf expansion
67407         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
67408         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
67409         * modules/memchr-tests (Depends-on): Add extensions.
67410         * modules/memchr2-tests (Depends-on): Add extensions.
67411         * modules/memcmp-tests (Depends-on): Add extensions.
67412         * modules/memmem-tests (Depends-on): Add extensions.
67413         * modules/memrchr-tests (Depends-on): Add extensions.
67415 2009-05-13  Bruno Haible  <bruno@clisp.org>
67417         Make some tests ISO C 99 compliant.
67418         * tests/zerosize-ptr.h: New file.
67419         * tests/test-memchr.c: Include zerosize-ptr.h.
67420         (main): Use a zero-size object pointer instead of NULL.
67421         * tests/test-memchr2.c: Include zerosize-ptr.h.
67422         (main): Use a zero-size object pointer instead of NULL.
67423         * tests/test-memcmp.c: Include zerosize-ptr.h.
67424         (main): Use a zero-size object pointer instead of NULL.
67425         * tests/test-memmem.c: Include zerosize-ptr.h.
67426         (main): Use a zero-size object pointer instead of NULL.
67427         * tests/test-memrchr.c: Include zerosize-ptr.h.
67428         (main): Use a zero-size object pointer instead of NULL.
67429         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
67430         m4/mmap-anon.m4.
67431         (Depends-on): Add getpagesize.
67432         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67433         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
67434         m4/mmap-anon.m4.
67435         (Depends-on): Add getpagesize.
67436         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67437         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
67438         m4/mmap-anon.m4.
67439         (Depends-on): Add getpagesize.
67440         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67441         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
67442         m4/mmap-anon.m4.
67443         (Depends-on): Add getpagesize.
67444         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67445         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
67446         m4/mmap-anon.m4.
67447         (Depends-on): Add getpagesize.
67448         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67450 2009-05-12  Bruno Haible  <bruno@clisp.org>
67452         Tests for module 'alignof'.
67453         * modules/alignof-tests: New file.
67454         * tests/test-alignof.c: New file.
67456 2009-05-12  Bruno Haible  <bruno@clisp.org>
67458         Fix alignof macro.
67459         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
67460         vendor compilers that are always correct.
67462 2009-05-12  Bruno Haible  <bruno@clisp.org>
67464         Make the MAP_ANONYMOUS detection work on HP-UX 11.
67465         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
67466         not whether its fully works.
67468 2009-05-12  Bruno Haible  <bruno@clisp.org>
67470         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
67472 2009-05-12  Jim Meyering  <meyering@redhat.com>
67474         * top/maint.mk: Adjust backslash alignment.
67476 2009-05-11  Simon Josefsson  <simon@josefsson.org>
67478         * top/maint.mk: Make $(srcdir)/build-aux configurable.
67480 2009-05-11  Eric Blake  <ebb9@byu.net>
67482         argp: avoid undefined behavior
67483         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
67484         macros.
67486 2009-05-08  Simon Josefsson  <simon@josefsson.org>
67488         * tests/test-vc-list-files-git.sh: Do git config of user.email and
67489         user.name to prevent git commit from complaining.
67491 2009-05-10  Bruno Haible  <bruno@clisp.org>
67493         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
67494         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
67495         it rewrites every file name only once.
67496         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
67498 2009-05-08  Bruno Haible  <bruno@clisp.org>
67500         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
67501         instead of 'max'.
67503 2009-05-08  Simon Josefsson  <simon@josefsson.org>
67505         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
67506         sockaddr_storage test.
67508 2009-05-07  Simon Josefsson  <simon@josefsson.org>
67510         * modules/sys_socket (Makefile.am): Substitute
67511         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
67512         * m4/sys_socket_h.m4: Check for sockaddr_storage.
67513         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
67514         * tests/test-sys_socket.c: Check sockaddr_storage.
67516 2009-05-08  Bruno Haible  <bruno@clisp.org>
67518         New module 'alignof'.
67519         * lib/alignof.h: New file.
67520         * modules/alignof: New file.
67522 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67523             Bruno Haible  <bruno@clisp.org>
67525         Fix test-file-has-acl on FreeBSD.
67526         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
67527         mask is implicitly added.
67528         * tests/test-file-has-acl.c: Include <signal.h>.
67529         (main): Terminate the test after 5 seconds.
67530         * modules/acl-tests (configure.ac): Check for alarm function.
67532 2009-05-04  Bruno Haible  <bruno@clisp.org>
67534         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
67535         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
67536         * modules/errno (configure.ac): Drop AC_REQUIRE.
67537         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
67538         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
67540 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67542         * modules/glob-tests: New module.
67543         * tests/test-glob.c: Add.
67545 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67547         * modules/fnmatch-tests: New module.
67548         * tests/test-fnmatch.c: Add.
67550 2009-05-04  Eric Blake  <ebb9@byu.net>
67552         maint: make the new no-submodule-changes rule VPATH-safe
67553         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
67555 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67556             Bruno Haible  <bruno@clisp.org>
67558         acl: Fix infinite loop on FreeBSD.
67559         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
67560         of return value from acl_get_entry.
67561         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
67562         Likewise.
67564 2009-05-03  Bruno Haible  <bruno@clisp.org>
67566         * lib/acl-internal.h (acl_entries): Clarify return value.
67567         * lib/acl_entries.c (acl_entries): Likewise.
67569 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67571         Bug fix in acl module.
67572         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
67574 2009-05-03  Bruno Haible  <bruno@clisp.org>
67576         Create gperf-generated file in the source dir, not in the build dir.
67577         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
67578         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
67579         * modules/unicase/locale-language (unicase/locale-languages.h):
67580         Likewise.
67581         * modules/unicase/special-casing (unicase/special-casing-table.h):
67582         Likewise.
67583         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
67584         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
67585         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
67586         Reported by Ralf Wildenhues.
67588 2009-05-03  Bruno Haible  <bruno@clisp.org>
67590         * modules/fnmatch (Description, configure.ac): Taken from
67591         fnmatch-posix.
67592         * modules/fnmatch-posix: Turn into a symbolic reference to the
67593         'fnmatch' module, and deprecate.
67594         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
67596 2009-05-03  Bruno Haible  <bruno@clisp.org>
67598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
67599         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
67600         Reported by Ralf Wildenhues.
67602 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67604         * m4/fnmatch.m4: Fix fnmatch re-define.
67606 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67608         priv-set: new module and tests; adapt write-any-file
67609         * lib/priv-set.c: New file.
67610         * lib/priv-set.h: New file.
67611         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
67612         * lib/write-any-file.c: Simplify by using priv-set module.
67613         * m4/priv-set.m4: New file.
67614         * modules/priv-set: New file.
67615         * modules/unlinkdir: Add dependency on priv-set module.
67616         * modules/write-any-file: Likewise.
67618         Tests for module 'priv-set'.
67619         * modules/priv-set-tests: New file.
67620         * tests/test-priv-set.c: New file.
67622 2009-05-03  Jim Meyering  <meyering@redhat.com>
67623             Bruno Haible  <bruno@clisp.org>
67625         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
67626         use the converted UTF-8 variant of the name instead.
67628 2009-05-03  Jim Meyering  <meyering@redhat.com>
67630         tests: tighten some getdate tests
67631         * tests/test-getdate.c (main): Tighten tests: require equality,
67632         not just greater than.  Set TZ envvar to UTC0.
67634 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
67636         getdate: correctly interpret "next monday" when run on a Monday
67637         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
67638         that e.g., "next tues" (when run on a tuesday) results in a date
67639         that is one week in the future, and not today's date.
67640         I.e., add a week when the wday is the same as the current one.
67641         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
67642         and earlier by Martin Bernreuther and Jan Minář.
67643         * tests/test-getdate.c (main): Check that "next DAY" is always in
67644         the future and that "last DAY" is always in the past.
67646 2009-05-02  Jim Meyering  <meyering@redhat.com>
67648         build: ensure that a release build fails when a submodule is unclean
67649         * top/maint.mk (no-submodule-changes): New rule.
67650         (alpha beta major): Depend on it.
67652 2009-05-02  Bruno Haible  <bruno@clisp.org>
67654         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
67655         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
67656         shell variable gl_fnmatch_required to detect which variant is
67657         requested.
67658         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
67659         gl_FUNC_FNMATCH_POSIX.
67660         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
67661         exclude fnmatch-posix.
67663 2009-05-02  Bruno Haible  <bruno@clisp.org>
67665         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
67666         * modules/mbsrtowcs (License): Change to LGPLv2+.
67667         * modules/strnlen1 (License): Likewise.
67668         Reported by Simon Josefsson.
67670 2009-05-02  Bruno Haible  <bruno@clisp.org>
67672         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
67673         "cross".
67674         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
67675         gnulib-tool was called with option --source-base=lib.
67677 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67679         Use automake *-local hooks without commands, for extensibility.
67680         * modules/localcharset (Makefile.am): Rename install-exec-local
67681         rule to install-exec-localcharset, and make it a prerequisite of
67682         install-exec-local.  Likewise, rename the uninstall-local rule to
67683         uninstall-localcharset, and make it a prerequisite of the former.
67685 2009-05-01  Bruno Haible  <bruno@clisp.org>
67687         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
67688         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
67689         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
67690         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
67691         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
67692         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
67693         m4/locale-zh.m4, m4/codeset.m4.
67695         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
67696         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
67697         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
67698         m4/locale-zh.m4.
67700         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
67701         REPLACE_WCRTOMB if mbstate_t must be replaced.
67702         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
67703         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
67705 2009-05-01  Bruno Haible  <bruno@clisp.org>
67707         Avoid compiler warnings when redefining macros defined by <libintl.h>.
67708         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
67709         dngettext, dcngettext, textdomain, bindtextdomain,
67710         bind_textdomain_codeset): Undefine before redefining.
67712 2009-04-30  Bruno Haible  <bruno@clisp.org>
67714         Fix bug introduced on 2009-04-25.
67715         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
67716         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
67717         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
67718         is defined.
67719         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
67720         is defined.
67721         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
67722         is defined.
67723         Reported by Elbert_Pol <elbert.pol@gmail.com>.
67725 2009-04-28  Bruno Haible  <bruno@clisp.org>
67727         Comment tweaks.
67728         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
67729         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
67730         * lib/unicase.h (u*_casexfrm): Likewise.
67731         Reported by Paolo Bonzini.
67733 2009-04-28  Bruno Haible  <bruno@clisp.org>
67735         Fix a compilation error.
67736         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
67737         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
67738         Reported by Jim Meyering.
67740 2009-04-27  Bruno Haible  <bruno@clisp.org>
67742         New module 'libunistring'.
67743         * modules/libunistring: New file.
67744         * m4/libunistring.m4: New file.
67745         * MODULES.html.sh (Unicode string functions): Add it.
67747 2009-04-27  Eric Blake  <ebb9@byu.net>
67749         maint.mk: allow package-specific header to provide <config.h>
67750         * top/maint.mk (sc_require_config_h): New variable.
67751         (sc_require_config_h, sc_require_config_h_first): Use it.
67753 2009-04-27  Simon Josefsson  <simon@josefsson.org>
67755         * top/maint.mk (sc_avoid_if_before_free): Except
67756         useless-if-before-free script.
67758 2009-04-27  Eric Blake  <ebb9@byu.net>
67760         maintainer-makefile: depend on all required helper scripts
67761         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
67762         useless-if-before-free.
67763         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
67764         version, rather than assuming gnulib checkout is available.
67765         Reported by Simen Josefsson.
67767 2009-04-26  Bruno Haible  <bruno@clisp.org>
67769         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
67770         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
67771         "../" or "..".
67773 2009-04-26  Bruno Haible  <bruno@clisp.org>
67775         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
67776         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
67777         AC_LIB_HAVE_LINKFLAGS.
67779 2009-04-26  Bruno Haible  <bruno@clisp.org>
67781         Simplify calling convention of u*_conv_from_encoding.
67782         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
67783         u32_conv_from_encoding): Expect a resultbuf argument and return the
67784         result directly as a pointer.
67785         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
67786         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
67787         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
67788         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
67789         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
67790         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
67791         Update.
67792         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
67793         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
67794         * lib/vasnprintf.c (VASNPRINTF): Update.
67795         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
67796         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
67797         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
67798         * NEWS: Mention the change.
67800 2009-04-26  Bruno Haible  <bruno@clisp.org>
67802         Simplify calling convention of u*_conv_to_encoding.
67803         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67804         u32_conv_to_encoding): Expect a resultbuf argument and return the
67805         result directly as a pointer.
67806         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
67807         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
67808         freeing scaled_offsets if mem_iconveha failed.
67809         * lib/unicase/u-casexfrm.h (FUNC): Update.
67810         * lib/uninorm/u-normxfrm.h (FUNC): Update.
67811         * lib/vasnprintf.c (VASNPRINTF): Update.
67812         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
67813         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
67814         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
67815         * NEWS: Mention the change.
67817 2009-04-26  Bruno Haible  <bruno@clisp.org>
67819         Avoid test failures on AIX and OSF/1.
67820         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
67821         malloc(0).
67822         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
67823         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
67824         Likewise.
67825         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
67826         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
67827         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
67828         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
67829         * doc/posix-functions/malloc.texi: Document the portability problem
67830         related to malloc(0).
67832 2009-04-26  Bruno Haible  <bruno@clisp.org>
67834         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
67835         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
67836         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
67838 2009-04-25  Bruno Haible  <bruno@clisp.org>
67840         Avoid link error when creating a namespace clean library.
67841         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
67842         as macro with arguments if already defined as an alias.
67843         * lib/signbitf.c (gl_signbitf): Don't undefine.
67844         * lib/signbitd.c (gl_signbitd): Don't undefine.
67845         * lib/signbitl.c (gl_signbitl): Don't undefine.
67847 2009-04-25  Jim Meyering  <meyering@redhat.com>
67849         vc-list-files: fix another quoting bug
67850         * build-aux/vc-list-files: Avoid sed backslash expansion
67851         of pathological directory names.
67853 2009-04-25  Eric Blake  <ebb9@byu.net>
67855         vc-list-files: fix shell quoting error
67856         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
67857         timestamp.
67859 2009-04-25  Jim Meyering  <meyering@redhat.com>
67861         vc-list-files: restore lost functionality with subdir argument
67862         * build-aux/vc-list-files: When given a non-"." sub-directory
67863         argument, substitute the $dir/ prefix back onto each resulting name.
67864         Otherwise, coreutils' root_tests check would fail.
67866 2009-04-24  Eric Blake  <ebb9@byu.net>
67868         vc-list-files: ignore git symlinks
67869         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
67870         than ls-files, to ignore git symlinks.
67872         maint.mk: import improvements from m4
67873         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
67874         (move_if_change): Delete unused macro.
67875         (news-date-check, vc-diff-check): Support VPATH builds.
67876         (announcement): Likewise.  Split --bootstrap-tools list...
67877         (boostrap-tools): ...into separate list, which can be overridden
67878         in cfg.mk.
67879         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
67880         requiring dependency on useless-if-before-free module.
67881         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
67882         Support VPATH builds.
67884 2009-04-24  Jim Meyering  <meyering@redhat.com>
67886         maint.mk: remove coreutils-specific rules and variables
67887         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
67888         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
67889         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
67891         maint.mk: remove obsolete rule
67892         * top/maint.mk (rel-check): Remove rule.
67893         (WGET, WGETFLAGS): Remove now-unused variables.
67895 2009-04-24  Simon Josefsson  <simon@josefsson.org>
67897         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
67898         consistency.
67900         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
67901         '$(PATH_SEPARATOR)' instead of ':'.
67903 2009-04-24  Simon Josefsson  <simon@josefsson.org>
67905         * lib/getopt1.c (main): Use 'const' for static array.
67907 2009-04-24  Simon Josefsson  <simon@josefsson.org>
67909         * top/maint.mk: Sync with coreutils.
67910         * NEWS: Explain incompatibilities.
67912 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67913             Bruno Haible  <bruno@clisp.org>
67915         Fix cross-compilation results.
67916         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
67917         statement, as third argument of AC_TRY_RUN.
67918         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
67919         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
67920         Likewise.
67921         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
67922         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
67923         Likewise.
67924         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
67925         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
67926         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
67928 2009-04-20  Bruno Haible  <bruno@clisp.org>
67930         Avoid test failure on mingw.
67931         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
67933 2009-04-20  Bruno Haible  <bruno@clisp.org>
67935         Avoid compilation error on mingw.
67936         * modules/localename-tests (Depends-on): Add locale.
67938 2009-04-19  Bruno Haible  <bruno@clisp.org>
67940         Support for building a shared library on Windows platforms.
67941         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
67942         (main): Test the presence of UNINORM_NFC here.
67943         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
67944         (main): Test the presence of UNINORM_NFD here.
67945         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
67946         (main): Test the presence of UNINORM_NFKC here.
67947         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
67948         (main): Test the presence of UNINORM_NFKD here.
67950 2009-04-19  Bruno Haible  <bruno@clisp.org>
67952         Avoid a compiler warning.
67953         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
67954         Change type of variable 'sequence'.
67956 2009-04-19  Bruno Haible  <bruno@clisp.org>
67958         * modules/configmake (Makefile.am): When the contents of configmake.h
67959         does not change, arrange to preserve its modification time.
67961 2009-04-17  Simon Josefsson  <simon@josefsson.org>
67963         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
67964         gettext domain.
67966 2009-04-16  Jim Meyering  <meyering@redhat.com>
67968         useless-if-before-free: improve conversion code
67969         * build-aux/useless-if-before-free: Adjust code-in-comment to match
67970         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
67972 2009-04-14  Bruno Haible  <bruno@clisp.org>
67974         * modules/fcntl (Depends-on): Add extensions.
67975         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
67977 2009-04-12  Ben Pfaff  <blp@gnu.org>
67979         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
67980         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
67982 2009-03-20  Ben Pfaff  <blp@gnu.org>
67984         Make rename replace existing destinations on Windows.
67985         * m4/rename.m4: Add test for Mingw.
67986         * lib/rename.c: Add rename replacement that uses MoveFileEx with
67987         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
67988         * doc/posix-functions/rename.texi: Document.
67990 2009-04-10  Bruno Haible  <bruno@clisp.org>
67992         New include file "iconveh.h".
67993         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
67994         * lib/striconveh.h: Include it.
67995         (enum iconv_ilseq_handler): Remove definition.
67996         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
67997         striconveh.h.
67998         * lib/striconveha.c: Include striconveh.h.
67999         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
68000         * modules/striconveh (Files): Add lib/iconveh.h.
68001         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
68002         lib/striconveh.h.
68004 2009-04-10  Bruno Haible  <bruno@clisp.org>
68006         * lib/uniconv.h: Update comment.
68008 2009-04-10  Bruno Haible  <bruno@clisp.org>
68010         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
68011         always.
68012         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
68013         * lib/unistr/u16-mbtouc-aux.c: Likewise.
68014         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
68015         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
68016         "unistring-notinline.h", so that the function gets defined always.
68017         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
68018         * lib/unistr/u8-uctomb.c: Likewise.
68019         * lib/unistr/u16-mbtouc.c: Likewise.
68020         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
68021         * lib/unistr/u16-uctomb.c: Likewise.
68022         * lib/unistr/u32-mbtouc.c: Likewise.
68023         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
68024         * lib/unistr/u32-uctomb.c: Likewise.
68026 2009-04-10  Bruno Haible  <bruno@clisp.org>
68028         Mark 'utime' obsolete.
68029         * modules/utime (Status, Notice): New sections.
68030         Suggested by Jim Meyering.
68032         Fix cross-compile guess for utime test.
68033         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
68034         autoconf.
68035         * doc/posix-functions/utime.texi: Give more precisions.
68036         Reported by Jan <ipif@ymail.com>.
68038 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
68040         filevercmp: correct today's change
68041         * lib/filevercmp.c: Also handle coreutils' test inputs.
68042         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
68044         Fix regression in 'filevercmp' module. Thanks Sven Joachim
68045         for reporting it.
68046         * lib/filevercmp.c: Special handle for "", "." and "..".
68047         * tests/test-filevercmp.c: Enlarge the set suite.
68049 2009-04-07  Jim Meyering  <meyering@redhat.com>
68051         useless-if-before-free: show how to remove braced useless free, too
68052         * build-aux/useless-if-before-free: still only in a comment, though.
68054 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
68056         maint.mk: import changes to syntax-check macros from coreutils
68057         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
68058         Use them in the relevant macros.
68060 2009-04-06  Bruno Haible  <bruno@clisp.org>
68062         Fix unportable use of bit-fields.
68063         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
68064         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
68065         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
68067 2009-04-06  Bruno Haible  <bruno@clisp.org>
68069         Avoid test failures on AIX and OSF/1.
68070         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
68071         that malloc(0) = NULL.
68072         * tests/unicase/test-u8-tolower.c (check): Likewise.
68073         * tests/unicase/test-u8-totitle.c (check): Likewise.
68074         * tests/unicase/test-u8-toupper.c (check): Likewise.
68075         * tests/unicase/test-u16-casefold.c (check): Likewise.
68076         * tests/unicase/test-u16-tolower.c (check): Likewise.
68077         * tests/unicase/test-u16-totitle.c (check): Likewise.
68078         * tests/unicase/test-u16-toupper.c (check): Likewise.
68079         * tests/unicase/test-u32-casefold.c (check): Likewise.
68080         * tests/unicase/test-u32-tolower.c (check): Likewise.
68081         * tests/unicase/test-u32-totitle.c (check): Likewise.
68082         * tests/unicase/test-u32-toupper.c (check): Likewise.
68083         * tests/uninorm/test-u8-nfc.c (check): Likewise.
68084         * tests/uninorm/test-u8-nfd.c (check): Likewise.
68085         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
68086         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
68087         * tests/uninorm/test-u16-nfc.c (check): Likewise.
68088         * tests/uninorm/test-u16-nfd.c (check): Likewise.
68089         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
68090         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
68091         * tests/uninorm/test-u32-nfc.c (check): Likewise.
68092         * tests/uninorm/test-u32-nfd.c (check): Likewise.
68093         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
68094         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
68096 2009-04-05  Bruno Haible  <bruno@clisp.org>
68098         Work around an autoconf limitation.
68099         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
68100         comment line if it would be longer than 3 KB.
68102 2009-04-05  Bruno Haible  <bruno@clisp.org>
68104         Avoid test failure with libiconv-1.13.
68105         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
68106         of the expected test results.
68108 2009-04-05  Bruno Haible  <bruno@clisp.org>
68110         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
68111         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
68112         that it should be installed.
68114 2009-04-05  Bruno Haible  <bruno@clisp.org>
68116         * gnulib-tool: New option --copy-file.
68117         (func_usage): Document it.
68118         (func_dest_tmpfilename): Moved out of func_import.
68119         (func_add_file, func_update_file): New functions, extracted from
68120         func_import.
68121         (func_import): Update.
68123 2009-04-05  Karl Berry  <karl@gnu.org>
68125         * README: prominently mention gnulib-tool.
68126         Rearrange sections so getting the code is near the top.
68128 2009-04-05  Bruno Haible  <bruno@clisp.org>
68130         * lib/unicase.h: Mention u*_cmp2.
68131         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
68132         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
68133         * lib/unicase/ulc-casecmp.c: Likewise.
68134         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
68135         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
68136         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
68137         unistr/u8-cmp.
68138         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
68139         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
68140         unistr/u16-cmp.
68141         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
68142         unistr/u32-cmp.
68144         * lib/uninorm.h: Mention u*_cmp2.
68145         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
68146         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
68147         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
68148         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
68149         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
68150         unistr/u8-cmp.
68151         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
68152         unistr/u16-cmp.
68153         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
68154         unistr/u32-cmp.
68156         New module 'unistr/u32-cmp2'.
68157         * lib/unistr/u32-cmp2.c: New file.
68158         * modules/unistr/u32-cmp2: New file.
68160         New module 'unistr/u16-cmp2'.
68161         * lib/unistr/u16-cmp2.c: New file.
68162         * modules/unistr/u16-cmp2: New file.
68164         New module 'unistr/u8-cmp2'.
68165         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
68166         * lib/unistr/u8-cmp2.c: New file.
68167         * lib/unistr/u-cmp2.h: New file.
68168         * modules/unistr/u8-cmp2: New file.
68170 2009-04-05  Bruno Haible  <bruno@clisp.org>
68172         * lib/unictype.h (uc_property_is_valid): New macro.
68173         * tests/unictype/test-pr_byname.c (main): Use it.
68175         * lib/unistr.h: Doc fixes.
68176         * lib/uniconv.h: Doc fixes.
68177         * lib/unictype.h: Doc fixes.
68179 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
68181         Port coreutils 7.2 to Solaris 8.
68183         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
68184         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
68185         for Solaris 8.  This is a bit of a hack, as it means it's the
68186         caller's responsibility to add -lnsl if needed, but most likely it
68187         won't be needed since only getaddrinfo uses this and getaddrinfo
68188         isn't needed on Solaris 8.
68190         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
68191         problem to Solaris 8 encountered with coreutils 7.2, which
68192         resulted in a message "fnmatch.c:292: warning: passing argument 4
68193         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
68194         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
68196 2009-04-03  Simon Josefsson  <simon@josefsson.org>
68198         * m4/ld-version-script.m4: Add FIXME comment.
68200 2009-04-02  Simon Josefsson  <simon@josefsson.org>
68202         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
68203         SOVERSION variable.
68205 2009-04-02  Bruno Haible  <bruno@clisp.org>
68207         * Makefile (info, html, dvi, pdf): Combine the rules.
68208         Suggested by Jim Meyering.
68210 2009-04-01  Bruno Haible  <bruno@clisp.org>
68212         * Makefile (info, html, dvi, pdf): New targets.
68213         Reported by Reuben Thomas <rrt@sc3d.org>.
68215 2009-04-01  Bruno Haible  <bruno@clisp.org>
68217         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
68218         can be put into PATH.
68219         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
68221 2009-04-01  Bruno Haible  <bruno@clisp.org>
68223         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
68225 2009-04-01  Bruno Haible  <bruno@clisp.org>
68227         Rename module 'visibility'.
68228         * modules/lib-symbol-visibility: Renamed from modules/visibility.
68229         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
68230         * doc/gnulib.texi: Update.
68231         * MODULES.html.sh (Misc): Update.
68232         * NEWS: Mention the change.
68234 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68236         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
68237         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
68238         Eric Blake <ebb9@byu.net> for review.
68239         * MODULES.html.sh: Add lib-msvc-compat.
68240         * doc/gnulib.texi: Link to new section.
68241         * m4/ld-output-def.m4: New file.
68242         * doc/ld-output-def.texi: New file.
68244 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68246         Rename ld-version-script to lib-symbol-versions.  Suggested by
68247         Bruno Haible <bruno@clisp.org>.
68248         * modules/ld-version-script: Renamed to lib-symbol-versions.
68249         * doc/ld-version-script.texi: Fix module name.
68250         * MODULES.html.sh: Add lib-symbol-versions.
68252 2009-03-31  Simon Josefsson  <simon@josefsson.org>
68254         * modules/u64-tests: New file.
68255         * tests/test-u64.c: New file.
68257 2009-03-04  Simon Josefsson  <simon@josefsson.org>
68259         * MODULES.html.sh: Mention u64.
68260         * modules/u64: New module.
68261         * modules/crypto/sha512: Depend on u64 module instead of providing
68262         u64.h.
68264 2009-03-27  Eric Blake  <ebb9@byu.net>
68266         test-strerror: make debugging EAI_SYSTEM easier
68267         * modules/getaddrinfo-tests (Depends-on): Add strerror.
68268         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
68269         failure was EAI_SYSTEM.
68271 2009-03-25  Bruno Haible  <bruno@clisp.org>
68273         Fix a problem with --enable-relocatable on Solaris 7.
68274         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
68275         since 2008-02-24.
68277 2009-03-25  Eric Blake  <ebb9@byu.net>
68279         test-sockets: avoid gcc warning
68280         * tests/test-sockets.c (main): Silence compiler warning.
68282 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68284         New modules nproc, pthread, contributed by Glen Lenker.
68286         * MODULES.html.sh: Add pthread, nproc.
68287         * lib/nproc.c: New file.
68288         * lib/nproc.h: New file.
68289         * lib/pthread.in.h: New file.
68290         * m4/pthread.m4: New file.
68291         * modules/nproc: New file.
68292         * modules/pthread: New file.
68294 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68296         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
68297         New variable.
68299 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
68301         filevercmp: handle simple~ and numbered.~3~ backup suffixes
68302         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
68303         * tests/test-filevercmp.c: Add tests for backup suffixes.
68305 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68307         * modules/stdlib (Depends-on): Add stdint, needed when defining
68308         struct random_data on, for example, HP-UX 10.20.  Reported by
68309         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68311 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68313         * lib/readline.c (readline): Call fflush on stdout after printing
68314         prompt.
68316 2009-03-20  Bruno Haible  <bruno@clisp.org>
68318         Remove dependency from 'close' module to -lws2_32 on native Windows.
68319         * lib/close-hook.h: New file.
68320         * lib/close-hook.c: New file.
68321         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
68322         w32sock.h.
68323         (_gl_close_fd_maybe_socket): Remove function.
68324         (rpl_close): Invoke execute_all_close_hooks instead of
68325         _gl_close_fd_maybe_socket.
68326         * lib/sockets.c: Include close-hook.h, w32sock.h.
68327         (close_fd_maybe_socket): New function, essentially from lib/close.c.
68328         (close_sockets_hook): New variable.
68329         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
68330         (gl_sockets_cleanup): Unregister it.
68331         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
68332         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
68333         * modules/close-hook: New file.
68334         * modules/close (Files): Remove lib/w32sock.h.
68335         (Depends-on): Add close-hook.
68336         (Link): Remove section.
68337         * modules/sockets (Files): Add lib/w32sock.h.
68338         (Depends-on): Add close-hook.
68339         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
68340         invocation.
68341         * NEWS: Mention that LIB_CLOSE is gone.
68343 2009-03-23  Eric Blake  <ebb9@byu.net>
68345         signal-tests: test previous patch
68346         * tests/test-signal.c: New file.
68347         * modules/signal-tests: Likewise.
68349         signal.h: always support 'volatile sig_atomic_t'
68350         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
68351         (gl_SIGNAL_H_DEFAULTS): Add a default.
68352         * modules/signal (Makefile.am): Substitute if needed.
68353         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
68354         users can blindly add volatile.
68355         * doc/posix-headers/signal.texi (signal.h): Document it.
68356         Reported by Matthew Woehlke.
68358 2009-03-23  Jim Meyering  <meyering@redhat.com>
68360         pathmax: PATH_MAX: use pathconf only when available
68361         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
68362         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
68363         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
68364         This avoids a link failure in a PSP cross-compilation environment
68365         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
68367         * lib/vasnprintf.c (divide): Fix typo in comment.
68369 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68371         * gnulib-tool (func_filter_filelist): Fix comment.
68373 2009-03-20  Bruno Haible  <bruno@clisp.org>
68375         Make sockets.h self-contained.
68376         * lib/sockets.c: Include sockets.h first.
68377         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
68379 2009-03-19  Eric Blake  <ebb9@byu.net>
68381         doc: mention more functions added in cygwin 1.7.0
68382         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
68383         addition.
68384         * doc/posix-functions/log2f.texi: Likewise.
68386 2009-03-19  Jim Meyering  <meyering@redhat.com>
68388         fsusage: avoid syntax error due to statement-before-declaration
68389         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
68390         after all declarations.  Reported by Matthew Woehlke in
68391         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
68393 2009-03-18  Eric Blake  <ebb9@byu.net>
68395         build-aux/compile: sync from automake
68396         * build-aux/compile: New file, from automake.
68397         * config/srclist.txt: Mention build-aux/compile.
68399 2009-03-17  Bruno Haible  <bruno@clisp.org>
68401         * lib/git-merge-changelog.c: Fix typo in comment.
68402         Reported by Reuben Thomas <rrt@sc3d.org>.
68404 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
68406         * m4/regex.m4: update and improve help for
68407         --without-included-regex.
68409 2009-03-17  Simon Josefsson  <simon@josefsson.org>
68411         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
68412         failure on missing include files.
68414 2009-03-17  Eric Blake  <ebb9@byu.net>
68416         doc: mention more functions added in cygwin 1.7.0
68417         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
68418         addition.
68419         * doc/posix-functions/fwscanf.texi: Likewise.
68420         * doc/posix-functions/swprintf.texi: Likewise.
68421         * doc/posix-functions/swscanf.texi: Likewise.
68422         * doc/posix-functions/vfwprintf.texi: Likewise.
68423         * doc/posix-functions/vfwscanf.texi: Likewise.
68424         * doc/posix-functions/vswprintf.texi: Likewise.
68425         * doc/posix-functions/vswscanf.texi: Likewise.
68426         * doc/posix-functions/vwprintf.texi: Likewise.
68427         * doc/posix-functions/vwscanf.texi: Likewise.
68428         * doc/posix-functions/wcscasecmp.texi: Likewise.
68429         * doc/posix-functions/wcsdup.texi: Likewise.
68430         * doc/posix-functions/wcsftime.texi: Likewise.
68431         * doc/posix-functions/wcsncasecmp.texi: Likewise.
68432         * doc/posix-functions/wprintf.texi: Likewise.
68433         * doc/posix-functions/wscanf.texi: Likewise.
68434         * doc/glibc-functions/gethostbyname2.texi: Likewise.
68436 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68438         maint.mk: really add $(AM_MAKEFLAGS)
68439         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
68440         was inadvertently omitted in the last commit.
68441         Spotted by Bruno Haible.
68443         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
68444         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
68445         $(AM_MAKEFLAGS)' rather than plain `make'.
68447         gnulib-tool: execute $MAKE not make
68448         * gnulib-tool: Default $MAKE to 'make'.
68449         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
68450         than make.  Initialize $MAKE in the do-autobuild script.
68452         gnulib-tool: use $MAKE not make in generated files
68453         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
68454         make, in generated files.  Initialize $MAKE in the do-autobuild
68455         script.
68457         * top/GNUmakefile (_have-git-version-gen): Fix typo.
68459         GNUmakefile: disable parallelism only for multiple, recursive targets
68460         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
68461         additions in the Makefile.
68462         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
68463         by Automake.
68464         (.NOTPARALLEL): Only disable parallel builds if multiple targets
68465         are listed on the command line and at least one of them is
68466         listed in $(ALL_RECURSIVE_TARGETS).
68468 2009-03-14  Bruno Haible  <bruno@clisp.org>
68470         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
68471         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
68472         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
68473         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
68474         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
68475         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
68476         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
68477         unistr/u8-uctomb.
68478         * modules/unistr/u8-strchr (Depends-on): Likewise.
68479         * modules/unistr/u8-strrchr (Depends-on): Likewise.
68480         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
68481         unistr/u16-uctomb.
68482         * modules/unistr/u16-strchr (Depends-on): Likewise.
68483         * modules/unistr/u16-strrchr (Depends-on): Likewise.
68485 2009-03-12  Bruno Haible  <bruno@clisp.org>
68487         Work around select() bug on Interix 3.5.
68488         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
68489         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
68490         * m4/select.m4: New file.
68491         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
68492         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
68493         * modules/select (Files): Add m4/select.m4.
68494         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
68495         * modules/nanosleep (Depends-on): Add select.
68496         * modules/poll (Depends-on): Likewise.
68497         * doc/posix-functions/select.texi: Mention the Interix bug.
68498         Reported by Markus Duft <mduft@gentoo.org>.
68500         * lib/select.c: Renamed from lib/winsock-select.c.
68501         * modules/select (Files): Add lib/select.c, remove
68502         lib/winsock-select.c.
68503         (configure.ac): Update.
68505 2009-03-12  Jim Meyering  <meyering@redhat.com>
68507         avoid gcc warnings about unused macro definitions
68508         * lib/readtokens.c (STREQ): Remove unused definition.
68509         * lib/xmalloc.c (SIZE_MAX): Likewise.
68510         * lib/openat-die.c (N_): Likewise.
68511         * lib/mountlist.c (SIZE_MAX): Remove definition.
68512         Instead, include <stdint.h>.
68513         * lib/readutmp.c: Likewise.
68514         * modules/readutmp (Depends-on): Add stdint.
68515         * modules/mountlist (Depends-on): Add stdint.
68516         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
68518 2009-03-10  Bruno Haible  <bruno@clisp.org>
68520         Tests for module 'mbmemcasecoll'.
68521         * modules/mbmemcasecoll-tests: New file.
68522         * tests/test-mbmemcasecoll1.sh: New file.
68523         * tests/test-mbmemcasecoll2.sh: New file.
68524         * tests/test-mbmemcasecoll3.sh: New file.
68525         * tests/test-mbmemcasecoll.c: New file.
68527         New module 'mbmemcasecoll'.
68528         * lib/mbmemcasecoll.h: New file.
68529         * lib/mbmemcasecoll.c: New file.
68530         * modules/mbmemcasecoll: New file.
68532         * tests/test-mbmemcasecmp.h: New file, extracted from
68533         tests/test-mbmemcasecmp.c.
68534         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
68535         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
68536         (main): Update.
68537         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
68539 2009-03-09  Bruno Haible  <bruno@clisp.org>
68541         Tests for module 'mbmemcasecmp'.
68542         * modules/mbmemcasecmp-tests: New file.
68543         * tests/test-mbmemcasecmp1.sh: New file.
68544         * tests/test-mbmemcasecmp2.sh: New file.
68545         * tests/test-mbmemcasecmp3.sh: New file.
68546         * tests/test-mbmemcasecmp.c: New file.
68548         New module 'mbmemcasecmp'.
68549         * lib/mbmemcasecmp.h: New file.
68550         * lib/mbmemcasecmp.c: New file.
68551         * modules/mbmemcasecmp: New file.
68553 2009-03-09  Bruno Haible  <bruno@clisp.org>
68555         Tests for module 'unicase/ulc-casecoll'.
68556         * modules/unicase/ulc-casecoll-tests: New file.
68557         * tests/unicase/test-ulc-casecoll1.sh: New file.
68558         * tests/unicase/test-ulc-casecoll2.sh: New file.
68559         * tests/unicase/test-ulc-casecoll.c: New file.
68561         New module 'unicase/ulc-casecoll'.
68562         * lib/unicase.h (ulc_casecoll): New declaration.
68563         * lib/unicase/ulc-casecoll.c: New file.
68564         * modules/unicase/ulc-casecoll: New file.
68566         New module 'unicase/ulc-casexfrm'.
68567         * lib/unicase.h (ulc_casexfrm): New declaration.
68568         * lib/unicase/ulc-casexfrm.c: New file.
68569         * modules/unicase/ulc-casexfrm: New file.
68571 2009-03-09  Bruno Haible  <bruno@clisp.org>
68573         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
68574         invocations.
68576         * m4/mbscasecmp.m4: Remove file.
68577         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
68578         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
68580         * m4/mbscasestr.m4: Remove file.
68581         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
68582         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
68584         * m4/mbschr.m4: Remove file.
68585         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
68586         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
68588         * m4/mbscspn.m4: Remove file.
68589         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
68590         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
68592         * m4/mbslen.m4: Remove file.
68593         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
68594         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
68596         * m4/mbsncasecmp.m4: Remove file.
68597         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
68598         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
68600         * m4/mbsnlen.m4: Remove file.
68601         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
68602         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
68604         * m4/mbspbrk.m4: Remove file.
68605         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
68606         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
68608         * m4/mbspcasecmp.m4: Remove file.
68609         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
68610         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
68612         * m4/mbsrchr.m4: Remove file.
68613         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
68614         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
68616         * m4/mbssep.m4: Remove file.
68617         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
68618         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
68620         * m4/mbsspn.m4: Remove file.
68621         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
68622         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
68624         * m4/mbsstr.m4: Remove file.
68625         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
68626         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
68628         * m4/mbstok_r.m4: Remove file.
68629         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
68630         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
68632         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
68634         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
68635         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
68637         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
68639 2009-03-08  Bruno Haible  <bruno@clisp.org>
68641         Tests for module 'unicase/ulc-casecmp'.
68642         * modules/unicase/ulc-casecmp-tests: New file.
68643         * tests/unicase/test-ulc-casecmp1.sh: New file.
68644         * tests/unicase/test-ulc-casecmp2.sh: New file.
68645         * tests/unicase/test-ulc-casecmp.c: New file.
68647         New module 'unicase/ulc-casecmp'.
68648         * lib/unicase.h (ulc_casecmp): New declaration.
68649         * lib/unicase/ulc-casecmp.c: New file.
68650         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
68651         'const SRC_UNIT *'.
68652         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
68653         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
68654         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
68655         * modules/unicase/ulc-casecmp: New file.
68657         Tests for module 'unicase/u32-is-cased'.
68658         * modules/unicase/u32-is-cased-tests: New file.
68659         * tests/unicase/test-u32-is-cased.c: New file.
68661         Tests for module 'unicase/u16-is-cased'.
68662         * modules/unicase/u16-is-cased-tests: New file.
68663         * tests/unicase/test-u16-is-cased.c: New file.
68665         Tests for module 'unicase/u8-is-cased'.
68666         * modules/unicase/u8-is-cased-tests: New file.
68667         * tests/unicase/test-u8-is-cased.c: New file.
68668         * tests/unicase/test-is-cased.h: New file.
68670         New module 'unicase/u32-is-cased'.
68671         * lib/unicase/u32-is-cased.c: New file.
68672         * modules/unicase/u32-is-cased: New file.
68674         New module 'unicase/u16-is-cased'.
68675         * lib/unicase/u16-is-cased.c: New file.
68676         * modules/unicase/u16-is-cased: New file.
68678         New module 'unicase/u8-is-cased'.
68679         * lib/unicase/u8-is-cased.c: New file.
68680         * lib/unicase/u-is-cased.h: New file.
68681         * modules/unicase/u8-is-cased: New file.
68683         Tests for module 'unicase/u32-is-casefolded'.
68684         * modules/unicase/u32-is-casefolded-tests: New file.
68685         * tests/unicase/test-u32-is-casefolded.c: New file.
68687         Tests for module 'unicase/u16-is-casefolded'.
68688         * modules/unicase/u16-is-casefolded-tests: New file.
68689         * tests/unicase/test-u16-is-casefolded.c: New file.
68691         Tests for module 'unicase/u8-is-casefolded'.
68692         * modules/unicase/u8-is-casefolded-tests: New file.
68693         * tests/unicase/test-u8-is-casefolded.c: New file.
68694         * tests/unicase/test-is-casefolded.h: New file.
68696         New module 'unicase/u32-is-casefolded'.
68697         * lib/unicase/u32-is-casefolded.c: New file.
68698         * modules/unicase/u32-is-casefolded: New file.
68700         New module 'unicase/u16-is-casefolded'.
68701         * lib/unicase/u16-is-casefolded.c: New file.
68702         * modules/unicase/u16-is-casefolded: New file.
68704         New module 'unicase/u8-is-casefolded'.
68705         * lib/unicase/u8-is-casefolded.c: New file.
68706         * modules/unicase/u8-is-casefolded: New file.
68708         Tests for module 'unicase/u32-is-titlecase'.
68709         * modules/unicase/u32-is-titlecase-tests: New file.
68710         * tests/unicase/test-u32-is-titlecase.c: New file.
68712         Tests for module 'unicase/u16-is-titlecase'.
68713         * modules/unicase/u16-is-titlecase-tests: New file.
68714         * tests/unicase/test-u16-is-titlecase.c: New file.
68716         Tests for module 'unicase/u8-is-titlecase'.
68717         * modules/unicase/u8-is-titlecase-tests: New file.
68718         * tests/unicase/test-u8-is-titlecase.c: New file.
68719         * tests/unicase/test-is-titlecase.h: New file.
68721         New module 'unicase/u32-is-titlecase'.
68722         * lib/unicase/u32-is-titlecase.c: New file.
68723         * modules/unicase/u32-is-titlecase: New file.
68725         New module 'unicase/u16-is-titlecase'.
68726         * lib/unicase/u16-is-titlecase.c: New file.
68727         * modules/unicase/u16-is-titlecase: New file.
68729         New module 'unicase/u8-is-titlecase'.
68730         * lib/unicase/u8-is-titlecase.c: New file.
68731         * modules/unicase/u8-is-titlecase: New file.
68733         Tests for module 'unicase/u32-is-lowercase'.
68734         * modules/unicase/u32-is-lowercase-tests: New file.
68735         * tests/unicase/test-u32-is-lowercase.c: New file.
68737         Tests for module 'unicase/u16-is-lowercase'.
68738         * modules/unicase/u16-is-lowercase-tests: New file.
68739         * tests/unicase/test-u16-is-lowercase.c: New file.
68741         Tests for module 'unicase/u8-is-lowercase'.
68742         * modules/unicase/u8-is-lowercase-tests: New file.
68743         * tests/unicase/test-u8-is-lowercase.c: New file.
68744         * tests/unicase/test-is-lowercase.h: New file.
68746         New module 'unicase/u32-is-lowercase'.
68747         * lib/unicase/u32-is-lowercase.c: New file.
68748         * modules/unicase/u32-is-lowercase: New file.
68750         New module 'unicase/u16-is-lowercase'.
68751         * lib/unicase/u16-is-lowercase.c: New file.
68752         * modules/unicase/u16-is-lowercase: New file.
68754         New module 'unicase/u8-is-lowercase'.
68755         * lib/unicase/u8-is-lowercase.c: New file.
68756         * modules/unicase/u8-is-lowercase: New file.
68758         Tests for module 'unicase/u32-is-uppercase'.
68759         * modules/unicase/u32-is-uppercase-tests: New file.
68760         * tests/unicase/test-u32-is-uppercase.c: New file.
68762         Tests for module 'unicase/u16-is-uppercase'.
68763         * modules/unicase/u16-is-uppercase-tests: New file.
68764         * tests/unicase/test-u16-is-uppercase.c: New file.
68766         Tests for module 'unicase/u8-is-uppercase'.
68767         * modules/unicase/u8-is-uppercase-tests: New file.
68768         * tests/unicase/test-u8-is-uppercase.c: New file.
68769         * tests/unicase/test-is-uppercase.h: New file.
68771         New module 'unicase/u32-is-uppercase'.
68772         * lib/unicase/u32-is-uppercase.c: New file.
68773         * modules/unicase/u32-is-uppercase: New file.
68775         New module 'unicase/u16-is-uppercase'.
68776         * lib/unicase/u16-is-uppercase.c: New file.
68777         * modules/unicase/u16-is-uppercase: New file.
68779         New module 'unicase/u8-is-uppercase'.
68780         * lib/unicase/u8-is-uppercase.c: New file.
68781         * modules/unicase/u8-is-uppercase: New file.
68783         New module 'unicase/u32-is-invariant'.
68784         * lib/unicase/u32-is-invariant.c: New file.
68785         * modules/unicase/u32-is-invariant: New file.
68787         New module 'unicase/u16-is-invariant'.
68788         * lib/unicase/u16-is-invariant.c: New file.
68789         * modules/unicase/u16-is-invariant: New file.
68791         New module 'unicase/u8-is-invariant'.
68792         * lib/unicase/u8-is-invariant.c: New file.
68793         * lib/unicase/invariant.h: New file.
68794         * lib/unicase/u-is-invariant.h: New file.
68795         * modules/unicase/u8-is-invariant: New file.
68797         Tests for module 'unicase/u32-casecoll'.
68798         * modules/unicase/u32-casecoll-tests: New file.
68799         * tests/unicase/test-u32-casecoll.c: New file.
68801         Tests for module 'unicase/u16-casecoll'.
68802         * modules/unicase/u16-casecoll-tests: New file.
68803         * tests/unicase/test-u16-casecoll.c: New file.
68805         Tests for module 'unicase/u8-casecoll'.
68806         * modules/unicase/u8-casecoll-tests: New file.
68807         * tests/unicase/test-u8-casecoll.c: New file.
68809         New module 'unicase/u32-casecoll'.
68810         * lib/unicase/u32-casecoll.c: New file.
68811         * modules/unicase/u32-casecoll: New file.
68813         New module 'unicase/u16-casecoll'.
68814         * lib/unicase/u16-casecoll.c: New file.
68815         * modules/unicase/u16-casecoll: New file.
68817         New module 'unicase/u8-casecoll'.
68818         * lib/unicase/u8-casecoll.c: New file.
68819         * lib/unicase/u-casecoll.h: New file.
68820         * modules/unicase/u8-casecoll: New file.
68822         New module 'unicase/u32-casexfrm'.
68823         * lib/unicase/u32-casexfrm.c: New file.
68824         * modules/unicase/u32-casexfrm: New file.
68826         New module 'unicase/u16-casexfrm'.
68827         * lib/unicase/u16-casexfrm.c: New file.
68828         * modules/unicase/u16-casexfrm: New file.
68830         New module 'unicase/u8-casexfrm'.
68831         * lib/unicase/u8-casexfrm.c: New file.
68832         * lib/unicase/u-casexfrm.h: New file.
68833         * modules/unicase/u8-casexfrm: New file.
68835         Tests for module 'unicase/u32-casecmp'.
68836         * modules/unicase/u32-casecmp-tests: New file.
68837         * tests/unicase/test-u32-casecmp.c: New file.
68839         Tests for module 'unicase/u16-casecmp'.
68840         * modules/unicase/u16-casecmp-tests: New file.
68841         * tests/unicase/test-u16-casecmp.c: New file.
68843         Tests for module 'unicase/u8-casecmp'.
68844         * modules/unicase/u8-casecmp-tests: New file.
68845         * tests/unicase/test-u8-casecmp.c: New file.
68846         * tests/unicase/test-casecmp.h: New file.
68848         New module 'unicase/u32-casecmp'.
68849         * lib/unicase/u32-casecmp.c: New file.
68850         * modules/unicase/u32-casecmp: New file.
68852         New module 'unicase/u16-casecmp'.
68853         * lib/unicase/u16-casecmp.c: New file.
68854         * modules/unicase/u16-casecmp: New file.
68856         New module 'unicase/u8-casecmp'.
68857         * lib/unicase/u8-casecmp.c: New file.
68858         * lib/unicase/u-casecmp.h: New file.
68859         * modules/unicase/u8-casecmp: New file.
68861         Tests for module 'unicase/u32-casefold'.
68862         * modules/unicase/u32-casefold-tests: New file.
68863         * tests/unicase/test-u32-casefold.c: New file.
68865         Tests for module 'unicase/u16-casefold'.
68866         * modules/unicase/u16-casefold-tests: New file.
68867         * tests/unicase/test-u16-casefold.c: New file.
68869         Tests for module 'unicase/u8-casefold'.
68870         * modules/unicase/u8-casefold-tests: New file.
68871         * tests/unicase/test-u8-casefold.c: New file.
68873         New module 'unicase/u32-casefold'.
68874         * lib/unicase/u32-casefold.c: New file.
68875         * modules/unicase/u32-casefold: New file.
68877         New module 'unicase/u16-casefold'.
68878         * lib/unicase/u16-casefold.c: New file.
68879         * modules/unicase/u16-casefold: New file.
68881         New module 'unicase/u8-casefold'.
68882         * lib/unicase/u8-casefold.c: New file.
68883         * lib/unicase/u-casefold.h: New file.
68884         * modules/unicase/u8-casefold: New file.
68886         New module 'unicase/tocasefold'.
68887         * lib/unicase/casefold.h: New file.
68888         * lib/unicase/tocasefold.c: New file.
68889         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
68890         * modules/unicase/tocasefold: New file.
68892         Tests for module 'unicase/u32-totitle'.
68893         * modules/unicase/u32-totitle-tests: New file.
68894         * tests/unicase/test-u32-totitle.c: New file.
68896         Tests for module 'unicase/u16-totitle'.
68897         * modules/unicase/u16-totitle-tests: New file.
68898         * tests/unicase/test-u16-totitle.c: New file.
68900         Tests for module 'unicase/u8-totitle'.
68901         * modules/unicase/u8-totitle-tests: New file.
68902         * tests/unicase/test-u8-totitle.c: New file.
68904         New module 'unicase/u32-totitle'.
68905         * lib/unicase/u32-totitle.c: New file.
68906         * modules/unicase/u32-totitle: New file.
68908         New module 'unicase/u16-totitle'.
68909         * lib/unicase/u16-totitle.c: New file.
68910         * modules/unicase/u16-totitle: New file.
68912         New module 'unicase/u8-totitle'.
68913         * lib/unicase/u8-totitle.c: New file.
68914         * lib/unicase/u-totitle.h: New file.
68915         * modules/unicase/u8-totitle: New file.
68917         Tests for module 'unicase/u32-tolower'.
68918         * modules/unicase/u32-tolower-tests: New file.
68919         * tests/unicase/test-u32-tolower.c: New file.
68921         Tests for module 'unicase/u16-tolower'.
68922         * modules/unicase/u16-tolower-tests: New file.
68923         * tests/unicase/test-u16-tolower.c: New file.
68925         Tests for module 'unicase/u8-tolower'.
68926         * modules/unicase/u8-tolower-tests: New file.
68927         * tests/unicase/test-u8-tolower.c: New file.
68929         New module 'unicase/u32-tolower'.
68930         * lib/unicase/u32-tolower.c: New file.
68931         * modules/unicase/u32-tolower: New file.
68933         New module 'unicase/u16-tolower'.
68934         * lib/unicase/u16-tolower.c: New file.
68935         * modules/unicase/u16-tolower: New file.
68937         New module 'unicase/u8-tolower'.
68938         * lib/unicase/u8-tolower.c: New file.
68939         * modules/unicase/u8-tolower: New file.
68941         Tests for module 'unicase/u32-toupper'.
68942         * modules/unicase/u32-toupper-tests: New file.
68943         * tests/unicase/test-u32-toupper.c: New file.
68945         Tests for module 'unicase/u16-toupper'.
68946         * modules/unicase/u16-toupper-tests: New file.
68947         * tests/unicase/test-u16-toupper.c: New file.
68949         Tests for module 'unicase/u8-toupper'.
68950         * modules/unicase/u8-toupper-tests: New file.
68951         * tests/unicase/test-u8-toupper.c: New file.
68953         New module 'unicase/u32-toupper'.
68954         * lib/unicase/u32-toupper.c: New file.
68955         * modules/unicase/u32-toupper: New file.
68957         New module 'unicase/u16-toupper'.
68958         * lib/unicase/u16-toupper.c: New file.
68959         * modules/unicase/u16-toupper: New file.
68961         New module 'unicase/u8-toupper'.
68962         * lib/unicase/u8-toupper.c: New file.
68963         * modules/unicase/u8-toupper: New file.
68965         New module 'unicase/u32-casemap'.
68966         * lib/unicase/u32-casemap.c: New file.
68967         * modules/unicase/u32-casemap: New file.
68969         New module 'unicase/u16-casemap'.
68970         * lib/unicase/u16-casemap.c: New file.
68971         * modules/unicase/u16-casemap: New file.
68973         New module 'unicase/u8-casemap'.
68974         * lib/unicase/unicasemap.h: New file.
68975         * lib/unicase/u8-casemap.c: New file.
68976         * lib/unicase/u-casemap.h: New file.
68977         * modules/unicase/u8-casemap: New file.
68979         New module 'unicase/special-casing'.
68980         * lib/unicase/special-casing.h: New file.
68981         * lib/unicase/special-casing.c: New file.
68982         * lib/unicase/special-casing-table.gperf: New file, generated by
68983         gen-uni-tables.c.
68984         * modules/unicase/special-casing: New file.
68986         Tests for module 'unicase/locale-language'.
68987         * modules/unicase/locale-language-tests: New file.
68988         * tests/unicase/test-locale-language.sh: New file.
68989         * tests/unicase/test-locale-language.c: New file.
68991         New module 'unicase/locale-language'.
68992         * lib/unicase/locale-language.c: New file.
68993         * lib/unicase/locale-languages.gperf: New file.
68994         * modules/unicase/locale-language: New file.
68996         Generate more tables for case conversion and case folding.
68997         * lib/gen-uni-tables.c (SCC_*): New enum items.
68998         (struct special_casing_rule): New type.
68999         (casing_rules, num_casing_rules, allocated_casing_rules): New
69000         variables.
69001         (add_casing_rule, fill_casing_rules): New functions.
69002         (struct casefold_rule): New type.
69003         (casefolding_rules, num_casefolding_rules,
69004         allocated_casefolding_rules): New variables.
69005         (fill_casefolding_rules): New function.
69006         (unicode_casefold): New variable.
69007         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
69008         sort_casing_rules, output_casing_rules): New functions.
69009         (main): Accept to more arguments: SpecialCasing.txt and
69010         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
69011         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
69012         Output mapping for casefolding.
69014         * lib/unicase.h: Include stdbool.h, uninorm.h.
69015         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
69016         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
69017         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
69018         arguments.
69019         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
69020         resultp arguments.
69021         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
69022         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
69023         resultp arguments.
69024         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
69025         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
69026         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
69027         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
69028         declarations.
69029         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
69031 2009-03-08  Bruno Haible  <bruno@clisp.org>
69033         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
69034         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
69035         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
69036         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
69038 2009-03-07  Bruno Haible  <bruno@clisp.org>
69040         Adjust u*_normcmp, u*_normcoll API.
69041         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
69042         u16_normcoll, u32_normcoll): Change failure conventions.
69043         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
69044         errno and return -1.
69045         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
69047 2009-03-07  Bruno Haible  <bruno@clisp.org>
69049         Tests for module 'uninorm/u32-normcoll'.
69050         * modules/uninorm/u32-normcoll-tests: New file.
69051         * tests/uninorm/test-u32-normcoll.c: New file.
69053         Tests for module 'uninorm/u16-normcoll'.
69054         * modules/uninorm/u16-normcoll-tests: New file.
69055         * tests/uninorm/test-u16-normcoll.c: New file.
69057         Tests for module 'uninorm/u8-normcoll'.
69058         * modules/uninorm/u8-normcoll-tests: New file.
69059         * tests/uninorm/test-u8-normcoll.c: New file.
69061 2009-03-07  Bruno Haible  <bruno@clisp.org>
69063         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
69064         tests/uninorm/test-u32-normcmp.c.
69065         * tests/uninorm/test-u32-normcmp.c: Include it.
69066         (test_nonascii): New function, extracted from main. Add some more
69067         tests.
69068         (main): Invoke test_ascii and test_nonascii.
69069         * modules/uninorm/u32-normcmp-tests (Files): Add
69070         tests/uninorm/test-u32-normcmp.h.
69071         (Depends-on): Remove uninorm/u32-normcmp.
69073         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
69074         tests/uninorm/test-u16-normcmp.c.
69075         * tests/uninorm/test-u16-normcmp.c: Include it.
69076         (test_nonascii): New function, extracted from main. Add some more
69077         tests.
69078         (main): Invoke test_ascii and test_nonascii.
69079         * modules/uninorm/u16-normcmp-tests (Files): Add
69080         tests/uninorm/test-u16-normcmp.h.
69081         (Depends-on): Remove uninorm/u16-normcmp.
69083         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
69084         tests/uninorm/test-u8-normcmp.c.
69085         * tests/uninorm/test-u8-normcmp.c: Include it.
69086         (test_nonascii): New function, extracted from main. Add some more
69087         tests.
69088         (main): Invoke test_ascii and test_nonascii.
69089         * modules/uninorm/u8-normcmp-tests (Files): Add
69090         tests/uninorm/test-u8-normcmp.h.
69091         (Depends-on): Remove uninorm/u8-normcmp.
69093 2009-03-07  Bruno Haible  <bruno@clisp.org>
69095         New module 'uninorm/u32-normcoll'.
69096         * lib/uninorm/u32-normcoll.c: New file.
69097         * modules/uninorm/u32-normcoll: New file.
69099         New module 'uninorm/u16-normcoll'.
69100         * lib/uninorm/u16-normcoll.c: New file.
69101         * modules/uninorm/u16-normcoll: New file.
69103         New module 'uninorm/u8-normcoll'.
69104         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
69105         declarations.
69106         * lib/uninorm/u8-normcoll.c: New file.
69107         * lib/uninorm/u-normcoll.h: New file.
69108         * modules/uninorm/u8-normcoll: New file.
69110         New module 'uninorm/u32-normxfrm'.
69111         * lib/uninorm/u32-normxfrm.c: New file.
69112         * modules/uninorm/u32-normxfrm: New file.
69114         New module 'uninorm/u16-normxfrm'.
69115         * lib/uninorm/u16-normxfrm.c: New file.
69116         * modules/uninorm/u16-normxfrm: New file.
69118         New module 'uninorm/u8-normxfrm'.
69119         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
69120         declarations.
69121         * lib/uninorm/u8-normxfrm.c: New file.
69122         * lib/uninorm/u-normxfrm.h: New file.
69123         * modules/uninorm/u8-normxfrm: New file.
69125 2009-03-07  Bruno Haible  <bruno@clisp.org>
69127         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
69128         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
69129         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
69131 2009-03-07  Bruno Haible  <bruno@clisp.org>
69133         New module 'memxfrm'.
69134         * lib/memxfrm.h: New file.
69135         * lib/memxfrm.c: New file.
69136         * modules/memxfrm: New file.
69138 2009-03-07  Bruno Haible  <bruno@clisp.org>
69140         New module 'memcmp2'.
69141         * lib/memcmp2.h: New file.
69142         * lib/memcmp2.c: New file.
69143         * modules/memcmp2: New file.
69145 2009-03-07  Bruno Haible  <bruno@clisp.org>
69147         Tests for module 'uninorm/decomposing-form'.
69148         * modules/uninorm/decomposing-form-tests: New file.
69149         * tests/uninorm/test-decomposing-form.c: New file.
69151         New module 'uninorm/decomposing-form'.
69152         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
69153         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
69154         Add 'decomposing_variant' field.
69155         * lib/uninorm/decomposing-form.c: New file.
69156         * lib/uninorm/nfc.c (uninorm_nfc): Update.
69157         * lib/uninorm/nfd.c (uninorm_nfd): Update.
69158         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
69159         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
69160         * modules/uninorm/decomposing-form: New file.
69161         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
69162         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
69164 2009-03-07  Bruno Haible  <bruno@clisp.org>
69166         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
69167         strings.
69169 2009-03-06  Bruno Haible  <bruno@clisp.org>
69171         Tests for module 'uninorm/u32-normcmp'.
69172         * tests/uninorm/test-u32-normcmp.c: New file.
69173         * modules/uninorm/u32-normcmp-tests: New file.
69175         Tests for module 'uninorm/u16-normcmp'.
69176         * tests/uninorm/test-u16-normcmp.c: New file.
69177         * modules/uninorm/u16-normcmp-tests: New file.
69179         Tests for module 'uninorm/u8-normcmp'.
69180         * tests/uninorm/test-u8-normcmp.c: New file.
69181         * modules/uninorm/u8-normcmp-tests: New file.
69183         New module 'uninorm/u32-normcmp'.
69184         * lib/uninorm/u32-normcmp.c: New file.
69185         * modules/uninorm/u32-normcmp: New file.
69187         New module 'uninorm/u16-normcmp'.
69188         * lib/uninorm/u16-normcmp.c: New file.
69189         * modules/uninorm/u16-normcmp: New file.
69191         New module 'uninorm/u8-normcmp'.
69192         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
69193         declarations.
69194         * lib/uninorm/u8-normcmp.c: New file.
69195         * lib/uninorm/u-normcmp.h: New file.
69196         * modules/uninorm/u8-normcmp: New file.
69198 2009-03-06  Bruno Haible  <bruno@clisp.org>
69200         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
69201         Reported by Eric Blake.
69203 2009-03-06  Eric Blake  <ebb9@byu.net>
69204             Bruno Haible  <bruno@clisp.org>
69206         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
69207         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
69208         condition.
69209         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69210         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
69211         condition.
69212         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69214 2009-03-06  Eric Blake  <ebb9@byu.net>
69216         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
69217         to avoid compiler warnings.
69218         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
69220 2009-03-05  Bruno Haible  <bruno@clisp.org>
69222         * tests/test-ftell.c (main): Disable test beyond end of file on
69223         FreeMiNT.
69224         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69226 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
69228         * lib/filevercmp.c: Move hidden files up in ordering.
69229         * tests/test-filevercmp.c: Add tests for hidden files.
69231 2009-03-04  Bruno Haible  <bruno@clisp.org>
69233         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
69234         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
69235         AM_CFLAGS.
69236         Reported by Simon Josefsson.
69238 2009-03-03  Bruno Haible  <bruno@clisp.org>
69240         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
69241         Reported by Simon Josefsson.
69243         * doc/ld-version-script.texi: Update node reference.
69245 2009-03-03  Bruno Haible  <bruno@clisp.org>
69247         * modules/visibility (License): Change to 'unlimited'.
69248         Suggested by Simon Josefsson.
69250 2009-03-03  Jim Meyering  <meyering@redhat.com>
69252         unlinkdir: cannot_unlink_dir may modify process state
69253         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
69254         it's neither thread-safe nor appropriate for use in a library.
69256 2009-03-03  Eric Blake  <ebb9@byu.net>
69258         test-closein: silence test under Darwin
69259         * tests/test-closein.sh: Ignore stderr from cat, since we don't
69260         care if it dies from EPIPE or EBADF.
69262 2009-03-03  Bruno Haible  <bruno@clisp.org>
69264         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
69265         earlier.
69266         * doc/visibility.texi: Fix @node and @section.
69268 2009-03-03  Simon Josefsson  <simon@josefsson.org>
69270         * doc/gnulib.texi: Link to sections for ld version script and
69271         visibility.
69272         * doc/visibility.texi: Add @node and @section.
69273         * modules/ld-version-script: New module.
69274         * m4/ld-version-script.m4: New file.
69275         * doc/ld-version-script.texi: New file.
69277 2009-03-02  David Lutterkort  <lutter@redhat.com>
69279         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
69280         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69282 2009-03-02  Bruno Haible  <bruno@clisp.org>
69284         * doc/visibility.texi: Mention libtool's -export-symbols option.
69286 2009-03-02  Jim Meyering  <meyering@redhat.com>
69288         announce-gen: new option: --no-print-checksums
69289         * build-aux/announce-gen (usage): Describe it.
69290         (print_checksums): Print a newline here, not in the [*] footnote.
69291         (main): Honor it.
69293 2009-03-01  Bruno Haible  <bruno@clisp.org>
69295         Use socklen_t in the native Windows replacements prototypes.
69296         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
69297         instead of 'int'.
69298         * lib/getsockopt.c (rpl_getsockopt): Likewise.
69299         * lib/setsockopt.c (rpl_setsockopt): Likewise.
69300         * modules/getsockopt (Depends-on): Add socklen.
69301         * modules/setsockopt (Depends-on): Add socklen.
69303 2009-03-01  Bruno Haible  <bruno@clisp.org>
69305         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
69306         least 4.2.
69308 2009-03-01  Eric Blake  <ebb9@byu.net>
69309             Bruno Haible  <bruno@clisp.org>
69311         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
69312         error messages.
69313         * lib/wait-process.c (wait_subprocess): Omit error message about
69314         deadly signal sent to the child of termsigp != NULL.
69316 2009-03-01  Eric Blake  <ebb9@byu.net>
69318         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
69320 2009-03-01  Bruno Haible  <bruno@clisp.org>
69322         Avoid a gcc warning.
69323         * tests/test-sched.c (b): Make global.
69324         Reported by Eric Blake.
69326 2009-01-19  Martin Lambers  <marlam@marlam.de>
69328         Provide POSIX semantics for socket timeout options on W32.
69329         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
69330         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
69331         * modules/setsockopt: Depend on sys_time module for struct timeval.
69332         * modules/getsockopt: Depend on sys_time module for struct timeval.
69334 2009-03-01  Simon Josefsson  <simon@josefsson.org>
69336         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
69337         __USE_GNU, for consistency with netdb.in.h.
69338         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69340 2009-03-01  Bruno Haible  <bruno@clisp.org>
69342         More support for FreeMiNT.
69343         * lib/fseeko.c (rpl_fseeko): Complete last commit.
69344         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69346 2009-03-01  Bruno Haible  <bruno@clisp.org>
69348         More support for FreeMiNT.
69349         * lib/fpurge.c (fpurge): Correct last commit.
69350         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69352 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69354         Fix unportable awk script in vc-list-files.
69355         * build-aux/vc-list-files: In the replacement awk script, use
69356         substr with a second argument of 1, not zero.
69357         Report by Simon Josefsson.
69359 2009-02-28  Bruno Haible  <bruno@clisp.org>
69361         More support for FreeMiNT.
69362         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
69363         to FreeMiNT today.
69364         * lib/fwriting.c (fwriting): Likewise.
69365         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
69367 2009-02-28  Bruno Haible  <bruno@clisp.org>
69369         * tests/test-freadseek.c (main): Disable test beyond end of file on
69370         FreeMiNT.
69371         * tests/test-ftello.c (main): Likewise.
69372         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69374 2009-02-28  Bruno Haible  <bruno@clisp.org>
69376         Add tentative support for FreeMiNT.
69377         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
69378         * lib/fpurge.c (fpurge): Likewise.
69379         * lib/freadable.c (freadable): Likewise.
69380         * lib/freading.c (freading): Likewise.
69381         * lib/freadptr.c (freadptr): Likewise.
69382         * lib/freadseek.c (freadptrinc): Likewise.
69383         * lib/fseeko.c (rpl_fseeko): Likewise.
69384         * lib/fseterr.c (fseterr): Likewise.
69385         * lib/fwritable.c (fwritable): Likewise.
69386         * lib/fwriting.c (fwriting): Likewise.
69387         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
69388         Hourihane.
69389         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69391 2009-02-28  Bruno Haible  <bruno@clisp.org>
69393         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
69394         SIGCHLD.
69395         Reported by Jim Meyering.
69397 2009-02-28  Bruno Haible  <bruno@clisp.org>
69399         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
69400         Mention the results of these tests on various platforms.
69401         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
69402         order.
69403         * doc/posix-functions/printf.texi: Likewise.
69404         * doc/posix-functions/snprintf.texi: Likewise.
69405         * doc/posix-functions/sprintf.texi: Likewise.
69406         * doc/posix-functions/vfprintf.texi: Likewise.
69407         * doc/posix-functions/vprintf.texi: Likewise.
69408         * doc/posix-functions/vsnprintf.texi: Likewise.
69409         * doc/posix-functions/vsprintf.texi: Likewise.
69410         * doc/glibc-functions/obstack_printf.texi: Likewise.
69411         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
69413 2009-02-28  Bruno Haible  <bruno@clisp.org>
69415         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
69416         Reported by Loïc Minier <lool@dooz.org>.
69418 2009-02-27  Bruno Haible  <bruno@clisp.org>
69420         * gnulib-tool (func_import): Make the sed expression used to create the
69421         sed script for updating the .gitignore file POSIX compliant.
69422         Reported by Eric Blake.
69424 2009-02-27  Bruno Haible  <bruno@clisp.org>
69426         * gnulib-tool (sed): Don't alias as "sed --posix".
69427         Reported by Eric Blake.
69429 2009-02-27  Bruno Haible  <bruno@clisp.org>
69431         Avoid test link errors.
69432         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
69433         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
69434         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
69435         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
69436         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69438 2009-02-27  Bruno Haible  <bruno@clisp.org>
69440         Avoid spurious "(cached)" in configure output.
69441         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
69442         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
69443         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
69444         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
69445         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
69446         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
69447         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
69448         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
69449         Reported by Eric Blake.
69451 2009-02-27  Eric Blake  <ebb9@byu.net>
69453         printf: fix regression in previous patch
69454         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
69456 2009-02-27  Bruno Haible  <bruno@clisp.org>
69458         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
69459         value.
69460         * lib/stdint.in.h: Likewise.
69461         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
69463 2009-02-27  Eric Blake  <ebb9@byu.net>
69465         doc: mention more functions added in cygwin 1.7.0
69466         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
69467         addition.
69468         * doc/posix-functions/open_wmemstream.texi: Likewise.
69469         * doc/posix-functions/wcsnlen.texi: Likewise.
69470         * doc/posix-functions/wcsnrtombs.texi: Likewise.
69471         * doc/posix-functions/wcstod.texi: Likewise.
69472         * doc/posix-functions/wcstof.texi: Likewise.
69473         * doc/posix-functions/wcstoimax.texi: Likewise.
69474         * doc/posix-functions/wcstok.texi: Likewise.
69475         * doc/posix-functions/wcstoumax.texi: Likewise.
69477         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
69478         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
69479         * doc/posix-functions/fprintf.texi: Update.
69480         * doc/posix-functions/printf.texi: Update.
69481         * doc/posix-functions/snprintf.texi: Update.
69482         * doc/posix-functions/sprintf.texi: Update.
69483         * doc/posix-functions/vfprintf.texi: Update.
69484         * doc/posix-functions/vprintf.texi: Update.
69485         * doc/posix-functions/vsnprintf.texi: Update.
69486         * doc/posix-functions/vsprintf.texi: Update.
69487         * doc/glibc-functions/obstack_printf.texi: Update.
69488         * doc/glibc-functions/obstack_vprintf.texi: Update.
69490 2009-02-26  Eric Blake  <ebb9@byu.net>
69492         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
69493         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
69494         compilation bug by using runtime conversion.
69495         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
69496         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
69497         * modules/ceill-tests (Files): Use nan.h.
69498         * modules/floorl-tests (Files): Likewise.
69499         * modules/frexpl-tests (Files): Likewise.
69500         * modules/isnanl-tests (Files): Likewise.
69501         * modules/ldexpl-tests (Files): Likewise.
69502         * modules/roundl-tests (Files): Likewise.
69503         * modules/truncl-tests (Files): Likewise.
69504         * tests/test-ceill.c (main): Use a working NaN.
69505         * tests/test-floorl.c (main): Likewise.
69506         * tests/test-frexpl.c (main): Likewise.
69507         * tests/test-isnan.c (test_long_double): Likewise.
69508         * tests/test-isnanl.h (main): Likewise.
69509         * tests/test-ldexpl.h (main): Likewise.
69510         * tests/test-roundl.h (main): Likewise.
69511         * tests/test-truncl.h (main): Likewise.
69512         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
69514 2009-02-26  Eric Blake  <ebb9@byu.net>
69515             Bruno Haible  <bruno@clisp.org>
69517         Work around a *printf bug with %ls on Solaris.
69518         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
69519         precision is specified, sprintf stops converting the wide string
69520         argument when the number of bytes that have been produced by this
69521         conversion equals or exceeds the precision.
69522         * doc/posix-functions/fprintf.texi: Update.
69523         * doc/posix-functions/printf.texi: Update.
69524         * doc/posix-functions/snprintf.texi: Update.
69525         * doc/posix-functions/sprintf.texi: Update.
69526         * doc/posix-functions/vfprintf.texi: Update.
69527         * doc/posix-functions/vprintf.texi: Update.
69528         * doc/posix-functions/vsnprintf.texi: Update.
69529         * doc/posix-functions/vsprintf.texi: Update.
69530         * doc/glibc-functions/obstack_printf.texi: Update.
69531         * doc/glibc-functions/obstack_vprintf.texi: Update.
69533 2009-02-26  Eric Blake  <ebb9@byu.net>
69535         stdlib: favor compiler check of random.h
69536         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
69537         to avoid an ObjC random.h installed by Swarm.
69539 2009-02-26  Bruno Haible  <bruno@clisp.org>
69541         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
69542         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
69543         Reported by Gary V. Vaughan <gary@gnu.org>.
69545 2009-02-26  Bruno Haible  <bruno@clisp.org>
69547         Fix *printf behaviour regarding the %ls directive.
69548         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
69549         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
69550         NEED_PRINTF_DIRECTIVE_LS.
69551         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
69552         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
69553         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69554         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
69555         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
69556         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
69557         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
69558         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69559         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69560         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69561         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69562         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
69563         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69564         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69565         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69566         * doc/posix-functions/fprintf.texi: Update.
69567         * doc/posix-functions/printf.texi: Update.
69568         * doc/posix-functions/snprintf.texi: Update.
69569         * doc/posix-functions/sprintf.texi: Update.
69570         * doc/posix-functions/vfprintf.texi: Update.
69571         * doc/posix-functions/vprintf.texi: Update.
69572         * doc/posix-functions/vsnprintf.texi: Update.
69573         * doc/posix-functions/vsprintf.texi: Update.
69574         * doc/glibc-functions/obstack_printf.texi: Update.
69575         * doc/glibc-functions/obstack_vprintf.texi: Update.
69576         Reported by Eric Blake.
69578 2009-02-25  Bruno Haible  <bruno@clisp.org>
69580         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
69581         with known value.
69582         Reported by Gary V. Vaughan <gary@gnu.org>.
69584 2009-02-25  Bruno Haible  <bruno@clisp.org>
69586         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
69587         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
69588         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
69589         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
69590         Reported by Gary V. Vaughan <gary@gnu.org>.
69592 2009-02-25  Bruno Haible  <bruno@clisp.org>
69594         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
69595         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
69596         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
69597         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
69598         Reported by Gary V. Vaughan <gary@gnu.org>.
69600 2009-02-25  Eric Blake  <ebb9@byu.net>
69602         tests: skip fseek/ftell tests if ungetc is broken
69603         * m4/ungetc.m4: New file.
69604         * modules/fseek-tests: Split test, so ungetc dependency is
69605         separate from rest of test.
69606         * modules/fseeko-tests: Likewise.
69607         * modules/ftell-tests: Likewise.
69608         * modules/ftello-tests: Likewise.
69609         * tests/test-fseek.c (main): Isolate ungetc dependency.
69610         * tests/test-fseeko.c (main): Likewise.
69611         * tests/test-ftell.c (main): Likewise.
69612         * tests/test-ftello.c (main): Likewise.
69613         * tests/test-fseek2.sh: New file.
69614         * tests/test-fseeko2.sh: Likewise.
69615         * tests/test-ftell2.sh: Likewise.
69616         * tests/test-ftello2.sh: Likewise.
69618 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
69620         test-getaddrinfo: fix usage of skip return code 77
69621         * tests/test-gettaddrinfo.c: Return skip code 77 only
69622         for first occurrence of skip (4x77 is not 77)
69624 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
69626         strtod: avoid C99 decl-after-statement
69627         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
69629 2009-02-24  Eric Blake  <ebb9@byu.net>
69631         strtod: detect HP-UX 11.31 bug
69632         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
69633         Reported by Gary V. Vaughan.
69635 2009-02-23  Bruno Haible  <bruno@clisp.org>
69637         Fix invalid read past end of memory block.
69638         * lib/vasnprintf.c (DCHAR_SET): Define.
69639         (local_wcslen): Define only when needed.
69640         (local_strnlen, local_wcsnlen): New functions.
69641         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
69642         directives that involve a conversion ourselves.
69643         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
69644         wcsnlen, mbrtowc, wcrtomb.
69645         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
69646         * tests/test-vasprintf-posix.c (test_function): Likewise.
69647         * tests/test-snprintf-posix.h (test_function): Likewise.
69648         * tests/test-sprintf-posix.h (test_function): Likewise.
69649         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69651 2009-02-22  Bruno Haible  <bruno@clisp.org>
69653         Implement new clarified decomposition of Hangul syllables.
69654         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
69655         of type LTV, return only a pairwise decomposition.
69656         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
69657         Likewise.
69658         * tests/uninorm/test-decomposition.c (main): Updated expected result.
69659         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
69660         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
69662 2009-02-22  Bruno Haible  <bruno@clisp.org>
69664         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
69665         zero-length results and shrink excess allocated memory.
69666         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
69667         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
69668         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
69669         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
69670         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
69671         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
69672         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
69673         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
69674         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
69675         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
69676         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
69677         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
69679 2009-02-21  Bruno Haible  <bruno@clisp.org>
69681         * doc/gnulib.texi: Include safe-alloc.texi earlier.
69682         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
69683         spaces after a period. Put a space between a macro name and its
69684         argument list. Trivial rewordings.
69685         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
69686         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
69687         (main): Return 0 explicitly.
69689 2009-02-21  Bruno Haible  <bruno@clisp.org>
69691         Tests for module 'uninorm/filter'.
69692         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
69693         * modules/uninorm/filter-tests: New file.
69695         New module 'uninorm/filter'.
69696         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
69697         uninorm_filter_flush, uninorm_filter_free): New declarations.
69698         * lib/uninorm/uninorm-filter.c: New file.
69699         * modules/uninorm/filter: New file.
69701 2009-02-21  Bruno Haible  <bruno@clisp.org>
69703         Tests for module 'uninorm/nfkc'.
69704         * tests/uninorm/test-nfkc.c: New file.
69705         * tests/uninorm/test-u8-nfkc.c: New file.
69706         * tests/uninorm/test-u16-nfkc.c: New file.
69707         * tests/uninorm/test-u32-nfkc.c: New file.
69708         * tests/uninorm/test-u32-nfkc-big.sh: New file.
69709         * tests/uninorm/test-u32-nfkc-big.c: New file.
69710         * modules/uninorm/nfkc-tests: New file.
69712         New module 'uninorm/nfkc'.
69713         * lib/uninorm/nfkc.c: New file.
69714         * modules/uninorm/nfkc: New file.
69716         Tests for module 'uninorm/nfkd'.
69717         * tests/uninorm/test-nfkd.c: New file.
69718         * tests/uninorm/test-u8-nfkd.c: New file.
69719         * tests/uninorm/test-u16-nfkd.c: New file.
69720         * tests/uninorm/test-u32-nfkd.c: New file.
69721         * tests/uninorm/test-u32-nfkd-big.sh: New file.
69722         * tests/uninorm/test-u32-nfkd-big.c: New file.
69723         * modules/uninorm/nfkd-tests: New file.
69725         New module 'uninorm/nfkd'.
69726         * lib/uninorm/nfkd.c: New file.
69727         * modules/uninorm/nfkd: New file.
69729         Tests for module 'uninorm/nfc'.
69730         * tests/uninorm/test-nfc.c: New file.
69731         * tests/uninorm/test-u8-nfc.c: New file.
69732         * tests/uninorm/test-u16-nfc.c: New file.
69733         * tests/uninorm/test-u32-nfc.c: New file.
69734         * tests/uninorm/test-u32-nfc-big.sh: New file.
69735         * tests/uninorm/test-u32-nfc-big.c: New file.
69736         * modules/uninorm/nfc-tests: New file.
69738         New module 'uninorm/nfc'.
69739         * lib/uninorm/nfc.c: New file.
69740         * modules/uninorm/nfc: New file.
69742         Tests for module 'uninorm/nfd'.
69743         * tests/uninorm/test-nfd.c: New file.
69744         * tests/uninorm/test-u8-nfd.c: New file.
69745         * tests/uninorm/test-u16-nfd.c: New file.
69746         * tests/uninorm/test-u32-nfd.c: New file.
69747         * tests/uninorm/test-u32-nfd-big.sh: New file.
69748         * tests/uninorm/test-u32-nfd-big.c: New file.
69749         * tests/uninorm/test-u32-normalize-big.h: New file.
69750         * tests/uninorm/test-u32-normalize-big.c: New file.
69751         * tests/uninorm/NormalizationTest.txt: New file, created from
69752         Unicode 5.1.0 NormalizationTest.txt.
69753         * modules/uninorm/nfd-tests: New file.
69755         New module 'uninorm/nfd'.
69756         * lib/uninorm/nfd.c: New file.
69757         * modules/uninorm/nfd: New file.
69759         New module 'uninorm/u32-normalize'.
69760         * lib/uninorm/u32-normalize.c: New file.
69761         * modules/uninorm/u32-normalize: New file.
69763         New module 'uninorm/u16-normalize'.
69764         * lib/uninorm/u16-normalize.c: New file.
69765         * modules/uninorm/u16-normalize: New file.
69767         New module 'uninorm/u8-normalize'.
69768         * lib/uninorm/u8-normalize.c: New file.
69769         * lib/uninorm/normalize-internal.h: New file.
69770         * lib/uninorm/u-normalize-internal.h: New file.
69771         * modules/uninorm/u8-normalize: New file.
69773         New module 'uninorm/decompose-internal'.
69774         * lib/uninorm/decompose-internal.c: New file.
69775         * modules/uninorm/decompose-internal: New file.
69777         Tests for module 'uninorm/composition'.
69778         * tests/uninorm/test-composition.c: New file.
69779         * modules/uninorm/composition-tests: New file.
69781         New module 'uninorm/composition'.
69782         * lib/uninorm/composition.c: New file.
69783         * lib/uninorm/composition-table.gperf: New file, generated by
69784         gen-uni-tables.
69785         * modules/uninorm/composition: New file.
69787         Tests for module 'uninorm/compat-decomposition'.
69788         * tests/uninorm/test-compat-decomposition.c: New file.
69789         * modules/uninorm/compat-decomposition-tests: New file.
69791         New module 'uninorm/compat-decomposition'.
69792         * lib/uninorm/decompose-internal.h: New file.
69793         * lib/uninorm/compat-decomposition.c: New file.
69794         * modules/uninorm/compat-decomposition: New file.
69796         Tests for module 'uninorm/canonical-decomposition'.
69797         * tests/uninorm/test-canonical-decomposition.c: New file.
69798         * modules/uninorm/canonical-decomposition-tests: New file.
69800         New module 'uninorm/canonical-decomposition'.
69801         * lib/uninorm/canonical-decomposition.c: New file.
69802         * modules/uninorm/canonical-decomposition: New file.
69804         Tests for module 'uninorm/decomposition'.
69805         * tests/uninorm/test-decomposition.c: New file.
69806         * modules/uninorm/decomposition-tests: New file.
69808         New module 'uninorm/decomposition'.
69809         * lib/uninorm/decomposition.c: New file.
69810         * modules/uninorm/decomposition: New file.
69812         New module 'uninorm/decomposition-table'.
69813         * lib/uninorm/decomposition-table.h: New file.
69814         * lib/uninorm/decomposition-table.c: New file.
69815         * lib/uninorm/decomposition-table1.h: New file, generated by
69816         gen-uni-tables.
69817         * lib/uninorm/decomposition-table2.h: New file, generated by
69818         gen-uni-tables.
69819         * modules/uninorm/decomposition-table: New file.
69821         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
69822         (UC_DECOMP_*): New enumeration items.
69823         (get_decomposition): New function.
69824         (struct decomp_table): New type.
69825         (output_decomposition, output_decomposition_tables): New functions.
69826         (unicode_composition_exclusions): New variable.
69827         (fill_composition_exclusions, debug_output_composition_tables): New
69828         functions.
69829         (main): Accept one more argument. Invoke fill_composition_exclusions.
69830         Output decomposition and composition tables.
69832         New module 'uninorm/base'.
69833         * lib/uninorm.h: New file.
69834         * lib/unictype.h: Update comment.
69835         * modules/uninorm/base: New file.
69837 2009-02-21  David Lutterkort  <lutter@redhat.com>
69839         Tests for module 'safe-alloc'.
69840         * tests/test-safe-alloc.c: New file.
69841         * modules/safe-alloc-tests: New file.
69843         New module 'safe-alloc'.
69844         * lib/safe-alloc.h: New file.
69845         * lib/safe-alloc.c: New file.
69846         * m4/safe-alloc.m4: New file.
69847         * modules/safe-alloc: New file.
69848         * doc/safe-alloc.texi: New file.
69849         * doc/gnulib.texi: Include it.
69850         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
69851         safe-alloc.
69853 2009-02-18  Bruno Haible  <bruno@clisp.org>
69855         Fix link error on non-glibc systems.
69856         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
69857         variable.
69858         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69860 2009-02-18  Jim Meyering  <meyering@redhat.com>
69862         fts: avoid used-uninitialized error due to recent change
69863         * lib/fts.c (fts_read): Guard uses of the new member,
69864         parent->fts_n_dirs_remaining, since it's not relevant for
69865         the parent of a directory specified on the command-line.
69867 2009-02-17  James Youngman  <jay@gnu.org>
69868             Bruno Haible  <bruno@clisp.org>
69870         * m4/include_next.m4: Reformulate comment.
69872 2009-02-16  Jim Meyering  <meyering@redhat.com>
69874         fts: add #if guards so that the fts_lgpl module still builds
69875         * lib/fts.c: Guard just-added hash-table-using parts with
69876         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
69877         Reported by Simon Josefsson.
69879 2009-02-15  Bruno Haible  <bruno@clisp.org>
69881         * modules/array-mergesort-tests: New file.
69882         * tests/test-array-mergesort.c: New file.
69884         New module 'array-mergesort'.
69885         * modules/array-mergesort: New file.
69886         * lib/array-mergesort.h: New file.
69888 2009-02-15  Bruno Haible  <bruno@clisp.org>
69890         Fix 2009-02-07 commit.
69891         * lib/gen-uni-tables.c (output_predicate, output_category,
69892         output_combclass, output_bidi_category, output_decimal_digit,
69893         output_digit, output_numeric, output_mirror, output_scripts,
69894         output_ident_category, output_simple_mapping): Fix format directives.
69895         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
69897 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
69899         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
69900         fixes are available from IBM.
69902 2009-02-13  Jim Meyering  <meyering@redhat.com>
69904         fts: arrange not to stat non-directories in more cases
69905         This makes GNU find (when it doesn't need to stat each file)
69906         *much* more efficient at traversing reiserfs file systems.
69907         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
69908         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
69909         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
69910         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
69911         (leaf_optimization_applies): New function.
69912         (LCO_hash, LCO_compare): New helper functions.
69913         (link_count_optimize_ok): New function.
69914         (fts_stat): Initialize new member (if dir).
69915         (fts_read): Decrement parent's fts_n_dirs_remaining count if
69916         we've just stat'ed a directory.  Skip the stat call when possible.
69917         ---
69918         Note this AFS-related exchange:
69919         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
69920         and note find's pioctl call in find/fstype.c.
69921         But that is necessary only if you want to enable the
69922         optimization for AFS, and for now, I don't.
69924         fts: move a function definition "up" (no semantic change)
69925         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
69926         "up" to precede upcoming use of a related function.
69928 2009-02-11  Jim Meyering  <meyering@redhat.com>
69930         fts: correct internal computation of nlinks (optimization-related)
69931         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
69932         whether the current entry is a directory, so don't test it.
69934 2009-02-10  Bruno Haible  <bruno@clisp.org>
69936         Tests for module 'uniwbrk/ulc-wordbreaks'.
69937         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
69938         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
69939         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
69941         Tests for module 'uniwbrk/u32-wordbreaks'.
69942         * modules/uniwbrk/u32-wordbreaks-tests: New file.
69943         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
69945         Tests for module 'uniwbrk/u16-wordbreaks'.
69946         * modules/uniwbrk/u16-wordbreaks-tests: New file.
69947         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
69949         Tests for module 'uniwbrk/u8-wordbreaks'.
69950         * modules/uniwbrk/u8-wordbreaks-tests: New file.
69951         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
69953 2009-02-10  Bruno Haible  <bruno@clisp.org>
69955         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
69956         property.
69957         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
69958         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
69959         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
69961 2009-02-10  Simon Josefsson  <simon@josefsson.org>
69963         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
69964         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
69966 2009-02-10  Bruno Haible  <bruno@clisp.org>
69968         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
69969         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
69970         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
69971         * lib/unilbrk/u8-possible-linebreaks.c: Update.
69972         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
69973         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
69975 2009-02-09  Simon Josefsson  <simon@josefsson.org>
69977         * lib/sockets.h (gl_fd_to_handle): New function.
69979         * tests/test-sockets.c: Call gl_fd_to_handle.
69981 2009-02-09  Bruno Haible  <bruno@clisp.org>
69983         * doc/havelib.texi: Document the conventions on bi-arch systems.
69985 2009-02-08  Bruno Haible  <bruno@clisp.org>
69987         Document the AC_LIB_LINKFLAGS macro.
69988         * doc/havelib.texi: New file, mostly written on 2005-05-24.
69989         * doc/gnulib.texi: Include it.
69991 2009-02-08  Bruno Haible  <bruno@clisp.org>
69993         Fix wrong order of sections, compared to TOC.
69994         * doc/gnulib.texi: Include relocatable-maint.texi after the
69995         "Regular expressions" node, not before.
69997 2009-02-08  Bruno Haible  <bruno@clisp.org>
69999         Tests for module 'unicase/totitle'.
70000         * modules/unicase/totitle-tests: New file.
70002         Tests for module 'unicase/tolower'.
70003         * modules/unicase/tolower-tests: New file.
70005         Tests for module 'unicase/toupper'.
70006         * modules/unicase/toupper-tests: New file.
70007         * tests/unicase/test-mapping-part1.h: New file.
70008         * tests/unicase/test-mapping-part2.h: New file.
70010         New module 'unicase/totitle'.
70011         * modules/unicase/totitle: New file.
70012         * lib/unicase/totitle.c: New file.
70014         New module 'unicase/tolower'.
70015         * modules/unicase/tolower: New file.
70016         * lib/unicase/tolower.c: New file.
70018         New module 'unicase/toupper'.
70019         * modules/unicase/toupper: New file.
70020         * lib/unicase/toupper.c: New file.
70021         * lib/unicase/simple-mapping.h: New file.
70023         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
70024         (mapping_table): New structure.
70025         (output_simple_mapping): New function.
70026         (main): Invoke output_simple_mapping_test and output_simple_mapping.
70027         * modules/gen-uni-tables (Description): Update.
70028         * lib/unicase/toupper.h: New file, automatically generated by
70029         gen-uni-tables.
70030         * lib/unicase/tolower.h: New file, automatically generated by
70031         gen-uni-tables.
70032         * lib/unicase/totitle.h: New file, automatically generated by
70033         gen-uni-tables.
70034         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
70035         gen-uni-tables.
70036         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
70037         gen-uni-tables.
70038         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
70039         gen-uni-tables.
70041         New module 'unicase/base'.
70042         * modules/unicase/base: New file.
70043         * lib/unicase.h: New file.
70045 2009-02-08  Bruno Haible  <bruno@clisp.org>
70047         New module 'uniwbrk/ulc-wordbreaks'.
70048         * modules/uniwbrk/ulc-wordbreaks: New file.
70049         * lib/uniwbrk/ulc-wordbreaks.c: New file.
70051         New module 'uniwbrk/u32-wordbreaks'.
70052         * modules/uniwbrk/u32-wordbreaks: New file.
70053         * lib/uniwbrk/u32-wordbreaks.c: New file.
70055         New module 'uniwbrk/u16-wordbreaks'.
70056         * modules/uniwbrk/u16-wordbreaks: New file.
70057         * lib/uniwbrk/u16-wordbreaks.c: New file.
70059         New module 'uniwbrk/u8-wordbreaks'.
70060         * modules/uniwbrk/u8-wordbreaks: New file.
70061         * lib/uniwbrk/u8-wordbreaks.c: New file.
70062         * lib/uniwbrk/u-wordbreaks.h: New file.
70064         New module 'uniwbrk/table'.
70065         * modules/uniwbrk/table: New file.
70066         * lib/uniwbrk/wbrktable.h: New file.
70067         * lib/uniwbrk/wbrktable.c: New file.
70069         New module 'uniwbrk/wordbreak-property'.
70070         * modules/uniwbrk/wordbreak-property: New file.
70071         * lib/uniwbrk/wordbreak-property.c: New file.
70073         * lib/gen-uni-tables.c (WBP_*): New enum items.
70074         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
70075         (unicode_org_wbp): New variable.
70076         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
70077         New functions.
70078         (wbp_table): New structure.
70079         (output_wbp, output_wbrk_tables): New functions.
70080         (main): Accept additional argument. Invoke fill_org_wbp,
70081         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
70082         output_wbrk_tables.
70083         * modules/gen-uni-tables (Description): Update.
70084         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
70085         gen-uni-tables.
70087         New module 'uniwbrk/base'.
70088         * modules/uniwbrk/base: New file.
70089         * lib/uniwbrk.h: New file.
70091 2009-02-08  Bruno Haible  <bruno@clisp.org>
70093         Update to Unicode 5.1.0.
70094         * lib/gen-uni-tables.c (is_property_alphabetic): Include
70095         U+2185..U+2188.
70096         (is_property_default_ignorable_code_point): Don't include characters
70097         of category Cc or Cs and not-a-characters.
70098         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
70099         U+0D79, U+109E, U+109F, U+A60C.
70100         * lib/unictype/bidi_of.h: Regenerated.
70101         * lib/unictype/blocks.h: Regenerated.
70102         * lib/unictype/categ_C.h: Regenerated.
70103         * lib/unictype/categ_Cf.h: Regenerated.
70104         * lib/unictype/categ_Cn.h: Regenerated.
70105         * lib/unictype/categ_L.h: Regenerated.
70106         * lib/unictype/categ_Ll.h: Regenerated.
70107         * lib/unictype/categ_Lm.h: Regenerated.
70108         * lib/unictype/categ_Lo.h: Regenerated.
70109         * lib/unictype/categ_Lu.h: Regenerated.
70110         * lib/unictype/categ_M.h: Regenerated.
70111         * lib/unictype/categ_Mc.h: Regenerated.
70112         * lib/unictype/categ_Me.h: Regenerated.
70113         * lib/unictype/categ_Mn.h: Regenerated.
70114         * lib/unictype/categ_N.h: Regenerated.
70115         * lib/unictype/categ_Nd.h: Regenerated.
70116         * lib/unictype/categ_Nl.h: Regenerated.
70117         * lib/unictype/categ_No.h: Regenerated.
70118         * lib/unictype/categ_P.h: Regenerated.
70119         * lib/unictype/categ_Pd.h: Regenerated.
70120         * lib/unictype/categ_Pe.h: Regenerated.
70121         * lib/unictype/categ_Pf.h: Regenerated.
70122         * lib/unictype/categ_Pi.h: Regenerated.
70123         * lib/unictype/categ_Po.h: Regenerated.
70124         * lib/unictype/categ_Ps.h: Regenerated.
70125         * lib/unictype/categ_S.h: Regenerated.
70126         * lib/unictype/categ_Sk.h: Regenerated.
70127         * lib/unictype/categ_Sm.h: Regenerated.
70128         * lib/unictype/categ_So.h: Regenerated.
70129         * lib/unictype/categ_of.h: Regenerated.
70130         * lib/unictype/combining.h: Regenerated.
70131         * lib/unictype/ctype_alnum.h: Regenerated.
70132         * lib/unictype/ctype_alpha.h: Regenerated.
70133         * lib/unictype/ctype_graph.h: Regenerated.
70134         * lib/unictype/ctype_lower.h: Regenerated.
70135         * lib/unictype/ctype_print.h: Regenerated.
70136         * lib/unictype/ctype_punct.h: Regenerated.
70137         * lib/unictype/ctype_upper.h: Regenerated.
70138         * lib/unictype/decdigit.h: Regenerated.
70139         * lib/unictype/digit.h: Regenerated.
70140         * lib/unictype/mirror.h: Regenerated.
70141         * lib/unictype/numeric.h: Regenerated.
70142         * lib/unictype/pr_alphabetic.h: Regenerated.
70143         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
70144         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
70145         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
70146         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
70147         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
70148         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
70149         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
70150         * lib/unictype/pr_combining.h: Regenerated.
70151         * lib/unictype/pr_dash.h: Regenerated.
70152         * lib/unictype/pr_decimal_digit.h: Regenerated.
70153         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
70154         * lib/unictype/pr_deprecated.h: Regenerated.
70155         * lib/unictype/pr_diacritic.h: Regenerated.
70156         * lib/unictype/pr_extender.h: Regenerated.
70157         * lib/unictype/pr_format_control.h: Regenerated.
70158         * lib/unictype/pr_grapheme_base.h: Regenerated.
70159         * lib/unictype/pr_grapheme_extend.h: Regenerated.
70160         * lib/unictype/pr_grapheme_link.h: Regenerated.
70161         * lib/unictype/pr_id_continue.h: Regenerated.
70162         * lib/unictype/pr_id_start.h: Regenerated.
70163         * lib/unictype/pr_ideographic.h: Regenerated.
70164         * lib/unictype/pr_ignorable_control.h: Regenerated.
70165         * lib/unictype/pr_lowercase.h: Regenerated.
70166         * lib/unictype/pr_math.h: Regenerated.
70167         * lib/unictype/pr_numeric.h: Regenerated.
70168         * lib/unictype/pr_other_alphabetic.h: Regenerated.
70169         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
70170         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
70171         * lib/unictype/pr_other_id_continue.h: Regenerated.
70172         * lib/unictype/pr_other_lowercase.h: Regenerated.
70173         * lib/unictype/pr_other_math.h: Regenerated.
70174         * lib/unictype/pr_punctuation.h: Regenerated.
70175         * lib/unictype/pr_sentence_terminal.h: Regenerated.
70176         * lib/unictype/pr_soft_dotted.h: Regenerated.
70177         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
70178         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
70179         * lib/unictype/pr_unified_ideograph.h: Regenerated.
70180         * lib/unictype/pr_uppercase.h: Regenerated.
70181         * lib/unictype/pr_xid_continue.h: Regenerated.
70182         * lib/unictype/pr_xid_start.h: Regenerated.
70183         * lib/unictype/pr_zero_width.h: Regenerated.
70184         * lib/unictype/scripts.h: Regenerated.
70185         * lib/unictype/scripts_byname.gperf: Regenerated.
70186         * lib/unictype/sy_java_ident.h: Regenerated.
70187         * lib/unilbrk/lbrkprop1.h: Regenerated.
70188         * lib/unilbrk/lbrkprop2.h: Regenerated.
70189         * tests/unictype/test-categ_C.c: Regenerated.
70190         * tests/unictype/test-categ_Cf.c: Regenerated.
70191         * tests/unictype/test-categ_Cn.c: Regenerated.
70192         * tests/unictype/test-categ_L.c: Regenerated.
70193         * tests/unictype/test-categ_Ll.c: Regenerated.
70194         * tests/unictype/test-categ_Lm.c: Regenerated.
70195         * tests/unictype/test-categ_Lo.c: Regenerated.
70196         * tests/unictype/test-categ_Lu.c: Regenerated.
70197         * tests/unictype/test-categ_M.c: Regenerated.
70198         * tests/unictype/test-categ_Mc.c: Regenerated.
70199         * tests/unictype/test-categ_Me.c: Regenerated.
70200         * tests/unictype/test-categ_Mn.c: Regenerated.
70201         * tests/unictype/test-categ_N.c: Regenerated.
70202         * tests/unictype/test-categ_Nd.c: Regenerated.
70203         * tests/unictype/test-categ_Nl.c: Regenerated.
70204         * tests/unictype/test-categ_No.c: Regenerated.
70205         * tests/unictype/test-categ_P.c: Regenerated.
70206         * tests/unictype/test-categ_Pd.c: Regenerated.
70207         * tests/unictype/test-categ_Pe.c: Regenerated.
70208         * tests/unictype/test-categ_Pf.c: Regenerated.
70209         * tests/unictype/test-categ_Pi.c: Regenerated.
70210         * tests/unictype/test-categ_Po.c: Regenerated.
70211         * tests/unictype/test-categ_Ps.c: Regenerated.
70212         * tests/unictype/test-categ_S.c: Regenerated.
70213         * tests/unictype/test-categ_Sk.c: Regenerated.
70214         * tests/unictype/test-categ_Sm.c: Regenerated.
70215         * tests/unictype/test-categ_So.c: Regenerated.
70216         * tests/unictype/test-ctype_alnum.c: Regenerated.
70217         * tests/unictype/test-ctype_alpha.c: Regenerated.
70218         * tests/unictype/test-ctype_graph.c: Regenerated.
70219         * tests/unictype/test-ctype_lower.c: Regenerated.
70220         * tests/unictype/test-ctype_print.c: Regenerated.
70221         * tests/unictype/test-ctype_punct.c: Regenerated.
70222         * tests/unictype/test-ctype_upper.c: Regenerated.
70223         * tests/unictype/test-decdigit.h: Regenerated.
70224         * tests/unictype/test-digit.h: Regenerated.
70225         * tests/unictype/test-numeric.h: Regenerated.
70226         * tests/unictype/test-pr_alphabetic.c: Regenerated.
70227         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
70228         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
70229         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
70230         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
70231         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
70232         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
70233         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
70234         * tests/unictype/test-pr_combining.c: Regenerated.
70235         * tests/unictype/test-pr_dash.c: Regenerated.
70236         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
70237         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
70238         * tests/unictype/test-pr_deprecated.c: Regenerated.
70239         * tests/unictype/test-pr_diacritic.c: Regenerated.
70240         * tests/unictype/test-pr_extender.c: Regenerated.
70241         * tests/unictype/test-pr_format_control.c: Regenerated.
70242         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
70243         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
70244         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
70245         * tests/unictype/test-pr_id_continue.c: Regenerated.
70246         * tests/unictype/test-pr_id_start.c: Regenerated.
70247         * tests/unictype/test-pr_ideographic.c: Regenerated.
70248         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
70249         * tests/unictype/test-pr_lowercase.c: Regenerated.
70250         * tests/unictype/test-pr_math.c: Regenerated.
70251         * tests/unictype/test-pr_numeric.c: Regenerated.
70252         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
70253         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
70254         Regenerated.
70255         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
70256         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
70257         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
70258         * tests/unictype/test-pr_other_math.c: Regenerated.
70259         * tests/unictype/test-pr_punctuation.c: Regenerated.
70260         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
70261         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
70262         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
70263         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
70264         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
70265         * tests/unictype/test-pr_uppercase.c: Regenerated.
70266         * tests/unictype/test-pr_xid_continue.c: Regenerated.
70267         * tests/unictype/test-pr_xid_start.c: Regenerated.
70268         * tests/unictype/test-pr_zero_width.c: Regenerated.
70270         Update to Unicode 5.1.0.
70271         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
70272         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
70273         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
70274         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
70275         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
70276         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
70277         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
70278         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
70279         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
70280         (nonspacing_table_ind): Update.
70281         * tests/uniwidth/test-uc_width2.sh: Update expected result.
70283         Update to Unicode 5.1.0.
70284         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
70285         code transform.
70286         * lib/uniname/uniname.c (unicode_character_name,
70287         unicode_name_character): Add the range 0x1Fxxx to the code transform.
70288         * lib/uniname/uninames.h: Regenerated.
70289         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
70291 2009-02-07  Bruno Haible  <bruno@clisp.org>
70293         Merge gen-ctype and gen-lbrk into a single program.
70294         * lib/gen-uni-tables.c: New file, incorporating
70295         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
70296         Add directory prefixes to the names of the generated files.
70297         * lib/unictype/gen-ctype.c: Remove file.
70298         * lib/unilbrk/gen-lbrk.c: Remove file.
70299         * modules/gen-uni-tables: New file.
70300         * modules/unictype/gen-ctype: Remove file.
70301         * modules/unilbrk/gen-lbrk: Remove file.
70303 2009-02-07  Bruno Haible  <bruno@clisp.org>
70305         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
70307         New module 'unistr/u32-strcoll'.
70308         * modules/unistr/u32-strcoll: New file.
70309         * lib/unistr/u32-strcoll.c: New file.
70311         New module 'unistr/u16-strcoll'.
70312         * modules/unistr/u16-strcoll: New file.
70313         * lib/unistr/u16-strcoll.c: New file.
70315         New module 'unistr/u8-strcoll'.
70316         * modules/unistr/u8-strcoll: New file.
70317         * lib/unistr/u8-strcoll.c: New file.
70318         * lib/unistr/u-strcoll.h: New file.
70320 2009-02-07  Bruno Haible  <bruno@clisp.org>
70322         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
70323         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70324         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70325         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
70326         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
70327         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
70329 2009-02-07  Bruno Haible  <bruno@clisp.org>
70331         Make 64-bit clean.
70332         * lib/unictype/gen-ctype.c (output_predicate, output_category,
70333         output_combclass, output_bidi_category, output_decimal_digit,
70334         output_digit, output_numeric, output_mirror, output_scripts,
70335         output_ident_category): Use proper width specifier in format strings.
70337 2009-02-07  Bruno Haible  <bruno@clisp.org>
70339         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
70340         failure behaviour.
70342 2009-02-07  Jim Meyering  <meyering@redhat.com>
70344         regex: avoid compilation failure with upcoming gcc-4.4
70345         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
70346         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
70347         "... error: integer overflow in preprocessor expression".
70349 2009-02-05  Ben Pfaff  <blp@gnu.org>
70351         Fix link errors on Windows when close module is used.
70352         * modules/close: Add $(LIB_CLOSE) to Link section.
70353         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
70354         $(LIB_CLOSE) on Windows.
70356 2009-02-05  Jim Meyering  <meyering@redhat.com>
70358         still avoid unused-parameter warnings, but do it cleanly
70359         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
70360         (get_fs_usage): Cast to void instead.
70361         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
70362         (dev_from_mount_options, read_file_system_list): Cast to void.
70363         Prompted by Bruno Haible.
70365 2009-02-04  Jim Meyering  <meyering@redhat.com>
70367         fsusage.c: correct copyright year
70368         * lib/fsusage.c: Reflect year in which the change is pushed into
70370         avoid misc. warnings
70371         * lib/fsusage.c (UNUSED_PARAM): Define.
70372         (get_fs_usage): Mark parameter "disk" as unused.
70373         * lib/getugroups.c (getgrent): Use "void" in prototype.
70374         * lib/mountlist.c: Mark unused parameters.
70375         (read_file_system_list): Declare a local with "const".
70376         * lib/nanosleep.c (getnow): Declare static.
70377         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
70379         dirfd: set errno upon failure
70380         * lib/dirfd.c: Include <errno.h>.
70381         Set errno to ENOTSUP when returning -1.
70382         * modules/dirfd (Depends-on): Add errno.
70383         Suggested by John Kodis <kodis@comcast.net>.
70385 2009-02-01  Bruno Haible  <bruno@clisp.org>
70387         Don't assume sizeof (long) >= sizeof (void *).
70388         * lib/memcmp.c: Include stdint.h.
70389         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
70390         srcp2 to 'const byte *'.
70391         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
70392         types to uintptr_t.
70393         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
70394         * modules/memcmp (Depends-on): Add stdint.
70395         Reported by Ozkan Sezer <sezeroz@gmail.com>.
70397 2009-01-30  Eric Blake  <ebb9@byu.net>
70399         fix more require-before-expand issues
70400         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
70401         expand, AC_PROG_AWK.
70402         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
70404 2009-01-28  Eric Blake  <ebb9@byu.net>
70406         version-etc: use consistent URL formatting
70407         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
70408         Improve formatting.  Use fputs for string without %.
70410 2009-01-28  Jim Meyering  <meyering@redhat.com>
70412         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
70413         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
70414         "underquoted definition of NAME" from autoconf-2.59.
70416 2009-01-28  Bruno Haible  <bruno@clisp.org>
70418         * doc/gnulib.texi: Add "Obsolete modules" to index.
70420 2009-01-28  Jim Meyering  <meyering@redhat.com>
70422         useless-if-before-free: recognize more variants
70423         * build-aux/useless-if-before-free: Also recognize e.g.,
70424         if (NULL != p) free (p);
70426 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
70428         test-getaddrinfo: skip (don't fail) this test when there's no network
70429         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
70430         on the presumption that it means you lack network access.
70432 2009-01-26  Jim Meyering  <meyering@redhat.com>
70434         fflush: avoid warnings on modern systems
70435         * lib/fflush.c (rpl_fflush): Move declarations of locals,
70436         pos and result, into scopes where they're used.
70438 2009-01-26  Eric Blake  <ebb9@byu.net>
70440         Silence warning reintroduced by recent extensions patch.
70441         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
70442         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
70443         autoconf.
70445         Backport improved autoconf semantics of AC_DEFUN_ONCE.
70446         * m4/00gnulib.m4: New file.
70447         * gnulib-tool (func_get_filelist): Always use it.
70448         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
70449         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
70451 2009-01-25  Bruno Haible  <bruno@clisp.org>
70453         Make test-quotearg work on MacOS X and AIX.
70454         * tests/test-quotearg.sh: New file.
70455         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
70456         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
70457         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
70458         include <libintl.h>.
70459         (fake_locale): Remove variable.
70460         (gettext, dgettext, dcgettext): Remove functions.
70461         (main): Instead of setting a fake locale, set a real locale. Call
70462         textdomain and bindtextdomain.
70463         * modules/quotearg-tests (Files): Add the new files.
70464         (Depends-on): Add gettext, setenv, unsetenv.
70465         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70466         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
70467         Augment TESTS_ENVIRONMENT.
70469 2009-01-25  Bruno Haible  <bruno@clisp.org>
70471         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
70472         fr_FR.ISO8859-1 locale on MacOS X.
70473         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
70474         ja_JP.eucJP locale on MacOS X.
70475         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
70476         zh_CN.GB18030 locale on MacOS X.
70478 2009-01-25  Bruno Haible  <bruno@clisp.org>
70480         Avoid link errors on MacOS X 10.3.
70481         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
70482         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
70484 2009-01-25  Bruno Haible  <bruno@clisp.org>
70486         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
70487         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
70488         * modules/pipe (Files): Remove m4/posix_spawn.m4.
70489         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
70490         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
70491         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
70492         posix_spawnattr_init, posix_spawnattr_setsigmask,
70493         posix_spawnattr_setflags, posix_spawnattr_destroy.
70495         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
70496         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
70497         * modules/execute (Files): Remove m4/posix_spawn.m4.
70498         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
70499         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
70500         posix_spawnattr_init, posix_spawnattr_setsigmask,
70501         posix_spawnattr_setflags, posix_spawnattr_destroy.
70503 2009-01-25  Bruno Haible  <bruno@clisp.org>
70505         * lib/glthread/threadlib.c: Include <stdlib.h>.
70507 2009-01-25  Bruno Haible  <bruno@clisp.org>
70509         * lib/glthread/threadlib.c (dummy): New declaration.
70511 2009-01-25  Bruno Haible  <bruno@clisp.org>
70513         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
70514         multibyte characters also for the GB18030 encoding. Don't crash when
70515         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
70517 2009-01-25  Bruno Haible  <bruno@clisp.org>
70519         Avoid redefining 'struct random_data' on OSF/1 5.1.
70520         * lib/stdlib.in.h: Include <random.h> if it exists.
70521         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
70522         HAVE_RANDOM_H. Include <random.h> when testing whether
70523         'struct random_data' exists.
70524         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
70526 2009-01-25  Bruno Haible  <bruno@clisp.org>
70528         Don't install charset.alias on MacOS X >= 10.3.
70529         * lib/localcharset.c (DARWIN7): New macro.
70530         (get_charset_aliases): Hardcode the result for Darwin7.
70531         * modules/localcharset (install-exec-local): Don't install
70532         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
70534 2009-01-25  Bruno Haible  <bruno@clisp.org>
70536         Don't install charset.alias on mingw and Cygwin.
70537         * modules/localcharset (install-exec-local): Don't install
70538         charset.alias on mingw and Cygwin, if the file does not yet exist.
70539         The result for these platforms is hardcoded in localcharset.c.
70541 2009-01-25  Bruno Haible  <bruno@clisp.org>
70543         Make it possible again to use AC_GNU_SOURCE together with gnulib.
70544         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
70545         before requiring AC_USE_SYSTEM_EXTENSIONS.
70547 2009-01-25  Jim Meyering  <meyering@redhat.com>
70549         c-strtod: avoid warnings
70550         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
70551         "assignment discards qualifiers from pointer target type" warnings.
70553 2009-01-24  Bruno Haible  <bruno@clisp.org>
70555         Add support for non-UTF-8 locales on MacOS X.
70556         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
70557         canonical encodings. For Darwin 7 and newer, don't map traditional
70558         encodings to UTF-8.
70559         Reported by Vincent Lefevre <vincent@vinc17.org>
70560         at <http://savannah.gnu.org/bugs/?25235>.
70562 2009-01-24  Bruno Haible  <bruno@clisp.org>
70564         * doc/gnulib.texi (Obsolete modules): New section.
70565         Reported by Mike Frysinger <vapier@gentoo.org>.
70567 2009-01-24  Bruno Haible  <bruno@clisp.org>
70569         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
70570         (%.dvi): New rule.
70572 2009-01-24  Bruno Haible  <bruno@clisp.org>
70574         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
70575         Reported by Eric Blake.
70577 2009-01-24  Bruno Haible  <bruno@clisp.org>
70579         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
70580         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
70581         Reported by Gary V. Vaughan <gary@gnu.org>.
70583 2009-01-24  Bruno Haible  <bruno@clisp.org>
70585         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
70587 2009-01-23  Bruno Haible  <bruno@clisp.org>
70589         Make c-strtod, c-strtold usable in libraries.
70590         * lib/c-strtod.c: Include string.h instead of xalloc.h.
70591         (C_STRTOD): Call strdup instead of xstrdup.
70592         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
70593         * modules/c-strtold (Depends-on): Likewise.
70594         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
70595         * NEWS: Mention the change.
70596         Reported by Michael Gold <mgold@ncf.ca>.
70598 2009-01-23  Jim Meyering  <meyering@redhat.com>
70600         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
70601         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
70602         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
70604 2009-01-23  Simon Josefsson  <simon@josefsson.org>
70606         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
70607         GNU CoreUtils.
70608         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
70609         * modules/version-etc (Description): Update.
70611 2009-01-22  Bruno Haible  <bruno@clisp.org>
70613         Cache the C locale object.
70614         * lib/c-strtod.c (c_locale_cache): New variable.
70615         (c_locale): New function.
70616         (C_STRTOD): Use it, and don't call freelocale.
70617         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
70618         Suggested by Paolo Bonzini.
70620 2009-01-21  Bruno Haible  <bruno@clisp.org>
70622         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
70623         conditions other than overflow.
70625 2009-01-21  Bruno Haible  <bruno@clisp.org>
70627         * lib/c-strtod.c: Include errno.h.
70628         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
70629         value from STRTOD_L and STRTOD.
70631 2009-01-21  Bruno Haible  <bruno@clisp.org>
70632         and Jim Meyering  <meyering@redhat.com>
70634         nanosleep: skip configure test (fail it) for apple universal builds
70635         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
70636         universal builds, assume that nanosleep does not work.
70637         * modules/nanosleep (Depends-on): Add multiarch.
70639         mktime: skip configure test (fail it) for apple universal builds
70640         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
70641         universal builds, assume that mktime does not work.
70642         * modules/mktime (Depends-on): Add multiarch.
70644 2009-01-21  Eric Blake  <ebb9@byu.net>
70646         multiarch: avoid expand-before-require warning
70647         * modules/multiarch (configure.ac): Require, rather than expand,
70648         gl_MULTIARCH.
70649         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
70650         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
70651         enforce that all clients require it.  Partial reversion of
70652         2008-12-29 patch.
70654         error: avoid expand-before-require warning
70655         * modules/errno (configure.ac): Require, rather than expand,
70656         gl_HEADER_ERRNO_H.
70657         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
70658         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
70659         enforce that all clients require it.
70661         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
70662         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
70663         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
70664         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
70666 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
70668         Revert:
70669         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
70671         regex: do not depend on obsolete modules.
70672         * modules/regex: Remove memcmp and memmove.
70674 2009-01-20  Bruno Haible  <bruno@clisp.org>
70676         Make the 'link' module link on Windows NT 4.
70677         * lib/link.c (_WIN32_WINNT): Don't define.
70678         (CreateHardLinkFuncType): New type.
70679         (CreateHardLinkFunc, initialized): New variables.
70680         (initialize): New function.
70681         (link): Invoke CreateHardLink indirectly through the function pointer.
70683 2009-01-20  Bruno Haible  <bruno@clisp.org>
70685         Fix compilation failure on mingw.
70686         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
70688 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
70690         * doc/c-strtod.texi: Mention a couple of restrictions.
70692 2009-01-20  Jim Meyering  <meyering@redhat.com>
70694         gettimeofday: move more declarations out of functions
70695         * lib/gettimeofday.c: Move extern declarations of tzset and
70696         gmtime out of containing functions.  Prompted by Bruno Haible.
70698 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
70700         regex: do not depend on obsolete modules.
70701         * modules/regex: Remove memcmp and memmove.
70703 2009-01-19  Bruno Haible  <bruno@clisp.org>
70705         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
70706         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
70707         gl_BIGENDIAN, not AC_C_BIGENDIAN.
70708         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
70709         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
70711 2009-01-19  Bruno Haible  <bruno@clisp.org>
70713         * tests/test-link.c: Include <errno.h>.
70714         (main): Exit with code 77 when a hard link cannot be created due to
70715         the file system.
70716         * tests/test-link.sh: Skip test when a hard link cannot be created due
70717         to the file system.
70718         Suggested by Eric Blake.
70720 2009-01-19  Martin Lambers  <marlam@marlam.de>
70722         * modules/link-tests: New file.
70723         * tests/test-link.sh: New file.
70724         * tests/test-link.c: New file.
70726 2009-01-19  Eric Blake  <ebb9@byu.net>
70728         doc: mention another function added in cygwin 1.7.0
70729         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
70730         Another new function in cygwin 1.7.
70732 2009-01-19  Bruno Haible  <bruno@clisp.org>
70734         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
70735         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
70736         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
70737         gl_BIGENDIAN, not AC_C_BIGENDIAN.
70738         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
70739         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
70740         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
70741         * m4/md4.m4 (gl_MD4): Likewise.
70742         * m4/md5.m4 (gl_MD5): Likewise.
70743         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
70744         * m4/sha1.m4 (gl_SHA1): Likewise.
70745         * m4/sha256.m4 (gl_SHA256): Likewise.
70746         * m4/sha512.m4 (gl_SHA512): Likewise.
70748 2009-01-19  Bruno Haible  <bruno@clisp.org>
70750         * modules/uniname/uniname-tests (Depends-on): Add progname.
70751         * tests/uniname/test-uninames.c: Include progname.h.
70752         (main): Call set_program_name.
70754         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
70755         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
70756         (main): Call set_program_name.
70758         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
70759         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
70760         (main): Call set_program_name.
70762         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
70763         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
70764         (main): Call set_program_name.
70766         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
70767         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
70768         (main): Call set_program_name.
70770         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
70771         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
70772         (main): Call set_program_name.
70774         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
70775         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
70776         (main): Call set_program_name.
70778         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
70779         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
70780         (main): Call set_program_name.
70782         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
70783         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
70784         (main): Call set_program_name.
70786 2009-01-19  Eric Blake  <ebb9@byu.net>
70788         test-unistd: test previous patch
70789         * tests/test-unistd.c: Test *_FILENO macros.
70791         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
70792         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
70793         Guarantee a definition.
70794         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
70795         * modules/unistd-safer (Depends-on): Add dependency on unistd.
70796         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
70797         * lib/dup-safer.c (STDERR_FILENO): Likewise.
70798         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
70799         Likewise.
70800         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
70801         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
70802         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
70803         Likewise.
70804         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
70805         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
70806         (STDERR_FILENO): Likewise.
70807         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
70808         (STDERR_FILENO): Likewise.
70809         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
70810         (STDERR_FILENO): Likewise.
70811         Reported by Elbert Pol.
70813 2009-01-19  Eric Blake  <ebb9@byu.net>
70815         doc: mention more functions added in cygwin 1.7.0
70816         * doc/posix-functions/abort.texi (abort): Update wording related
70817         to cygwin.
70818         * doc/posix-functions/daylight.texi (daylight): Likewise.
70819         * doc/posix-functions/optarg.texi (optarg): Likewise.
70820         * doc/posix-functions/optarg.texi (opterr): Likewise.
70821         * doc/posix-functions/optarg.texi (optind): Likewise.
70822         * doc/posix-functions/optarg.texi (optopt): Likewise.
70823         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
70824         worked in 1.5.x, and was withdrawn in 1.7.
70825         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
70826         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
70827         cygwin versions.
70828         * doc/posix-functions/perror.texi (perror): Likewise.
70829         * doc/posix-functions/printf.texi (printf): Likewise.
70830         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
70831         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
70832         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
70833         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
70834         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
70835         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
70836         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
70837         Likewise.
70838         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
70839         Likewise.
70840         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
70841         this function.
70842         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
70843         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
70844         Likewise.
70845         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
70846         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
70847         * doc/posix-functions/confstr.texi (confstr): Likewise.
70848         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
70849         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
70850         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
70851         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
70852         * doc/posix-functions/fputws.texi (fputws): Likewise.
70853         * doc/posix-functions/fwide.texi (fwide): Likewise.
70854         * doc/posix-functions/getwc.texi (getwc): Likewise.
70855         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
70856         * doc/posix-functions/putwc.texi (putwc): Likewise.
70857         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
70858         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
70859         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
70860         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
70861         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
70862         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
70863         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
70864         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
70865         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
70866         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
70867         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
70869 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
70871         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
70872         * lib/ioctl.c: Include <sys/ioctl.h>.
70874 2009-01-19  Simon Josefsson  <simon@josefsson.org>
70876         * modules/getdate-tests (Depends-on): Add progname.
70877         * tests/test-getdate.c: Use progname module, to avoid link errors
70878         on non-glibc systems.
70880 2009-01-18  Simon Josefsson  <simon@josefsson.org>
70882         * modules/filenamecat-tests (Depends-on): Add progname.
70883         * modules/fstrcmp-tests (Depends-on): Likewise.
70885         * tests/test-filenamecat.c: Use progname module, to avoid link
70886         errors on non-glibc systems.
70887         * tests/test-fstrcmp.c: Likewise.
70889 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
70891         gettimeofday: avoid warning: nested extern declaration of 'localtime'
70892         * lib/gettimeofday.c: Move extern declaration out of function.
70894 2009-01-18  Bruno Haible  <bruno@clisp.org>
70896         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
70897         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
70898         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
70900 2009-01-18  Bruno Haible  <bruno@clisp.org>
70902         * lib/strftime.c (MEMPCPY): Remove unused macro.
70903         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
70905 2009-01-18  Martin Lambers  <marlam@marlam.de>
70907         New module 'link'.
70908         * lib/unistd.in.h (link): New declaration.
70909         * lib/link.c: New file.
70910         * m4/link.m4: New file.
70911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
70912         HAVE_LINK.
70913         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
70914         * modules/link: New file.
70915         * doc/posix-functions/link.texi: Mention the new module.
70917 2009-01-18  Bruno Haible  <bruno@clisp.org>
70919         * tests/test-avltree_list.c (main): Call set_program_name.
70920         * tests/test-avltree_oset.c (main): Likewise.
70921         * tests/test-obstack-printf.c: Include progname.h.
70922         (main): Call set_program_name.
70923         * tests/test-quotearg.c: Include progname.h.
70924         (main): Call set_program_name.
70925         * tests/test-xmemdup0.c: Include progname.h.
70926         (main): Call set_program_name.
70928 2009-01-18  Bruno Haible  <bruno@clisp.org>
70930         New module 'alphasort'.
70931         * lib/dirent.in.h (alphasort): New declaration.
70932         * lib/alphasort.c: New file, from glibc with modifications.
70933         * m4/alphasort.m4: New file.
70934         * modules/alphasort: New file.
70935         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
70936         HAVE_ALPHASORT.
70937         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
70938         HAVE_ALPHASORT.
70939         * doc/posix-functions/alphasort.texi: Mention the new module and the
70940         portability problems.
70942 2009-01-18  Bruno Haible  <bruno@clisp.org>
70944         New module 'scandir'.
70945         * lib/dirent.in.h (scandir): New declaration.
70946         * lib/scandir.c: New file, from glibc with modifications.
70947         * m4/scandir.m4: New file.
70948         * modules/scandir: New file.
70949         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
70950         HAVE_SCANDIR.
70951         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
70952         HAVE_SCANDIR.
70953         * doc/posix-functions/scandir.texi: Mention the new module and the
70954         portability problems.
70956 2009-01-17  Bruno Haible  <bruno@clisp.org>
70958         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
70959         Update documentation.
70960         (func_remove_suffix): Escape all dots in the suffix. Update
70961         documentation.
70962         (func_filter_filelist): Update documentation.
70963         Reported by Ralf Wildenhues.
70965 2009-01-17  Bruno Haible  <bruno@clisp.org>
70967         * modules/dprintf-posix-tests: New file.
70968         * tests/test-dprintf-posix.sh: New file.
70969         * tests/test-dprintf-posix.c: New file.
70971         New modules 'dprintf', 'dprintf-posix'.
70972         * lib/stdio.in.h (dprintf): New declaration.
70973         * lib/dprintf.c: New file.
70974         * m4/dprintf.m4: New file.
70975         * m4/dprintf-posix.m4: New file.
70976         * modules/dprintf: New file.
70977         * modules/dprintf-posix: New file.
70978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
70979         HAVE_DPRINTF, REPLACE_DPRINTF.
70980         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
70981         HAVE_DPRINTF, REPLACE_DPRINTF.
70982         * doc/posix-functions/dprintf.texi: Mention the new modules.
70984 2009-01-17  Bruno Haible  <bruno@clisp.org>
70986         * modules/vdprintf-posix-tests: New file.
70987         * tests/test-vdprintf-posix.sh: New file.
70988         * tests/test-vdprintf-posix.c: New file.
70990         New modules 'vdprintf', 'vdprintf-posix'.
70991         * lib/stdio.in.h (vdprintf): New declaration.
70992         * lib/vdprintf.c: New file.
70993         * m4/vdprintf.m4: New file.
70994         * m4/vdprintf-posix.m4: New file.
70995         * modules/vdprintf: New file.
70996         * modules/vdprintf-posix: New file.
70997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
70998         HAVE_VDPRINTF, REPLACE_VDPRINTF.
70999         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
71000         HAVE_VDPRINTF, REPLACE_VDPRINTF.
71001         * doc/posix-functions/vdprintf.texi: Mention the new modules.
71003 2009-01-17  Bruno Haible  <bruno@clisp.org>
71005         Fix replacement of fopen on mingw.
71006         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
71007         mingw.
71009 2009-01-17  Bruno Haible  <bruno@clisp.org>
71011         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
71012         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
71014 2009-01-17  Bruno Haible  <bruno@clisp.org>
71016         Avoid test-fflush2.sh failure on mingw.
71017         * tests/test-fflush2.c: Include binary-io.h.
71018         (main): Put standard input into binary mode.
71019         * modules/fflush-tests (Depends-on): Add binary-io.
71021 2009-01-17  Bruno Haible  <bruno@clisp.org>
71023         * lib/wchar.in.h: In another particular situation, include only the
71024         system's <wchar.h> file.
71025         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
71026         Reported by Albert Chin-A-Young <china@thewrittenword.com>
71027         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
71029 2009-01-17  Bruno Haible  <bruno@clisp.org>
71031         Support for stripping executables in --enable-relocatable.
71032         * build-aux/install-reloc: Expect one more argument, or an environment
71033         variable RELOC_STRIP_PROG. If set, strip the destination program and
71034         its wrapper.
71035         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
71036         RELOC_STRIP_PROG.
71037         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
71038         to set RELOCATABLE_STRIP.
71039         * NEWS: Mention the new Makefile requirement.
71041 2009-01-17  Bruno Haible  <bruno@clisp.org>
71043         * build-aux/install-reloc: Remove debugging information left over by
71044         C compiler on MacOS X.
71046 2009-01-17  Bruno Haible  <bruno@clisp.org>
71048         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
71049         * lib/progreloc.c (find_executable): Fix type of pointer passed to
71050         _NSGetExecutablePath.
71052 2009-01-16  Jim Meyering  <meyering@redhat.com>
71054         strerror: avoid warnings about discarding "const"
71055         * lib/strerror.c (rpl_strerror): Instead of returning a const
71056         string from each and every "case", use a variable, and add a single
71057         cast after the switch.
71059 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
71061         * lib/arpa_inet.in.h: Add extern "C" block for C++.
71063 2009-01-16  Bruno Haible  <bruno@clisp.org>
71065         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
71066         array initializer syntax that also works in C++ mode.
71067         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71069 2009-01-16  Jim Meyering  <meyering@redhat.com>
71071         poll: suppress a warning
71072         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
71073         to ignore "...unsigned expression < 0 is always false" warnings.
71075 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
71077         poll: remove declarations of unused variables
71078         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
71079         sockbuf and optlen.
71081 2009-01-15  Bruno Haible  <bruno@clisp.org>
71083         Make fflush-after-ungetc POSIX compliant on BSD systems.
71084         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
71085         (clear_ungetc_buffer): Implement also for other systems.
71086         (rpl_fflush): On glibc systems, invoke
71087         clear_ungetc_buffer_preserving_position. Otherwise, invoke
71088         clear_ungetc_buffer after fetching the stream's position, not before.
71090 2009-01-15  Bruno Haible  <bruno@clisp.org>
71092         Make fflush-after-ungetc POSIX compliant on glibc systems.
71093         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
71094         after ungetc.
71095         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
71096         (rpl_fflush): On glibc systems, simply call the system's fflush
71097         function after clearing the ungetc buffer.
71098         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
71099         Instead, lseek only to the end of file, then use the system's fseeko
71100         for the rest. On glibc systems, reset the EOF indicator bit.
71102 2009-01-15  Jim Meyering  <meyering@redhat.com>
71104         openmp.m4: revert quote-adding change, for portability to older autoconf
71105         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
71106         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
71107         Simon Josefsson noticed the problem when using autoconf-2.61.
71109 2009-01-15  Bruno Haible  <bruno@clisp.org>
71111         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
71112         * tests/test-fflush2.c (ASSERT): Always fail.
71113         (main): Add two tests for fflush() after ungetc(), taking into account
71114         the Austin Group's clarification.
71115         Suggested by Eric Blake.
71117 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
71119         mktime.m4: remove K&R-style function prototypes
71120         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
71121         for the Sun C++ compiler.
71123 2009-01-14  Bruno Haible  <bruno@clisp.org>
71125         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
71126         while including <wchar.h>.
71127         * lib/wchar.in.h: In two particular situations on HP-UX, include only
71128         the system's <wchar.h> file.
71129         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71131 2009-01-14  Bruno Haible  <bruno@clisp.org>
71133         * m4/csharp.m4: Don't mention gettext on the serial number line.
71134         * m4/csharpexec.m4: Likewise.
71135         * m4/eaccess.m4: Likewise.
71136         * m4/javaexec.m4: Likewise.
71137         * m4/sig_atomic_t.m4: Likewise.
71138         * m4/tmpdir.m4: Likewise.
71139         * m4/intldir.m4: Bump gettext version.
71140         * m4/lib-ld.m4: Likewise.
71142 2009-01-14  Bruno Haible  <bruno@clisp.org>
71144         * lib/progname.c (set_program_name): Add more comments.
71145         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
71147 2009-01-14  Simon Josefsson  <simon@josefsson.org>
71149         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
71150         were sys/stat.h does not define it.
71152 2009-01-14  Jim Meyering  <meyering@redhat.com>
71154         many *.m4 files: improve m4 quoting
71155         99% of this change was performed by running the following commands:
71156         git ls-files | grep '\.m4$' | xargs perl -pi \
71157           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
71158           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
71159           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
71160           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
71161         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
71162         The remainder were to add Copyright dates, increment serial numbers,
71163         undo some changes in comments, exclude m4/intl.m4, and add quotes
71164         around the "1" in ",1" where the unusual spacing prohibited the
71165         above regexps from doing the job.  For more details, see
71166         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
71167         * m4/acl.m4: Modified.
71168         * m4/afs.m4: Likewise.
71169         * m4/alloca.m4: Likewise.
71170         * m4/argp.m4: Likewise.
71171         * m4/argz.m4: Likewise.
71172         * m4/atexit.m4: Likewise.
71173         * m4/bison-i18n.m4: Likewise.
71174         * m4/bison.m4: Likewise.
71175         * m4/byteswap.m4: Likewise.
71176         * m4/c-stack.m4: Likewise.
71177         * m4/c-strtod.m4: Likewise.
71178         * m4/calloc.m4: Likewise.
71179         * m4/canonicalize-lgpl.m4: Likewise.
71180         * m4/chown.m4: Likewise.
71181         * m4/clock_time.m4: Likewise.
71182         * m4/codeset.m4: Likewise.
71183         * m4/copy-file.m4: Likewise.
71184         * m4/csharp.m4: Likewise.
71185         * m4/csharpcomp.m4: Likewise.
71186         * m4/csharpexec.m4: Likewise.
71187         * m4/d-ino.m4: Likewise.
71188         * m4/d-type.m4: Likewise.
71189         * m4/dirfd.m4: Likewise.
71190         * m4/double-slash-root.m4: Likewise.
71191         * m4/eaccess.m4: Likewise.
71192         * m4/eealloc.m4: Likewise.
71193         * m4/environ.m4: Likewise.
71194         * m4/errno_h.m4: Likewise.
71195         * m4/euidaccess.m4: Likewise.
71196         * m4/execute.m4: Likewise.
71197         * m4/fatal-signal.m4: Likewise.
71198         * m4/fchdir.m4: Likewise.
71199         * m4/fcntl_h.m4: Likewise.
71200         * m4/fileblocks.m4: Likewise.
71201         * m4/filenamecat.m4: Likewise.
71202         * m4/findprog.m4: Likewise.
71203         * m4/flexmember.m4: Likewise.
71204         * m4/fnmatch.m4: Likewise.
71205         * m4/fopen.m4: Likewise.
71206         * m4/fpending.m4: Likewise.
71207         * m4/fprintf-posix.m4: Likewise.
71208         * m4/free.m4: Likewise.
71209         * m4/frexp.m4: Likewise.
71210         * m4/frexpl.m4: Likewise.
71211         * m4/fsusage.m4: Likewise.
71212         * m4/ftruncate.m4: Likewise.
71213         * m4/gc-camellia.m4: Likewise.
71214         * m4/gc-random.m4: Likewise.
71215         * m4/gc.m4: Likewise.
71216         * m4/getaddrinfo.m4: Likewise.
71217         * m4/getcwd-abort-bug.m4: Likewise.
71218         * m4/getcwd-path-max.m4: Likewise.
71219         * m4/getdate.m4: Likewise.
71220         * m4/getdomainname.m4: Likewise.
71221         * m4/getgroups.m4: Likewise.
71222         * m4/gethostname.m4: Likewise.
71223         * m4/gethrxtime.m4: Likewise.
71224         * m4/getline.m4: Likewise.
71225         * m4/getloadavg.m4: Likewise.
71226         * m4/getndelim2.m4: Likewise.
71227         * m4/getpass.m4: Likewise.
71228         * m4/gettext.m4: Likewise.
71229         * m4/gettime.m4: Likewise.
71230         * m4/gettimeofday.m4: Likewise.
71231         * m4/gnulib-common.m4: Likewise.
71232         * m4/group-member.m4: Likewise.
71233         * m4/host-os.m4: Likewise.
71234         * m4/iconv.m4: Likewise.
71235         * m4/iconv_open.m4: Likewise.
71236         * m4/inet_ntop.m4: Likewise.
71237         * m4/inet_pton.m4: Likewise.
71238         * m4/inline.m4: Likewise.
71239         * m4/intldir.m4: Likewise.
71240         * m4/intlmacosx.m4: Likewise.
71241         * m4/intmax.m4: Likewise.
71242         * m4/intmax_t.m4: Likewise.
71243         * m4/inttypes.m4: Likewise.
71244         * m4/inttypes_h.m4: Likewise.
71245         * m4/inttypes-pri.m4: Likewise.
71246         * m4/isapipe.m4: Likewise.
71247         * m4/isnand.m4: Likewise.
71248         * m4/isnanf.m4: Likewise.
71249         * m4/isnanl.m4: Likewise.
71250         * m4/javacomp.m4: Likewise.
71251         * m4/javaexec.m4: Likewise.
71252         * m4/jm-winsz1.m4: Likewise.
71253         * m4/jm-winsz2.m4: Likewise.
71254         * m4/lchown.m4: Likewise.
71255         * m4/lcmessage.m4: Likewise.
71256         * m4/ldexpl.m4: Likewise.
71257         * m4/lib-ld.m4: Likewise.
71258         * m4/lib-link.m4: Likewise.
71259         * m4/libsigsegv.m4: Likewise.
71260         * m4/link-follow.m4: Likewise.
71261         * m4/localcharset.m4: Likewise.
71262         * m4/locale-fr.m4: Likewise.
71263         * m4/locale-ja.m4: Likewise.
71264         * m4/locale-tr.m4: Likewise.
71265         * m4/locale-zh.m4: Likewise.
71266         * m4/lock.m4: Likewise.
71267         * m4/longlong.m4: Likewise.
71268         * m4/ls-mntd-fs.m4: Likewise.
71269         * m4/lstat.m4: Likewise.
71270         * m4/malloc.m4: Likewise.
71271         * m4/mathl.m4: Likewise.
71272         * m4/mbrtowc.m4: Likewise.
71273         * m4/mbstate_t.m4: Likewise.
71274         * m4/mbswidth.m4: Likewise.
71275         * m4/memchr.m4: Likewise.
71276         * m4/memcmp.m4: Likewise.
71277         * m4/memcpy.m4: Likewise.
71278         * m4/memmem.m4: Likewise.
71279         * m4/memmove.m4: Likewise.
71280         * m4/mempcpy.m4: Likewise.
71281         * m4/memrchr.m4: Likewise.
71282         * m4/memset.m4: Likewise.
71283         * m4/minmax.m4: Likewise.
71284         * m4/mkdir-slash.m4: Likewise.
71285         * m4/mkdtemp.m4: Likewise.
71286         * m4/mktime.m4: Likewise.
71287         * m4/mmap-anon.m4: Likewise.
71288         * m4/mountlist.m4: Likewise.
71289         * m4/nanosleep.m4: Likewise.
71290         * m4/nls.m4: Likewise.
71291         * m4/nocrash.m4: Likewise.
71292         * m4/open.m4: Likewise.
71293         * m4/openat.m4: Likewise.
71294         * m4/openmp.m4: Likewise.
71295         * m4/pathmax.m4: Likewise.
71296         * m4/perl.m4: Likewise.
71297         * m4/physmem.m4: Likewise.
71298         * m4/pipe.m4: Likewise.
71299         * m4/po.m4: Likewise.
71300         * m4/poll.m4: Likewise.
71301         * m4/posixtm.m4: Likewise.
71302         * m4/posixver.m4: Likewise.
71303         * m4/printf-frexp.m4: Likewise.
71304         * m4/printf-frexpl.m4: Likewise.
71305         * m4/printf-posix.m4: Likewise.
71306         * m4/printf-posix-rpl.m4: Likewise.
71307         * m4/printf.m4: Likewise.
71308         * m4/progtest.m4: Likewise.
71309         * m4/putenv.m4: Likewise.
71310         * m4/readline.m4: Likewise.
71311         * m4/readlink.m4: Likewise.
71312         * m4/readutmp.m4: Likewise.
71313         * m4/realloc.m4: Likewise.
71314         * m4/regex.m4: Likewise.
71315         * m4/relocatable.m4: Likewise.
71316         * m4/relocatable-lib.m4: Likewise.
71317         * m4/rename-dest-slash.m4: Likewise.
71318         * m4/rename.m4: Likewise.
71319         * m4/rmdir-errno.m4: Likewise.
71320         * m4/rmdir.m4: Likewise.
71321         * m4/roundf.m4: Likewise.
71322         * m4/roundl.m4: Likewise.
71323         * m4/rpmatch.m4: Likewise.
71324         * m4/save-cwd.m4: Likewise.
71325         * m4/selinux-selinux-h.m4: Likewise.
71326         * m4/setenv.m4: Likewise.
71327         * m4/settime.m4: Likewise.
71328         * m4/sig2str.m4: Likewise.
71329         * m4/sig_atomic_t.m4: Likewise.
71330         * m4/signalblocking.m4: Likewise.
71331         * m4/signbit.m4: Likewise.
71332         * m4/sigpipe.m4: Likewise.
71333         * m4/sockets.m4: Likewise.
71334         * m4/sockpfaf.m4: Likewise.
71335         * m4/st_dm_mode.m4: Likewise.
71336         * m4/stat-time.m4: Likewise.
71337         * m4/stdbool.m4: Likewise.
71338         * m4/stdint.m4: Likewise.
71339         * m4/stdint_h.m4: Likewise.
71340         * m4/stpcpy.m4: Likewise.
71341         * m4/stpncpy.m4: Likewise.
71342         * m4/strcase.m4: Likewise.
71343         * m4/strchrnul.m4: Likewise.
71344         * m4/strcspn.m4: Likewise.
71345         * m4/strdup.m4: Likewise.
71346         * m4/strftime.m4: Likewise.
71347         * m4/strndup.m4: Likewise.
71348         * m4/strnlen.m4: Likewise.
71349         * m4/strpbrk.m4: Likewise.
71350         * m4/strptime.m4: Likewise.
71351         * m4/strsep.m4: Likewise.
71352         * m4/strtod.m4: Likewise.
71353         * m4/strtoimax.m4: Likewise.
71354         * m4/strtok_r.m4: Likewise.
71355         * m4/strtol.m4: Likewise.
71356         * m4/strtoll.m4: Likewise.
71357         * m4/strtoul.m4: Likewise.
71358         * m4/strtoull.m4: Likewise.
71359         * m4/strtoumax.m4: Likewise.
71360         * m4/strverscmp.m4: Likewise.
71361         * m4/threadlib.m4: Likewise.
71362         * m4/timegm.m4: Likewise.
71363         * m4/tm_gmtoff.m4: Likewise.
71364         * m4/tmpdir.m4: Likewise.
71365         * m4/tmpfile.m4: Likewise.
71366         * m4/tzset.m4: Likewise.
71367         * m4/uintmax_t.m4: Likewise.
71368         * m4/unlinkdir.m4: Likewise.
71369         * m4/unlocked-io.m4: Likewise.
71370         * m4/uptime.m4: Likewise.
71371         * m4/userspec.m4: Likewise.
71372         * m4/utimbuf.m4: Likewise.
71373         * m4/utime.m4: Likewise.
71374         * m4/utimes-null.m4: Likewise.
71375         * m4/utimes.m4: Likewise.
71376         * m4/vararrays.m4: Likewise.
71377         * m4/vasnprintf.m4: Likewise.
71378         * m4/vfprintf-posix.m4: Likewise.
71379         * m4/vprintf-posix.m4: Likewise.
71380         * m4/wait-process.m4: Likewise.
71381         * m4/wchar_t.m4: Likewise.
71382         * m4/wint_t.m4: Likewise.
71383         * m4/write-any-file.m4: Likewise.
71384         * m4/yield.m4: Likewise.
71386 2009-01-13  Bruno Haible  <bruno@clisp.org>
71388         Avoid test-copy-file.sh failures when ACL support insufficient.
71389         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
71390         TESTS_ENVIRONMENT.
71391         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
71392         Reported by Jim Meyering.
71394 2009-01-13  Bruno Haible  <bruno@clisp.org>
71396         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
71397         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
71398         * modules/unistdio/u8-printf-parse (Files): Likewise.
71399         * modules/unistdio/u32-printf-parse (Files): Likewise.
71400         * modules/unistdio/ulc-printf-parse (Files): Likewise.
71402 2009-01-13  Simon Josefsson  <simon@josefsson.org>
71404         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
71405         and m4/inttypes_h.m4 too.
71407 2009-01-12  Eric Blake  <ebb9@byu.net>
71409         tests: IRIX 6.2 cc can't compile -0.0 into .data
71410         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
71411         rather than at compile-time.
71412         * tests/test-floorl.c (minus_zero): Likewise.
71413         * tests/test-frexpl.c (minus_zero): Likewise.
71414         * tests/test-isnan.c (minus_zerol): Likewise.
71415         * tests/test-isnanl.h (minus_zero): Likewise.
71416         * tests/test-ldexpl.c (minus_zero): Likewise.
71417         * tests/test-roundl.c (minus_zero): Likewise.
71418         * tests/test-signbit.c (minus_zerol): Likewise.
71419         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
71420         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
71421         * tests/test-truncl.c (minus_zero): Likewise.
71422         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
71423         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
71424         Reported by Tom G. Christensen and Nelson H. F. Beebe.
71426 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71428         regex: fix glibc bug 9697
71429         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
71430         handling.
71432 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71434         regex: fix glibc bug 697
71435         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
71436         being NULL also if there are no backreferences.
71438 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71440         regex: merge glibc changes
71441         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
71442         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
71443         re_string_skip_chars, re_string_reconstruct): Likewise.
71444         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
71446 2009-01-07  Jim Meyering  <meyering@redhat.com>
71448         poll: filter through cppi
71449         * lib/poll.c: Indent cpp directives to reflect nesting.
71451 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
71453         poll: don't return uninitialized
71454         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
71456 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
71458         avoid compile failure on AIX 6.1
71459         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
71460         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
71462 2009-01-04  Jim Meyering  <meyering@redhat.com>
71464         remove duplicate inclusion of <stdio.h>
71465         * tests/test-fprintf-posix.c: Likewise.
71466         * tests/test-printf-posix.c: Likewise.
71467         * tests/test-snprintf-posix.c: Likewise.
71468         * tests/test-sprintf-posix.c: Likewise.
71469         * tests/test-vasprintf-posix.c: Likewise.
71470         * tests/test-vfprintf-posix.c: Likewise.
71471         * tests/test-vprintf-posix.c: Likewise.
71472         * tests/test-vsnprintf-posix.c: Likewise.
71473         * tests/test-vsprintf-posix.c: Likewise.
71475 2009-01-03  Jim Meyering  <meyering@redhat.com>
71477         gnulib-tool: fix sed-based filtering
71478         * gnulib-tool (func_filter_filelist): Remove extra backslash
71479         in sed_fff_filter definition.
71481 2009-01-02  Jim Meyering  <meyering@redhat.com>
71483         strftime: avoid compilation failure on Solaris 2.6
71484         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
71485         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
71486         Don't #define mbrlen or mbsinit, since now they're guaranteed to
71487         be available.  Reported by Tom G. Christensen.  Details in
71488         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
71490 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71491             Bruno Haible  <bruno@clisp.org>
71493         Speed up gnulib-tool by doing more string processing through shell
71494         built-ins.
71495         * gnulib-tool (fast_func_append): New variable.
71496         (func_remove_prefix, func_remove_suffix): New functions.
71497         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
71498         (func_filter_filelist): New function.
71499         (func_get_dependencies): Use func_remove_suffix instead of sed.
71500         (func_get_automake_snippet): Use func_filter_filelist instead of a
71501         subshell and sed invocation.
71503 2009-01-01  Bruno Haible  <bruno@clisp.org>
71505         Fix a security bug.
71506         * gnulib-tool (func_import, import, update): Don't allow the characters
71507         '"', '$', '`', '\' in macro arguments that become part of commands that
71508         are evaluated.
71510 2009-01-01  Bruno Haible  <bruno@clisp.org>
71512         * gnulib-tool (func_reset_sigpipe): Add more comments.
71514 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71516         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
71517         func_emit_tests_Makefile_am, func_import): Abort loops early if we
71518         already know the answer.
71520 2009-01-01  Jim Meyering  <meyering@redhat.com>
71522         * lib/version-etc.c (version_etc_va): Update copyright year.
71524 2008-12-30  Bruno Haible  <bruno@clisp.org>
71526         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
71527         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
71528         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
71530 2008-12-29  Eric Blake  <ebb9@byu.net>
71532         multiarch: avoid autoconf AC_REQUIRE bug
71533         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
71534         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
71535         2.63 and older.
71536         Reported by Bruno Haible, and analyzed in
71537         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
71539 2008-12-29  Bruno Haible  <bruno@clisp.org>
71541         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
71542         files in subdirectories correctly.
71543         Reported by Ralf Wildenhues.
71545 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71547         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
71548         rather than 'join FILE -', for Solaris join.
71550 2008-12-29  Bruno Haible  <bruno@clisp.org>
71552         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
71553         quoting.
71554         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
71555         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
71556         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
71557         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
71558         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
71559         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
71560         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
71561         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
71562         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71563         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
71564         * m4/nls.m4 (AM_NLS): Likewise.
71565         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
71566         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
71567         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71568         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
71569         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
71570         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
71571         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
71572         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
71573         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
71574         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71575         * m4/xsize.m4 (gl_XSIZE): Likewise.
71576         Suggested by Jim Meyering.
71578 2008-11-17  Bruce Korb  <bkorb@gnu.org>
71580         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
71581         * lib/parse-duration.c: use a switch instead of cascading if's.
71583 2008-12-29  Eric Blake  <ebb9@byu.net>
71585         wchar.h: supply WEOF on Irix 5.3
71586         * lib/wchar.in.h (wint_t): Also supply WEOF.
71587         * lib/wctype.in.h (wint_t): Likewise.
71588         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
71589         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
71590         Reported by Tom G. Christensen.
71592 2008-12-26  Bruno Haible  <bruno@clisp.org>
71594         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
71595         i486, i586, i686.
71597 2008-12-26  Bruno Haible  <bruno@clisp.org>
71599         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
71601 2008-12-26  Bruno Haible  <bruno@clisp.org>
71603         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
71604         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
71605         not __STDC_CONSTANT_MACROS.
71606         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
71608 2008-12-25  Bruno Haible  <bruno@clisp.org>
71610         Add support for universal builds to vasnprintf.
71611         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
71612         universal builds, guess no.
71613         * modules/vasnprintf-posix (Depends-on): Add multiarch.
71614         * modules/vasprintf-posix (Depends-on): Likewise.
71615         * modules/fprintf-posix (Depends-on): Likewise.
71616         * modules/vfprintf-posix (Depends-on): Likewise.
71617         * modules/snprintf-posix (Depends-on): Likewise.
71618         * modules/vsnprintf-posix (Depends-on): Likewise.
71619         * modules/sprintf-posix (Depends-on): Likewise.
71620         * modules/vsprintf-posix (Depends-on): Likewise.
71621         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
71622         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
71623         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
71624         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
71625         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
71626         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
71627         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
71629         Add support for universal builds to <inttypes.h>.
71630         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
71631         _SCNu64_PREFIX): In Apple
71632         universal builds, define directly, using _LP64.
71633         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
71634         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
71635         * modules/inttypes (Depends-on): Add multiarch.
71636         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
71638         Add support for universal builds to <stdint.h>.
71639         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
71640         universal builds, define directly, using _LP64.
71641         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
71642         Apple universal builds, don't test for the size and suffix of ptrdiff_t
71643         and size_t.
71644         * modules/stdint (Depends-on): Add multiarch.
71645         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
71647         New module 'multiarch'.
71648         * modules/multiarch: New file.
71649         * m4/multiarch.m4: New file.
71651 2008-12-25  Bruno Haible  <bruno@clisp.org>
71653         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
71655 2008-12-25  Bruno Haible  <bruno@clisp.org>
71657         * modules/btowc (License): Relicense under LGPLv2+.
71658         * modules/mbsinit (License): Likewise.
71659         * modules/mbrtowc (License): Likewise.
71660         * modules/wcrtomb (License): Likewise.
71661         * modules/streq (License): Likewise.
71662         Reported by David Lutterkort <lutter@redhat.com>.
71664 2008-12-23  Bruno Haible  <bruno@clisp.org>
71666         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
71668 2008-12-23  Bruno Haible  <bruno@clisp.org>
71670         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
71671         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
71672         GETADDRINFO_LIB, not in LIBS.
71673         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
71674         * modules/canon-host (Link): Likewise.
71675         * NEWS: Mention the change.
71676         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
71677         GETADDRINFO_LIB.
71679 2008-12-22  Bruno Haible  <bruno@clisp.org>
71681         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
71682         * doc/posix-functions/iswalpha_l.texi: Likewise.
71683         * doc/posix-functions/iswblank_l.texi: Likewise.
71684         * doc/posix-functions/iswcntrl_l.texi: Likewise.
71685         * doc/posix-functions/iswctype_l.texi: Likewise.
71686         * doc/posix-functions/iswdigit_l.texi: Likewise.
71687         * doc/posix-functions/iswgraph_l.texi: Likewise.
71688         * doc/posix-functions/iswlower_l.texi: Likewise.
71689         * doc/posix-functions/iswprint_l.texi: Likewise.
71690         * doc/posix-functions/iswpunct_l.texi: Likewise.
71691         * doc/posix-functions/iswspace_l.texi: Likewise.
71692         * doc/posix-functions/iswupper_l.texi: Likewise.
71693         * doc/posix-functions/iswxdigit_l.texi: Likewise.
71694         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
71695         * doc/posix-functions/open_wmemstream.texi: Likewise.
71696         * doc/posix-functions/swscanf.texi: Likewise.
71697         * doc/posix-functions/towctrans_l.texi: Likewise.
71698         * doc/posix-functions/towlower.texi: Likewise.
71699         * doc/posix-functions/towlower_l.texi: Likewise.
71700         * doc/posix-functions/towupper.texi: Likewise.
71701         * doc/posix-functions/towupper_l.texi: Likewise.
71702         * doc/posix-functions/vfwprintf.texi: Likewise.
71703         * doc/posix-functions/vfwscanf.texi: Likewise.
71704         * doc/posix-functions/vswscanf.texi: Likewise.
71705         * doc/posix-functions/vwprintf.texi: Likewise.
71706         * doc/posix-functions/vwscanf.texi: Likewise.
71707         * doc/posix-functions/wcpcpy.texi: Likewise.
71708         * doc/posix-functions/wcpncpy.texi: Likewise.
71709         * doc/posix-functions/wcscasecmp.texi: Likewise.
71710         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
71711         * doc/posix-functions/wcscoll_l.texi: Likewise.
71712         * doc/posix-functions/wcsdup.texi: Likewise.
71713         * doc/posix-functions/wcsncasecmp.texi: Likewise.
71714         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
71715         * doc/posix-functions/wcsnlen.texi: Likewise.
71716         * doc/posix-functions/wcsnrtombs.texi: Likewise.
71717         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
71718         * doc/posix-functions/wctrans_l.texi: Likewise.
71719         * doc/posix-functions/wctype_l.texi: Likewise.
71720         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
71721         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
71722         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
71723         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
71724         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
71725         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
71726         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
71727         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
71728         * doc/glibc-functions/wcschrnul.texi: Likewise.
71729         * doc/glibc-functions/wcsftime_l.texi: Likewise.
71730         * doc/glibc-functions/wcstod_l.texi: Likewise.
71731         * doc/glibc-functions/wcstof_l.texi: Likewise.
71732         * doc/glibc-functions/wcstol_l.texi: Likewise.
71733         * doc/glibc-functions/wcstold_l.texi: Likewise.
71734         * doc/glibc-functions/wcstoll_l.texi: Likewise.
71735         * doc/glibc-functions/wcstoq.texi: Likewise.
71736         * doc/glibc-functions/wcstoul_l.texi: Likewise.
71737         * doc/glibc-functions/wcstoull_l.texi: Likewise.
71738         * doc/glibc-functions/wcstouq.texi: Likewise.
71739         * doc/glibc-functions/wmempcpy.texi: Likewise.
71741 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
71742             Eric Blake  <ebb9@byu.net>
71743             Paolo Bonzini  <bonzini@gnu.org>
71744             Bruno Haible  <bruno@clisp.org>
71746         Make c-stack work on Haiku.
71747         * lib/c-stack.c (SA_ONSTACK): Define fallback.
71748         (c_stack_action): Use SA_ONSTACK flag.
71750 2008-12-22  Bruno Haible  <bruno@clisp.org>
71752         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
71754 2008-12-22  Bruno Haible  <bruno@clisp.org>
71756         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
71757         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
71758         being overridden.
71759         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
71760         New macros.
71761         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
71762         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
71763         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
71764         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
71766 2008-12-22  Bruno Haible  <bruno@clisp.org>
71768         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
71769         from test code.
71771 2008-12-22  Eric Blake  <ebb9@byu.net>
71773         Avoid gcc warnings on cygwin.
71774         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
71775         Avoid unused variable.
71776         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
71777         Likewise.
71779 2008-12-22  Bruno Haible  <bruno@clisp.org>
71781         Remove HAVE_MBRTOWC conditionals.
71782         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
71783         (mbscasecmp): Assume mbrtowc function.
71784         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
71785         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
71786         * lib/mbschr.c: Include mbuiter.h unconditionally.
71787         (mbschr): Assume mbrtowc function.
71788         * lib/mbscspn.c: Include mbuiter.h unconditionally.
71789         (mbscspn): Assume mbrtowc function.
71790         * lib/mbslen.c: Include mbuiter.h unconditionally.
71791         (mbslen): Assume mbrtowc function.
71792         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
71793         (mbsncasecmp): Assume mbrtowc function.
71794         * lib/mbsnlen.c: Include mbiter.h unconditionally.
71795         (mbsnlen): Assume mbrtowc function.
71796         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
71797         (mbspbrk): Assume mbrtowc function.
71798         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
71799         (mbspcasecmp): Assume mbrtowc function.
71800         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
71801         (mbsrchr): Assume mbrtowc function.
71802         * lib/mbssep.c: Include mbuiter.h unconditionally.
71803         (mbssep): Assume mbrtowc function.
71804         * lib/mbsspn.c: Include mbuiter.h unconditionally.
71805         (mbsspn): Assume mbrtowc function.
71806         * lib/mbsstr.c: Include mbuiter.h unconditionally.
71807         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
71808         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
71809         (mbstok_r): Assume mbrtowc function.
71810         * lib/propername.c: Include mbuiter.h unconditionally.
71811         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
71812         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
71813         (trim2): Assume mbrtowc function.
71814         * lib/mbswidth.c (mbsinit): Remove fallback definition.
71815         (mbsnwidth): Assume mbrtowc function.
71816         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
71817         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
71818         fallback definitions.
71819         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
71821 2008-12-22  Bruno Haible  <bruno@clisp.org>
71823         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
71825 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
71827         * modules/regex: Request emulations for the mb*/wc* functions we need.
71828         * m4/regex.m4: Don't look for those functions here.
71829         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
71831 2008-12-22  Bruno Haible  <bruno@clisp.org>
71833         * modules/fnmatch (Depends-on): Remove duplicated dependency.
71835 2008-12-21  Bruno Haible  <bruno@clisp.org>
71837         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
71838         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
71839         (Include): Remove conditionalization.
71840         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
71841         (Include): Remove conditionalization.
71842         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
71843         (Include): Remove conditionalization.
71844         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
71845         * m4/mbfile.m4 (gl_MBFILE): Likewise.
71846         * NEWS: Mention the change.
71847         Reported by Alan Hourihane <alanh@fairlite.co.uk>
71848         via Sergey Poznyakoff <gray@gnu.org.ua>.
71850 2008-12-21  Bruno Haible  <bruno@clisp.org>
71852         * MODULES.html.sh (Extended multibyte and wide character utilities
71853         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
71854         wcrtomb, wcsrtombs.
71855         (Support for systems lacking POSIX:2008): Add accept, bind, close,
71856         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
71857         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
71858         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
71860 2008-12-21  Bruno Haible  <bruno@clisp.org>
71862         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
71864 2008-12-21  Bruno Haible  <bruno@clisp.org>
71866         * modules/wcsnrtombs-tests: New file.
71867         * tests/test-wcsnrtombs1.sh: New file.
71868         * tests/test-wcsnrtombs2.sh: New file.
71869         * tests/test-wcsnrtombs3.sh: New file.
71870         * tests/test-wcsnrtombs4.sh: New file.
71871         * tests/test-wcsnrtombs.c: New file.
71873         New module 'wcsnrtombs'.
71874         * lib/wchar.in.h (wcsnrtombs): New declaration.
71875         * lib/wcsnrtombs.c: New file.
71876         * lib/wcsrtombs-state.c: New file.
71877         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
71878         (internal_state): Remove variable.
71879         * m4/wcsnrtombs.m4: New file.
71880         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
71881         compilation units.
71882         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
71883         HAVE_WCSNRTOMBS.
71884         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
71885         HAVE_WCSNRTOMBS.
71886         * modules/wcsnrtombs: New file.
71887         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
71888         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
71890 2008-12-21  Bruno Haible  <bruno@clisp.org>
71892         * modules/wcsrtombs-tests: New file.
71893         * tests/test-wcsrtombs1.sh: New file.
71894         * tests/test-wcsrtombs2.sh: New file.
71895         * tests/test-wcsrtombs3.sh: New file.
71896         * tests/test-wcsrtombs4.sh: New file.
71897         * tests/test-wcsrtombs.c: New file.
71899         New module 'wcsrtombs'.
71900         * lib/wchar.in.h (wcsrtombs): New declaration.
71901         * lib/wcsrtombs.c: New file.
71902         * m4/wcsrtombs.m4: New file.
71903         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
71904         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
71905         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
71906         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
71907         * modules/wcsrtombs: New file.
71908         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
71909         bugs.
71911 2008-12-21  Bruno Haible  <bruno@clisp.org>
71913         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
71914         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
71915         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
71916         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
71917         if not correct.
71918         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
71919         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
71920         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
71921         m4/locale-zh.m4, m4/codeset.m4.
71922         * doc/posix-functions/wcrtomb.texi: Document the bug.
71924 2008-12-21  Bruno Haible  <bruno@clisp.org>
71926         Work around a btowc() bug on IRIX 6.5.
71927         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
71928         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
71929         REPLACE_WTOBC if not.
71930         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
71931         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
71932         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
71934 2008-12-21  Bruno Haible  <bruno@clisp.org>
71936         * modules/wcrtomb-tests: New file.
71937         * tests/test-wcrtomb.sh: New file.
71938         * tests/test-wcrtomb.c: New file.
71940         New module 'wcrtomb'.
71941         * lib/wchar.in.h (wcrtomb): New declaration.
71942         * lib/wcrtomb.c: New file.
71943         * m4/wcrtomb.m4: New file.
71944         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
71945         HAVE_WCRTOMB.
71946         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
71947         HAVE_WCRTOMB.
71948         * modules/wcrtomb: New file.
71949         * doc/posix-functions/wcrtomb.texi: Mention the new module.
71951 2008-12-21  Bruno Haible  <bruno@clisp.org>
71953         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
71954         * modules/mbsrtowcs (Files): Likewise.
71955         * modules/wctob (Files): Likewise.
71956         * modules/c-strcase-tests (Files): Likewise.
71957         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
71958         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
71959         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
71960         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
71961         * modules/vasnprintf-posix-tests (Files): Likewise.
71963 2008-12-21  William Pursell  <bill.pursell@gmail.com>
71965         gitlog-to-changelog: pass all command-line arguments to git-log
71966         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
71967         it is sometimes convenient to filter the commits in various ways.
71968         gitlog-to-changelog only allows --since to specify a start date,
71969         but git-log itself supports many other filtering mechanisms.
71970         At the moment, I want to filter by branch name.  Rather than
71971         adding a --branch option to gitlog-to-changelog, it seems more
71972         flexible to simply pass all options directly to git-log and let
71973         git do the work.  Notice that this effectively makes --since a
71974         redundant option for gitlog-to-changelog, but removing it would
71975         require current usage to change since calls would then require
71976         an additional '--'.
71978 2008-12-21  Bruno Haible  <bruno@clisp.org>
71980         * modules/mbsnrtowcs-tests: New file.
71981         * tests/test-mbsnrtowcs1.sh: New file.
71982         * tests/test-mbsnrtowcs2.sh: New file.
71983         * tests/test-mbsnrtowcs3.sh: New file.
71984         * tests/test-mbsnrtowcs4.sh: New file.
71985         * tests/test-mbsnrtowcs.c: New file.
71987         New module 'mbsnrtowcs'.
71988         * lib/wchar.in.h (mbsnrtowcs): New declaration.
71989         * lib/mbsnrtowcs.c: New file.
71990         * lib/mbsrtowcs-state.c: New file.
71991         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
71992         (internal_state): Remove variable.
71993         * m4/mbsnrtowcs.m4: New file.
71994         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
71995         compilation units.
71996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
71997         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
71998         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
71999         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
72000         * modules/mbsnrtowcs: New file.
72001         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
72002         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
72003         portability problem.
72005 2008-12-21  Bruno Haible  <bruno@clisp.org>
72007         Work around mbsrtowcs bug.
72008         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
72009         (gl_FUNC_MBSRTOWCS): Invoke it.
72010         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72011         m4/locale-zh.m4.
72012         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
72014 2008-12-21  Bruno Haible  <bruno@clisp.org>
72016         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
72018 2008-12-21  Bruno Haible  <bruno@clisp.org>
72020         Update doc for AIX.
72021         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
72022         16-bit wchar_t type.
72023         * doc/posix-functions/btowc.texi: Likewise.
72024         * doc/posix-functions/fgetwc.texi: Likewise.
72025         * doc/posix-functions/fgetws.texi: Likewise.
72026         * doc/posix-functions/fputwc.texi: Likewise.
72027         * doc/posix-functions/fputws.texi: Likewise.
72028         * doc/posix-functions/fwide.texi: Likewise.
72029         * doc/posix-functions/fwprintf.texi: Likewise.
72030         * doc/posix-functions/fwscanf.texi: Likewise.
72031         * doc/posix-functions/getwchar.texi: Likewise.
72032         * doc/posix-functions/getwc.texi: Likewise.
72033         * doc/posix-functions/iswalnum.texi: Likewise.
72034         * doc/posix-functions/iswalpha.texi: Likewise.
72035         * doc/posix-functions/iswblank.texi: Likewise.
72036         * doc/posix-functions/iswcntrl.texi: Likewise.
72037         * doc/posix-functions/iswctype.texi: Likewise.
72038         * doc/posix-functions/iswdigit.texi: Likewise.
72039         * doc/posix-functions/iswgraph.texi: Likewise.
72040         * doc/posix-functions/iswlower.texi: Likewise.
72041         * doc/posix-functions/iswprint.texi: Likewise.
72042         * doc/posix-functions/iswpunct.texi: Likewise.
72043         * doc/posix-functions/iswspace.texi: Likewise.
72044         * doc/posix-functions/iswupper.texi: Likewise.
72045         * doc/posix-functions/iswxdigit.texi: Likewise.
72046         * doc/posix-functions/mbrtowc.texi: Likewise.
72047         * doc/posix-functions/mbsrtowcs.texi: Likewise.
72048         * doc/posix-functions/mbstowcs.texi: Likewise.
72049         * doc/posix-functions/mbtowc.texi: Likewise.
72050         * doc/posix-functions/putwchar.texi: Likewise.
72051         * doc/posix-functions/putwc.texi: Likewise.
72052         * doc/posix-functions/swprintf.texi: Likewise.
72053         * doc/posix-functions/tolower.texi: Likewise.
72054         * doc/posix-functions/toupper.texi: Likewise.
72055         * doc/posix-functions/towctrans.texi: Likewise.
72056         * doc/posix-functions/ungetwc.texi: Likewise.
72057         * doc/posix-functions/vswprintf.texi: Likewise.
72058         * doc/posix-functions/wcrtomb.texi: Likewise.
72059         * doc/posix-functions/wcscat.texi: Likewise.
72060         * doc/posix-functions/wcschr.texi: Likewise.
72061         * doc/posix-functions/wcscmp.texi: Likewise.
72062         * doc/posix-functions/wcscoll.texi: Likewise.
72063         * doc/posix-functions/wcscpy.texi: Likewise.
72064         * doc/posix-functions/wcscspn.texi: Likewise.
72065         * doc/posix-functions/wcsftime.texi: Likewise.
72066         * doc/posix-functions/wcslen.texi: Likewise.
72067         * doc/posix-functions/wcsncat.texi: Likewise.
72068         * doc/posix-functions/wcsncmp.texi: Likewise.
72069         * doc/posix-functions/wcsncpy.texi: Likewise.
72070         * doc/posix-functions/wcspbrk.texi: Likewise.
72071         * doc/posix-functions/wcsrchr.texi: Likewise.
72072         * doc/posix-functions/wcsrtombs.texi: Likewise.
72073         * doc/posix-functions/wcsspn.texi: Likewise.
72074         * doc/posix-functions/wcsstr.texi: Likewise.
72075         * doc/posix-functions/wcstod.texi: Likewise.
72076         * doc/posix-functions/wcstof.texi: Likewise.
72077         * doc/posix-functions/wcstoimax.texi: Likewise.
72078         * doc/posix-functions/wcstok.texi: Likewise.
72079         * doc/posix-functions/wcstold.texi: Likewise.
72080         * doc/posix-functions/wcstoll.texi: Likewise.
72081         * doc/posix-functions/wcstol.texi: Likewise.
72082         * doc/posix-functions/wcstombs.texi: Likewise.
72083         * doc/posix-functions/wcstoull.texi: Likewise.
72084         * doc/posix-functions/wcstoul.texi: Likewise.
72085         * doc/posix-functions/wcstoumax.texi: Likewise.
72086         * doc/posix-functions/wcswidth.texi: Likewise.
72087         * doc/posix-functions/wcsxfrm.texi: Likewise.
72088         * doc/posix-functions/wctob.texi: Likewise.
72089         * doc/posix-functions/wctomb.texi: Likewise.
72090         * doc/posix-functions/wctrans.texi: Likewise.
72091         * doc/posix-functions/wctype.texi: Likewise.
72092         * doc/posix-functions/wcwidth.texi: Likewise.
72093         * doc/posix-functions/wmemchr.texi: Likewise.
72094         * doc/posix-functions/wmemcmp.texi: Likewise.
72095         * doc/posix-functions/wmemcpy.texi: Likewise.
72096         * doc/posix-functions/wmemmove.texi: Likewise.
72097         * doc/posix-functions/wmemset.texi: Likewise.
72098         * doc/posix-functions/wprintf.texi: Likewise.
72099         * doc/posix-functions/wscanf.texi: Likewise.
72101 2008-12-21  Bruno Haible  <bruno@clisp.org>
72103         Update doc for HP-UX 11.11.
72104         * doc/posix-functions/btowc.texi: Clarify that the function is missing
72105         in HP-UX version 11.00, not in all versions of HP-UX 11.
72106         * doc/posix-functions/fwide.texi: Likewise.
72107         * doc/posix-functions/fwprintf.texi: Likewise.
72108         * doc/posix-functions/fwscanf.texi: Likewise.
72109         * doc/posix-functions/inet_ntop.texi: Likewise.
72110         * doc/posix-functions/inet_pton.texi: Likewise.
72111         * doc/posix-functions/mbrlen.texi: Likewise.
72112         * doc/posix-functions/mbrtowc.texi: Likewise.
72113         * doc/posix-functions/mbsinit.texi: Likewise.
72114         * doc/posix-functions/mbsrtowcs.texi: Likewise.
72115         * doc/posix-functions/swprintf.texi: Likewise.
72116         * doc/posix-functions/swscanf.texi: Likewise.
72117         * doc/posix-functions/towctrans.texi: Likewise.
72118         * doc/posix-functions/vfwprintf.texi: Likewise.
72119         * doc/posix-functions/vswprintf.texi: Likewise.
72120         * doc/posix-functions/vwprintf.texi: Likewise.
72121         * doc/posix-functions/wcrtomb.texi: Likewise.
72122         * doc/posix-functions/wcsrtombs.texi: Likewise.
72123         * doc/posix-functions/wcsstr.texi: Likewise.
72124         * doc/posix-functions/wctob.texi: Likewise.
72125         * doc/posix-functions/wctrans.texi: Likewise.
72126         * doc/posix-functions/wmemchr.texi: Likewise.
72127         * doc/posix-functions/wmemcmp.texi: Likewise.
72128         * doc/posix-functions/wmemcpy.texi: Likewise.
72129         * doc/posix-functions/wmemmove.texi: Likewise.
72130         * doc/posix-functions/wmemset.texi: Likewise.
72131         * doc/posix-functions/wprintf.texi: Likewise.
72132         * doc/posix-functions/wscanf.texi: Likewise.
72134 2008-12-21  Bruno Haible  <bruno@clisp.org>
72136         Work around a portability problem.
72137         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
72138         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
72140 2008-12-20  Bruno Haible  <bruno@clisp.org>
72142         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
72143         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
72144         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
72145         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
72146         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
72148         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
72149         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
72150         set.
72151         (GNULIB_defined_mbstate_t): New macro.
72152         (mbsinit): Redefine if REPLACE_MBSINIT is set.
72153         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
72154         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
72155         reuses the system's mbrtowc function but works around the bugs.
72156         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
72157         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
72158         macros.
72159         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
72160         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
72161         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
72162         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
72163         REPLACE_MBSINIT if mbsinit needs to be overridden.
72164         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
72165         REPLACE_MBSINIT, REPLACE_MBRTOWC.
72166         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
72167         REPLACE_MBSINIT, REPLACE_MBRTOWC.
72168         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72169         m4/locale-zh.m4.
72170         (Depends): Add mbsinit.
72171         * modules/mbsinit (Depends): Add mbrtowc.
72172         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
72174 2008-12-20  Bruno Haible  <bruno@clisp.org>
72176         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
72177         so that there are no conversion errors on AIX.
72178         * tests/test-mbsrtowcs.c (main): LIkewise.
72180 2008-12-20  Bruno Haible  <bruno@clisp.org>
72182         Work around wctob bug on Solaris <= 9.
72183         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
72184         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
72185         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
72186         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
72187         * modules/wctob (Files): Add m4/locale-fr.m4.
72188         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
72190 2008-12-20  Bruno Haible  <bruno@clisp.org>
72192         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
72193         /dev/null.
72194         * tests/test-select-in.sh: Likewise.
72195         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
72197 2008-12-20  Bruno Haible  <bruno@clisp.org>
72199         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
72200         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
72201         Cygwin 1.5.x.
72203 2008-12-20  Bruno Haible  <bruno@clisp.org>
72205         Ensure mbstate_t is defined on HP-UX 11.11.
72206         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
72207         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
72208         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
72209         AC_USE_SYSTEM_EXTENSIONS.
72210         * modules/fnmatch (Depends-on): Add extensions.
72211         * modules/mbrlen (Depends-on): Likewise.
72212         * modules/mbrtowc (Depends-on): Likewise.
72213         * modules/mbsinit (Depends-on): Likewise.
72214         * modules/mbsrtowcs (Depends-on): Likewise.
72215         * modules/mbswidth (Depends-on): Likewise.
72216         * modules/quotearg (Depends-on): Likewise.
72217         * modules/strftime (Depends-on): Likewise.
72219 2008-12-20  Bruno Haible  <bruno@clisp.org>
72221         Ensure wctob is declared on IRIX 6.5.
72222         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
72223         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
72224         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
72225         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
72226         of HAVE_WCTOB.
72227         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
72228         HAVE_WCTOB.
72229         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
72231 2008-12-19  Bruno Haible  <bruno@clisp.org>
72233         * modules/mbsrtowcs-tests: New file.
72234         * tests/test-mbsrtowcs1.sh: New file.
72235         * tests/test-mbsrtowcs2.sh: New file.
72236         * tests/test-mbsrtowcs3.sh: New file.
72237         * tests/test-mbsrtowcs4.sh: New file.
72238         * tests/test-mbsrtowcs.c: New file.
72240         New module 'mbsrtowcs'.
72241         * lib/wchar.in.h (mbsrtowcs): New declaration.
72242         * lib/mbsrtowcs.c: New file.
72243         * m4/mbsrtowcs.m4: New file.
72244         * modules/mbsrtowcs: New file.
72245         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
72246         HAVE_MBSRTOWCS.
72247         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
72248         HAVE_MBSRTOWCS.
72249         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
72251 2008-12-19  Bruno Haible  <bruno@clisp.org>
72253         New module 'mbrlen'.
72254         * lib/wchar.in.h (mbrlen): New declaration.
72255         * lib/mbrlen.c: New file.
72256         * m4/mbrlen.m4: New file.
72257         * modules/mbrlen: New file.
72258         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
72259         HAVE_MBRLEN.
72260         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
72261         HAVE_MBRLEN.
72262         * doc/posix-functions/mbrlen.texi: Document the new module.
72264 2008-12-19  Bruno Haible  <bruno@clisp.org>
72266         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
72267         * modules/mbrtowc (Depends-on): Add verify.
72268         Suggested by Paul Eggert.
72270 2008-12-18  Bruno Haible  <bruno@clisp.org>
72272         * modules/mbsinit-tests: New file.
72273         * tests/test-mbsinit.sh: New file.
72274         * tests/test-mbsinit.c: New file.
72276 2008-12-18  Bruno Haible  <bruno@clisp.org>
72278         * modules/mbrtowc-tests: New file.
72279         * tests/test-mbrtowc1.sh: New file.
72280         * tests/test-mbrtowc2.sh: New file.
72281         * tests/test-mbrtowc3.sh: New file.
72282         * tests/test-mbrtowc4.sh: New file.
72283         * tests/test-mbrtowc.c: New file.
72285         New module 'mbrtowc'.
72286         * lib/wchar.in.h (mbstate_t): Override when the system does not have
72287         mbsinit and mbrtowc.
72288         (mbrtowc): New declaration.
72289         * lib/mbrtowc.c: New file.
72290         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
72291         * modules/mbrtowc: New file.
72292         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
72293         HAVE_MBRTOWC.
72294         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
72295         HAVE_MBRTOWC.
72296         * doc/posix-functions/mbrtowc.texi: Document the new module.
72298 2008-12-18  Bruno Haible  <bruno@clisp.org>
72300         New module 'wctob'.
72301         * lib/wchar.in.h (wctob): New declaration.
72302         * lib/wctob.c: New file.
72303         * m4/wctob.m4: New file.
72304         * modules/wctob: New file.
72305         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
72306         HAVE_WCTOB.
72307         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
72308         * doc/posix-functions/wctob.texi: Document the new module.
72310 2008-12-18  Bruno Haible  <bruno@clisp.org>
72312         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
72313         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
72315 2008-12-18  Simon Josefsson  <simon@josefsson.org>
72317         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
72318         G. Christensen" <tgc@jupiterrise.com>.
72320         * lib/flock.c: Need to include errno.h.  Reported by "Tom
72321         G. Christensen" <tgc@jupiterrise.com>.
72323         * lib/flock.c: Need to include string.h.  Reported by "Tom
72324         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
72325         <ebb9@byu.net>.
72327 2008-12-18  Bruno Haible  <bruno@clisp.org>
72329         * m4/locale-ja.m4: New file, from GNU gettext.
72331 2008-12-17  Bruno Haible  <bruno@clisp.org>
72333         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
72334         Suggested by Eric Blake.
72336 2008-12-17  Bruno Haible  <bruno@clisp.org>
72338         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
72340 2008-12-17  Bruno Haible  <bruno@clisp.org>
72342         * lib/mbsinit.c: Include verify.h. Verify an assumption.
72343         * modules/mbsinit (Depends-on): Add verify.
72344         Suggested by Paul Eggert.
72346 2008-12-17  Bruno Haible  <bruno@clisp.org>
72348         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
72349         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
72350         gl_FUNC_MBRTOWC.
72351         * m4/mbiter.m4 (gl_MBITER): LIkewise.
72352         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
72353         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
72354         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
72355         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
72356         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
72357         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
72358         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
72359         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
72360         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
72361         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
72362         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
72363         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
72364         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
72365         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
72366         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72367         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
72368         * modules/trim (configure.ac): Likewise.
72370 2008-12-17  Bruno Haible  <bruno@clisp.org>
72372         * modules/btowc-tests: New file.
72373         * tests/test-btowc1.sh: New file.
72374         * tests/test-btowc2.sh: New file.
72375         * tests/test-btowc.c: New file.
72377         New module 'btowc'.
72378         * lib/wchar.in.h (btowc): New declaration.
72379         * lib/btowc.c: New file.
72380         * m4/btowc.m4: New file.
72381         * modules/btowc: New file.
72382         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
72383         HAVE_BTOWC.
72384         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
72385         * doc/posix-functions/btowc.texi: Document the new module.
72387 2008-12-17  Bruno Haible  <bruno@clisp.org>
72389         New module 'mbsinit'.
72390         * lib/wchar.in.h (mbsinit): New declaration.
72391         * lib/mbsinit.c: New file.
72392         * m4/mbsinit.m4: New file.
72393         * modules/mbsinit: New file.
72394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
72395         HAVE_MBSINIT.
72396         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
72397         HAVE_MBSINIT.
72398         * doc/posix-functions/mbsinit.texi: Document the new module.
72400 2008-12-16  Bruno Haible  <bruno@clisp.org>
72402         * lib/unistd.in.h: Add comment.
72403         * tests/test-environ.c: Don't include <stdlib.h>.
72405 2008-12-16  Bruno Haible  <bruno@clisp.org>
72407         * lib/parse-duration.h (parse_duration): Document return value
72408         convention.
72409         * lib/parse-duration.c: Include specification header first. Add
72410         comments.
72411         (_): Remove macro.
72412         (parse_year_month_day, parse_hour_minute_second): Move side effects
72413         outside of strchr call.
72414         (parse_non_iso8601): Move side effects outside of isspace call.
72415         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
72416         call.
72418 2008-12-16  Bruno Haible  <bruno@clisp.org>
72420         * tests/test-parse-duration.sh: Produce no output when the test
72421         succeeds.
72423 2008-12-16  Bruno Haible  <bruno@clisp.org>
72425         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
72426         expressions.
72428 2008-12-15  Bruno Haible  <bruno@clisp.org>
72430         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
72431         * doc/glibc-functions/flistxattr.texi: Likewise.
72432         * doc/glibc-functions/fopencookie.texi: Likewise.
72433         * doc/glibc-functions/fremovexattr.texi: Likewise.
72434         * doc/glibc-functions/fsetxattr.texi: Likewise.
72435         * doc/glibc-functions/getxattr.texi: Likewise.
72436         * doc/glibc-functions/lgetxattr.texi: Likewise.
72437         * doc/glibc-functions/listxattr.texi: Likewise.
72438         * doc/glibc-functions/llistxattr.texi: Likewise.
72439         * doc/glibc-functions/lremovexattr.texi: Likewise.
72440         * doc/glibc-functions/lsetxattr.texi: Likewise.
72441         * doc/glibc-functions/removexattr.texi: Likewise.
72442         * doc/glibc-functions/setxattr.texi: Likewise.
72443         * doc/posix-functions/open_memstream.texi: Likewise.
72445 2008-12-15  Eric Blake  <ebb9@byu.net>
72447         Update doc for cygwin 1.7.
72448         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
72449         functions.
72450         * doc/posix-functions/fchmodat.texi: Likewise.
72451         * doc/posix-functions/fchownat.texi: Likewise.
72452         * doc/posix-functions/fdopendir.texi: Likewise.
72453         * doc/posix-functions/fmemopen.texi: Likewise.
72454         * doc/posix-functions/freeaddrinfo.texi: Likewise.
72455         * doc/posix-functions/fstatat.texi: Likewise.
72456         * doc/posix-functions/futimens.texi: Likewise.
72457         * doc/posix-functions/gai_strerror.texi: Likewise.
72458         * doc/posix-functions/getaddrinfo.texi: Likewise.
72459         * doc/posix-functions/getnameinfo.texi: Likewise.
72460         * doc/posix-functions/if_freenameindex.texi: Likewise.
72461         * doc/posix-functions/if_indextoname.texi: Likewise.
72462         * doc/posix-functions/if_nameindex.texi: Likewise.
72463         * doc/posix-functions/if_nametoindex.texi: Likewise.
72464         * doc/posix-functions/insque.texi: Likewise.
72465         * doc/posix-functions/linkat.texi: Likewise.
72466         * doc/posix-functions/llrint.texi: Likewise.
72467         * doc/posix-functions/llrintf.texi: Likewise.
72468         * doc/posix-functions/llrintl.texi: Likewise.
72469         * doc/posix-functions/lockf.texi: Likewise.
72470         * doc/posix-functions/lrintl.texi: Likewise.
72471         * doc/posix-functions/mkdirat.texi: Likewise.
72472         * doc/posix-functions/mkfifoat.texi: Likewise.
72473         * doc/posix-functions/mknodat.texi: Likewise.
72474         * doc/posix-functions/mq_close.texi: Likewise.
72475         * doc/posix-functions/mq_getattr.texi: Likewise.
72476         * doc/posix-functions/mq_notify.texi: Likewise.
72477         * doc/posix-functions/mq_open.texi: Likewise.
72478         * doc/posix-functions/mq_receive.texi: Likewise.
72479         * doc/posix-functions/mq_send.texi: Likewise.
72480         * doc/posix-functions/mq_setattr.texi: Likewise.
72481         * doc/posix-functions/mq_timedreceive.texi: Likewise.
72482         * doc/posix-functions/mq_timedsend.texi: Likewise.
72483         * doc/posix-functions/mq_unlink.texi: Likewise.
72484         * doc/posix-functions/open_memstream.texi: Likewise.
72485         * doc/posix-functions/openat.texi: Likewise.
72486         * doc/posix-functions/posix_fadvise.texi: Likewise.
72487         * doc/posix-functions/posix_fallocate.texi: Likewise.
72488         * doc/posix-functions/posix_madvise.texi: Likewise.
72489         * doc/posix-functions/posix_memalign.texi: Likewise.
72490         * doc/posix-functions/posix_openpt.texi: Likewise.
72491         * doc/posix-functions/readlinkat.texi: Likewise.
72492         * doc/posix-functions/remque.texi: Likewise.
72493         * doc/posix-functions/renameat.texi: Likewise.
72494         * doc/posix-functions/rintl.texi: Likewise.
72495         * doc/posix-functions/sem_unlink.texi: Likewise.
72496         * doc/posix-functions/shm_open.texi: Likewise.
72497         * doc/posix-functions/shm_unlink.texi: Likewise.
72498         * doc/posix-functions/signgam.texi: Likewise.
72499         * doc/posix-functions/sigset.texi: Likewise.
72500         * doc/posix-functions/stpcpy.texi: Likewise.
72501         * doc/posix-functions/stpncpy.texi: Likewise.
72502         * doc/posix-functions/strerror.texi: Likewise.
72503         * doc/posix-functions/strtod.texi: Likewise.
72504         * doc/posix-functions/symlinkat.texi: Likewise.
72505         * doc/posix-functions/unlinkat.texi: Likewise.
72506         * doc/posix-functions/utimensat.texi: Likewise.
72507         * doc/glibc-functions/bindresvport.texi: Likewise.
72508         * doc/glibc-functions/dn_expand.texi: Likewise.
72509         * doc/glibc-functions/exp10.texi: Likewise.
72510         * doc/glibc-functions/exp10f.texi: Likewise.
72511         * doc/glibc-functions/fgetxattr.texi: Likewise.
72512         * doc/glibc-functions/flistxattr.texi: Likewise.
72513         * doc/glibc-functions/fopencookie.texi: Likewise.
72514         * doc/glibc-functions/freeifaddrs.texi: Likewise.
72515         * doc/glibc-functions/fremovexattr.texi: Likewise.
72516         * doc/glibc-functions/fsetxattr.texi: Likewise.
72517         * doc/glibc-functions/getifaddrs.texi: Likewise.
72518         * doc/glibc-functions/getxattr.texi: Likewise.
72519         * doc/glibc-functions/lgetxattr.texi: Likewise.
72520         * doc/glibc-functions/listxattr.texi: Likewise.
72521         * doc/glibc-functions/llistxattr.texi: Likewise.
72522         * doc/glibc-functions/lremovexattr.texi: Likewise.
72523         * doc/glibc-functions/lsetxattr.texi: Likewise.
72524         * doc/glibc-functions/pow10.texi: Likewise.
72525         * doc/glibc-functions/pow10f.texi: Likewise.
72526         * doc/glibc-functions/rcmd_af.texi: Likewise.
72527         * doc/glibc-functions/removexattr.texi: Likewise.
72528         * doc/glibc-functions/res_init.texi: Likewise.
72529         * doc/glibc-functions/res_mkquery.texi: Likewise.
72530         * doc/glibc-functions/res_query.texi: Likewise.
72531         * doc/glibc-functions/res_querydomain.texi: Likewise.
72532         * doc/glibc-functions/res_send.texi: Likewise.
72533         * doc/glibc-functions/rresvport_af.texi: Likewise.
72534         * doc/glibc-functions/setxattr.texi: Likewise.
72535         * doc/glibc-functions/strcasestr.texi: Likewise.
72537 2008-12-15  Bruno Haible  <bruno@clisp.org>
72539         Fix compilation error on OSF/1 4.0.
72540         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
72541         <sys/time.h>, simply delegate to the system header.
72542         Reported by Daniel Richard G. <oss@teragram.com>.
72544 2008-12-15  Bruno Haible  <bruno@clisp.org>
72546         * doc/posix-functions/openat.texi: Mention the 'openat' module.
72547         * doc/posix-functions/fchmodat.texi: Likewise.
72548         * doc/posix-functions/fchownat.texi: Likewise.
72549         * doc/posix-functions/fdopendir.texi: Likewise.
72550         * doc/posix-functions/fstatat.texi: Likewise.
72551         * doc/posix-functions/mkdirat.texi: Likewise.
72552         * doc/posix-functions/unlinkat.texi: Likewise.
72554 2008-12-14  Bruno Haible  <bruno@clisp.org>
72556         Update doc for POSIX:2008.
72557         * doc/posix-functions/faccessat.texi: New file.
72558         * doc/posix-functions/fchmodat.texi: New file.
72559         * doc/posix-functions/fchownat.texi: New file.
72560         * doc/posix-functions/fdopendir.texi: New file.
72561         * doc/posix-functions/fstatat.texi: New file.
72562         * doc/posix-functions/futimens.texi: New file.
72563         * doc/posix-functions/linkat.texi: New file.
72564         * doc/posix-functions/mkdirat.texi: New file.
72565         * doc/posix-functions/mkfifoat.texi: New file.
72566         * doc/posix-functions/mknodat.texi: New file.
72567         * doc/posix-functions/open_wmemstream.texi: New file.
72568         * doc/posix-functions/openat.texi: New file.
72569         * doc/posix-functions/psiginfo.texi: New file.
72570         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
72571         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
72572         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
72573         * doc/posix-functions/readlinkat.texi: New file.
72574         * doc/posix-functions/renameat.texi: New file.
72575         * doc/posix-functions/strerror_l.texi: New file.
72576         * doc/posix-functions/symlinkat.texi: New file.
72577         * doc/posix-functions/unlinkat.texi: New file.
72578         * doc/posix-functions/utimensat.texi: New file.
72579         * doc/gnulib.texi (Function Substitutes): Add these subsections.
72581 2008-12-14  Bruno Haible  <bruno@clisp.org>
72583         Update doc for POSIX:2008.
72584         * doc/posix-functions/alphasort.texi: Renamed from
72585         doc/glibc-functions/alphasort.texi.
72586         * doc/posix-functions/dirfd.texi: Renamed from
72587         doc/glibc-functions/dirfd.texi.
72588         * doc/posix-functions/dprintf.texi: Renamed from
72589         doc/glibc-functions/dprintf.texi.
72590         * doc/posix-functions/duplocale.texi: Renamed from
72591         doc/glibc-functions/duplocale.texi.
72592         * doc/posix-functions/fexecve.texi: Renamed from
72593         doc/glibc-functions/fexecve.texi.
72594         * doc/posix-functions/fmemopen.texi: Renamed from
72595         doc/glibc-functions/fmemopen.texi.
72596         * doc/posix-functions/freelocale.texi: Renamed from
72597         doc/glibc-functions/freelocale.texi.
72598         * doc/posix-functions/getdate_err.texi: Renamed from
72599         doc/glibc-functions/getdate_err.texi.
72600         * doc/posix-functions/isalnum_l.texi: Renamed from
72601         doc/glibc-functions/isalnum_l.texi.
72602         * doc/posix-functions/isalpha_l.texi: Renamed from
72603         doc/glibc-functions/isalpha_l.texi.
72604         * doc/posix-functions/isblank_l.texi: Renamed from
72605         doc/glibc-functions/isblank_l.texi.
72606         * doc/posix-functions/iscntrl_l.texi: Renamed from
72607         doc/glibc-functions/iscntrl_l.texi.
72608         * doc/posix-functions/isdigit_l.texi: Renamed from
72609         doc/glibc-functions/isdigit_l.texi.
72610         * doc/posix-functions/isgraph_l.texi: Renamed from
72611         doc/glibc-functions/isgraph_l.texi.
72612         * doc/posix-functions/islower_l.texi: Renamed from
72613         doc/glibc-functions/islower_l.texi.
72614         * doc/posix-functions/isprint_l.texi: Renamed from
72615         doc/glibc-functions/isprint_l.texi.
72616         * doc/posix-functions/ispunct_l.texi: Renamed from
72617         doc/glibc-functions/ispunct_l.texi.
72618         * doc/posix-functions/isspace_l.texi: Renamed from
72619         doc/glibc-functions/isspace_l.texi.
72620         * doc/posix-functions/isupper_l.texi: Renamed from
72621         doc/glibc-functions/isupper_l.texi.
72622         * doc/posix-functions/iswalnum_l.texi: Renamed from
72623         doc/glibc-functions/iswalnum_l.texi.
72624         * doc/posix-functions/iswalpha_l.texi: Renamed from
72625         doc/glibc-functions/iswalpha_l.texi.
72626         * doc/posix-functions/iswblank_l.texi: Renamed from
72627         doc/glibc-functions/iswblank_l.texi.
72628         * doc/posix-functions/iswcntrl_l.texi: Renamed from
72629         doc/glibc-functions/iswcntrl_l.texi.
72630         * doc/posix-functions/iswctype_l.texi: Renamed from
72631         doc/glibc-functions/iswctype_l.texi.
72632         * doc/posix-functions/iswdigit_l.texi: Renamed from
72633         doc/glibc-functions/iswdigit_l.texi.
72634         * doc/posix-functions/iswgraph_l.texi: Renamed from
72635         doc/glibc-functions/iswgraph_l.texi.
72636         * doc/posix-functions/iswlower_l.texi: Renamed from
72637         doc/glibc-functions/iswlower_l.texi.
72638         * doc/posix-functions/iswprint_l.texi: Renamed from
72639         doc/glibc-functions/iswprint_l.texi.
72640         * doc/posix-functions/iswpunct_l.texi: Renamed from
72641         doc/glibc-functions/iswpunct_l.texi.
72642         * doc/posix-functions/iswspace_l.texi: Renamed from
72643         doc/glibc-functions/iswspace_l.texi.
72644         * doc/posix-functions/iswupper_l.texi: Renamed from
72645         doc/glibc-functions/iswupper_l.texi.
72646         * doc/posix-functions/iswxdigit_l.texi: Renamed from
72647         doc/glibc-functions/iswxdigit_l.texi.
72648         * doc/posix-functions/isxdigit_l.texi: Renamed from
72649         doc/glibc-functions/isxdigit_l.texi.
72650         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
72651         doc/glibc-functions/mbsnrtowcs.texi.
72652         * doc/posix-functions/mkdtemp.texi: Renamed from
72653         doc/glibc-functions/mkdtemp.texi.
72654         * doc/posix-functions/newlocale.texi: Renamed from
72655         doc/glibc-functions/newlocale.texi.
72656         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
72657         doc/glibc-functions/nl_langinfo_l.texi.
72658         * doc/posix-functions/open_memstream.texi: Renamed from
72659         doc/glibc-functions/open_memstream.texi.
72660         * doc/posix-functions/opterr.texi: Renamed from
72661         doc/glibc-functions/opterr.texi.
72662         * doc/posix-functions/optind.texi: Renamed from
72663         doc/glibc-functions/optind.texi.
72664         * doc/posix-functions/optopt.texi: Renamed from
72665         doc/glibc-functions/optopt.texi.
72666         * doc/posix-functions/psignal.texi: Renamed from
72667         doc/glibc-functions/psignal.texi.
72668         * doc/posix-functions/scandir.texi: Renamed from
72669         doc/glibc-functions/scandir.texi.
72670         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
72671         doc/glibc-functions/sched_get_priority_min.texi.
72672         * doc/posix-functions/signgam.texi: Renamed from
72673         doc/glibc-functions/signgam.texi.
72674         * doc/posix-functions/stpcpy.texi: Renamed from
72675         doc/glibc-functions/stpcpy.texi.
72676         * doc/posix-functions/stpncpy.texi: Renamed from
72677         doc/glibc-functions/stpncpy.texi.
72678         * doc/posix-functions/strcasecmp_l.texi: Renamed from
72679         doc/glibc-functions/strcasecmp_l.texi.
72680         * doc/posix-functions/strcoll_l.texi: Renamed from
72681         doc/glibc-functions/strcoll_l.texi.
72682         * doc/posix-functions/strfmon_l.texi: Renamed from
72683         doc/glibc-functions/strfmon_l.texi.
72684         * doc/posix-functions/strftime_l.texi: Renamed from
72685         doc/glibc-functions/strftime_l.texi.
72686         * doc/posix-functions/strncasecmp_l.texi: Renamed from
72687         doc/glibc-functions/strncasecmp_l.texi.
72688         * doc/posix-functions/strndup.texi: Renamed from
72689         doc/glibc-functions/strndup.texi.
72690         * doc/posix-functions/strnlen.texi: Renamed from
72691         doc/glibc-functions/strnlen.texi.
72692         * doc/posix-functions/strsignal.texi: Renamed from
72693         doc/glibc-functions/strsignal.texi.
72694         * doc/posix-functions/strxfrm_l.texi: Renamed from
72695         doc/glibc-functions/strxfrm_l.texi.
72696         * doc/posix-functions/timer_gettime.texi: Renamed from
72697         doc/glibc-functions/timer_gettime.texi.
72698         * doc/posix-functions/tolower_l.texi: Renamed from
72699         doc/glibc-functions/tolower_l.texi.
72700         * doc/posix-functions/toupper_l.texi: Renamed from
72701         doc/glibc-functions/toupper_l.texi.
72702         * doc/posix-functions/towctrans_l.texi: Renamed from
72703         doc/glibc-functions/towctrans_l.texi.
72704         * doc/posix-functions/towlower_l.texi: Renamed from
72705         doc/glibc-functions/towlower_l.texi.
72706         * doc/posix-functions/towupper_l.texi: Renamed from
72707         doc/glibc-functions/towupper_l.texi.
72708         * doc/posix-functions/uselocale.texi: Renamed from
72709         doc/glibc-functions/uselocale.texi.
72710         * doc/posix-functions/vdprintf.texi: Renamed from
72711         doc/glibc-functions/vdprintf.texi.
72712         * doc/posix-functions/wcpcpy.texi:
72713         Renamed from doc/glibc-functions/wcpcpy.texi.
72714         * doc/posix-functions/wcpncpy.texi: Renamed from
72715         doc/glibc-functions/wcpncpy.texi.
72716         * doc/posix-functions/wcscasecmp.texi: Renamed from
72717         doc/glibc-functions/wcscasecmp.texi.
72718         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
72719         doc/glibc-functions/wcscasecmp_l.texi.
72720         * doc/posix-functions/wcscoll_l.texi: Renamed from
72721         doc/glibc-functions/wcscoll_l.texi.
72722         * doc/posix-functions/wcsdup.texi: Renamed from
72723         doc/glibc-functions/wcsdup.texi.
72724         * doc/posix-functions/wcsncasecmp.texi: Renamed from
72725         doc/glibc-functions/wcsncasecmp.texi.
72726         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
72727         doc/glibc-functions/wcsncasecmp_l.texi.
72728         * doc/posix-functions/wcsnlen.texi: Renamed from
72729         doc/glibc-functions/wcsnlen.texi.
72730         * doc/posix-functions/wcsnrtombs.texi: Renamed from
72731         doc/glibc-functions/wcsnrtombs.texi.
72732         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
72733         doc/glibc-functions/wcsxfrm_l.texi.
72734         * doc/posix-functions/wctrans_l.texi: Renamed from
72735         doc/glibc-functions/wctrans_l.texi.
72736         * doc/posix-functions/wctype_l.texi: Renamed from
72737         doc/glibc-functions/wctype_l.texi.
72738         * doc/gnulib.texi (Function Substitutes): Add these subsections.
72739         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
72740         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
72741         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
72742         these subsections.
72743         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
72744         Remove sections.
72746 2008-12-14  Bruno Haible  <bruno@clisp.org>
72748         Update doc for POSIX:2008.
72749         * doc/posix-functions/*.texi: Update URL of POSIX specification.
72751 2008-12-14  Bruno Haible  <bruno@clisp.org>
72753         Update doc for POSIX:2008.
72754         * doc/pastposix-functions/bcmp.texi: Renamed from
72755         doc/posix-functions/bcmp.texi.
72756         * doc/pastposix-functions/bcopy.texi: Renamed from
72757         doc/posix-functions/bcopy.texi.
72758         * doc/pastposix-functions/bsd_signal.texi: Renamed from
72759         doc/posix-functions/bsd_signal.texi.
72760         * doc/pastposix-functions/bzero.texi: Renamed from
72761         doc/posix-functions/bzero.texi.
72762         * doc/pastposix-functions/ecvt.texi: Renamed from
72763         doc/posix-functions/ecvt.texi.
72764         * doc/pastposix-functions/fcvt.texi: Renamed from
72765         doc/posix-functions/fcvt.texi.
72766         * doc/pastposix-functions/ftime.texi: Renamed from
72767         doc/posix-functions/ftime.texi.
72768         * doc/pastposix-functions/gcvt.texi: Renamed from
72769         doc/posix-functions/gcvt.texi.
72770         * doc/pastposix-functions/getcontext.texi: Renamed from
72771         doc/posix-functions/getcontext.texi.
72772         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
72773         doc/posix-functions/gethostbyaddr.texi.
72774         * doc/pastposix-functions/gethostbyname.texi: Renamed from
72775         doc/posix-functions/gethostbyname.texi.
72776         * doc/pastposix-functions/getwd.texi: Renamed from
72777         doc/posix-functions/getwd.texi.
72778         * doc/pastposix-functions/h_errno.texi: Renamed from
72779         doc/posix-functions/h_errno.texi.
72780         * doc/pastposix-functions/index.texi: Renamed from
72781         doc/posix-functions/index.texi.
72782         * doc/pastposix-functions/makecontext.texi: Renamed from
72783         doc/posix-functions/makecontext.texi.
72784         * doc/pastposix-functions/mktemp.texi: Renamed from
72785         doc/posix-functions/mktemp.texi.
72786         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
72787         doc/posix-functions/pthread_attr_getstackaddr.texi.
72788         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
72789         doc/posix-functions/pthread_attr_setstackaddr.texi.
72790         * doc/pastposix-functions/rindex.texi: Renamed from
72791         doc/posix-functions/rindex.texi.
72792         * doc/pastposix-functions/scalb.texi: Renamed from
72793         doc/posix-functions/scalb.texi.
72794         * doc/pastposix-functions/setcontext.texi: Renamed from
72795         doc/posix-functions/setcontext.texi.
72796         * doc/pastposix-functions/swapcontext.texi: Renamed from
72797         doc/posix-functions/swapcontext.texi.
72798         * doc/pastposix-functions/ualarm.texi: Renamed from
72799         doc/posix-functions/ualarm.texi.
72800         * doc/pastposix-functions/usleep.texi: Renamed from
72801         doc/posix-functions/usleep.texi.
72802         * doc/pastposix-functions/vfork.texi: Renamed from
72803         doc/posix-functions/vfork.texi.
72804         * doc/pastposix-functions/wcswcs.texi: Renamed from
72805         doc/posix-functions/wcswcs.texi.
72806         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
72807         (Function Substitutes): Update.
72809 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72811         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
72812         m4/strerror.m4.
72814 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72815             Bruno Haible  <bruno@clisp.org>
72817         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
72819 2008-12-13  Bruno Haible  <bruno@clisp.org>
72821         * modules/strtoull (Depends-on): Remove unistd.
72823 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72825         * modules/strtoull (Depends-on): Add stdlib.
72827 2008-12-11  Simon Josefsson  <simon@josefsson.org>
72829         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
72831 2008-12-10  Jim Meyering  <meyering@redhat.com>
72833         gl_ASSERT: don't say assertions are disabled when they're not
72834         * m4/assert.m4 (gl_ASSERT): Do not make configure report
72835         "checking whether to enable assertions... no", when they are in
72836         fact enabled.  This is solely a bug in the output of configure.
72837         In spite of saying "no", NDEBUG was not defined in that case.
72838         Also, as noted by Eric Blake, leave assertions enabled upon
72839         --enable-assert=INVALID.
72841 2008-12-10  Bruno Haible  <bruno@clisp.org>
72843         Change MODULES.html to refer to POSIX:2008 where possible.
72844         * MODULES.html.sh (POSIX2008_URL): New variable.
72845         (posix_headers): Remove sys/timeb, ucontext.
72846         (posix2001_headers): New variable.
72847         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
72848         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
72849         index, makecontext, mktemp, pthread_attr_getstackaddr,
72850         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
72851         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
72852         (posix2001_functions): New variable.
72853         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
72854         otherwise.
72856 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72858         add missing include to parse-duration.c
72859         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
72860         * modules/parse-duration (Depends-on): Add xalloc.
72862         fix sed script reading maint.mk
72863         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
72864         (syntax-check-rules): Use it.
72866 2008-12-09  Bruno Haible  <bruno@clisp.org>
72868         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
72869         MacOS X 10.4/PowerPC.
72870         Reported by Simon Josefsson.
72872 2008-12-08  Jim Meyering  <meyering@redhat.com>
72874         work around mingw's lack of some S_IF definitions
72875         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
72876         Reported by Simon Josefsson.
72878 2008-12-08  Bruno Haible  <bruno@clisp.org>
72880         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
72881         applied to variables. Needed on MacOS X 10.4/PowerPC.
72882         Reported by Simon Josefsson.
72884 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
72885         and Eric Blake  <ebb9@byu.net>
72887         assert: honor --enable-assert
72888         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
72889         order to honor --enable-assert, rather than treating it as a
72890         synonym for --disable-assert.
72892 2008-12-08  Jim Meyering  <meyering@redhat.com>
72894         * lib/posixtm.c: Remove now-useless declaration of mktime.
72896         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
72898 2008-12-07  Bruno Haible  <bruno@clisp.org>
72900         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
72901         test_once): Mark functions as static.
72902         * tests/test-tls.c (test_tls): Likewise.
72904 2008-12-07  Bruno Haible  <bruno@clisp.org>
72906         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
72907         iconv_register_autodetect.
72909 2008-12-07  Jim Meyering  <meyering@redhat.com>
72911         posixtm.c: avoid a warning
72912         * lib/posixtm.c (posixtime): Don't initialize tm0.
72913         It's no longer needed to placate gcc4's -Wuninitialized,
72914         and the attempt to placate would elicit a new warning.
72916         unicodeio.c: mark unused parameters
72917         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
72918         (fallback_failure_callback): Likewise.
72920 2008-12-07  Bruno Haible  <bruno@clisp.org>
72922         * gnulib-tool (func_create_testdir): When building the tests
72923         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
72924         Reported by Simon Josefsson.
72926 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72928         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
72930 2008-12-06  Bruno Haible  <bruno@clisp.org>
72932         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
72933         Suggested by Eric Blake.
72935 2008-12-06  Bruno Haible  <bruno@clisp.org>
72937         Fix a c-stack test failure on MacOS X.
72938         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
72939         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
72940         handler for SIGBUS as well.
72941         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
72942         install a signal handler for SIGBUS as well.
72943         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
72945 2008-12-06  Bruno Haible  <bruno@clisp.org>
72947         Advocacy documentation.
72948         * doc/gnulib-intro.texi (Benefits): New section.
72949         * doc/gnulib.texi: Update.
72951 2008-12-06  Bruno Haible  <bruno@clisp.org>
72953         Document the 'manywarnings' module.
72954         * doc/manywarnings.texi: New file.
72955         * doc/gnulib.texi: Include it.
72957 2008-12-05  Eric Blake  <ebb9@byu.net>
72959         tests: silence some gcc warnings
72960         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
72961         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
72962         type mismatches.
72964 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72965             Bruno Haible  <bruno@clisp.org>
72967         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
72969 2008-11-29  Jim Meyering  <meyering@redhat.com>
72971         unicodeio.c: mark unused parameters
72972         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
72973         (fallback_failure_callback): Likewise.
72975         fts: fix a thinko
72976         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
72977         (set_stat_type): Return S_IF*-valued "type" directly.
72978         Prompted by James Youngman's spotting a related bug.
72979         Confirmed by further testing through find.
72981         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
72982         * lib/fts.c (D_TYPE): Define.
72983         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
72984         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
72985         (s_ifmt_shift_bits): New function.
72986         (set_stat_type): New function.
72987         (fts_build): When not calling fts_stat, call set_stat_type
72988         to propagate dirent.d_type info to fts_read caller.
72989         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
72990         fts_statp->st_mode type information may be valid.
72992 2008-11-28  Simon Josefsson  <simon@josefsson.org>
72994         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
72995         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
72996         <sds@gnu.org>.
72998 2008-11-20  Bruno Haible  <bruno@clisp.org>
73000         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
73001         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
73002         INCLUDE_NEXT.
73003         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
73004         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
73005         * modules/math (Makefile.am): Substitute
73006         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
73007         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73009 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
73010             Bruno Haible  <bruno@clisp.org>
73012         * lib/stdint.in.h: Define all type macros so that their expansion is
73013         a single typedef'ed token. Fixes a compilation failure in Boost which
73014         does "using ::int8_t;".
73016 2008-11-18  Simon Josefsson  <simon@josefsson.org>
73018         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
73019         gl_MANYWARN_ALL_GCC.
73020         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
73021         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
73022         * modules/manywarnings: New file.
73023         * MODULES.html.sh: Mention manywarnings module.
73025 2008-11-18  Bruno Haible  <bruno@clisp.org>
73027         * doc/gnulib-tool.texi (Unit tests): New section.
73029 2008-11-18  Simon Josefsson  <simon@josefsson.org>
73031         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
73032         paths like 'lib/po/foo.po'.
73034 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73036         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
73037         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
73039 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73041         * m4/warnings.m4: Use CPPFLAGS to really check whether the
73042         parameter works.
73044 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73046         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
73048 2008-11-17  Bruce Korb  <bkorb@gnu.org>
73050         * modules/parse-duration-tests: New file.
73051         * tests/test-parse-duration.sh: New file.
73052         * tests/test-parse-duration.c: New file.
73054         New module 'parse-duration'.
73055         * lib/parse-duration.h: New file.
73056         * lib/parse-duration.c: New file.
73057         * modules/parse-duration: New file.
73059 2008-11-17  Bruno Haible  <bruno@clisp.org>
73061         * tests/test-select-out.sh: Comment out the first pipe test.
73062         Reported by Simon Josefsson.
73064 2008-11-17  Bruno Haible  <bruno@clisp.org>
73066         * modules/getaddrinfo (Depends-on): Add servent, hostent.
73067         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
73068         gl_HOSTENT.
73070 2008-11-17  Bruno Haible  <bruno@clisp.org>
73072         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
73073         -lnetwork and -lnet. Needed for Haiku and BeOS.
73075 2008-11-16  Bruno Haible  <bruno@clisp.org>
73077         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
73079 2008-11-16  Bruno Haible  <bruno@clisp.org>
73081         Avoid test failure on Haiku.
73082         * tests/test-fsync.c: Include <errno.h>.
73083         (main): Don't require that fsync (0) fails.
73085 2008-11-15  Bruno Haible  <bruno@clisp.org>
73087         New module 'hostent'.
73088         * modules/hostent: New file.
73089         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
73091 2008-11-15  Bruno Haible  <bruno@clisp.org>
73093         New module 'servent'.
73094         * modules/servent: New file.
73095         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
73097 2008-11-15  Bruno Haible  <bruno@clisp.org>
73099         Avoid generating same test program with two different rules.
73100         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
73101         test-frexp to test-frexp-nolibm.
73102         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
73103         test-frexpl to test-frexpl-nolibm.
73105 2008-11-15  Bruno Haible  <bruno@clisp.org>
73107         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
73108         $(FREXPL_LIBM).
73110 2008-11-15  Bruno Haible  <bruno@clisp.org>
73112         * lib/netdb.in.h: Activate the definitions also when the system's
73113         <netdb.h> has 'struct addrinfo'.
73114         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
73115         EAI_OVERFLOW or AI_NUMERICSERV.
73116         * doc/posix-headers/netdb.texi: Document the problem.
73118 2008-11-15  Bruno Haible  <bruno@clisp.org>
73120         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
73122         Make the 'sched' module work on platforms where <sched.h> exists but
73123         is incomplete (such as Haiku).
73124         * lib/sched.in.h; Include the system's <sched.h> if it exists.
73125         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
73126         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
73127         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
73128         HAVE_STRUCT_SCHED_PARAM.
73129         * modules/sched (Depends-on): Add include_next.
73130         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
73131         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
73132         * doc/posix-headers/sched.texi: Document the issue.
73134 2008-11-13  Jim Meyering  <meyering@redhat.com>
73136         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
73137         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
73138         test would fail due to the difference in the Report bugs to ...
73139         line.  The expected address is empty, "<>", while the actual
73140         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
73142 2008-11-12  Bruno Haible  <bruno@clisp.org>
73144         lstat: don't compile lstat.c on systems lacking lstat
73145         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
73146         which don't have lstat; this is handled by lib/sys_stat.in.h already.
73147         Reported by Daniel P. Berrange via Jim Meyering.
73149 2008-11-12  Jim Meyering  <meyering@redhat.com>
73151         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
73153 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73155         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
73156         instead.
73158 2008-11-12  Bruno Haible  <bruno@clisp.org>
73160         * lib/unicodeio.c: Include unistr.h.
73161         (utf8_wctomb): Remove function.
73162         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
73164 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73166         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
73167         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
73168         <bruno@clisp.org>.
73169         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
73171 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73173         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
73174         * doc/gnulib.texi: Add section for warnings.
73176 2008-11-11  Bruno Haible  <bruno@clisp.org>
73178         * lib/sockets.h: Add a comment.
73180 2008-11-11  Karl Berry  <karl@gnu.org>
73182         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
73184 2008-11-11  Eric Blake  <ebb9@byu.net>
73186         fdl.texi: avoid git symlinks
73187         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
73189 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73191         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
73193 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73195         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
73196         (gl_WARN_ADD): Substitute $2 if literal.
73198 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73200         * m4/warning.m4: Remove.
73202 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73204         * m4/warnings.m4: Almost complete rewrite. :-)
73206 2008-11-10  Simon Josefsson  <simon@josefsson.org>
73208         * modules/warnings: New module.
73209         * m4/warnings.m4: New file.
73210         * MODULES.html.sh: Mention warnings module.
73211         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
73212         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73214 2008-11-10  Eric Blake  <ebb9@byu.net>
73216         fdl.texi: make a symlink to the latest version
73217         * doc/standards.texi: Revert today's earlier change.
73218         * doc/fdl-1.2.texi: Rename from old fdl.texi...
73219         * doc/fdl.texi: ...and replace this with a symlink to the newer
73220         fdl-1.3.texi.
73222 2008-11-10  Bruno Haible  <bruno@clisp.org>
73224         * tests/test-select-fd.c (main): Accept the result file name as fourth
73225         argument.
73226         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
73227         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
73229 2008-11-10  Bruno Haible  <bruno@clisp.org>
73231         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
73232         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
73233         as autoconf-substituted macros.
73234         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
73235         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
73236         gl_NETDB_H_DEFAULTS. Set these variables.
73237         * modules/netdb (Makefile.am): Substitute these variables.
73239 2008-11-10  Eric Blake  <ebb9@byu.net>
73241         standards.texi: include correct file for FDL 1.3
73242         * doc/standards.texi (GNU Free Documentation License): Change
73243         include file to pull in FDL 1.3, not 1.2.
73245         fdl.texi: revert accidental change to license
73246         * doc/fdl.texi: This is FDL 1.2, not 1.3.
73248 2008-11-10  Bruno Haible  <bruno@clisp.org>
73250         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
73251         cross-compiling guesses also when the native compile gives no result.
73253 2008-11-10  Bruno Haible  <bruno@clisp.org>
73255         * lib/spawni.c (__spawni): Force variable into the stack.
73257 2008-11-10  Bruno Haible  <bruno@clisp.org>
73259         Add support for Haiku.
73260         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
73261         glibc and BeOS, but also on Haiku.
73262         * lib/fpurge.c (fpurge): Likewise.
73263         * lib/freadable.c (freadable): Likewise.
73264         * lib/freadahead.c (freadahead): Likewise.
73265         * lib/freading.c (freading): Likewise.
73266         * lib/freadptr.c (freadptr): Likewise.
73267         * lib/freadseek.c (freadptrinc): Likewise.
73268         * lib/fseeko.c (rpl_fseeko): Likewise.
73269         * lib/fseterr.c (fseterr): Likewise.
73270         * lib/fwritable.c (fwritable): Likewise.
73271         * lib/fwriting.c (fwriting): Likewise.
73272         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
73274 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73276         * lib/config.charset: Treat Haiku like BeOS.
73278 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73280         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
73281         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
73283 2008-11-08  Bruno Haible  <bruno@clisp.org>
73285         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
73286         AC_CACHE_CHECK.
73288 2008-11-08  Bruno Haible  <bruno@clisp.org>
73290         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
73292 2008-11-08  Bruno Haible  <bruno@clisp.org>
73294         * tests/test-select-fd.c: New file.
73295         * tests/test-select-in.sh: New file.
73296         * tests/test-select-out.sh: New file.
73297         * tests/test-select-stdin.c: New file.
73298         * modules/select-tests (Files): Add the new files.
73299         (Depends-on): Add gettimeofday.
73300         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
73301         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
73302         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
73304 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
73305             Bruno Haible  <bruno@clisp.org>
73307         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
73309 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
73311         * build-aux/pmccabe2html: Added support for C++ source files.
73313 2008-11-05  Ben Pfaff  <blp@gnu.org>
73315         Fix lib/close.c build on Windows.
73316         * modules/close (Files): Add lib/w32sock.h.
73318 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
73320         Accept Bison's NEWS format.
73321         * build-aux/announce-gen (print_news_deltas): Tweak
73322         $re_prefix.
73324 2008-11-04  Bruno Haible  <bruno@clisp.org>
73326         * modules/random_r (Maintainer): Add glibc.
73328 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73330         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
73331         by karl@freefriends.org (Karl Berry).
73332         * doc/alloca.texi: Likewise.
73333         * doc/c-ctype.texi: Likewise.
73334         * doc/c-strcase.texi: Likewise.
73335         * doc/c-strcaseeq.texi: Likewise.
73336         * doc/c-strcasestr.texi: Likewise.
73337         * doc/c-strstr.texi: Likewise.
73338         * doc/c-strtod.texi: Likewise.
73339         * doc/c-strtold.texi: Likewise.
73340         * doc/ctime.texi: Likewise.
73341         * doc/error.texi: Likewise.
73342         * doc/fdl.texi: Likewise.
73343         * doc/gcd.texi: Likewise.
73344         * doc/getdate.texi: Likewise.
73345         * doc/gnulib-intro.texi: Likewise.
73346         * doc/gnulib-tool.texi: Likewise.
73347         * doc/gnulib.texi: Likewise.
73348         * doc/inet_ntoa.texi: Likewise.
73349         * doc/maintain.texi: Likewise.
73350         * doc/make-stds.texi: Likewise.
73351         * doc/quote.texi: Likewise.
73352         * doc/regexprops-generic.texi: Likewise.
73353         * doc/standards.texi: Likewise.
73354         * doc/verify.texi: Likewise.
73355         * doc/visibility.texi: Likewise.
73356         * doc/gnulib.texi (GNU Free Documentation License): Include
73357         fdl-1.3.texi instead of fdl.texi.
73359 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73361         * doc/fdl-1.3.texi: New file, from
73362         <http://www.gnu.org/licenses/fdl-1.3.texi>.
73363         * modules/fdl-1.3: Add.
73364         * MODULES.html.sh: Add fdl-1.3.
73366 2008-11-03  Bruno Haible  <bruno@clisp.org>
73368         Make determination of absolute name of header file work with AIX xlc.
73369         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
73370         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
73371         preprocessing.
73372         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
73373         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
73375 2008-11-03  Simon Josefsson  <simon@josefsson.org>
73377         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
73378         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
73379         <ludo@gnu.org>.
73381 2008-11-02  Bruno Haible  <bruno@clisp.org>
73383         Mark 'strpbrk' obsolete.
73384         * modules/strpbrk (Status, Notice): New sections.
73385         * modules/strtok_r (Depends-on): Add strpbrk.
73387 2008-11-02  Bruno Haible  <bruno@clisp.org>
73389         Mark 'strdup' obsolete.
73390         * modules/strdup (Status, Notice): New sections.
73391         * modules/findprog (Depends-on): Add strdup.
73392         * modules/getaddrinfo (Depends-on): Likewise.
73393         * modules/localename (Depends-on): Likewise.
73394         * modules/relocatable-lib (Depends-on): Likewise.
73395         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
73396         * modules/relocatable-prog (Depends-on): Likewise.
73397         * modules/trim (Depends-on): Likewise.
73398         * modules/unictype/gen-ctype (Depends-on): Likewise.
73399         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73401 2008-11-02  Bruno Haible  <bruno@clisp.org>
73403         Mark 'strcspn' obsolete.
73404         * modules/strcspn (Status, Notice): New sections.
73406 2008-11-02  Bruno Haible  <bruno@clisp.org>
73408         Mark 'rmdir' obsolete.
73409         * modules/rmdir (Status, Notice): New sections.
73410         * modules/clean-temp (Depends-on): Add rmdir.
73411         * modules/openat (Depends-on): Likewise.
73413 2008-11-02  Bruno Haible  <bruno@clisp.org>
73415         Mark 'raise' obsolete.
73416         * modules/raise (Status, Notice): New sections.
73417         (Include): Specify <signal.h>.
73418         * modules/stdio (Depends-on): Add raise.
73419         * modules/write (Depends-on): Likewise.
73421 2008-11-02  Bruno Haible  <bruno@clisp.org>
73423         Mark 'memset' obsolete.
73424         * modules/memset (Status, Notice): New sections.
73426 2008-11-02  Bruno Haible  <bruno@clisp.org>
73428         Mark 'memmove' obsolete.
73429         * modules/memmove (Status, Notice): New sections.
73430         * modules/argp (Depends-on): Add memmove.
73431         * modules/argz (Depends-on): Likewise.
73432         * modules/canonicalize (Depends-on): Likewise.
73433         * modules/canonicalize-lgpl (Depends-on): Likewise.
73434         * modules/fts (Depends-on): Likewise.
73435         * modules/getcwd (Depends-on): Likewise.
73436         * modules/human (Depends-on): Likewise.
73437         * modules/regex (Depends-on): Likewise.
73438         * modules/striconveh (Depends-on): Likewise.
73439         * modules/trim (Depends-on): Likewise.
73440         * modules/unistr/u8-move (Depends-on): Likewise.
73441         * modules/unistr/u16-move (Depends-on): Likewise.
73442         * modules/unistr/u32-move (Depends-on): Likewise.
73444 2008-11-02  Bruno Haible  <bruno@clisp.org>
73446         Mark 'memcpy' obsolete.
73447         * modules/memcpy (Status, Notice): New sections.
73449 2008-11-02  Bruno Haible  <bruno@clisp.org>
73451         Mark 'memcmp' obsolete.
73452         * modules/memcmp (Status, Notice): New sections.
73453         * modules/argmatch (Depends-on): Add memchr.
73454         * modules/backupfile (Depends-on): Likewise.
73455         * modules/c-strcasestr (Depends-on): Likewise.
73456         * modules/crypto/des (Depends-on): Likewise.
73457         * modules/csharpcomp (Depends-on): Likewise.
73458         * modules/fnmatch (Depends-on): Likewise.
73459         * modules/git-merge-changelog (Depends-on): Likewise.
73460         * modules/isnand (Depends-on): Likewise.
73461         * modules/isnand-nolibm (Depends-on): Likewise.
73462         * modules/isnanf (Depends-on): Likewise.
73463         * modules/isnanf-nolibm (Depends-on): Likewise.
73464         * modules/isnanl (Depends-on): Likewise.
73465         * modules/isnanl-nolibm (Depends-on): Likewise.
73466         * modules/mbchar (Depends-on): Likewise.
73467         * modules/memcoll (Depends-on): Likewise.
73468         * modules/quotearg (Depends-on): Likewise.
73469         * modules/regex (Depends-on): Likewise.
73470         * modules/relocatable-prog (Depends-on): Likewise.
73471         * modules/same (Depends-on): Likewise.
73472         * modules/signbit (Depends-on): Likewise.
73473         * modules/strcasestr-simple (Depends-on): Likewise.
73474         * modules/unictype/gen-ctype (Depends-on): Likewise.
73475         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73476         * modules/uniname/uniname (Depends-on): Likewise.
73477         * modules/unistr/u8-cmp (Depends-on): Likewise.
73479 2008-11-02  Bruno Haible  <bruno@clisp.org>
73481         Mark 'memchr' obsolete.
73482         * modules/memchr (Status, Notice): New sections.
73483         * modules/argp (Depends-on): Add memchr.
73484         * modules/base64 (Depends-on): Likewise.
73485         * modules/c-strcasestr (Depends-on): Likewise.
73486         * modules/chdir-long (Depends-on): Likewise.
73487         * modules/fnmatch (Depends-on): Likewise.
73488         * modules/getsubopt (Depends-on): Likewise.
73489         * modules/git-merge-changelog (Depends-on): Likewise.
73490         * modules/glob (Depends-on): Likewise.
73491         * modules/strcasestr-simple (Depends-on): Likewise.
73492         * modules/strnlen (Depends-on): Likewise.
73494 2008-11-02  Bruno Haible  <bruno@clisp.org>
73496         Mark 'atexit' obsolete.
73497         * modules/atexit (Status, Notice): New sections.
73498         * modules/chdir-long (Depends-on): Add atexit.
73499         * modules/wait-process (Depends-on): Likewise.
73501 2008-11-02  Bruno Haible  <bruno@clisp.org>
73503         * gnulib-tool: New option --with-obsolete.
73504         (func_usage): Document it.
73505         (func_modules_transitive_closure): Drop obsolete dependencies if
73506         incobsolete is not true.
73507         (func_import): Read and save the incobsolete variable to the cache.
73509 2008-11-02  Bruno Haible  <bruno@clisp.org>
73511         * modules/TEMPLATE-EXTENDED: New field 'Status'.
73512         * gnulib-tool: New option --extract-status.
73513         (func_usage): Document it.
73514         (sed_extract_prog): Recognize it.
73515         (func_get_status): New function.
73517 2008-10-30  Simon Josefsson  <simon@josefsson.org>
73519         * modules/sockets (License): Change from LGPL to LGPLv2+.
73521 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73523         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
73525 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73527         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73528         Mention times and sys_times.
73529         * modules/sys_times, modules/sys_times-tests: New modules.
73530         * modules/times, modules/times-tests: Likewise
73531         * m4/sys_times_h.m4: New file.
73532         * lib/sys_times.in.h: Likewise
73533         * lib/times.c: Likewise.
73534         * tests/test-sys_times.c: Likewise.
73535         * tests/test-times.c: Likewise.
73536         * doc/posix-headers/sys_times.texi: Update.
73537         * doc/posix-functions/times.texi: Update.
73539 2008-10-28  Jim Meyering  <meyering@redhat.com>
73541         * modules/tempname (Depends-on): Add lstat.
73543         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
73545 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73547         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
73548         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
73549         using idiom used elsewhere in gnulib.
73551 2008-10-27  Jim Meyering  <meyering@redhat.com>
73553         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
73555 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73557         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
73558         TESTS_ENVIRONMENT, for shell scripts that needs to call built
73559         programs.
73560         * tests/test-argp-2.sh: Use $EXEEXT when needed.
73562 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73564         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
73566 2008-10-27  Bruno Haible  <bruno@clisp.org>
73568         * tests/test-lstat.c: Include <stdio.h>.
73570 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73572         * modules/lstat-tests: New module.
73573         * tests/test-lstat.c: New file.
73575 2008-10-26  Jim Meyering  <meyering@redhat.com>
73577         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
73579 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73580             Bruno Haible  <bruno@clisp.org>
73582         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
73583         * modules/configmake (Include): Add a note that the include must come
73584         after all system headers.
73585         * lib/javaversion.c: Include configmake.h after all other includes.
73587 2008-10-26  Bruno Haible  <bruno@clisp.org>
73589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
73590         HAVE_STRUCT_RANDOM_DATA to 1.
73591         (gl_STDLIB_H): Simplify.
73593 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73595         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
73596         substitute HAVE_STRUCT_RANDOM_DATA.
73597         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
73598         random_data.
73599         * modules/stdlib (Makefile.am): Substitute
73600         HAVE_STRUCT_RANDOM_DATA.
73602 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73604         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
73605         * doc/gnulib-intro.texi (Copyright): Likewise.
73607 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73609         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
73610         findings.
73612 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
73613             Bruno Haible  <bruno@clisp.org>
73615         * lib/unistd.in.h: Include <winsock2.h>.
73616         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
73617         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
73618         Provide dummy declarations.
73619         (gethostname): Override.
73620         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
73621         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
73622         gl_PREREQ_SYS_H_WINSOCK2.
73623         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
73624         * doc/posix-functions/gethostname.texi: More details.
73626 2008-10-25  Bruno Haible  <bruno@clisp.org>
73628         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
73629         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
73630         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
73632         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
73633         here ...
73634         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
73635         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
73636         gl_UNISTD_H_DEFAULTS.
73638 2008-10-25  Eric Blake  <ebb9@byu.net>
73640         signbit: avoid spurious compiler failure
73641         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
73642         declarations inside function.
73644 2008-10-24  Simon Josefsson  <simon@josefsson.org>
73645             Bruno Haible  <bruno@clisp.org>
73647         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
73648         * modules/random_r (Depends-on): Add stdint.
73650 2008-10-24  Bruno Haible  <bruno@clisp.org>
73652         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
73653         Eggert.
73654         * modules/strerror (License): Likewise.
73656 2008-10-24  Jim Meyering  <meyering@redhat.com>
73658         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
73659         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
73661 2008-10-24  Eric Blake  <ebb9@byu.net>
73663         getgroups: fix compilation when getgroups is available
73664         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
73665         but with <config.h> override of getgroups disabled.
73667 2008-10-24  Simon Josefsson  <simon@josefsson.org>
73669         * doc/gnulib.texi (Header files): Add note about C++ problems.
73670         Explained by Bruno Haible <bruno@clisp.org>.
73672 2008-10-23  Bruno Haible  <bruno@clisp.org>
73674         Define a dummy SA_NODEFER macro on Interix.
73675         * lib/signal.in.h (SA_NODEFER): Define fallback.
73676         Reported by Aleksey Cheusov <cheusov@tut.by> via
73677         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
73679 2008-10-23  Bruno Haible  <bruno@clisp.org>
73681         * modules/freadahead (License): Change to LGPLv2+.
73682         Suggested by Simon Josefsson.
73684 2008-10-23  Jim Meyering  <meyering@redhat.com>
73686         random_r: new module
73687         * modules/random_r: New file.
73688         * m4/random_r.m4: New file.
73689         * lib/random_r.c: New file, from glibc.
73690         * modules/random_r-tests: New file.
73691         * tests/test-random_r.c: New file.
73692         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
73693          Declare.
73694         (RAND_MAX): Define.
73695         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
73696         * modules/stdlib: Substitute them, too.
73697         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
73698         * doc/glibc-functions/initstate_r.texi: Mention the new module.
73699         * doc/glibc-functions/random_r.texi: Likewise.
73700         * doc/glibc-functions/setstate_r.texi: Likewise.
73701         * doc/glibc-functions/srandom_r.texi: Likewise.
73702         * config/srclist.txt: Mention it.
73704 2008-10-23  David Lutterkort  <lutter@redhat.com>
73706         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
73707         link requirement
73709 2008-10-23  Jim Meyering  <meyering@redhat.com>
73711         selinux-h: mark parameters of stub functions as intentionally unused
73712         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
73713         * lib/se-context.in.h: Likewise.
73715 2008-10-22  Simon Josefsson  <simon@josefsson.org>
73717         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
73719 2008-10-22  Simon Josefsson  <simon@josefsson.org>
73721         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
73723 2008-10-22  Eric Blake  <ebb9@byu.net>
73725         glthread/thread: avoid compiler warning
73726         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
73727         Add unreachable abort to silence compiler.
73729 2008-10-22  Eric Blake  <ebb9@byu.net>
73731         netdb: also supply struct addrinfo for cygwin 1.5.x
73732         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
73733         older cygwin.
73734         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
73735         cygwin.
73736         * doc/posix-headers/netdb.texi (netdb.h): Document this.
73738 2008-10-22  Bruno Haible  <bruno@clisp.org>
73740         * users.txt: Update entry about pspp.
73742 2008-10-21  Bruno Haible  <bruno@clisp.org>
73744         Simplification.
73745         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
73746         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
73748         Simplification.
73749         * lib/ioctl.c (ioctl): Don't undefine.
73750         * lib/socket.c (socket): Don't undefine.
73752         Remove unused module indicator macros.
73753         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
73754         GNULIB_$1 as a C macro.
73756         * doc/posix-functions/close.texi: Undo last change.
73757         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
73758         Windows platforms.
73760 2008-10-21  Bruno Haible  <bruno@clisp.org>
73762         Add gethostname() declaration to <unistd.h>.
73763         * lib/unistd.in.h (gethostname): New declaration.
73764         * lib/gethostname.c: Include <unistd.h>.
73765         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
73766         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
73767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
73768         and HAVE_GETHOSTNAME.
73769         * modules/gethostname (Depends-on): Add unistd.
73770         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73771         (Include): Specify <unistd.h>.
73772         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
73773         HAVE_GETHOSTNAME.
73774         * tests/test-gethostname.c: Include <unistd.h> first.
73776 2008-10-21  Bruno Haible  <bruno@clisp.org>
73778         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
73779         * modules/select-tests (Depends-on): Likewise.
73780         Reported by Simon Josefsson.
73782 2008-10-21  Simon Josefsson  <simon@josefsson.org>
73784         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
73785         * lib/accept.c: New file, based on winsock.c.
73786         * lib/bind.c: New file, based on winsock.c.
73787         * lib/connect.c: New file, based on winsock.c.
73788         * lib/getpeername.c: New file, based on winsock.c.
73789         * lib/getsockname.c: New file, based on winsock.c.
73790         * lib/getsockopt.c: New file, based on winsock.c.
73791         * lib/ioctl.c: New file, based on winsock.c.
73792         * lib/listen.c: New file, based on winsock.c.
73793         * lib/recv.c: New file, based on winsock.c.
73794         * lib/recvfrom.c: New file, based on winsock.c.
73795         * lib/send.c: New file, based on winsock.c.
73796         * lib/sendto.c: New file, based on winsock.c.
73797         * lib/setsockopt.c: New file, based on winsock.c.
73798         * lib/shutdown.c: New file, based on winsock.c.
73799         * lib/socket.c: New file, based on winsock.c.
73800         * lib/w32sock.h: New file, based on winsock.c.
73801         * lib/winsock.c: Remove file.
73802         * modules/accept: Likewise.
73803         * modules/bind: Likewise.
73804         * modules/connect: Likewise.
73805         * modules/getpeername: Likewise.
73806         * modules/getsockname: Likewise.
73807         * modules/getsockopt: Likewise.
73808         * modules/ioctl: Likewise.
73809         * modules/listen: Likewise.
73810         * modules/recv: Likewise.
73811         * modules/recvfrom: Likewise.
73812         * modules/send: Likewise.
73813         * modules/sendto: Likewise.
73814         * modules/setsockopt: Likewise.
73815         * modules/shutdown: Likewise.
73816         * modules/socket: Use socket.c instead of winsock.c.
73817         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
73818         * doc/posix-functions/accept.texi: Doc fix.
73819         * doc/posix-functions/bind.texi: Doc fix.
73820         * doc/posix-functions/close.texi: Doc fix.
73821         * doc/posix-functions/connect.texi: Doc fix.
73822         * doc/posix-functions/getpeername.texi: Doc fix.
73823         * doc/posix-functions/getsockname.texi: Doc fix.
73824         * doc/posix-functions/getsockopt.texi: Doc fix.
73825         * doc/posix-functions/ioctl.texi: Doc fix.
73826         * doc/posix-functions/listen.texi: Doc fix.
73827         * doc/posix-functions/recv.texi: Doc fix.
73828         * doc/posix-functions/recvfrom.texi: Doc fix.
73829         * doc/posix-functions/send.texi: Doc fix.
73830         * doc/posix-functions/sendto.texi: Doc fix.
73831         * doc/posix-functions/setsockopt.texi: Doc fix.
73832         * doc/posix-functions/shutdown.texi: Doc fix.
73833         * doc/posix-functions/socket.texi: Doc fix.
73835 2008-10-20  Bruno Haible  <bruno@clisp.org>
73837         Take into account the role of SIGABRT_COMPAT on Windows 2008.
73838         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
73839         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
73840         as an alias for SIGABRT.
73841         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
73842         (sigaction): Map it to SIGABRT.
73843         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
73845 2008-10-20  Bruno Haible  <bruno@clisp.org>
73847         * lib/fts.c: Don't include lstat.h.
73848         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
73850         Move the lstat() declaration to <sys/stat.h>.
73851         * lib/lstat.h: Remove file.
73852         * lib/sys_stat.in.h: Add special invocation convention.
73853         (lstat): New declaration.
73854         * lib/lstat.c (orig_lstat): New function.
73855         (rpl_lstat): Use orig_lstat instead of lstat.
73856         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
73857         AC_C_INLINE. Set REPLACE_LSTAT.
73858         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
73859         and REPLACE_LSTAT.
73860         * modules/lstat (Files): Remove lib/lstat.h.
73861         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
73862         (Include): Specify <sys/stat.h> instead of lstat.h.
73863         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
73864         REPLACE_LSTAT.
73865         * NEWS: Mention the change.
73867 2008-10-20  Bruno Haible  <bruno@clisp.org>
73869         * modules/posix_spawn-tests: New file.
73870         * tests/test-posix_spawn3.c: New file.
73872 2008-10-20  Bruno Haible  <bruno@clisp.org>
73874         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
73875         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
73876         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
73877         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
73878         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
73880 2008-10-20  Bruno Haible  <bruno@clisp.org>
73882         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
73883         of posix_spawn on AIX 5.3.
73885 2008-10-20  Bruno Haible  <bruno@clisp.org>
73887         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
73889 2008-10-20  Bruno Haible  <bruno@clisp.org>
73891         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
73892         of AC_LANG_PROGRAM.
73894 2008-10-20  Simon Josefsson  <simon@josefsson.org>
73896         * lib/netdb.in.h: Don't define GNU specific constants until they
73897         are supported or needed.  Reported by Bruno Haible
73898         <bruno@clisp.org>.
73900 2008-10-20  Simon Josefsson  <simon@josefsson.org>
73902         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
73904 2008-10-20  Simon Josefsson  <simon@josefsson.org>
73906         * lib/getaddrinfo.h: Remove file.
73907         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
73908         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
73909         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
73910         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
73911         * modules/netdb: Substitute GNULIB_GETADDRINFO.
73912         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
73913         * tests/test-getaddrinfo.c: Likewise.
73914         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
73915         * NEWS: Mention change.
73917 2008-10-19  Bruno Haible  <bruno@clisp.org>
73919         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
73921 2008-10-19  Bruno Haible  <bruno@clisp.org>
73923         * lib/wait-process.c: Include simply <sys/wait.h>.
73924         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
73925         WIFSTOPPED): Remove fallback definitions.
73926         * modules/wait-process (Depends-on): Add sys_wait.
73928         New module 'sys_wait'.
73929         * modules/sys_wait: New file.
73930         * lib/sys_wait.in.h: New file, partially copied from
73931         lib/wait-process.c.
73932         * m4/sys_wait_h.m4: New file.
73933         * doc/posix-headers/sys_wait.texi: Mention the new module.
73935 2008-10-19  Bruno Haible  <bruno@clisp.org>
73937         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
73939 2008-10-19  Bruno Haible  <bruno@clisp.org>
73941         Assume that waitpid() fills an 'int' status, not a 'union wait'.
73942         * lib/wait-process.c (WAIT_T): Remove type.
73943         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
73944         (wait_subprocess): Update.
73946 2008-10-19  Bruno Haible  <bruno@clisp.org>
73948         New module 'atoll'.
73949         * modules/atoll: New file.
73950         * lib/stdlib.in.h (atoll): New declaration.
73951         * lib/atoll.c: New file, from glibc with modifications.
73952         * m4/atoll.m4: New file.
73953         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
73954         HAVE_ATOLL.
73955         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
73956         * doc/posix-functions/atoll.texi: Mention the new module.
73958 2008-10-19  Bruno Haible  <bruno@clisp.org>
73960         Add strtoull() declaration to <stdlib.h>.
73961         * lib/stdlib.in.h (strtoull): New declaration.
73962         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
73963         Set HAVE_STRTOULL.
73964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
73965         HAVE_STRTOULL.
73966         * modules/strtoull (Depends-on): Add stdlib.
73967         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73968         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
73969         HAVE_STRTOULL.
73971 2008-10-19  Bruno Haible  <bruno@clisp.org>
73973         Add strtoll() declaration to <stdlib.h>.
73974         * lib/stdlib.in.h (strtoll): New declaration.
73975         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
73976         Set HAVE_STRTOLL.
73977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
73978         HAVE_STRTOLL.
73979         * modules/strtoll (Depends-on): Add stdlib.
73980         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73981         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
73983 2008-10-19  Bruno Haible  <bruno@clisp.org>
73985         * modules/bcopy (Depends-on): Add strings.
73986         (Include): Specify <strings.h>.
73988 2008-10-19  Bruno Haible  <bruno@clisp.org>
73990         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
73992 2008-10-19  Bruno Haible  <bruno@clisp.org>
73994         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
73995         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
73996         mingw.
73998 2008-10-19  Bruno Haible  <bruno@clisp.org>
74000         * lib/atanl.c: Don't include isnanl.h.
74001         * lib/cosl.c: Likewise.
74002         * lib/ldexpl.c: Likewise.
74003         * lib/logl.c: Likewise.
74004         * lib/sinl.c: Likewise.
74005         * lib/sqrtl.c: Likewise.
74006         * lib/tanl.c: Likewise.
74008         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
74009         * lib/isnanf.h: Remove file.
74010         * lib/isnand.h: Remove file.
74011         * lib/isnanl.h: Remove file.
74012         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
74013         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
74014         macros.
74015         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
74016         HAVE_ISNANF, don't define it as a C macro.
74017         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
74018         HAVE_ISNAND, don't define it as a C macro.
74019         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
74020         HAVE_ISNANL, don't define it as a C macro.
74021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
74022         HAVE_ISNAN[FDL].
74023         * modules/isnanf (Files): Remove lib/isnanf.h.
74024         (Depends-on): Add math.
74025         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74026         (Include): Specify <math.h> instead of isnanf.h.
74027         * modules/isnand (Files): Remove lib/isnand.h.
74028         (Depends-on): Add math.
74029         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74030         (Include): Specify <math.h> instead of isnand.h.
74031         * modules/isnanl (Files): Remove lib/isnanl.h.
74032         (Depends-on): Add math.
74033         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74034         (Include): Specify <math.h> instead of isnanl.h.
74035         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
74036         HAVE_ISNAN[FDL].
74037         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
74038         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
74039         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
74040         * NEWS: Mention the change.
74042 2008-10-18  Bruno Haible  <bruno@clisp.org>
74044         Add getusershell(), setusershell(), endusershell() declarations to
74045         <unistd.h>.
74046         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
74047         declarations.
74048         * lib/getusershell.c: Include unistd.h.
74049         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
74050         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
74051         HAVE_GETUSERSHELL.
74052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
74053         and HAVE_GETUSERSHELL.
74054         * modules/getusershell (Depends-on): Add unistd, extensions.
74055         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74056         (Include): Specify <unistd.h>.
74057         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
74058         HAVE_GETUSERSHELL.
74060 2008-10-18  Bruno Haible  <bruno@clisp.org>
74062         Add a getloadavg() declaration to <stdlib.h>.
74063         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
74064         getloadavg declaration.
74065         (getloadavg): New declaration.
74066         * lib/getloadavg.c: Include <stdlib.h> first.
74067         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
74068         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
74069         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
74070         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
74071         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
74072         * modules/getloadavg (Depends-on): Add stdlib, extensions.
74073         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74074         (Include): Specify <stdlib.h>.
74075         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
74076         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
74078 2008-10-18  Bruno Haible  <bruno@clisp.org>
74080         * lib/dirchownmod.c: Don't include lchmod.h.
74082         Move the lchmod() declaration to <sys/stat.h>.
74083         * lib/lchmod.h: Remove file.
74084         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
74085         (lchmod): New declaration, moved here from lib/lchown.h.
74086         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
74087         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
74088         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
74089         and HAVE_LCHMOD.
74090         * modules/lchmod (Files): Remove lib/lchmod.h.
74091         (Depends-on): Add sys_stat, extensions.
74092         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
74093         (Include): Specify <sys/stat.h> instead of lchmod.h.
74094         * modules/sys_stat (Depends-on): Add link-warning.
74095         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
74096         definition of GL_LINK_WARNING.
74097         * NEWS: Mention the change.
74099 2008-10-18  Bruno Haible  <bruno@clisp.org>
74101         * lib/fchdir.c: Don't include dirfd.h.
74102         * lib/fts.c: Likewise.
74103         * lib/getcwd.c: Likewise.
74104         * lib/glob.c: Likewise.
74106         Move the dirfd() declaration to <dirent.h>.
74107         * lib/dirfd.h: Remove file.
74108         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
74109         (dirfd): New declaration.
74110         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
74111         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
74112         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
74113         HAVE_DECL_DIRFD.
74114         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
74115         HAVE_DECL_DIRFD.
74116         * modules/dirfd (Files): Remove lib/dirfd.h.
74117         (Depends-on): Add dirent, extensions.
74118         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
74119         (Include): Specify <dirent.h> instead of dirfd.h.
74120         * modules/dirent (Depends-on): Add link-warning.
74121         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
74122         definition of GL_LINK_WARNING.
74123         * NEWS: Mention the change.
74125 2008-10-18  Bruno Haible  <bruno@clisp.org>
74127         Move the euidaccess() declaration to <unistd.h>.
74128         * lib/euidaccess.h: Remove file.
74129         * lib/unistd.in.h (euidaccess): New declaration.
74130         * lib/euidaccess.c: Don't include euidaccess.h.
74131         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
74132         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
74133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
74134         and HAVE_EUIDACCESS.
74135         * modules/euidaccess (Files): Remove lib/euidaccess.h.
74136         (Depends-on): Add unistd.
74137         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74138         (Include): Specify <unistd.h> instead of euidaccess.h.
74139         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
74140         HAVE_EUIDACCESS.
74141         * NEWS: Mention the change.
74143 2008-10-18  Bruno Haible  <bruno@clisp.org>
74145         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
74147         Move the getdomainname() declaration to <unistd.h>.
74148         * lib/getdomainname.h: Remove file.
74149         * lib/unistd.in.h (getdomainname): New declaration.
74150         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
74151         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
74152         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
74153         HAVE_GETDOMAINNAME.
74154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74155         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
74156         * modules/getdomainname (Files): Remove lib/getdomainname.h.
74157         (Depends-on): Add unistd, extensions.
74158         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74159         (Includes): Specify <unistd.h> instead of getdomainname.h.
74160         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
74161         HAVE_GETDOMAINNAME.
74162         * NEWS: Mention the change.
74164 2008-10-18  Bruno Haible  <bruno@clisp.org>
74166         * modules/dirent: New file.
74167         * m4/dirent_h.m4: New file.
74168         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
74169         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
74170         * modules/fchdir (Files): Remove lib/dirent.in.h.
74171         (Depends-on): Add dirent.
74172         (Makefile.am): Move rules to modules/dirent.
74173         * doc/posix-headers/dirent.texi: Mention the new module.
74175 2008-10-18  Bruno Haible  <bruno@clisp.org>
74177         Avoid -Wunused-parameter warnings in public gnulib header files.
74178         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
74179         macro.
74180         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
74182 2008-10-18  Bruno Haible  <bruno@clisp.org>
74184         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
74185         * doc/glibc-functions/error.texi: Mention the module 'error'.
74186         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
74187         * doc/glibc-functions/getdomainname.texi: Mention the module
74188         'getdomainname'.
74189         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
74190         * doc/glibc-functions/getpagesize.texi: Mention the module
74191         'getpagesize'.
74192         * doc/glibc-functions/getusershell.texi: Mention the module
74193         'getusershell'.
74194         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
74195         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
74196         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
74197         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
74198         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
74199         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
74200         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
74201         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
74202         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
74203         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
74204         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
74205         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
74206         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
74207         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
74209 2008-10-17  Bruno Haible  <bruno@clisp.org>
74211         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
74212         HP-UX and IRIX, use -0.0L.
74213         * tests/test-ceill.c (minus_zero): Likewise.
74214         * tests/test-floorl.c (minus_zero): Likewise.
74215         * tests/test-frexpl.c (minus_zero): Likewise.
74216         * tests/test-isnan.c (minus_zerol): Likewise.
74217         * tests/test-isnanl.h (minus_zero): Likewise.
74218         * tests/test-ldexpl.c (minus_zero): Likewise.
74219         * tests/test-roundl.c (minus_zero): Likewise.
74220         * tests/test-signbit.c (minus_zerol): Likewise.
74221         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
74222         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
74223         * tests/test-truncl.c (minus_zero): Likewise.
74224         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
74225         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
74226         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
74227         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
74229 2008-10-17  Bruno Haible  <bruno@clisp.org>
74231         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
74232         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
74233         that it gets activated only for gcc >= 3.0.
74234         * lib/dirent.in.h: Likewise.
74235         * lib/errno.in.h: Likewise.
74236         * lib/fcntl.in.h: Likewise.
74237         * lib/float.in.h: Likewise.
74238         * lib/iconv.in.h: Likewise.
74239         * lib/inttypes.in.h: Likewise.
74240         * lib/locale.in.h: Likewise.
74241         * lib/math.in.h: Likewise.
74242         * lib/netdb.in.h: Likewise.
74243         * lib/netinet_in.in.h: Likewise.
74244         * lib/search.in.h: Likewise.
74245         * lib/signal.in.h: Likewise.
74246         * lib/spawn.in.h: Likewise.
74247         * lib/stdarg.in.h: Likewise.
74248         * lib/stdint.in.h: Likewise.
74249         * lib/stdio.in.h: Likewise.
74250         * lib/stdlib.in.h: Likewise.
74251         * lib/string.in.h: Likewise.
74252         * lib/strings.in.h: Likewise.
74253         * lib/sys_file.in.h: Likewise.
74254         * lib/sys_ioctl.in.h: Likewise.
74255         * lib/sys_select.in.h: Likewise.
74256         * lib/sys_socket.in.h: Likewise.
74257         * lib/sys_stat.in.h: Likewise.
74258         * lib/sys_time.in.h: Likewise.
74259         * lib/sysexits.in.h: Likewise.
74260         * lib/time.in.h: Likewise.
74261         * lib/unistd.in.h: Likewise.
74262         * lib/wchar.in.h: Likewise.
74263         * lib/wctype.in.h: Likewise.
74264         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74266 2008-10-17  Jim Meyering  <meyering@redhat.com>
74268         ignore-value: don't depend on inline module
74269         * modules/ignore-value (Depends-on): Remove 'inline'.
74270         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
74271         Suggestion from Bruno Haible.
74273 2008-10-17  Bruno Haible  <bruno@clisp.org>
74275         New implementation of condition variables for Win32.
74276         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
74277         (gl_linked_waitqueue_t): New type.
74278         (gl_cond_t): Use it.
74279         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
74280         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
74281         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
74282         (glthread_cond_init_func, glthread_cond_wait_func,
74283         glthread_cond_timedwait_func, glthread_cond_signal_func,
74284         glthread_cond_broadcast_func, glthread_cond_destroy_func):
74285         Reimplemented on the basis of gl_linked_waitqueue_t.
74286         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
74287         gl_waitqueue_t.
74288         (gl_rwlock_t): Update.
74289         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
74291 2008-10-17  Simon Josefsson  <simon@josefsson.org>
74293         * modules/recvfrom (Depends-on): Add dependency on getpeername.
74294         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74296 2008-10-17  Jim Meyering  <meyering@redhat.com>
74298         ignore-value: new module
74299         * modules/ignore-value: New file.
74300         * lib/ignore-value.h: New file.
74301         * MODULES.html.sh (Compiler warning management): New section,
74302         just for this module.  More to come.
74304 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74306         open-safer.c: avoid 'signed and unsigned in conditional...' warning
74307         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
74308         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
74310 2008-10-16  Jim Meyering  <meyering@redhat.com>
74312         openat-die.c: avoid 'no previous prototype' warning
74313         * lib/openat-die.c: Include "openat.h".
74314         Reported by Reuben Thomas <rrt@sc3d.org>.
74316 2008-10-16  Simon Josefsson  <simon@josefsson.org>
74318         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
74319         * lib/netdb.in.h: Fix typo.
74320         Reported by Bruno Haible  <bruno@clisp.org>
74322         * lib/netdb.in.h: Include sys/socket.h for platforms without
74323         netdb.h, to get structures like hostent on MinGW.
74324         * modules/netdb (Depends-on): Add sys_socket.
74326 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74328         * modules/netdb, modules/netdb-tests: New file.
74329         * m4/netdb_h.m4: New file.
74330         * lib/netdb.in.h: Add, currently just an empty file pending
74331         definitions.
74332         * tests/test-netdb.c: New file.
74333         * doc/posix-headers/netdb.texi: Mention that we replace it if
74334         needed.
74335         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74336         netdb.
74338 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74340         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
74341         with code.
74343 2008-10-13  Bruno Haible  <bruno@clisp.org>
74345         * lib/glthread/cond.c (glthread_cond_wait_func,
74346         glthread_cond_timedwait_func): Add a comment.
74348 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74350         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
74351         * tests/test-select.c: Likewise,
74353 2008-10-13  Bruno Haible  <bruno@clisp.org>
74355         * lib/glthread/cond.c (glthread_cond_wait_func,
74356         glthread_cond_timedwait_func): Fix variable name.
74357         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74359 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
74361         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
74362         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
74363         struct sockaddr.sa_len.
74364         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
74366 2008-10-13  Simon Josefsson  <simon@josefsson.org>
74368         * build-aux/pmccabe2html: Add css and css_url parameters.
74370 2008-10-12  Bruno Haible  <bruno@clisp.org>
74372         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
74373         calling aclx_get.
74374         Reported by Rainer Tammer <tammer@tammer.net>.
74376 2008-10-12  Bruno Haible  <bruno@clisp.org>
74378         Use msvcrt aware primitives for creation/termination of Win32 threads.
74379         * lib/glthread/thread.c: Include <process.h>.
74380         (glthread_create_func): Use _beginthreadex instead of CreateThread.
74381         (wrapper_func): Update signature.
74382         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
74384 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74385             Bruno Haible  <bruno@clisp.org>
74387         Provide a Win32 implementation of the 'cond' module.
74388         * lib/glthread/cond.h [USE_WIN32]: New implementation.
74389         * lib/glthread/cond.c (glthread_cond_init_func,
74390         glthread_cond_wait_func, glthread_cond_timedwait_func,
74391         glthread_cond_signal_func, glthread_cond_broadcast_func,
74392         glthread_cond_destroy_func) [USE_WIN32]: New functions.
74393         * modules/cond (Dependencies): Add gettimeofday.
74395 2008-10-11  Bruno Haible  <bruno@clisp.org>
74397         Make sleep work on older versions of mingw.
74398         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
74399         only whether it exists.
74400         * doc/posix-functions/sleep.texi: Mention the problem with older
74401         versions of mingw.
74403 2008-10-11  Bruno Haible  <bruno@clisp.org>
74405         New module 'shutdown'.
74406         * modules/shutdown: New file.
74407         * lib/sys_socket.in.h (shutdown): New declaration.
74408         * lib/winsock.c (shutdown): New function.
74409         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
74410         GNULIB_SHUTDOWN.
74411         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
74412         * doc/posix-functions/shutdown.texi: Document the new module.
74414 2008-10-11  Jim Meyering  <meyering@redhat.com>
74416         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
74418 2008-10-11  Bruno Haible  <bruno@clisp.org>
74420         New module 'fclose'.
74421         * modules/fclose: New file.
74422         * lib/stdio.in.h (fclose): New declaration.
74423         * lib/fclose.c: New file.
74424         * m4/fclose.m4: New file.
74425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
74426         REPLACE_FCLOSE.
74427         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
74428         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
74429         REPLACE_FCLOSE.
74430         * modules/close (Depends-on): fclose.
74431         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
74433 2008-10-11  Bruno Haible  <bruno@clisp.org>
74435         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
74436         set errno and don't call _close.
74438 2008-10-10  Bruno Haible  <bruno@clisp.org>
74440         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
74441         ACL, not afterwards. Fixes test failure on Cygwin.
74443 2008-10-09  Ben Pfaff  <blp@gnu.org>
74445         * build-aux/announce-gen: Fix gnulib version related part of usage
74446         message.  Die with a useful error message if no tarballs are
74447         found.
74449 2008-10-10  Jim Meyering  <meyering@redhat.com>
74451         bootstrap: use git's --depth=N option only if it's supported
74452         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
74453         recognize the --depth option.  Reported by Pádraig Brady.
74455 2008-10-09  Bruno Haible  <bruno@clisp.org>
74457         New module 'ioctl'.
74458         * modules/ioctl: New file.
74459         * lib/sys_socket.in.h (ioctl): Remove declaration.
74460         * lib/winsock.c: Include <sys/ioctl.h>.
74461         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
74462         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
74463         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
74464         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
74465         * doc/posix-functions/ioctl.texi: Mention the new module.
74467 2008-10-09  Bruno Haible  <bruno@clisp.org>
74469         New module 'sys_ioctl'.
74470         * lib/sys_ioctl.in.h: New file.
74471         * m4/sys_ioctl_h.m4: New file.
74472         * modules/sys_ioctl: New file.
74473         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
74475 2008-10-09  Bruno Haible  <bruno@clisp.org>
74477         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
74478         * lib/winsock.c: Include <stdarg.h>.
74479         (rpl_ioctl): Change to second argument 'int' and then varargs.
74481 2008-10-09  Bruno Haible  <bruno@clisp.org>
74483         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
74484         when the sys_socket module is present and the system has <winsock2.h>.
74486 2008-10-09  Bruno Haible  <bruno@clisp.org>
74488         * doc/posix-functions/close.texi: Mention module 'close' instead of
74489         module 'sys_socket'.
74491 2008-10-09  Bruno Haible  <bruno@clisp.org>
74493         * doc/glibc-headers/sys_ioctl.texi: New file.
74494         * doc/gnulib.texi: Include it.
74496 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74497             Bruno Haible  <bruno@clisp.org>
74499         Combine the two replacements of 'close'.
74500         * lib/sys_socket.in.h (close): Define to a reminder to include
74501         <unistd.h>.
74502         (_gl_close_fd_maybe_socket): New declaration.
74503         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
74504         * lib/winsock.c (close): Remove undefinition.
74505         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
74506         needed for the gnulib module 'close'.
74507         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
74508         define to an error symbol or to a warning, if suitable.
74509         * lib/close.c: Include <sys/socket.h>.
74510         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
74511         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
74512         UNISTD_H_HAVE_WINSOCK2_H.
74513         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
74514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74515         UNISTD_H_HAVE_WINSOCK2_H.
74516         * modules/sys_socket (Files): Add m4/unistd_h.m4.
74517         (configure.ac): Set a module indicator.
74518         (Makefile.am): Substitute GNULIB_CLOSE.
74519         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
74520         * modules/poll-tests (Depends-on): Add close.
74521         * modules/select-tests (Depends-on): Likewise.
74523 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74524             Bruno Haible  <bruno@clisp.org>
74526         New module 'close'.
74527         * modules/close: New file.
74528         * lib/unistd.in.h (close): Move declaration out of the
74529         FCHDIR_REPLACEMENT scope.
74530         (_gl_unregister_fd): New declaration.
74531         * lib/close.c: New file.
74532         * lib/fchdir.c (rpl_close): Remove function.
74533         * m4/close.m4: New file.
74534         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
74535         close.
74536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
74537         REPLACE_CLOSE.
74538         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
74539         REPLACE_CLOSE.
74540         * modules/fchdir (Depends-on): Add close.
74542 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74543             Bruno Haible  <bruno@clisp.org>
74545         * lib/fcntl.in.h (open): Simplify conditionals.
74546         (_gl_register_fd): New declaration.
74547         * lib/fchdir.c (rpl_open): Remove function.
74548         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
74549         also.
74550         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
74551         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
74552         open.
74554 2008-10-09  Jim Meyering  <meyering@redhat.com>
74556         GNUmakefile: use the more name-space-friendly "_version"
74557         * top/GNUmakefile (_dummy): Update.
74558         (_version): Rename from "version".
74560 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74561             Bruno Haible  <bruno@clisp.org>
74563         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
74564         rpl_close.
74565         (_gl_register_fd): New function, extracted from rpl_open.
74566         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
74567         (rpl_open, rpl_opendir): Use _gl_register_fd.
74569 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74571         Fix organization of 'open' replacement.
74572         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
74573         (gl_FUNC_OPEN): Use it.
74574         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
74576 2008-10-08  Bruno Haible  <bruno@clisp.org>
74578         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
74580 2008-10-08  Simon Josefsson  <simon@josefsson.org>
74582         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
74583         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
74584         listen).
74586 2008-10-08  Eric Blake  <ebb9@byu.net>
74588         GNUmakefile: add 'make version' target
74589         * top/GNUmakefile (_curr-ver): Split version update rules...
74590         (version): ...into a target.
74592 2008-10-07  Bruno Haible  <bruno@clisp.org>
74594         Use a more portable replacement expression for -0.0L.
74595         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
74596         instead of -0.0L. Fix m4 quotation.
74598         * tests/test-signbit.c: Include <float.h>.
74599         (minus_zero): New variable.
74600         (test_signbitl): Use minus_zero instead of -zero.
74601         * modules/signbit-tests (Depends-on): Add float.
74603         * tests/test-ceill.c: Include <float.h>.
74604         (zero): Remove variable.
74605         (minus_zero): New variable.
74606         (main): Use minus_zero instead of -zero.
74607         * modules/ceill-tests (Depends-on): Add float.
74609         * tests/test-floorl.c: Include <float.h>.
74610         (zero): Remove variable.
74611         (minus_zero): New variable.
74612         (main): Use minus_zero instead of -zero.
74613         * modules/floorl-tests (Depends-on): Add float.
74615         * tests/test-roundl.c: Include <float.h>.
74616         (zero): Remove variable.
74617         (minus_zero): New variable.
74618         (main): Use minus_zero instead of -zero.
74619         * modules/roundl-tests (Depends-on): Add float.
74621         * tests/test-truncl.c: Include <float.h>.
74622         (zero): Remove variable.
74623         (minus_zero): New variable.
74624         (main): Use minus_zero instead of -zero.
74625         * modules/truncl-tests (Depends-on): Add float.
74627         * tests/test-frexpl.c (zero): Remove variable.
74628         (minus_zero): New variable.
74629         (main): Use minus_zero instead of -zero.
74630         * modules/frexpl-tests (Depends-on): Add float.
74632         * tests/test-isnan.c (zerol): Remove variable.
74633         (minus_zerol): New variable.
74634         (test_long_double): Use minus_zerol instead of -zerol.
74635         * modules/isnan-tests (Depends-on): Add float.
74637         * tests/test-isnanl.h (zero): Remove variable.
74638         (minus_zero): New variable.
74639         (main): Use minus_zero instead of -zero.
74640         * modules/isnanl-nolibm-tests (Depends-on): Add float.
74641         * modules/isnanl-tests (Depends-on): Add float.
74643         * tests/test-ldexpl.c (zero): Remove variable.
74644         (minus_zero): New variable.
74645         (main): Use minus_zero instead of -zero.
74646         * modules/ldexpl-tests (Depends-on): Add float.
74648         * tests/test-snprintf-posix.h (zerol): Remove variable.
74649         (minus_zerol): New variable.
74650         (test_function): Use minus_zerol instead of -zerol.
74651         * modules/snprintf-posix-tests (Depends-on): Add float.
74652         * modules/vsnprintf-posix-tests (Depends-on): Add float.
74654         * tests/test-sprintf-posix.h (zerol): Remove variable.
74655         (minus_zerol): New variable.
74656         (test_function): Use minus_zerol instead of -zerol.
74657         * modules/sprintf-posix-tests (Depends-on): Add float.
74658         * modules/vsprintf-posix-tests (Depends-on): Add float.
74660         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
74661         (minus_zerol): New variable.
74662         (test_function): Use minus_zerol instead of -zerol.
74663         * modules/vasnprintf-posix-tests (Depends-on): Add float.
74665         * tests/test-vasprintf-posix.c (zerol): Remove variable.
74666         (minus_zerol): New variable.
74667         (test_function): Use minus_zerol instead of -zerol.
74668         * modules/vasprintf-posix-tests (Depends-on): Add float.
74670 2008-10-07  Simon Josefsson  <simon@josefsson.org>
74672         * MODULES.html.sh (Support for building documentation): Mention
74673         pmccabe2html.  Sort entries.
74675         Add pmccabe2html module, from gnupdf.
74676         * build-aux/pmccabe.css: New file.
74677         * build-aux/pmccabe2html: New file.
74678         * m4/pmccabe2html.m4: New file.
74679         * modules/pmccabe2html: New file.
74681 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
74683         flock: new module
74684         * MODULES.html.sh: Add to list of modules.
74685         * lib/flock.c: flock implementation for Windows and Unix systems
74686         which have fcntl.
74687         * doc/glibc-functions/flock.texi: Update documentation.
74688         * lib/sys_file.in.h: <sys/file.h> header file.
74689         * m4/flock.m4: M4 macros.
74690         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
74691         * modules/flock: flock module.
74692         * modules/flock-tests: flock tests module.
74693         * modules/sys_file: sys/file.h module.
74694         * tests/test-flock.c: test suite for flock.
74696 2008-10-06  Jim Meyering  <meyering@redhat.com>
74698         bootstrap: check for LT_INIT more portably still ;-)
74699         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
74700         Spotted by Bruno Haible.
74702 2008-10-06  Eric Blake  <ebb9@byu.net>
74704         test-signbit: avoid tripping Irix cc bug on -0.0L
74705         * tests/test-signbit.c (minus_zerol): Delete, and replace with
74706         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
74707         entire testsuite consistent and avoids an Irix 6.2 bug.
74709 2008-10-05  Bruno Haible  <bruno@clisp.org>
74710             Jim Meyering  <jim@meyering.net>
74712         Add an option for ignoring EPIPE during close_stdout.
74713         * lib/closeout.h: Include <stdbool.h>.
74714         (close_stdout_set_ignore_EPIPE): New declaration.
74715         * lib/closeout.c: Include <stdbool.h>.
74716         (ignore_EPIPE): New variable.
74717         (close_stdout_set_ignore_EPIPE): New function.
74718         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
74719         * lib/close-stream.c (close_stream): Mention the possible EPIPE
74720         failure.
74721         * modules/closeout (Depends-on): Add stdbool.
74723 2008-10-05  Bruno Haible  <bruno@clisp.org>
74725         * modules/accept: New file.
74726         * modules/bind: New file.
74727         * modules/connect: New file.
74728         * modules/getpeername: New file.
74729         * modules/getsockname: New file.
74730         * modules/getsockopt: New file.
74731         * modules/listen: New file.
74732         * modules/recv: New file.
74733         * modules/recvfrom: New file.
74734         * modules/send: New file.
74735         * modules/sendto: New file.
74736         * modules/setsockopt: New file.
74737         * modules/socket: New file.
74738         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
74739         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
74740         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
74741         the particular module is requested. Add a link warning when the
74742         particular module is not requested.
74743         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
74744         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
74745         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
74746         the particular module is requested.
74747         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
74748         gl_SYS_SOCKET_H_DEFAULTS): New macros.
74749         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
74750         * modules/sys_socket (Depends-on): Add link-warning.
74751         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
74752         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
74753         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
74754         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
74755         GL_LINK_WARNING.
74756         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
74757         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
74758         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
74759         * doc/posix-functions/getpeername.texi: Mention the new module
74760         'getpeername'.
74761         * doc/posix-functions/getsockname.texi: Mention the new module
74762         'getsockname'.
74763         * doc/posix-functions/getsockopt.texi: Mention the new module
74764         'getsockopt'.
74765         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
74766         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
74767         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
74768         * doc/posix-functions/send.texi: Mention the new module 'send'.
74769         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
74770         * doc/posix-functions/setsockopt.texi: Mention the new module
74771         'setsockopt'.
74772         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
74773         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
74774         listen, connect, accept.
74775         * modules/select-tests (Depends-on): Likewise.
74777 2008-10-05  Bruno Haible  <bruno@clisp.org>
74779         * lib/winsock.c (strerror): Remove unused #undef.
74780         (rpl_close): Remove unused local variable.
74782         * modules/sys_socket (Depends-on); Add errno.
74784 2008-10-05  Bruno Haible  <bruno@clisp.org>
74786         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
74787         (select): Add a link warning when the 'select' module is not used.
74788         * modules/sys_select (Depends-on): Add link-warning.
74789         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
74790         Suggested by Paolo Bonzini.
74792 2008-10-05  Jim Meyering  <meyering@redhat.com>
74794         bootstrap: check for LT_INIT more portably
74795         * build-aux/bootstrap: Avoid using grep -E, since it's not
74796         portable enough.  Suggestion from Bruno Haible.
74798 2008-10-05  Bruno Haible  <bruno@clisp.org>
74800         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
74801         as being fixed by gnulib.
74803 2008-10-05  Bruno Haible  <bruno@clisp.org>
74805         * modules/select-tests: New file, mostly copied from
74806         modules/sys_select-tests.
74807         * tests/test-select.c: New file, mostly copied from
74808         tests/test-sys_select.c.
74809         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
74810         * modules/sys_select-tests (Depends-on): Remove all dependencies.
74811         (Makefile.am): Remove test_sys_select_LDADD.
74813         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
74814         to an undefined symbol, for an error message.
74815         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
74816         (gl_SYS_SELECT_H_DEFAULTS): New macro.
74817         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
74818         winsock-select.c here.
74819         * modules/sys_select (Files): Remove lib/winsock-select.c.
74820         (Depends-on): Remove alloca.
74821         (Makefile.am): Substitute GNULIB_SELECT.
74822         * modules/select: New file.
74823         * doc/posix-functions/select.texi: Update.
74825 2008-10-05  Bruno Haible  <bruno@clisp.org>
74827         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
74828         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
74829         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
74830         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
74831         getdtablesize.
74832         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
74833         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
74835 2008-10-05  Bruno Haible  <bruno@clisp.org>
74837         * modules/getdtablesize-tests: New file.
74838         * tests/test-getdtablesize.c: New file.
74840         New module 'getdtablesize'.
74841         * lib/unistd.in.h (getdtablesize): New declaration.
74842         * lib/getdtablesize.c: New file.
74843         * m4/getdtablesize.m4: New file.
74844         * modules/getdtablesize: New file.
74845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74846         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
74847         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
74848         HAVE_GETDTABLESIZE.
74849         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
74851 2008-10-05  Bruno Haible  <bruno@clisp.org>
74853         * modules/sched (Makefile.am): Fix typo.
74854         Reported by Simon Josefsson.
74856 2008-10-05  Jim Meyering  <meyering@redhat.com>
74858         bootstrap: check for LT_INIT, too
74859         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
74860         are deprecated.  Suggestion from Ralf Wildenhues.
74862 2008-10-05  Bruno Haible  <bruno@clisp.org>
74864         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
74865         overriding them by ours.
74866         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
74868 2008-10-05  Jim Meyering  <meyering@redhat.com>
74870         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
74871         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
74872         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
74874 2008-10-04  Bruno Haible  <bruno@clisp.org>
74876         * modules/dup2 (License): Change to LGPLv2+.
74877         * modules/sleep (License): Likewise.
74878         * modules/perror (License): Likewise.
74879         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
74880         Blake.
74881         * modules/signal (License): Likewise.
74882         * modules/sigprocmask (License): Likewise.
74883         * modules/raise (License): Change to LGPLv2+, with approval by Jim
74884         Meyering.
74886 2008-10-04  Bruno Haible  <bruno@clisp.org>
74888         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
74889         Reported by Rainer Tammer <tammer@tammer.net>.
74891 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
74892             Bruno Haible  <bruno@clisp.org>
74894         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
74895         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
74896         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
74898 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
74900         filevercmp: new module
74901         * lib/filevercmp.h: New function filevercmp comparing version strings.
74902         * lib/filevercmp.c: Implementation of filevercmp function.
74903         * modules/filevercmp: Module metadata.
74904         * tests/test-filevercmp.c: Unit test for new module.
74905         * modules/filevercmp-tests: Unit test metadata.
74906         * MODULES.html.sh: Add filevercmp module.
74908 2008-10-03  Bruno Haible  <bruno@clisp.org>
74910         * lib/c-ctype.h: Add comment.
74911         Reported by Jim Meyering.
74913 2008-10-02  Bruno Haible  <bruno@clisp.org>
74915         * modules/posix_spawn-internal (Depends-on): Add 'open'.
74917 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
74919         * build-aux/bootstrap: Allow renaming bootstrap, and change the
74920         name of bootstrap.conf accordingly.
74922 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
74924         * build-aux/bootstrap: Install git-merge-changelog configuration
74925         items into .gitconfig if needed.
74927 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
74929         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
74930         git repository, and initialize/update it accordingly.
74932 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
74934         * modules/fsync-tests: New file.
74935         * tests/test-fsync.c: New file.
74937         New module 'fsync'.
74938         * lib/fsync.c: New file.
74939         * m4/fsync.m4: New file.
74940         * modules/fsync: New file.
74941         * lib/unistd.in.h (fsync): New declaration.
74942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
74943         GNULIB_FSYNC and HAVE_FSYNC.
74944         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
74945         * MODULES.html.sh (posix_functions): Add fsync.
74946         * doc/posix-functions/fsync.texi: Mention the new module.
74948 2008-10-02  Jim Meyering  <meyering@redhat.com>
74950         fts.c: sync with similar code from coreutils' remove.c
74951         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
74952         Guard also with "#if defined __linux__", since for now at least,
74953         this code is Linux-kernel-specific.
74955 2008-10-02  Jim Meyering  <meyering@redhat.com>
74957         fts: bug fixes
74958         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
74959         Include <sys/vfs.h>, not <sys/statfs.h>.
74961         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
74962         Include <sys/vfs.h>, not <sys/statfs.h>.
74964 2008-10-01  Bruno Haible  <bruno@clisp.org>
74966         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
74967         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
74968         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
74969         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
74970         * doc/posix-functions/posix_spawnp.texi: Likewise.
74971         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
74972         whether posix_spawn actually works.
74973         * m4/pipe.m4 (gl_PIPE): Likewise.
74974         * modules/execute (Files): Add m4/posix_spawn.m4.
74975         * modules/pipe (Files): Add m4/posix_spawn.m4.
74976         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
74978 2008-10-01  Jim Meyering  <meyering@redhat.com>
74980         remove trailing spaces
74981         * NEWS: Likewise.
74982         * lib/poll.c (poll): Likewise.
74983         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
74984         * lib/winsock.c (rpl_close): Likewise.
74985         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
74986         * modules/yield: Likewise.
74987         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
74988         * tests/test-sys_select.c (connect_to_socket): Likewise.
74990         fts.c: adjust a new interface to be more generally useful
74991         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
74992         (fts_build): Adjust caller.
74994 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74996         * modules/cond-tests: New file.
74997         * tests/test-cond.c: New file.
74999 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75000             Bruno Haible  <bruno@clisp.org>
75002         * modules/cond (Dependencies): Add errno, time.
75003         * lib/glthread/cond.h: Include <time.h>.
75004         (gl_cond_define, gl_cond_define_initialized): Use the same definition
75005         across platforms.
75007 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75008             Bruno Haible  <bruno@clisp.org>
75010         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
75012 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75013             Bruno Haible  <bruno@clisp.org>
75015         * modules/tls-tests (Depends-on): Add thread, yield.
75016         (configure.ac): Remove all checks.
75017         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
75018         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
75019         gl_thread_self): Remove definitions. Include glthread/thread.h and
75020         glthread/yield.h instead.
75021         (test_tls): Pass an additional NULL argument to gl_thread_join.
75023 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75024             Bruno Haible  <bruno@clisp.org>
75026         * modules/lock-tests (Depends-on): Add thread, yield.
75027         (configure.ac): Remove all checks.
75028         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
75029         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
75030         gl_thread_self): Remove definitions. Include glthread/thread.h and
75031         glthread/yield.h instead.
75032         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
75033         additional NULL argument to gl_thread_join.
75035 2008-09-30  Bruno Haible  <bruno@clisp.org>
75037         Fix the Win32 implementation of the 'thread' module.
75038         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
75039         pointer type.
75040         (gl_thread_self): Invoke gl_thread_self_func.
75041         (gl_thread_self_func): New declaration.
75042         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
75043         (do_init_self_key, init_self_key): New functions.
75044         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
75045         Remove some fields.
75046         (running_threads, running_lock): Remove variables.
75047         (get_current_thread_handle): New function.
75048         (gl_thread_self_func, wrapper_func, glthread_create_func,
75049         glthread_join_func, gl_thread_exit_func): Largely rewritten and
75050         simplified.
75052 2008-09-30  Bruno Haible  <bruno@clisp.org>
75054         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
75055         files.
75057 2008-09-30  Jim Meyering  <meyering@redhat.com>
75059         fts.m4: correct the test for statfs.f_type
75060         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
75061         when checking for statfs.f_type.
75063 2008-09-15  Simon Josefsson  <simon@josefsson.org>
75065         tests: avoid some compiler warnings
75066         * tests/test-memchr.c (main): Pass NULL indirectly.
75067         * tests/test-getdate.c (main): Remove unused variable 'ret'.
75069 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
75071         getdate.y: disallow countable dayshifts like "4 yesterday ago"
75072         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
75073         exactly specified dayshifts.
75074         (dayshift): New rule.
75075         (rel): Add dayshift.
75076         (relative_time_table) [tomorrow, yesterday, today, now]:
75077         Use tDAY_SHIFT in place of tDAY_UNIT.
75078         * tests/test-getdate.c: Add tests for now-disallowed countable
75079         dayshifts, e.g., "4 yesterday ago".
75081 2008-09-29  Bruno Haible  <bruno@clisp.org>
75083         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
75084         * tests/test-posix_spawn1.in.sh: Renamed from
75085         tests/test-posix_spawn.in.sh.
75086         * tests/test-posix_spawn2.c: New file.
75087         * tests/test-posix_spawn2.in.sh: New file.
75088         * modules/posix_spawnp-tests (Files): Update.
75089         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
75091 2008-09-29  Bruno Haible  <bruno@clisp.org>
75093         Propagate effects of putenv/setenv/unsetenv to child processes.
75094         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
75095         * lib/pipe.c (create_pipe): Likewise.
75097 2008-09-29  Bruno Haible  <bruno@clisp.org>
75099         Enable use of shell scripts as executables in mingw.
75100         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
75101         run the program as a shell script.
75102         * lib/pipe.c (create_pipe): Likewise.
75103         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
75104         resulting array.
75106 2008-09-29  Eric Blake  <ebb9@byu.net>
75108         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
75110 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
75112         * doc/posix-functions/accept.texi: Update mingw problems.
75113         * doc/posix-functions/bind.texi: Update mingw problems.
75114         * doc/posix-functions/close.texi: Update mingw problems.
75115         * doc/posix-functions/connect.texi: Update mingw problems.
75116         * doc/posix-functions/getpeername.texi: Update mingw problems.
75117         * doc/posix-functions/getsockname.texi: Update mingw problems.
75118         * doc/posix-functions/getsockopt.texi: Update mingw problems.
75119         * doc/posix-functions/ioctl.texi: Update mingw problems.
75120         * doc/posix-functions/listen.texi: Update mingw problems.
75121         * doc/posix-functions/recv.texi: Update mingw problems.
75122         * doc/posix-functions/recvfrom.texi: Update mingw problems.
75123         * doc/posix-functions/select.texi: Update mingw problems.
75124         * doc/posix-functions/send.texi: Update mingw problems.
75125         * doc/posix-functions/sendto.texi: Update mingw problems.
75126         * doc/posix-functions/setsockopt.texi: Update mingw problems.
75127         * doc/posix-functions/socket.texi: Update mingw problems.
75129 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
75130             Bruno Haible  <bruno@clisp.org>
75132         * lib/sys_select.in.h: Include sys/time.h.
75133         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
75134         * modules/sys_select: Depend on sys_time.
75135         * tests/test-sys_select.c: Test that sys/select.h defines struct
75136         timeval fully.
75138 2008-09-29  Bruno Haible  <bruno@clisp.org>
75140         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
75141         * lib/sys_select.in.h: Likewise.
75143 2008-09-29  Bruno Haible  <bruno@clisp.org>
75145         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
75147 2008-09-29  Bruno Haible  <bruno@clisp.org>
75149         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
75150         Set LIBSOCKET instead of augmenting LIBS.
75151         * modules/sockets (Link): New section.
75152         * modules/sockets-tests (test_sockets_LDADD): New variable.
75153         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
75154         * modules/poll-tests (test_poll_LDADD): New variable.
75155         * NEWS: Document the change.
75157 2008-09-29  Bruno Haible  <bruno@clisp.org>
75159         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
75160         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
75161         ARPA_INET_H directly.
75162         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75164 2008-09-28  Bruno Haible  <bruno@clisp.org>
75166         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
75167         from gl_HEADER_SYS_SOCKET.
75168         (gl_HEADER_SYS_SOCKET): Invoke it.
75169         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
75171 2008-09-28  Bruno Haible  <bruno@clisp.org>
75173         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
75174         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
75175         Needed on OSF/1 4.0.
75177 2008-09-28  Bruno Haible  <bruno@clisp.org>
75179         Override open more carefully.
75180         * lib/open.c (orig_open): New function.
75181         (rpl_open): Use orig_open instead of open.
75182         * lib/fcntl.in.h: Add special invocation convention.
75183         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
75184         (gl_FUNC_OPEN): Invoke it.
75186         Override freopen more carefully.
75187         * lib/freopen.c (orig_freopen): New function.
75188         (rpl_freopen): Use orig_freopen instead of freopen.
75189         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
75190         (gl_FUNC_FREOPEN): Invoke it.
75192         Override fopen more carefully.
75193         * lib/fopen.c (orig_fopen): New function.
75194         (rpl_fopen): Use orig_fopen instead of fopen.
75195         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
75196         (gl_FUNC_FOPEN): Invoke it.
75197         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
75199 2008-09-28  Bruno Haible  <bruno@clisp.org>
75201         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
75202         SIGPIPE.
75204 2008-09-28  Bruno Haible  <bruno@clisp.org>
75206         * tests/test-sigaction.c (handler, main): Disable the check whether
75207         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
75208         glibc systems with LinuxThreads.
75210 2008-09-28  Bruno Haible  <bruno@clisp.org>
75212         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
75214         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
75215         with AIX xlc.
75216         * lib/fcntl.in.h (open): Likewise.
75217         Reported by Rainer Tammer <tammer@tammer.net>.
75219 2008-09-28  Bruno Haible  <bruno@clisp.org>
75221         * modules/posix_spawnp-tests: New file.
75222         * tests/test-posix_spawn.c: New file.
75223         * tests/test-posix_spawn.in.sh: New file.
75225         New module 'posix_spawnp'.
75226         * modules/posix_spawnp: New file.
75227         * lib/spawnp.c: New file, from GNU libc with modifications.
75228         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
75230         New module 'posix_spawn'.
75231         * modules/posix_spawn: New file.
75232         * lib/spawn.c: New file, from GNU libc with modifications.
75233         * doc/posix-functions/posix_spawn.texi: Mention the new module.
75235         New module 'posix_spawnattr_destroy'.
75236         * modules/posix_spawnattr_destroy: New file.
75237         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
75238         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
75239         module.
75241         New module 'posix_spawnattr_setsigmask'.
75242         * modules/posix_spawnattr_setsigmask: New file.
75243         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
75244         modifications.
75245         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
75246         new module.
75248         New module 'posix_spawnattr_getsigmask'.
75249         * modules/posix_spawnattr_getsigmask: New file.
75250         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
75251         modifications.
75252         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
75253         new module.
75255         New module 'posix_spawnattr_setsigdefault'.
75256         * modules/posix_spawnattr_setsigdefault: New file.
75257         * lib/spawnattr_setdefault.c: New file, from GNU libc with
75258         modifications.
75259         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
75260         new module.
75262         New module 'posix_spawnattr_getsigdefault'.
75263         * modules/posix_spawnattr_getsigdefault: New file.
75264         * lib/spawnattr_getdefault.c: New file, from GNU libc with
75265         modifications.
75266         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
75267         new module.
75269         New module 'posix_spawnattr_setschedpolicy'.
75270         * modules/posix_spawnattr_setschedpolicy: New file.
75271         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
75272         modifications.
75273         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
75274         new module.
75276         New module 'posix_spawnattr_getschedpolicy'.
75277         * modules/posix_spawnattr_getschedpolicy: New file.
75278         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
75279         modifications.
75280         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
75281         new module.
75283         New module 'posix_spawnattr_setschedparam'.
75284         * modules/posix_spawnattr_setschedparam: New file.
75285         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
75286         modifications.
75287         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
75288         new module.
75290         New module 'posix_spawnattr_getschedparam'.
75291         * modules/posix_spawnattr_getschedparam: New file.
75292         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
75293         modifications.
75294         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
75295         new module.
75297         New module 'posix_spawnattr_setpgroup'.
75298         * modules/posix_spawnattr_setpgroup: New file.
75299         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
75300         modifications.
75301         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
75302         module.
75304         New module 'posix_spawnattr_getpgroup'.
75305         * modules/posix_spawnattr_getpgroup: New file.
75306         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
75307         modifications.
75308         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
75309         module.
75311         New module 'posix_spawnattr_setflags'.
75312         * modules/posix_spawnattr_setflags: New file.
75313         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
75314         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
75315         module.
75317         New module 'posix_spawnattr_getflags'.
75318         * modules/posix_spawnattr_getflags: New file.
75319         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
75320         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
75321         module.
75323         New module 'posix_spawnattr_init'.
75324         * modules/posix_spawnattr_init: New file.
75325         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
75326         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
75327         module.
75329         New module 'posix_spawn_file_actions_destroy'.
75330         * modules/posix_spawn_file_actions_destroy: New file.
75331         * lib/spawn_faction_destroy.c: New file, from GNU libc with
75332         modifications.
75333         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
75334         the new module.
75336         New module 'posix_spawn_file_actions_addopen'.
75337         * modules/posix_spawn_file_actions_addopen: New file.
75338         * lib/spawn_faction_addopen.c: New file, from GNU libc with
75339         modifications.
75340         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
75341         the new module.
75343         New module 'posix_spawn_file_actions_adddup2'.
75344         * modules/posix_spawn_file_actions_adddup2: New file.
75345         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
75346         modifications.
75347         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
75348         the new module.
75350         New module 'posix_spawn_file_actions_addclose'.
75351         * modules/posix_spawn_file_actions_addclose: New file.
75352         * lib/spawn_faction_addclose.c: New file, from GNU libc with
75353         modifications.
75354         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
75355         the new module.
75357         New module 'posix_spawn_file_actions_init'.
75358         * modules/posix_spawn_file_actions_init: New file.
75359         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
75360         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
75361         new module.
75363         New module 'posix_spawn-internal'.
75364         * modules/posix_spawn-internal: New file.
75365         * lib/spawn_int.h: New file, from GNU libc with modifications.
75366         * lib/spawni.c: New file, from GNU libc with modifications.
75367         * m4/posix_spawn.m4: New file.
75369         New module 'spawn'.
75370         * modules/spawn: New file.
75371         * lib/spawn.in.h: New file, from GNU libc with modifications.
75372         * m4/spawn_h.m4: New file.
75373         * doc/posix-headers/spawn.texi: Mention the new module.
75375 2008-09-28  Bruno Haible  <bruno@clisp.org>
75377         * modules/sched-tests: New file.
75378         * tests/test-sched.c: New file.
75380         New module 'sched'.
75381         * modules/sched: New file.
75382         * lib/sched.in.h: New file.
75383         * m4/sched_h.m4: New file.
75384         * doc/posix-headers/sched.texi: Mention the new module.
75386 2008-09-27  Eric Blake  <ebb9@byu.net>
75388         Fix previous patch, and tweak references to $0.
75389         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
75390         (func_version, func_gnulib_dir): Don't call this program
75391         gnulib-tool.
75392         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
75393         with using $0 in function.
75394         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
75395         (func_fatal_error): Reuse the name the user invoked us with.
75397 2008-09-27  Bruno Haible  <bruno@clisp.org>
75399         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
75400         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
75401         (gl_ICONV_H): Not here.
75402         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
75403         instead of assigning ICONV_H directly.
75405         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
75406         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
75407         WCHAR_H directly.
75409 2008-09-27  Bruno Haible  <bruno@clisp.org>
75411         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
75412         * modules/arpa_inet (Depends-on): Add link-warning.
75413         (Makefile.am): Insert the definition of GL_LINK-WARNING.
75414         * modules/unistd (Makefile.am): Likewise.
75416 2008-09-26  Bruno Haible  <bruno@clisp.org>
75418         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
75419         variables.
75420         (func_version): Essentially copied from gnulib-tool.
75421         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
75422         func_readlink): Copied from gnulib-tool.
75424 2008-09-26  Bruno Haible  <bruno@clisp.org>
75426         * gnulib-tool (func_version): Change directory to $gnulib_dir before
75427         invoking git-version-gen.
75429 2008-09-26  Bruno Haible  <bruno@clisp.org>
75431         * posix-modules: Update to directory names changed on 2008-01-19.
75432         Remove commas in output before splitting into words. No more need to
75433         avoid 'ftruncate' since 2007-02-19.
75435 2008-09-26  Bruno Haible  <bruno@clisp.org>
75437         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
75439 2008-09-26  Bruno Haible  <bruno@clisp.org>
75441         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
75442         * modules/fwriteerror (Depends-on): Add errno.
75444 2008-09-26  Bruno Haible  <bruno@clisp.org>
75446         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
75447         * tests/test-vc-list-files-cvs.sh: Likewise.
75449 2008-09-26  Bruno Haible  <bruno@clisp.org>
75451         * doc/posix-headers/sys_resource.texi: Reorder items.
75453 2008-09-26  Jim Meyering  <meyering@redhat.com>
75455         fts: tweak inode comparison function
75456         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
75457         inode numbers, as documented.
75459         fts: sort dirent entries on inode number before traversing
75460         This avoids a quadratic, seek-related performance penalty when
75461         operating on a directory containing many entries (measurable at 10k;
75462         3.5 hours at 2 million entries with a cold cache) on certain types
75463         of file systems, including ext3 and ext4, but not tmpfs.
75464         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
75465         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
75466         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
75467         (fs_handles_readdir_ordered_dirents_efficiently): New function.
75468         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
75469         (fts_build): Set the stat.st_ino member from D_INO.
75470         If it is likely to be useful, sort dirent entries on inode number.
75472         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
75473         and the struct statfs.f_type member.
75474         * modules/fts (Depends-on): Add d-ino.
75476 2008-09-26  Bruno Haible  <bruno@clisp.org>
75478         * modules/sigpipe-die (Depends-on): Add sigpipe.
75480         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
75481         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
75482         and GNULIB_STDIO_H_SIGPIPE are set.
75483         * lib/stdio-write.c: New file.
75484         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
75485         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75486         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75487         REPLACE_STDIO_WRITE_FUNCS.
75488         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
75489         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75490         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75491         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
75492         * modules/stdio (Files): Add lib/stdio-write.c.
75493         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
75494         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75495         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75496         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
75497         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
75498         REPLACE_FPRINTF_POSIX.
75499         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
75500         REPLACE_PRINTF_POSIX.
75501         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
75502         REPLACE_VFPRINTF_POSIX.
75503         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
75504         REPLACE_VPRINTF_POSIX.
75505         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
75506         SIGPIPE issue.
75507         * doc/posix-functions/fputc.texi: Likewise.
75508         * doc/posix-functions/fputs.texi: Likewise.
75509         * doc/posix-functions/fwrite.texi: Likewise.
75510         * doc/posix-functions/printf.texi: Likewise.
75511         * doc/posix-functions/putc.texi: Likewise.
75512         * doc/posix-functions/putchar.texi: Likewise.
75513         * doc/posix-functions/puts.texi: Likewise.
75514         * doc/posix-functions/vfprintf.texi: Likewise.
75515         * doc/posix-functions/vprintf.texi: Likewise.
75517         * modules/safe-write (Depends-on): Add write.
75519         * modules/sigpipe-tests: New file.
75520         * tests/test-sigpipe.c: New file.
75521         * tests/test-sigpipe.sh: New file.
75523         * modules/write: New file.
75524         * lib/unistd.in.h: Include <sys/types.h>.
75525         (write): New declaration.
75526         * lib/write.c: New file.
75527         * m4/write.m4: New file.
75528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
75529         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
75530         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
75531         GNULIB_WRITE, REPLACE_WRITE.
75532         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
75533         and the SIGPIPE issue.
75535         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
75536         (raise): New declaration.
75537         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
75538         (ext_signal): New function.
75539         (rpl_raise): New function.
75540         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
75541         GNULIB_SIGNAL_H_SIGPIPE.
75542         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
75543         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
75545         * modules/sigpipe: New file.
75546         * m4/sigpipe.m4: New file.
75548 2008-09-25  Derek Price  <derek@ximbiot.com>
75549             Bruno Haible  <bruno@clisp.org>
75551         * gnulib-tool (func_import): Report all license incompatibilities, not
75552         just the first one.
75554 2008-09-25  Bruno Haible  <bruno@clisp.org>
75556         * gnulib-tool (func_import): When computing the edits, consider not
75557         only the Makefile.ams that exist but also those that will be generated.
75559 2008-09-25  Simon Josefsson  <simon@josefsson.org>
75561         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
75562         fixes gnulib-tool --test warning about duplicate dependency.
75564 2008-09-25  Bruno Haible  <bruno@clisp.org>
75566         * gnulib-tool: Don't ask the user to perform edits in the generated
75567         Makefile.ams.
75568         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
75569         apply to the Makefile.am being generated.
75570         (func_emit_tests_Makefile_am): Execute edits that apply to the
75571         Makefile.am being generated.
75572         (func_import): Setup list of Makefile.am edits before emitting the
75573         Makefile.ams, not at the end.
75574         (func_create_testdir): Update.
75575         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75577 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75579         * gnulib-tool (func_import): Store the --tests-base option in the
75580         comment in gnulib-cache.m4.
75582 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
75584         * NEWS: Document increased portability that sys_select now provides.
75586         * lib/sys_select.in.h: Install select wrapper.
75587         * lib/sys_socket.in.h: Use more descriptive name when there is no
75588         select wrapper.
75589         * lib/winsock-select.c: New.
75590         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
75591         Require gl_HEADER_SYS_SOCKET.
75592         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
75593         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
75594         * tests/test-sys_select.c: Add functional tests.
75596 2008-09-24  Eric Blake  <ebb9@byu.net>
75598         open, fopen: close fd leak in last patch
75599         * lib/open.c (rpl_open): Close fd before returning error.
75600         * lib/fopen.c (rpl_fopen): Close fd before returning error.
75601         * doc/posix-functions/open.texi (open): Document that Irix also
75602         has the bug.
75603         * doc/posix-functions/fopen.texi (fopen): Likewise.
75604         Reported by Paolo Bonzini.
75606 2008-09-24  Bruno Haible  <bruno@clisp.org>
75608         Ensure that a filename ending in a slash cannot be used to access a
75609         non-directory.
75610         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
75611         to check whether it's really a directory.
75612         * lib/fopen.c: Include fcntl.h, unistd.h.
75613         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
75614         and fdopen().
75615         * modules/fopen (Depends-on): Add unistd.
75616         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
75617         * tests/test-fopen.c (main): Likewise.
75618         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
75619         * doc/posix-functions/fopen.texi: Likewise.
75620         Reported by Eric Blake.
75622 2008-09-23  Eric Blake  <ebb9@byu.net>
75624         c-stack: avoid compiler optimizations when provoking overflow
75625         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
75626         recursion harder to optimize, to ensure a stack overflow occurs.
75627         * tests/test-c-stack.c (recurse): Likewise.
75628         Borrowed from libsigsegv.
75630         c-stack: work around Irix sigaltstack bug
75631         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
75632         whether sigaltstack uses wrong end of stack_t (copied in part from
75633         libsigsegv).
75634         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
75635         Irix bug, without requiring an over-allocation.
75636         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
75637         bug.
75639         fopen: document mingw bug on directories
75640         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
75641         not allowing a stream visiting a directory, even though reading
75642         from such a stream is not portable.
75644 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75646         * lib/poll.c: Rewrite.
75647         * modules/poll: Depend on alloca.
75649 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75651         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
75652         instead define prototypes for a full set of wrappers.  Ensure
75653         that Cygwin does not use the compatibility code, which is only
75654         for MinGW.
75655         * lib/winsock.c: New.
75656         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
75657         * modules/sys_socket: Add lib/winsock.c.
75659         * modules/poll-tests: Add errno and perror.
75660         * tests/test-poll.c: Use ioctl, not ioctlsocket.
75662 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75664         * tests/test-poll.c: Downgrade minimum needed Winsock version.
75666 2008-09-23  Bruno Haible  <bruno@clisp.org>
75668         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
75669         * doc/glibc-functions/*: Likewise.
75671 2008-09-23  Simon Josefsson  <simon@josefsson.org>
75673         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
75674         success.
75676 2008-09-22  Eric Blake  <ebb9@byu.net>
75677             Bruno Haible  <bruno@clisp.org>
75679         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
75680         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
75681         supply %A but mishandle pseudo-NaN.
75682         Reported by Simon Josefsson.
75684 2008-09-21  Bruno Haible  <bruno@clisp.org>
75686         * tests/test-lock.c (main): Tweak skip message.
75687         * tests/test-tls.c (main): Likewise.
75689 2008-09-21  Bruno Haible  <bruno@clisp.org>
75691         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
75692         whether 'struct sigaction' has sa_sigaction here...
75693         (gl_PREREQ_SIG_HANDLER_H): ... not here.
75694         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
75696 2008-09-21  Bruno Haible  <bruno@clisp.org>
75698         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
75699         section.
75700         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
75701         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
75702         the new section.
75703         (Support for obsolete systems lacking POSIX:2001): New section.
75704         (String handling <string.h>): Move strdup to the new section.
75705         Suggested by Simon Josefsson and Paolo Bonzini.
75707 2008-09-21  Bruno Haible  <bruno@clisp.org>
75709         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
75710         exponents in %e and %g results on 'long double'. Needed for mingw's
75711         improved *printf functions.
75712         * tests/test-vasprintf-posix.c (test_function): Likewise.
75713         * tests/test-snprintf-posix.h (test_function): Likewise.
75714         * tests/test-sprintf-posix.h (test_function): Likewise.
75715         Reported by Eric Blake.
75717 2008-09-21  Bruno Haible  <bruno@clisp.org>
75719         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
75720         * tests/test-sprintf-posix.h (test_function): Likewise.
75722 2008-09-21  Bruno Haible  <bruno@clisp.org>
75724         * modules/getpass (Depends-on): Add strdup-posix.
75726         New module 'strdup-posix'.
75727         * modules/strdup-posix: New file.
75728         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
75729         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
75730         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
75731         REPLACE_STRDUP.
75732         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
75733         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
75734         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75735         strdup-posix.
75737         * modules/strdup (Depends-on): Remove malloc-posix.
75739 2008-09-20  Bruno Haible  <bruno@clisp.org>
75741         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
75742         Wildenhues.
75744 2008-09-20  Bruno Haible  <bruno@clisp.org>
75746         Ensure that wint_t gets defined on IRIX 5.3.
75747         * lib/wchar.in.h (wint_t): Define if not defined by the system.
75748         * lib/wctype.in.h (wint_t): Likewise.
75749         (__wctype_wint_t): Remove type.
75750         (isw*): Use wint_t instead of __wctype_wint_t.
75751         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
75752         * modules/wchar (Files): Add m4/wint_t.m4.
75753         (Makefile.am): Substitute HAVE_WINT_T.
75754         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
75755         * tests/test-wctype.c: Check that wint_t is defined.
75756         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
75757         * doc/posix-headers/wctype.texi: Likewise.
75758         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
75760 2008-09-18  Bruno Haible  <bruno@clisp.org>
75762         * gnulib-tool (func_exit): Update comment.
75764 2008-09-18  Simon Josefsson  <simon@josefsson.org>
75766         * modules/getaddrinfo (Depends-on): Remove strdup, this module
75767         assumes strdup exists and does not depend on strdup to return
75768         ENOMEM on out of memory conditions.
75770 2008-09-18  Bruno Haible  <bruno@clisp.org>
75772         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
75773         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
75774         digits for the exponent.
75776 2008-09-18  Jim Meyering  <meyering@redhat.com>
75777             Bruno Haible  <bruno@clisp.org>
75779         * lib/vasnprintf.c (decimal_point_char): Define also if
75780         NEED_PRINTF_INFINITE_LONG_DOUBLE.
75782 2008-09-16  Bruno Haible  <bruno@clisp.org>
75783         and Eric Blake  <ebb9@byu.net>
75785         vasnprintf: support Irix 5.3
75786         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
75787         that mishandle long double infinity.
75788         Reported by Tom G. Christensen.
75790 2008-09-16  Bruno Haible  <bruno@clisp.org>
75792         * doc/glibc-functions/scandir.texi: Mention the function is missing on
75793         Solaris 9.
75794         * doc/glibc-functions/alphasort.texi: Likewise.
75795         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
75797 2008-09-16  Jim Meyering  <meyering@redhat.com>
75799         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
75800         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
75801         a umask modification leak out of a subshell.  Otherwise, the
75802         opensolaris /bin/sh would be accepted and thus cause unwarranted
75803         failures in the coreutils test suite.
75805 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
75807         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
75808         to succeed.
75810 2008-09-16  Jim Meyering  <meyering@redhat.com>
75812         avoid spurious test failure when library is built without ACL support
75813         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
75814         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
75815         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
75816         * tests/test-copy-acl.sh: Likewise.
75818 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75820         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
75821         based on character occurrence counts.
75823 2008-09-15  Eric Blake  <ebb9@byu.net>
75825         tests: avoid some compiler warnings
75826         * tests/test-memchr.c (main): Pass NULL indirectly.
75827         * tests/test-closein.c (main): Avoid unused variable.
75829 2008-09-15  Bruno Haible  <bruno@clisp.org>
75831         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
75832         are missing on OpenBSD 4.0 individually.
75833         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75835 2008-09-15  Bruno Haible  <bruno@clisp.org>
75837         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
75838         * doc/posix-functions/strerror.texi: Mention also Cygwin.
75839         * doc/posix-functions/perror.texi: Likewise.
75840         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
75841         is missing.
75842         Reported by Eric Blake.
75844         * lib/errno.in.h: Use replacement values >= 2000.
75845         Reported by Eric Blake.
75847 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75849         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
75850         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
75851         limit.
75852         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
75853         compareseq was aborted.
75855 2008-09-14  Bruno Haible  <bruno@clisp.org>
75857         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
75858         yvec_edit_count.
75859         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
75860         (fstrcmp_bounded): Simplify result computation accordingly.
75862 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75864         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
75865         (fstrcmp): Define in terms of fstrcmp_bounded.
75866         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
75867         lower_bound argument.
75868         Return quickly if the result is certainly < lower_bound.
75869         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
75871 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75873         * lib/diffseq.h (EARLY_ABORT): New macro.
75874         (compareseq): Change return type to bool. Return true when EARLY_ABORT
75875         evaluates to true.
75877 2008-09-14  Bruno Haible  <bruno@clisp.org>
75879         * modules/perror-tests: New file.
75880         * tests/test-perror.sh: New file.
75881         * tests/test-perror.c: New file.
75883         New module 'perror'.
75884         * lib/stdio.in.h (perror): New declaration.
75885         * lib/perror.c: New file.
75886         * m4/perror.m4: New file.
75887         * modules/perror: New file.
75888         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
75889         * doc/posix-functions/perror.texi: Mention the perror module.
75890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
75891         REPLACE_PERROR.
75892         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
75893         REPLACE_PERROR.
75895 2008-09-14  Bruno Haible  <bruno@clisp.org>
75897         * modules/stdio (Makefile.am): Reorder to match the order in
75898         lib/stdio.in.h.
75899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
75901 2008-09-13  Bruno Haible  <bruno@clisp.org>
75903         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
75905 2008-09-13  Bruno Haible  <bruno@clisp.org>
75907         Extend strerror to cover the added errno values.
75908         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
75909         (rpl_strerror): Provide error messages for the added errno values and
75910         for the WSA* values.
75911         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
75912         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
75913         strerror.
75914         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
75915         * modules/strerror (Depends-on): Add errno.
75916         * doc/posix-functions/strerror.texi: Document the change.
75917         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
75918         and EOVERFLOW.
75920 2008-09-13  Bruno Haible  <bruno@clisp.org>
75922         * modules/EOVERFLOW: Remove file.
75923         * m4/eoverflow.m4: Remove file.
75924         * modules/EOVERFLOW-tests: Remove file.
75925         * tests/test-EOVERFLOW.c: Remove file.
75926         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
75927         * modules/ftell (Depends-on): Likewise.
75928         * modules/getdelim (Depends-on): Likewise.
75929         * modules/getugroups (Depends-on): Likewise.
75930         * modules/poll (Depends-on): Likewise.
75931         * modules/snprintf (Depends-on): Likewise.
75932         * modules/sprintf-posix (Depends-on): Likewise.
75933         * modules/vasnprintf (Depends-on): Likewise.
75934         * modules/vasprintf (Depends-on): Likewise.
75935         * modules/vfprintf-posix (Depends-on): Likewise.
75936         * modules/vsnprintf (Depends-on): Likewise.
75937         * modules/vsprintf-posix (Depends-on): Likewise.
75938         * modules/xvasprintf (Depends-on): Likewise.
75939         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
75940         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
75941         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
75942         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
75943         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
75944         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
75945         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
75946         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
75947         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
75948         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
75949         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
75950         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
75951         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
75952         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
75953         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
75954         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
75955         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
75956         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
75957         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
75958         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
75959         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
75960         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
75961         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
75962         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
75963         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
75964         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
75965         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
75966         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
75967         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
75968         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
75969         * MODULES.html.sh: Remove EOVERFLOW.
75970         * NEWS: Mention the change.
75972 2008-09-13  Bruno Haible  <bruno@clisp.org>
75974         * modules/errno-tests: New file.
75975         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
75977         * lib/errno.in.h: New file.
75978         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
75979         * modules/errno: New file.
75980         * doc/posix-headers/errno.texi: Update documentation.
75981         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
75983 2008-09-13  Bruno Haible  <bruno@clisp.org>
75985         * tests/test-poll.c: Use #if for native Windows, rather than testing
75986         __MSVCRT__.
75988 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75989             Bruno Haible  <bruno@clisp.org>
75991         * lib/glob.c: Don't include <pwd.h> on native Windows.
75992         (WINDOWS32): New macro.
75993         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
75995 2008-09-13  Bruno Haible  <bruno@clisp.org>
75997         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
75998         (ETIMEDOUT): Remove macro.
75999         (glthread_cond_timedwait_multithreaded): New declaration.
76000         (glthread_cond_timedwait): Use it.
76001         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
76002         (glthread_cond_timedwait_multithreaded): New function.
76004 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76006         * modules/poll-tests: Do not check for io.h.
76007         * tests/test-poll.c: Check for __MSVCRT__ instead.
76009 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76011         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
76012         * modules/poll-tests: Add inet_pton, stdbool, sockets.
76013         * tests/test-poll.c: Use them.  Use _pipe on Windows.
76015 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76017         * modules/poll-tests: New.
76018         * tests/test-poll.c: New.
76020 2008-09-12  Eric Blake  <ebb9@byu.net>
76022         frexp: test for NetBSD failure on -0.0
76023         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
76024         not all, bugs from NetBSD 3.0 have been fixed.
76025         * doc/posix-functions/frexp.texi (frexp): Document bug.
76026         Reported by Thomas Klausner.
76028         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
76029         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
76030         literal -0.0.
76031         Reported by Jonathan C. Patschke <jp@centtech.com>.
76033 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76035         * lib/glthread/cond.h: Use dummy implementation also if
76036         USE_WIN32_THREADS.
76038 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76040         * modules/fnmatch-posix (License): Change to LGPLv2+.
76041         * modules/fnmatch-gnu (License): Likewise.
76043 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76045         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
76047 2008-09-11  Jim Meyering  <meyering@redhat.com>
76049         * users.txt: Add gtk-vnc.
76051 2008-09-08  Simon Josefsson  <simon@josefsson.org>
76053         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
76054         rotate amounts.
76056         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
76057         required for 16-bit and 8-bit rotates.
76058         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
76059         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
76060         UINT8_MAX instead of hard-coded constants.
76061         Suggested by Paul Eggert.
76063 2008-09-07  Bruno Haible  <bruno@clisp.org>
76065         * tests/test-striconveh.c (main): Check behaviour when converting from
76066         UTF-7.
76068         Make striconveh work better with stateful encodings.
76069         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
76070         that iconv does not increment the inptr when returning -1/EINVAL.
76072 2008-09-07  Bruno Haible  <bruno@clisp.org>
76074         * build-aux/config.rpath: Update according to libtool-2.2.6.
76075         * build-aux/config.libpath: Likewise.
76077 2008-09-06  Bruno Haible  <bruno@clisp.org>
76079         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
76080         * lib/freadptr.c (freadptr): Likewise.
76081         * lib/freadseek.c (freadptrinc): Likewise.
76082         Reported by Simon Josefsson.
76084 2008-09-06  Bruno Haible  <bruno@clisp.org>
76086         * modules/freadptr (License): Change to LGPLv2+.
76087         * modules/freadseek (License): Likewise.
76088         Suggested by Eric Blake.
76090         * modules/memchr2 (License): Change to LGPLv2+.
76091         Approved by Eric Blake.
76093 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76094             Bruno Haible  <bruno@clisp.org>
76096         Make gnulib-tool work with native 'sed' on AIX.
76097         * gnulib-tool (sed_noop): New variable.
76098         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
76099         func_add_or_update, func_create_testdir): Use it to initialize sed
76100         script variables.
76101         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
76103 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
76104             Bruno Haible  <bruno@clisp.org>
76106         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
76107         also works after #include directives.
76109 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
76111         getdate.y: reject an out-of-range timezone value
76112         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
76113         the range [-24...+24].  When specified with only one or two digits,
76114         * tests/test-getdate.c: Tests for the fix.
76115         * doc/getdate.texi: Document this change.
76117 2008-09-03  Bruno Haible  <bruno@clisp.org>
76119         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
76121 2008-09-02  Simon Josefsson  <simon@josefsson.org>
76123         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
76124         <bruce.korb@gmail.com> with ideas from Ben Pfaff
76125         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
76126         Blake <ebb9@byu.net>.
76128         * tests/test-bitrotate.c: Add more test vectors.
76130 2008-09-02  Eric Blake  <ebb9@byu.net>
76132         vasnprintf-posix: handle large precision via %.*d
76133         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
76134         when handling it ourselves.
76135         * tests/test-vasnprintf-posix.c (test_function): Add test.
76136         * tests/test-snprintf-posix.h (test_function): Likewise.
76137         * tests/test-sprintf-posix.h (test_function): Likewise.
76138         * tests/test-vasprintf-posix.c (test_function): Likewise.
76139         Reported by Alain Guibert.
76141 2008-09-01  Eric Blake  <ebb9@byu.net>
76143         c-stack: make configure-time check more robust
76144         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
76145         successful sigaction call.
76146         Reported by Tom G. Christensen.
76148 2008-09-01  Bruno Haible  <bruno@clisp.org>
76150         New module 'findprog-lgpl'.
76151         * modules/findprog-lgpl: New file.
76152         * lib/findprog-lgpl.c: New file.
76153         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
76154         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
76155         to decide whether to use strdup or xstrdup, concatenated_filename or
76156         xconcatenated_filename.
76158 2008-09-01  Bruno Haible  <bruno@clisp.org>
76160         Split module 'concat-filename' into 'concat-filename' (LGPL) and
76161         'xconcat-filename' (GPL).
76162         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
76163         (License): Change to LGPLv2+.
76164         * modules/xconcat-filename: New file.
76165         * lib/concat-filename.h (concatenated_filename): Change specification.
76166         (xconcatenated_filename): New declaration.
76167         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
76168         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
76169         memory situations.
76170         * lib/xconcat-filename.c: New file.
76171         * NEWS: Mention the change.
76172         * lib/findprog.c: Include concat-filename.h, not filename.h.
76173         (find_in_path): Use xconcatenated_filename instead of
76174         concatenated_filename.
76175         * lib/javacomp.c: Include concat-filename.h, not filename.h.
76176         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
76177         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
76178         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
76179         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
76180         instead of concatenated_filename.
76181         * lib/javaexec.c: Include concat-filename.h, not filename.h.
76182         (execute_java_class): Use xconcatenated_filename instead of
76183         concatenated_filename.
76184         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
76185         * modules/javacomp (Depends-on): Likewise.
76186         * modules/javaexec (Depends-on): Likewise.
76188 2008-09-01  Bruno Haible  <bruno@clisp.org>
76190         Split module 'filename' into 'filename' and 'concat-filename'.
76191         * modules/filename: Keep only lib/filename.h.
76192         (License): Change to LGPLv2+.
76193         * modules/concat-filename: New file, extracted from modules/filename.
76194         * lib/filename.h (concatenated_filename): Remove declaration.
76195         * lib/concat-filename.h: New file, extracted from lib/filename.h.
76196         * lib/concat-filename.c: Include concat-filename.h.
76197         * NEWS: Mention the change.
76199 2008-09-01  Simon Josefsson  <simon@josefsson.org>
76201         * lib/bitrotate.h (rotl8, rotr8): Add.
76203         * modules/bitrotate (configure.ac): Need
76204         AC_REQUIRE([AC_C_INLINE]).
76205         (Description): Mention stdint.h.  Reported by Bruno Haible
76206         <bruno@clisp.org>.
76208         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
76209         Paolo Bonzini <bonzini@gnu.org>.
76211 2008-08-31  Bruno Haible  <bruno@clisp.org>
76213         Assume Solaris specific bi-arch conventions on Solaris systems.
76214         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
76215         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
76216         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
76217         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
76218         like acl_libdirstem.
76219         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
76220         acl_libdirstem.
76221         * NEWS: Mention the change.
76222         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
76224 2008-08-31  Jim Meyering  <meyering@redhat.com>
76226         * lib/strftime.h: Add comments describing the two added arguments.
76228         remove duplicate #include directives
76229         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
76230         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
76232 2008-08-31  Bruno Haible  <bruno@clisp.org>
76234         New module 'sigpipe-die'.
76235         * modules/sigpipe-die: New file.
76236         * lib/sigpipe-die.h: New file.
76237         * lib/sigpipe-die.c: New file.
76238         * MODULES.html.sh (Signal handling): Add sigpipe-die.
76240 2008-08-31  Bruno Haible  <bruno@clisp.org>
76242         Don't override previously installed signal handlers.
76243         * lib/fatal-signal.c (saved_sigactions): New variable.
76244         (uninstall_handlers): Reset the signal to the saved handler, not
76245         to SIG_DFL (except when ignored).
76246         (install_handlers): Save the previous handlers.
76248 2008-08-30  Bruno Haible  <bruno@clisp.org>
76250         * gnulib-tool (func_reset_sigpipe): New function.
76251         (func_get_automake_snippet, func_modules_transitive_closure,
76252         func_import): Invoke it before a join command that reads from stdin,
76253         to avoid "echo: write error: Broken pipe" error messages on stderr.
76254         Reported by Sam Steingold <sds@gnu.org>.
76256 2008-08-30  Bruno Haible  <bruno@clisp.org>
76258         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
76259         Code copied from m4/open.m4.
76260         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
76261         access and the filename ends in a slash. Code copied from lib/open.c.
76262         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
76263         * tests/test-fopen.c (main): Check against bug with trailing slash.
76265 2008-08-29  Bruno Haible  <bruno@clisp.org>
76267         Avoid some "gcc -pedantic" warnings.
76268         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
76269         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
76270         * lib/dirent.in.h: Likewise.
76271         * lib/fcntl.in.h: Likewise.
76272         * lib/float.in.h: Likewise.
76273         * lib/iconv.in.h: Likewise.
76274         * lib/inttypes.in.h: Likewise.
76275         * lib/locale.in.h: Likewise.
76276         * lib/math.in.h: Likewise.
76277         * lib/netinet_in.in.h: Likewise.
76278         * lib/search.in.h: Likewise.
76279         * lib/signal.in.h: Likewise.
76280         * lib/stdarg.in.h: Likewise.
76281         * lib/stdint.in.h: Likewise.
76282         * lib/stdio.in.h: Likewise.
76283         * lib/stdlib.in.h: Likewise.
76284         * lib/string.in.h: Likewise.
76285         * lib/strings.in.h: Likewise.
76286         * lib/sys_select.in.h: Likewise.
76287         * lib/sys_socket.in.h: Likewise.
76288         * lib/sys_stat.in.h: Likewise.
76289         * lib/sys_time.in.h: Likewise.
76290         * lib/sysexits.in.h: Likewise.
76291         * lib/time.in.h: Likewise.
76292         * lib/unistd.in.h: Likewise.
76293         * lib/wchar.in.h: Likewise.
76294         * lib/wctype.in.h: Likewise.
76295         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
76296         * modules/fchdir (Makefile.am): Likewise.
76297         * modules/fcntl (Makefile.am): Likewise.
76298         * modules/float (Makefile.am): Likewise.
76299         * modules/iconv_open (Makefile.am): Likewise.
76300         * modules/inttypes (Makefile.am): Likewise.
76301         * modules/locale (Makefile.am): Likewise.
76302         * modules/math (Makefile.am): Likewise.
76303         * modules/netinet_in (Makefile.am): Likewise.
76304         * modules/search (Makefile.am): Likewise.
76305         * modules/signal (Makefile.am): Likewise.
76306         * modules/stdarg (Makefile.am): Likewise.
76307         * modules/stdint (Makefile.am): Likewise.
76308         * modules/stdio (Makefile.am): Likewise.
76309         * modules/stdlib (Makefile.am): Likewise.
76310         * modules/string (Makefile.am): Likewise.
76311         * modules/strings (Makefile.am): Likewise.
76312         * modules/sys_select (Makefile.am): Likewise.
76313         * modules/sys_socket (Makefile.am): Likewise.
76314         * modules/sys_stat (Makefile.am): Likewise.
76315         * modules/sys_time (Makefile.am): Likewise.
76316         * modules/sysexits (Makefile.am): Likewise.
76317         * modules/time (Makefile.am): Likewise.
76318         * modules/unistd (Makefile.am): Likewise.
76319         * modules/wchar (Makefile.am): Likewise.
76320         * modules/wctype (Makefile.am): Likewise.
76321         Reported by Reuben Thomas <rrt@sc3d.org>.
76323 2008-08-29  Bruno Haible  <bruno@clisp.org>
76325         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
76326         any more.
76328 2008-08-29  Simon Josefsson  <simon@josefsson.org>
76330         * MODULES.html.sh (Misc): Add bitrotate.
76332         * modules/bitrotate: New file.
76334         * lib/bitrotate.h: New file.
76336         * modules/bitrotate-tests: New file.
76338         * tests/test-bitrotate.c: New file.
76340         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
76341         on the bitrotate module.
76343         * lib/arctwo.c: Use new bitrotate module.
76345 2008-08-29  Jim Meyering  <meyering@redhat.com>
76347         bootstrap: merge changes from coreutils
76348         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
76349         of copied files.  Remove a kludge, now that this is fixed.
76350         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
76351         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
76352         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
76354 2008-08-29  Bruno Haible  <bruno@clisp.org>
76356         * MODULES.html.sh: Remove --cvs-urls option.
76358 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
76360         maint.mk: adjust to file name change
76361         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
76363 2008-08-28  Jim Meyering  <meyering@redhat.com>
76365         * modules/getndelim2 (License): Relicense to LGPLv2+.
76366         Approved by Richard Stallman for the version of 1995, and by
76367         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
76369 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
76371         * lib/getdelim.c (flockfile, funlockfile): Make all of them
76372         dummy if one is not available.  Do not touch them if
76373         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
76374         (getc_maybe_unlocked): New.
76375         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
76377 2008-08-26  Eric Blake  <ebb9@byu.net>
76379         doc/INSTALL: resync from autoconf
76380         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
76381         (INSTALL_PRELUDE): Delete; this is done more efficiently by
76382         moving...
76383         * install.texi [!autoconf]: ...here.  Resync from autoconf.
76384         * INSTALL: Regenerate.
76385         * INSTALL.ISO: New file.
76386         * INSTALL.UTF-8: Likewise.
76388 2008-08-26  Jim Meyering  <meyering@redhat.com>
76390         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
76391         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
76392         these definitions conditional, so that they may be overridden, too.
76394 2008-08-26  Bruno Haible  <bruno@clisp.org>
76396         Generate INSTALL file variants with prettier quotes.
76397         * doc/Makefile (INSTALL_PRELUDE): New macro.
76398         (INSTALL): Use it.
76399         (INSTALL.ISO, INSTALL.UTF-8): New rules.
76401 2008-08-26  Bruno Haible  <bruno@clisp.org>
76403         Run makeinfo in an English locale.
76404         * doc/Makefile (MAKEINFO): New variable.
76406 2008-08-26  Bruno Haible  <bruno@clisp.org>
76408         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
76409         Suggested by Eric Blake.
76411 2008-08-25  Bruno Haible  <bruno@clisp.org>
76413         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
76415 2008-08-25  Eric Blake  <ebb9@byu.net>
76417         c-stack: test that stack overflow can be caught
76418         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
76419         that platform allows handling stack overflow; at least OS/2 EMX
76420         has sigaltstack, but crashes before transferring control to
76421         handler on stack overflow.
76422         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
76423         check for HAVE_STACK_OVERFLOW_HANDLING.
76424         Reported by Elbert Pol.
76426 2008-08-25  Bruno Haible  <bruno@clisp.org>
76428         * doc/posix-functions/strftime.texi: Fix description of strftime
76429         module.
76431 2008-08-24  Bruno Haible  <bruno@clisp.org>
76433         * tests/uniwidth/test-uc_width2.c: New file.
76434         * tests/uniwidth/test-uc_width2.sh: New file.
76435         * modules/uniwidth/width-tests (Files): Add the new files.
76436         (TESTS): Add uniwidth/test-uc_width2.sh.
76437         (TESTS_ENVIRONMENT): New variable.
76438         (check_PROGRAMS): Add test-uc_width2.
76439         (test_uc_width2_SOURCES): New variable.
76441         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
76442         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
76443         not 0x00AB.
76444         Reported by Alexander V. Lukyanov <lav@netis.ru>.
76446 2008-08-22  Eric Blake  <ebb9@byu.net>
76448         test-lock, test-tls: mention why a test is skipped
76449         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
76450         skipped.
76451         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
76453         count-one-bits: relax license
76454         * modules/count-one-bits (License): Relicense to LGPLv2+.
76455         Suggested by Ludovic Courtès, approved by Ben Pfaff.
76457 2008-08-22  Andreas Schwab  <schwab@suse.de>
76459         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
76460         Remove spurious space in assignment.
76462 2008-08-21  Simon Josefsson  <simon@josefsson.org>
76464         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
76465         Paul Eggert <eggert@CS.UCLA.EDU>.
76467 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
76469         * modules/gettext: Add m4/threadlib.m4.
76471 2008-08-19  Eric Blake  <ebb9@byu.net>
76473         test-c-stack: fix compilation failure on FreeBSD 5.0
76474         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
76475         headers before <sys/resource.h>.
76476         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
76477         the bug.
76478         Reported by Nelson H. F. Beebe.
76480         strverscmp: migrate from "strverscmp.h" to <string.h>
76481         * modules/string (Makefile.am): Add new hooks.
76482         * modules/strverscmp (Files): Remove strverscmp.h.
76483         (Depends-on): Add string.
76484         (configure.ac): Add indicator.
76485         (Include): Mention new header.
76486         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
76487         defaults.
76488         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
76489         results.
76490         * lib/strverscmp.h: Delete.
76491         * lib/string.in.h (strverscmp): Provide declaration, when needed.
76492         * tests/test-strverscmp.c (includes): Adjust client.
76493         * lib/check-version.c (includes): Likewise.
76494         * NEWS: Document the change.
76496         strverscmp: add unit test
76497         * modules/strverscmp-tests: New file.
76498         * tests/test-strverscmp.c: Likewise.
76500 2008-08-19  Simon Josefsson  <simon@josefsson.org>
76502         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
76503         regarding Windows crypto stuff, from Mono.
76505 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
76507         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
76508         if present, for intel RND.  Return error on failures.
76510 2008-08-18  Ben Pfaff  <blp@gnu.org>
76512         gitlog-to-changelog: give better diagnostic for failed pipe-open
76513         * build-aux/gitlog-to-changelog: Improve error message: suggest
76514         that the version of Git may be too old.
76516 2008-08-18  Simon Josefsson  <simon@josefsson.org>
76518         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
76519         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
76521 2008-08-18  Bruno Haible  <bruno@clisp.org>
76523         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
76524         pthread_in_use().
76526 2008-08-18  Bruno Haible  <bruno@clisp.org>
76528         * lib/glthread/threadlib.c: Include <pthread.h>.
76530 2008-08-18  Bruno Haible  <bruno@clisp.org>
76532         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
76533         glthread_recursive_lock_* macros.
76534         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
76535         Fix syntax error.
76537 2008-08-18  Bruno Haible  <bruno@clisp.org>
76539         * lib/glthread/thread.c: Avoid forcing a context switch right after
76540         thread creation.
76542 2008-08-17  Bruno Haible  <bruno@clisp.org>
76544         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
76545         * lib/glthread/thread.h: Provide Win32 specific implementation.
76546         * modules/thread (Files): Add lib/glthread/thread.c.
76547         (Depends-on): Add lock.
76548         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
76550 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76552         New module 'yield'.
76553         * modules/yield: New file.
76554         * lib/glthread/yield.h: New file.
76555         * m4/yield.m4: New file.
76556         * MODULES.html.sh (Multithreading): Add yield.
76558 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76560         New module 'thread'.
76561         * modules/thread: New file.
76562         * lib/glthread/thread.h: New file.
76563         * m4/thread.m4: New file.
76564         * MODULES.html.sh (Multithreading): Add thread.
76566 2008-08-17  Bruno Haible  <bruno@clisp.org>
76568         * lib/glthread/lock.h: Include <stdlib.h> always.
76569         * lib/glthread/tls.h: Likewise.
76570         * lib/glthread/cond.h: Likewise.
76572 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76574         New module 'cond'.
76575         * modules/cond: New file.
76576         * lib/glthread/cond.h: New file.
76577         * lib/glthread/cond.c: New file.
76578         * m4/cond.m4: New file.
76579         * MODULES.html.sh (Multithreading): Add cond.
76581 2008-08-16  Eric Blake  <ebb9@byu.net>
76583         c-stack: fix regression on Irix 5.3 from 2008-06-21
76584         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
76585         sa_sigaction...
76586         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
76587         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
76588         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
76589         * modules/signal (Makefile.am): Use the value.
76590         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
76591         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
76592         * doc/posix-headers/signal.texi (signal.h): Document this
76593         portability issue.
76594         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
76595         Reported by Tom G. Christensen.
76597 2008-08-17  Bruno Haible  <bruno@clisp.org>
76599         New module 'threadlib'.
76600         * modules/threadlib: New file.
76601         * lib/glthread/threadlib.c: New file, extracted from
76602         lib/glthread/lock.c.
76603         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
76604         functions.
76605         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
76606         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
76607         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
76608         macros.
76609         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
76610         (gl_DISABLE_THREADS): Remove macro.
76611         * modules/lock (Files): Remove build-aux/config.rpath.
76612         (Depends-on): Remove havelib. Add threadlib.
76613         (configure.ac-early): Remove section.
76614         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
76615         * modules/tls (Depends-on): Remove lock. Add threadlib.
76616         (Link): New section, copied from threadlib.
76617         * MODULES.html.sh (Multithreading): Add threadlib.
76619 2008-08-14  Bruno Haible  <bruno@clisp.org>
76621         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
76622         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
76623         glthread_rwlock_unlock, glthread_rwlock_destroy,
76624         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
76625         glthread_recursive_lock_destroy): Define as macros always.
76626         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
76627         glthread_lock_lock.
76628         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
76629         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
76630         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
76631         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
76632         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
76633         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
76634         (glthread_recursive_lock_lock_func): Renamed from
76635         glthread_recursive_lock_lock.
76636         (glthread_recursive_lock_unlock_func): Renamed from
76637         glthread_recursive_lock_unlock.
76638         (glthread_recursive_lock_destroy_func): Renamed from
76639         glthread_recursive_lock_destroy.
76641 2008-08-14  Bruno Haible  <bruno@clisp.org>
76643         * lib/glthread/lock.h: Renamed from lib/lock.h.
76644         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
76645         * lib/glthread/tls.h: Renamed from lib/tls.h.
76646         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
76647         * lib/fstrcmp.c: Update includes.
76648         * lib/strsignal.c: Update includes.
76649         * modules/lock (Files, Makefile.am): Update.
76650         (Include): Change to "glthread/lock.h".
76651         * modules/tls (Files, Makefile.am): Update.
76652         (Include): Change to "glthread/tls.h".
76653         * tests/test-lock.c: Update includes.
76654         * tests/test-tls.c: Update includes.
76655         * NEWS: Mention the renamed header files.
76657 2008-08-11  Jim Meyering  <meyering@redhat.com>
76659         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
76661 2008-08-11  Eric Blake  <ebb9@byu.net>
76663         test-c-stack: avoid C99-ism
76664         * tests/test-c-stack.c (main): Fix whitespace, move declaration
76665         before statement.
76666         Reported by Alain Guibert.
76668 2008-08-10  Jim Meyering  <meyering@redhat.com>
76670         ensure that return value of uinttostr et al are not ignored
76671         * lib/inttostr.h (__GNUC_PREREQ): Define.
76672         (__attribute_warn_unused_result__): Define.
76673         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
76675 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
76677         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
76678         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
76680 2008-08-07  Jim Meyering  <meyering@redhat.com>
76682         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
76684         * modules/mkstemp (License): Relicense under LGPLv2+.
76685         * modules/tempname (License): Likewise.
76687 2008-08-06  Bruno Haible  <bruno@clisp.org>
76689         * lib/poll.c (poll): Further micro-optimization.
76691 2008-08-06  Jim Meyering  <meyering@redhat.com>
76693         inet_pton.c: use locale-independent tolower
76694         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
76695         (inet_pton6): Use c_tolower rather than tolower.
76696         * modules/inet_pton (Depends-on): Add c-ctype.
76698 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
76700         * lib/poll.c (poll): Avoid division when timeout is 0, cache
76701         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
76703 2008-08-06  Jim Meyering  <meyering@redhat.com>
76705         * modules/inet_pton (License): Relicense under LGPLv2+.
76707 2008-08-03  Bruno Haible  <bruno@clisp.org>
76709         Additional non-aborting API for lock and tls.
76710         * lib/lock.h: Include <errno.h>.
76711         (glthread_lock_init): New macro/function.
76712         (gl_lock_init): Define as wrapper around glthread_lock_init.
76713         (glthread_lock_lock): New macro/function.
76714         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
76715         (glthread_lock_unlock): New macro/function.
76716         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
76717         (glthread_lock_destroy): New macro/function.
76718         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
76719         (glthread_rwlock_init): New macro/function.
76720         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
76721         (glthread_rwlock_rdlock): New macro/function.
76722         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
76723         (glthread_rwlock_wrlock): New macro/function.
76724         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
76725         (glthread_rwlock_unlock): New macro/function.
76726         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
76727         (glthread_rwlock_destroy): New macro/function.
76728         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
76729         (glthread_recursive_lock_init): New macro/function.
76730         (gl_recursive_lock_init): Define as wrapper around
76731         glthread_recursive_lock_init.
76732         (glthread_recursive_lock_lock): New macro/function.
76733         (gl_recursive_lock_lock): Define as wrapper around
76734         glthread_recursive_lock_lock.
76735         (glthread_recursive_lock_unlock): New macro/function.
76736         (gl_recursive_lock_unlock): Define as wrapper around
76737         glthread_recursive_lock_unlock.
76738         (glthread_recursive_lock_destroy): New macro/function.
76739         (gl_recursive_lock_destroy): Define as wrapper around
76740         glthread_recursive_lock_destroy.
76741         (glthread_once): New macro/function.
76742         (gl_once): Define as wrapper around glthread_once.
76743         Update function declarations.
76744         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
76745         glthread_rwlock_init. Return error code.
76746         (glthread_rwlock_rdlock_multithreaded): Renamed from
76747         glthread_rwlock_rdlock. Return error code.
76748         (glthread_rwlock_wrlock_multithreaded): Renamed from
76749         glthread_rwlock_wrlock. Return error code.
76750         (glthread_rwlock_unlock_multithreaded): Renamed from
76751         glthread_rwlock_unlock. Return error code.
76752         (glthread_rwlock_destroy_multithreaded): Renamed from
76753         glthread_rwlock_destroy. Return error code.
76754         (glthread_recursive_lock_init_multithreaded): Renamed from
76755         glthread_recursive_lock_init. Return error code.
76756         (glthread_recursive_lock_lock_multithreaded): Renamed from
76757         glthread_recursive_lock_lock. Return error code.
76758         (glthread_recursive_lock_unlock_multithreaded): Renamed from
76759         glthread_recursive_lock_unlock. Return error code.
76760         (glthread_recursive_lock_destroy_multithreaded): Renamed from
76761         glthread_recursive_lock_destroy. Return error code.
76762         (glthread_once_call): Make static.
76763         (glthread_once_multithreaded): Renamed from glthread_once.
76764         * lib/tls.h: Include <errno.h>.
76765         (glthread_tls_key_init): New macro/function.
76766         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
76767         (glthread_tls_set): New macro/function.
76768         (gl_tls_set): Define as wrapper around glthread_tls_set.
76769         (glthread_tls_key_destroy): New macro/function.
76770         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
76771         Update function declarations.
76772         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
76773         glthread_tls_get.
76774         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76776 2008-08-04  Eric Blake  <ebb9@byu.net>
76778         gnumakefile: use space, not TAB, outside of targets
76779         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
76781 2008-08-02  Jim Meyering  <meyering@redhat.com>
76783         getdate.y: avoid locale-dependent date parsing failure
76784         In Turkish locales, getdate would fail to recognize keywords
76785         containing a lowercase "i".  The solution is not to rely on
76786         locale-sensitive case-conversion.
76787         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
76788         (lookup_word): Use c_toupper in place of toupper.
76789         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
76790         Reported by Vefa Bicakci <bicave@superonline.com> in
76791         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
76792         * modules/getdate (Depends-on): Add c-ctype.
76794 2008-08-02  Bruno Haible  <bruno@clisp.org>
76796         * gnulib-tool (func_import): When updating or creating a .gitignore
76797         file, prepend each added line with a slash, and ignore leading slashes
76798         from the existing lines.
76799         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
76801 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76803         Portability fix for GNU make 3.79.1.
76804         * top/GNUmakefile: Avoid 'else COND', which older GNU make
76805         versions do not understand.
76807 2008-08-01  Bruno Haible  <bruno@clisp.org>
76809         Work around bug of HP-UX 10.20 cc with -0.0 literal.
76810         * tests/test-isnanf.h (zero): New variable.
76811         (main): Avoid literal -0.0f.
76812         * tests/test-isnand.h (zero): New variable.
76813         (main): Avoid literal -0.0.
76814         * tests/test-isnanl.h (zero): New variable.
76815         (main): Avoid literal -0.0L.
76816         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
76817         (test_float, test_double, test_long_double): Avoid literals -0.0f,
76818         -0.0, -0.0L.
76819         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
76820         (test_signbitd): Avoid literal -0.0.
76821         (test_signbitl): Avoid literal -0.0L.
76822         * tests/test-ceilf1.c (zero): New variable.
76823         (main): Avoid literal -0.0f.
76824         * tests/test-ceill.c (zero): New variable.
76825         (main): Avoid literal -0.0L.
76826         * tests/test-floorf1.c (zero): New variable.
76827         (main): Avoid literal -0.0f.
76828         * tests/test-floorl.c (zero): New variable.
76829         (main): Avoid literal -0.0L.
76830         * tests/test-roundf1.c (zero): New variable.
76831         (main): Avoid literal -0.0f.
76832         * tests/test-round1.c (zero): New variable.
76833         (main): Avoid literal -0.0.
76834         * tests/test-roundl.c (zero): New variable.
76835         (main): Avoid literal -0.0L.
76836         * tests/test-truncf1.c (zero): New variable.
76837         (main): Avoid literal -0.0f.
76838         * tests/test-trunc1.c (zero): New variable.
76839         (main): Avoid literal -0.0.
76840         * tests/test-truncl.c (zero): New variable.
76841         (main): Avoid literal -0.0L.
76842         * tests/test-frexp.c (zero): New variable.
76843         (main): Avoid literal -0.0.
76844         * tests/test-frexpl.c (zero): New variable.
76845         (main): Avoid literal -0.0L.
76846         * tests/test-ldexpl.c (zero): New variable.
76847         (main): Avoid literal -0.0L.
76848         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
76849         (zerod, zerol): New variables.
76850         (test_function): Avoid literals -0.0, -0.0L.
76851         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
76852         (zerod, zerol): New variables.
76853         (test_function): Avoid literals -0.0, -0.0L.
76854         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
76855         (zerod, zerol): New variables.
76856         (test_function): Avoid literals -0.0, -0.0L.
76857         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
76858         (zerod, zerol): New variables.
76859         (test_function): Avoid literals -0.0, -0.0L.
76860         * tests/test-strtod.c (zero): New variable.
76861         (main): Avoid literal -0.0.
76862         Reported by Jonathan C. Patschke <jp@centtech.com>.
76864 2008-07-31  Jim Meyering  <meyering@redhat.com>
76866         sha256.h: correct definition of SHA224_DIGEST_SIZE
76867         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
76868         Reported by Paulie Pena IV <paulie4@gmail.com>.
76869         Define as 224 / 8, rather than as a literal.
76870         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
76871         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
76872         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
76874 2008-07-31  Bruno Haible  <bruno@clisp.org>
76876         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
76877         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
76878         Reported by Jonathan Patschke <jp@centtech.com>.
76880 2008-07-31  Bruno Haible  <bruno@clisp.org>
76882         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
76883         Reported by Paolo Bonzini <bonzini@gnu.org>.
76885 2008-07-30  Eric Blake  <ebb9@byu.net>
76887         test-strtod: allow compilation without -lm
76888         * tests/test-strtod.c (main): Avoid link dependence on fabs.
76889         Reported by Dennis Clarke <blastwave@gmail.com>.
76891 2008-07-28  Jim Meyering  <meyering@redhat.com>
76893         bootstrap: work also when there are no .po files in po/
76894         * build-aux/bootstrap (update_po_files): Complete the change
76895         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
76897 2008-07-27  Jim Meyering  <meyering@redhat.com>
76899         * users.txt: Add zile.
76901 2008-07-26  Ben Pfaff  <blp@gnu.org>
76903         Add missing dependencies on new m4/exponent[fdl].m4 files.
76904         * modules/isnanf-nolibm: Add m4/exponentf.m4.
76905         * modules/isnand-nolibm: Add m4/exponentd.m4.
76906         * modules/isnanl-nolibm: Add m4/exponentl.m4.
76907         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
76908         m4/isnan[fdl].m4, because the macros actually used moved.
76909         Reported by Jim Meyering.
76911 2008-07-14  Ben Pfaff  <blp@gnu.org>
76913         Add isinf module.
76914         * lib/isinf.c: New file.
76915         * lib/math.in.h: Define isinf macro if we have decided to replace
76916         it.
76917         * m4/isinf.m4: New file.
76918         * m4/math_h.m4: Initialize and substitute variables for isinf
76919         module.
76920         * modules/isinf: New file.
76921         * modules/isinf-tests: New file.
76922         * modules/math: Add substitutions for new module.
76923         * tests/test-isinf.c: New file.
76924         * doc/posix-functions/isinf.texi: Mention new module.
76925         * MODULES.html.sh: Mention new module.
76927 2008-07-14  Ben Pfaff  <blp@gnu.org>
76929         Factor out some macros for use by additional modules.
76930         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
76931         exponentf.m4.
76932         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
76933         exponentd.m4.
76934         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
76935         file exponentl.m4.
76936         * m4/exponentf.m4: New file.
76937         * m4/exponentd.m4: New file.
76938         * m4/exponentl.m4: New file.
76939         * modules/isnanf: Use new file m4/exponentf.m4.
76940         * modules/isnand: Use new file m4/exponentd.m4.
76941         * modules/isnanl: Use new file m4/exponentl.m4.
76943 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
76945         mktime.c: normalize tp->tm_isdst value to -1/0/1.
76946         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
76947         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
76948         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
76950         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
76951         readlink on platforms without PATH_MAX.
76953 2008-07-21  Eric Blake  <ebb9@byu.net>
76955         Warn, not fail, on stale version.
76956         * top/GNUmakefile (_curr-ver): Tone down previous patch.
76958         Don't allow installation with stale devel version number.
76959         * top/GNUmakefile (_is-install-target): New macro.
76960         (_curr-ver): Forbid installation with stale version number.
76962 2008-07-20  Bruno Haible  <bruno@clisp.org>
76964         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
76965         TESTS_ENVIRONMENT.
76966         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
76968 2008-07-20  Bruno Haible  <bruno@clisp.org>
76970         * lib/c-stack.h (c_stack_action): Add documentation.
76971         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
76973 2008-07-20  Bruno Haible  <bruno@clisp.org>
76975         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
76976         * modules/readlink (License): Likewise.
76978 2008-07-17  Eric Blake  <ebb9@byu.net>
76980         * modules/c-stack (Link): Fix typo.
76982         Make c-stack use libsigsegv, when available.
76983         * modules/c-stack (Depends-on): Add libsigsegv.
76984         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
76985         needed.
76986         * lib/c-stack.c (SIGSTKSZ): Define fallback.
76987         (segv_handler, overflow_handler, c_stack_action)
76988         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
76989         implementation when libsigsegv is available, but only when using
76990         the library is necessary.
76991         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
76992         comment, explaining why XSI check fails on Linux.
76993         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
76994         * tests/test-c-stack2.sh: Tweak skip message.
76995         * NEWS: Document new link-time requirements.
76997 2008-07-16  Eric Blake  <ebb9@byu.net>
76999         c-stack: Expose false positives when not using libsigsegv.
77000         * modules/c-stack-tests (Files): Expand test.
77001         * tests/test-c-stack.c (main): Add means to conditionally trigger
77002         non-overflow SIGSEGV.
77003         * tests/test-c-stack2.sh: New file.
77005 2008-07-14  Bruno Haible  <bruno@clisp.org>
77007         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
77008         Reported by Eric Blake.
77010 2008-07-14  Sam Steingold  <sds@gnu.org>
77011             Bruno Haible  <bruno@clisp.org>
77013         New module libsigsegv.
77014         * modules/libsigsegv: New file.
77015         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
77016         modifications.
77017         * MODULES.html.sh (Signal handling): New section.
77019 2008-07-14  Bruno Haible  <bruno@clisp.org>
77021         * modules/unictype/ctype-* (Description): Add the word "function".
77022         Improves the resulting doc in MODULES.html.
77024 2008-07-12  Ben Pfaff  <blp@gnu.org>
77026         Add longlong module.
77027         * modules/longlong: New file.
77029 2008-07-12  Bruno Haible  <bruno@clisp.org>
77031         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
77032         to empty.
77034 2008-07-10  Ben Pfaff  <blp@gnu.org>
77036         Add isnan module.
77037         * doc/posix-functions/isnan.texi: Mention new module.
77038         * lib/math.in.h: Define isnan macro if we have decided to replace
77039         it.
77040         * m4/isnan.m4: New file.
77041         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
77042         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
77043         also.
77044         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
77045         redundancy.
77046         * m4/math_h.m4: Initialize and substitute variables for isnan
77047         module.
77048         * modules/isnan: New file.
77049         * modules/isnan-tests: New file.
77050         * modules/math: Add substitutions for new module.
77051         * tests/test-isnan.c: New file.
77052         * MODULES.html.sh: Mention new module.
77054 2008-07-10  Ben Pfaff  <blp@gnu.org>
77056         Add isnanf module.
77057         * lib/isnanf.m4: New file.
77058         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
77059         (gl_HAVE_ISNANF_IN_LIBM): New macro.
77060         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
77061         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
77062         * modules/isnanf: New file.
77063         * modules/isnanf-tests: New file.
77064         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
77065         files.
77066         * tests/test-isnanf-nolibm.c: factored most of its contents into
77067         new file tests/test-isnanf.h.
77068         * tests/test-isnanf.h: New file.
77069         * tests/test-isnanf.c: New file.
77070         * MODULES.html.sh: Mention new module.
77071         * doc/glibc-functions/isnanf.texi: Mention new module.
77073 2008-07-10  Ben Pfaff  <blp@gnu.org>
77075         Add isnand module.
77076         * lib/isnand.h: New file.
77077         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
77078         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
77079         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
77080         functionality also.
77081         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
77082         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
77083         (gl_HAVE_ISNAND_IN_LIBM): New macro.
77084         * modules/isnand: New file.
77085         * modules/isnand-tests: New file.
77086         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
77087         files.
77088         * tests/test-isnand-nolibm.c: factored most of its contents into
77089         new file tests/test-isnand.h.
77090         * tests/test-isnand.h: New file.
77091         * tests/test-isnand.c: New file.
77092         * MODULES.html.sh: Mention new module.
77094 2008-07-10  Ben Pfaff  <blp@gnu.org>
77096         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
77097         * lib/isnand.h: Rename lib/isnand-nolibm.h.
77098         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
77099         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
77100         * modules/isnanf-nolibm: Update references to renamed files.
77101         * modules/isnand-nolibm: Likewise.
77102         * modules/isnanf-nolibm-tests: Likewise.
77103         * modules/isnand-nolibm-tests: Likewise.
77104         * lib/frexp.c: Likewise.
77105         * lib/isfinite.c: Likewise.
77106         * lib/signbitd.c: Likewise.
77107         * lib/signbitf.c: Likewise.
77108         * lib/vasnprintf.c: Likewise.
77109         * tests/test-ceilf1.c: Likewise.
77110         * tests/test-ceilf2.c: Likewise.
77111         * tests/test-floorf1.c: Likewise.
77112         * tests/test-floorf2.c: Likewise.
77113         * tests/test-frexp.c: Likewise.
77114         * tests/test-round1.c: Likewise.
77115         * tests/test-round2.c: Likewise.
77116         * tests/test-roundf1.c: Likewise.
77117         * tests/test-strtod.c: Likewise.
77118         * tests/test-trunc1.c: Likewise.
77119         * tests/test-trunc2.c: Likewise.
77120         * tests/test-truncf1.c: Likewise.
77121         * tests/test-truncf2.c: Likewise.
77122         * NEWS: Mention the renamed header files.
77124 2008-07-11  Jim Meyering  <meyering@redhat.com>
77126         vc-list-files: make the last-resort awk code more portable
77127         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
77128         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
77129         does not support it.
77131 2008-07-10  Eric Blake  <ebb9@byu.net>
77133         Work with tar's bootstrap.
77134         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
77135         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
77136         an m4 comment.
77138 2008-07-09  Jim Meyering  <meyering@redhat.com>
77140         posix-shell.m4: fix typo that made this test malfunction
77141         * m4/posix-shell.m4: Remove capitalization in variable name.
77143 2008-07-08  Bruno Haible  <bruno@clisp.org>
77145         * m4/onceonly.m4: Update comments.
77146         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77148 2008-07-04  Jim Meyering  <meyering@redhat.com>
77150         * users.txt: Add vc-dwim.
77151         (bison, coreutils): Use the gitweb URL.
77153 2008-07-03  Jim Meyering  <meyering@redhat.com>
77155         * users.txt: Add libffcall.  From Sam Steingold.
77157 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
77159         getdate.y: do not ignore TZ with relative day, month or year offset
77160         * lib/getdate.y (get_date): Move the tz-handling block to follow the
77161         relative-date-handling, since otherwise, the latter would clobber the
77162         sole output (an updated Start value) of the tz-handling block.
77163         * tests/test-getdate.c: Tests for the fix
77165 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77167         Recognize 'foo_LIBRARIES += libgnu.a'.
77168         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
77169         makefile snippet has already specified an installation location,
77170         also using '+='.
77172 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
77174         getdate.y: factor out common actions
77175         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
77176         Use them in place of open-coded actions.
77178 2008-07-01  Simon Josefsson  <simon@josefsson.org>
77180         Add self-test for getdate module.
77181         * modules/getdate-tests: New file.
77182         * tests/test-getdate.c: New file.
77184 2008-06-29  Bruno Haible  <bruno@clisp.org>
77186         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
77187         .gitignore.
77188         Reported by Sylvain Beucler <beuc@beuc.net>.
77190 2008-06-29  Bruno Haible  <bruno@clisp.org>
77192         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
77193         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
77195 2008-06-29  Bruno Haible  <bruno@clisp.org>
77197         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
77198         EXTRA_DIST.
77199         Reported by Sylvain Beucler <beuc@beuc.net>.
77201 2008-06-26  Jim Meyering  <meyering@redhat.com>
77203         make several modules depend on the "open" module
77204         This provides slightly increased consistency when opening-for-write
77205         the name of a non-directory spelled with a trailing slash.
77206         * modules/chdir-safer: Likewise.
77207         * modules/chown: Likewise.
77208         * modules/clean-temp: Likewise.
77209         * modules/copy-file: Likewise.
77210         * modules/fchdir: Likewise.
77211         * modules/fcntl-safer: Likewise.
77212         * modules/pipe: Likewise.
77213         * modules/utime: Likewise.
77214         Prompted by Eric Blake and Bruno Haible.
77216 2008-06-24  Andreas Schwab  <schwab@suse.de>
77218         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
77219         literals can be used as initializers for global variables.
77221 2008-06-23  Eric Blake  <ebb9@byu.net>
77223         Make gnulib-cache.m4 easier to diff.
77224         * gnulib-tool (func_import): Allow newlines when reading cached
77225         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
77227 2008-06-23  Bruno Haible  <bruno@clisp.org>
77229         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
77230         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
77231         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
77232         m4/signalblocking.m4.
77233         (gl_PREREQ_SIGACTION): Don't invoke it.
77234         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
77235         gl_PREREQ_SIG_HANDLER_H.
77236         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77237         Don't check for sigaction here.
77239 2008-06-23  Bruno Haible  <bruno@clisp.org>
77241         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
77242         (install_handlers): Don't set the SA_RESETHAND flag.
77244 2008-06-23  Bruno Haible  <bruno@clisp.org>
77246         * m4/sigaction.m4: Comment fixes.
77247         * lib/signal.in.h: Likewise.
77249 2008-06-23  Eric Blake  <ebb9@byu.net>
77251         Fix typo.
77252         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
77254         Avoid SA_ namespace.
77255         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
77256         Reported by Ralf Wildenhues.
77258         Avoid test failure due to SA_RESTORER.
77259         * tests/test-sigaction.c (SA_MASK): New macro.
77260         (main): Avoid failing due to extension flags being set.
77261         Reported by Jim Meyering.
77263         Revert use of sig-handler.h in sigprocmask.c.
77264         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
77265         it requires the existence of struct sigaction.
77266         * lib/sigprocmask.c (handler_t): Restore typedef.
77267         (rpl_signal, old_handlers): Use local type.
77269 2008-06-22  Bruno Haible  <bruno@clisp.org>
77271         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
77272         conditionally.
77273         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
77275 2008-06-22  Bruno Haible  <bruno@clisp.org>
77277         * doc/posix-functions/siginterrupt.texi: Move note.
77279         * lib/signal.in.h (SA_RESTART): New macro.
77280         * lib/sigaction.c: Update comment.
77282         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
77284         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
77285         (gl_PREREQ_SIGPROCMASK): Invoke it.
77286         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
77288         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
77290         * lib/sigprocmask.c: Update a comment.
77292 2008-06-21  Eric Blake  <ebb9@byu.net>
77294         Use sigaction module rather than signal().
77295         * modules/c-stack (Depends-on): Add sigaction.
77296         * modules/fatal-signal (Depends-on): Likewise.
77297         * modules/nanosleep (Depends-on): Likewise.
77298         * modules/sigprocmask (Files): Add sig-handler.h.
77299         * modules/sigaction (Files): Likewise.
77300         * lib/sig-handler.h (get_handler): New file, suggested by Paul
77301         Eggert.
77302         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
77303         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
77304         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
77305         (init_fatal_signals): Likewise.
77306         * lib/nanosleep.c (rpl_nanosleep): Likewise.
77307         (siginterrupt): Delete fallback.
77308         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
77309         instead.
77310         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
77311         siginterrupt.
77313         New module sigaction, for mingw.
77314         * modules/sigaction: New module...
77315         * modules/sigaction-tests: ...and its test.
77316         * m4/sigaction.m4: New file.
77317         * lib/sigaction.c: Likewise.
77318         * tests/test-sigaction.c: Likewise.
77319         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
77320         * modules/signal (Makefile.am): Likewise.
77321         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
77322         needed.
77323         * doc/posix-headers/signal.texi (signal.h): Mention provided
77324         types.
77325         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
77326         that sigaction is preferable.
77327         * doc/posix-functions/sigaction.texi (sigaction): Mention new
77328         module.
77329         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77330         sigaction.
77332         Improve robustness of sigprocmask by overriding signal.
77333         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
77334         is in use.
77335         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
77336         (SIGKILL, SIGSTOP): Provide fallbacks.
77337         (rpl_signal): Implement.
77338         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
77339         signal can be called inside handlers.
77341         Fix nanosleep module on mingw.
77342         * modules/nanosleep (Depends-on): Add sys_select.
77343         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
77345         Fix licensing of sigprocmask.
77346         * modules/raise (License): Relicense as LGPL.
77348 2008-06-21  Bruno Haible  <bruno@clisp.org>
77350         * lib/propername.c (proper_name_utf8): Don't use the transliterated
77351         result if it contains question marks.
77352         Reported by Michael Geng <linux@michaelgeng.de>.
77354 2008-06-19  Bruno Haible  <bruno@clisp.org>
77356         Fix CVS-ism.
77357         * doc/gnulib.texi: Include updated-stamp.texi.
77358         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
77359         (updated-stamp.texi): New rule.
77360         (gnulib.info): Depend on it.
77361         * doc/.gitignore: Add updated-stamp.texi.
77362         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
77364 2008-06-19  Bruno Haible  <bruno@clisp.org>
77366         * doc/Makefile (gnulib.info): Update and simplify dependencies.
77367         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77369 2008-06-19  Eric Blake  <ebb9@byu.net>
77371         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
77372         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
77373         Reported by Stepan Kasal.
77375 2008-06-18  Bruno Haible  <bruno@clisp.org>
77377         * lib/fatal-signal.c (init_fatal_signals): Add comment.
77378         Reported by Eric Blake.
77380 2008-06-18  Eric Blake  <ebb9@byu.net>
77382         Work around cygwin 1.5.25 strsignal bug.
77383         * tests/test-strsignal.c: Allow for const char *.
77384         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
77386 2008-06-18  Simon Josefsson  <simon@josefsson.org>
77388         * users.txt: Update URL to article and add author/date
77389         information.
77391 2008-06-17  Bruno Haible  <bruno@clisp.org>
77393         New macro gl_DISABLE_THREADS.
77394         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
77395         if the user did not pass --enable-threads or --disable-threads option.
77396         (gl_DISABLE_THREADS): New macro.
77397         Reported by Eric Blake <ebb9@byu.net>.
77399 2008-06-17  Bruno Haible  <bruno@clisp.org>
77401         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
77402         when the macro ignores it.
77403         Based on a patch by Eric Blake <ebb9@byu.net>.
77405 2008-06-17  Bruno Haible  <bruno@clisp.org>
77407         * modules/tls (License): Change to LGPLv2+.
77408         Reported by Eric Blake.
77410 2008-06-17  Eric Blake  <ebb9@byu.net>
77412         Simplify c-stack prerequisites.
77413         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
77414         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
77415         no longer requires <ucontext.h> to exist.  Optimize setrlimit
77416         check.
77417         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
77418         <sys/resource.h>.
77420         Move c-stack test into testsuite.
77421         * modules/c-stack-tests: New file.
77422         * lib/c-stack.c [DEBUG]: Move test program...
77423         * tests/test-c-stack.c: ...into this new file.  Skip rather than
77424         fail test if sigaltstack is lacking.
77425         * tests/test-c-stack.sh: New driver file.
77427 2008-06-16  Eric Blake  <ebb9@byu.net>
77429         Use raise module consistently.
77430         * modules/fatal-signal (Depends-on): Add raise.
77431         * modules/sigprocmask (Depends-on): Likewise.
77432         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
77433         * lib/sigprocmask.c (sigprocmask): Likewise.
77434         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77435         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
77437         Fix compliance bug in sigpending.
77438         * lib/sigprocmask.c (sigpending): Return pending array via
77439         parameter, not return value.
77441 2008-06-14  Eric Blake  <ebb9@byu.net>
77443         Improve obstack-printf test code.
77444         * tests/test-obstack-printf.c (test_function): Fix comment, and
77445         simplify usage of obstack_* in macros.  Add a test for coverage.
77446         Reported by Bruno Haible.
77448 2008-06-14  Bruno Haible  <bruno@clisp.org>
77450         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
77451         array size as a constant, not as a const variable.
77452         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
77453         AC_USE_SYSTEM_EXTENSIONS.
77454         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
77455         Test whether the obstack_printf function actually exists.
77456         * modules/obstack-printf (Depends-on): Add extensions.
77457         (Include): Remove obstack.h.
77458         * modules/obstack-printf-posix (Depends-on): Add extensions.
77459         (Include): Remove obstack.h.
77461 2008-06-13  Eric Blake  <ebb9@byu.net>
77463         Add obstack-printf and obstack-printf-posix modules.
77464         * modules/obstack-printf: New file.
77465         * modules/obstack-printf-posix: Likewise.
77466         * MODULES.html.sh (Misc): Mention them.
77467         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
77468         Likewise.
77469         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
77470         Likewise.
77471         * modules/stdio (Makefile.am): Accomodate new modules.
77472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
77473         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
77474         Declare.
77475         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
77476         functions.
77477         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
77478         (gl_REPLACE_OBSTACK_PRINTF): New macros
77479         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
77480         * tests/test-obstack-printf.c: New file.
77481         * modules/obstack-printf-tests: Likewise.
77482         * modules/obstack-printf-posix-tests: Likewise.
77484 2008-06-11  Bruno Haible  <bruno@clisp.org>
77486         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
77487         * lib/open.c: Include errno.h.
77488         (open): Fail when attempting to write to a file that has a trailing
77489         slash.
77490         * tests/test-open.c (main): Test against trailing slash bug.
77491         * doc/posix-functions/open.texi: Mention the trailing slash bug.
77493 2008-06-10  Bruno Haible  <bruno@clisp.org>
77495         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
77496         for $? to work inside the trap command, with various /bin/sh-s.
77497         * tests/test-vc-list-files-cvs.sh: Likewise.
77499 2008-06-10  Bruno Haible  <bruno@clisp.org>
77501         * lib/acl-internal.h: Don't include gettext.h here.
77502         * lib/set-mode-acl.c: Include gettext.h here.
77503         * lib/copy-acl.c: Likewise.
77505 2008-06-10  Bruno Haible  <bruno@clisp.org>
77507         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
77508         * lib/wait-process.c (wait_subprocess): Likewise.
77509         * lib/execute.h (execute): Add termsigp argument.
77510         * lib/execute.c (execute): Likewise.
77511         * lib/csharpcomp.c (compile_csharp_using_pnet,
77512         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
77513         * lib/csharpexec.c (execute_csharp_using_pnet,
77514         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
77515         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
77516         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
77517         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
77518         is_jikes_present): Update.
77519         * lib/javaexec.c (execute_java_class): Update.
77520         * lib/javaversion.c (execute_and_read_line): Update.
77521         * NEWS: Document the changes.
77522         Reported by Eric Blake.
77524 2008-06-10  Eric Blake  <ebb9@byu.net>
77526         Add missing include.
77527         * tests/test-strstr.c (includes): Add <signal.h>.
77528         * tests/test-strcasestr.c (includes): Likewise.
77529         * tests/test-memmem.c (includes): Likewise.
77531 2008-06-10  Bruno Haible  <bruno@clisp.org>
77533         * lib/wait-process.c (wait_subprocess): Add an assertion.
77535 2008-06-10  Bruno Haible  <bruno@clisp.org>
77537         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
77539 2008-06-10  Bruno Haible  <bruno@clisp.org>
77541         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
77542         using alarm().
77543         * tests/test-strcasestr.c (main): Likewise.
77544         * tests/test-strstr.c (main): Likewise.
77546 2008-06-09  Bruno Haible  <bruno@clisp.org>
77548         Work around the Solaris 10 ACE ACLs ABI change.
77549         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
77550         declare if ACL_NO_TRIVIAL is present.
77551         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
77552         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
77553         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
77554         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
77555         define if ACL_NO_TRIVIAL is present.
77556         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
77557         and use the current ABI.
77558         (file_has_acl): Use same #if condition as elsewhere.
77559         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
77560         in use, and use the current ABI.
77561         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
77562         Reported by Jim Meyering.
77564 2008-06-09  Eric Blake  <ebb9@byu.net>
77566         Work around environments that (stupidly) ignore SIGALRM.
77567         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
77568         before using alarm().
77569         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
77570         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
77571         Reported by Ian Beckwith <ianb@erislabs.net>.
77573         Produce autobuild blurb earlier in log.
77574         * modules/autobuild (configure.ac-early): Move AB_INIT here.
77576 2008-06-09  Jim Meyering  <meyering@redhat.com>
77577         and Ondřej Vašík  <ovasik@redhat.com>
77579         utimens.c: correct kernel bug work-around
77580         Ondřej Vašík found that the invalid return value of 280 indicates
77581         failure, not success, and the kernel bug we're trying to work
77582         around affects not just the utimensat call, but also the fallback
77583         futimens call.
77584         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
77585         not success.
77586         [HAVE_FUTIMENS]: Use the same work-around, here.
77588 2008-06-09  Jim Meyering  <meyering@redhat.com>
77590         add more guards around definition of ACE_-related code
77591         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
77592         ALLOW and ACE_OWNER are also defined.
77594 2008-06-08  Bruno Haible  <bruno@clisp.org>
77596         * lib/acl-internal.h: Add me as co-author.
77597         * lib/file-has-acl.c: Likewise.
77598         * lib/set-mode-acl.c: Likewise.
77599         * lib/copy-acl.c: Likewise.
77601 2008-06-08  Bruno Haible  <bruno@clisp.org>
77603         Add support for AIX ACLs.
77604         * lib/acl-internal.h (acl_nontrivial): New declaration.
77605         * lib/file-has-acl.c (acl_nontrivial): New function.
77606         (file_has_acl): Add implementation using AIX 4 ACL API.
77607         * lib/set-mode-acl.c (qset_acl): Likewise.
77608         * lib/copy-acl.c (qcopy_acl): Likewise.
77610 2008-06-08  Bruno Haible  <bruno@clisp.org>
77612         Add support for HP-UX ACLs.
77613         * lib/acl-internal.h (acl_nontrivial): New declaration.
77614         * lib/file-has-acl.c (acl_nontrivial): New function.
77615         (file_has_acl): Add implementation using HP-UX 11 ACL API.
77616         * lib/set-mode-acl.c (qset_acl): Likewise.
77617         * lib/copy-acl.c (qcopy_acl): Likewise.
77619 2008-06-08  Bruno Haible  <bruno@clisp.org>
77621         Add support for Cygwin ACLs.
77622         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
77623         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
77624         the chmod_or_fchmod call.
77625         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
77627 2008-06-08  Bruno Haible  <bruno@clisp.org>
77629         Fix bug with setuid modes in Solaris 10+ code.
77630         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
77631         succeeded, when the mode contains some special bits.
77633 2008-06-08  Bruno Haible  <bruno@clisp.org>
77635         Add support for Solaris 7..10 ACLs.
77636         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
77637         declarations.
77638         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
77639         functions.
77640         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
77641         * lib/set-mode-acl.c (qset_acl): Likewise.
77642         * lib/copy-acl.c (qcopy_acl): Likewise.
77644 2008-06-08  Bruno Haible  <bruno@clisp.org>
77646         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
77647         declaration.
77648         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
77649         (acl_access_nontrivial): Remove MacOS X case.
77650         (file_has_acl): Use acl_extended_nontrivial.
77651         * lib/copy-acl.c (qcopy_acl): Likewise.
77653 2008-06-08  Bruno Haible  <bruno@clisp.org>
77655         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
77657 2008-06-08  Jim Meyering  <meyering@redhat.com>
77659         * modules/acl (Maintainer): Add Bruno Haible.
77661 2008-06-07  Bruno Haible  <bruno@clisp.org>
77663         Improve support for Tru64 ACLs.
77664         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
77665         ACL on OSF/1.
77667 2008-06-07  Bruno Haible  <bruno@clisp.org>
77669         Add support for MacOS X ACLs.
77670         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
77671         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
77672         * lib/set-mode-acl.c (qset_acl): Likewise.
77673         * lib/copy-acl.c (qcopy_acl): Likewise.
77675 2008-06-07  Bruno Haible  <bruno@clisp.org>
77677         Fix memory leak introduced on 2008-05-22.
77678         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
77679         use.
77681 2008-06-07  Bruno Haible  <bruno@clisp.org>
77683         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
77684         to construct an empty ACL.
77686 2008-06-07  Bruno Haible  <bruno@clisp.org>
77688         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
77689         precisely.
77690         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
77692 2008-06-07  Bruno Haible  <bruno@clisp.org>
77694         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
77695         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
77697 2008-06-07  Bruno Haible  <bruno@clisp.org>
77699         * doc/posix-functions/_setjmp.texi: Explain the use of this function
77700         regardless of POSIX.
77701         * doc/posix-functions/_longjmp.texi: Likewise.
77702         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
77703         SystemV platform in this case.
77705 2008-06-06  Eric Blake  <ebb9@byu.net>
77707         Document abort() bugs.
77708         * doc/posix-functions/abort.texi (abort): Mention anomalies.
77710         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
77711         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
77712         sigsetjmp.
77713         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
77714         siglongjmp, but only as a macro.
77715         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
77716         is obsolete.
77717         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
77719         Tweak documentation to cover cygwin argz bugs.
77720         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
77721         argz bug fix; no code change needed since no cygwin releases
77722         occurred between the last fix and the bug being tested.
77723         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
77724         module and recently fixed cygwin bugs.
77725         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
77726         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
77727         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
77728         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
77729         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
77730         Likewise.
77731         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
77732         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
77733         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
77734         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
77735         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
77736         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
77737         Likewise.
77739         Avoid gcc warning on cygwin.
77740         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
77741         !ACL_NO_TRIVIAL]: Avoid unused variable.
77743 2008-06-05  Eric Blake  <ebb9@byu.net>
77745         Be tolerant of UNKNOWN version in gnulib-tool test dir.
77746         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
77747         git-version-gen fails to come up with a version.
77748         Reported by Simon Josefsson.
77750 2008-06-05  Jim Meyering  <meyering@redhat.com>
77751             Paul Eggert  <eggert@cs.ucla.edu>
77753         utimens.c: work around a probable Linux kernel bug
77754         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
77755         appears to be a kernel bug that causes utimensat to return 280
77756         instead of 0, indicating success.
77758 2008-06-04  Bruno Haible  <bruno@clisp.org>
77760         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
77761         2008-06-01 commit.
77763 2008-06-04  Bruno Haible  <bruno@clisp.org>
77765         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
77766         * lib/file-has-acl.c (acl_access_nontrivial): New function.
77767         (file_has_acl): Use it. Save errno afterwards.
77768         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
77770 2008-06-03  Bruno Haible  <bruno@clisp.org>
77772         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
77773         draft code. Simplify #ifs.
77774         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
77775         Put Solaris code after POSIX-draft code. Fix comments regarding
77776         Solaris 10, HP-UX. Mention Cygwin.
77777         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
77779 2008-06-03  Eric Blake  <ebb9@byu.net>
77781         Provide fallback for older kernels.
77782         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
77783         Provide runtime fallback if kernel lacks support.
77784         Reported by Mike Frysinger.
77786 2008-06-02  Bruno Haible  <bruno@clisp.org>
77788         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
77789         it exists.
77791 2008-06-02  Bruno Haible  <bruno@clisp.org>
77793         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
77794         * lib/copy-acl.c (qcopy_acl): Update comment.
77796 2008-06-02  Bruno Haible  <bruno@clisp.org>
77798         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
77799         like ACL APIs.
77801 2008-06-02  Bruno Haible  <bruno@clisp.org>
77803         * tests/test-file-has-acl.sh: Use different code for Cygwin.
77804         * tests/test-set-mode-acl.sh: Likewise.
77805         * tests/test-copy-acl.sh: Likewise.
77806         * tests/test-copy-file.sh: Likewise.
77808 2008-06-02  Bruno Haible  <bruno@clisp.org>
77810         * tests/test-file-has-acl.sh: Remove unused code.
77812 2008-06-01  Bruno Haible  <bruno@clisp.org>
77814         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
77815         (copy_acl): Just a wrapper around qcopy_acl that emits the error
77816         messages.
77817         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
77819 2008-06-01  Bruno Haible  <bruno@clisp.org>
77821         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
77822         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
77823         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
77824         APIs.
77825         * modules/acl-tests (configure.ac): Remove tests now contained in
77826         m4/acl.m4.
77828 2008-06-02  Jim Meyering  <meyering@redhat.com>
77830         announce-gen: use a better key-server host name
77831         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
77832         it may be more consistently reliable.  Suggested by Werner Koch
77833         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
77835 2008-06-01  Bruno Haible  <bruno@clisp.org>
77837         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
77838         Reported by Voroskoi Andras <voroskoi@gmail.com>.
77840 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
77842         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
77844 2008-06-01  Bruno Haible  <bruno@clisp.org>
77846         New ACL tests.
77847         * tests/test-file-has-acl.sh: New file.
77848         * tests/test-file-has-acl.c: New file.
77849         * tests/test-set-mode-acl.sh: New file.
77850         * tests/test-set-mode-acl.c: New file.
77851         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
77852         * tests/test-copy-acl.c: New file.
77853         * modules/acl-tests: New file, based on modules/copy-file-tests.
77854         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
77855         (Depends-on): Add acl-tests.
77856         (configure.ac): Remove checks.
77857         (Makefile.am): Don't create test-sameacls program here any more.
77859 2008-06-01  Bruno Haible  <bruno@clisp.org>
77861         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
77862         * tests/test-sameacls.c: Include progname.h.
77863         (main): Invoke set_program_name. Portability fixes for MacOS X,
77864         Solaris, HP-UX.
77866 2008-06-01  Bruno Haible  <bruno@clisp.org>
77868         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
77869         function.
77870         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
77872 2008-06-01  Bruno Haible  <bruno@clisp.org>
77874         * modules/rpmatch (Depends-on): Add strdup.
77876 2008-06-01  Bruno Haible  <bruno@clisp.org>
77878         * lib/pipe.c: Include unistd-safer.h.
77879         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
77880         * modules/pipe (Depends-on): Add unistd-safer.
77882 2008-05-30  Simon Josefsson  <simon@josefsson.org>
77884         * modules/autobuild (configure.ac): Call AB_INIT.
77886 2008-05-30  Simon Josefsson  <simon@josefsson.org>
77888         * tests/test-getaddrinfo.c: Don't print debug messages by default.
77889         Suggested by Bruno Haible <bruno@clisp.org>.
77891 2008-05-30  Simon Josefsson  <simon@josefsson.org>
77893         * tests/test-base64.c: Cast size_t to unsigned long when invoking
77894         printf.  Use %lu instead of %d.  Reported by Bruno Haible
77895         <bruno@clisp.org>.
77897 2008-05-29  Eric Blake  <ebb9@byu.net>
77899         Prefer new POSIX 200x interfaces over futimesat.
77900         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
77901         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
77902         when available.
77903         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
77905 2008-05-28  Bruno Haible  <bruno@clisp.org>
77907         * modules/stpcpy (License): Change to LGPLv2+.
77908         Requested by David Lutterkort <dlutter@redhat.com>.
77910 2008-05-27  Bruno Haible  <bruno@clisp.org>
77912         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
77913         current mingw.
77914         Reported by Jose E. Marchesi <jemarch@gnu.org>.
77916 2008-05-27  Bruno Haible  <bruno@clisp.org>
77918         * modules/iconv_open (Link): New section, from module 'iconv'.
77919         * modules/striconv (Link): Likewise.
77920         * modules/striconveh (Link): Likewise.
77921         * modules/xstriconv (Link): Likewise.
77922         * modules/unicodeio (Link): Likewise.
77923         * modules/propername (Link): Likewise.
77924         Reported by Jim Meyering.
77926 2008-05-26  Jim Meyering  <meyering@redhat.com>
77928         sha256: do not artificially restrict buffer length to be < 2^32
77929         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
77930         uint32_t to size_t.
77931         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
77932         to match.
77934         avoid unaligned access errors, e.g., on sparc
77935         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
77936         direct access through a possibly-unaligned uint64* pointer.
77937         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
77938         direct access through a possibly-unaligned uint32* pointer.
77939         Prompted by this patch from Tom "spot" Callaway:
77940         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
77942         sha512.c: fix typo in comment
77943         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
77945 2008-05-25  Bruno Haible  <bruno@clisp.org>
77947         * lib/set-mode-acl.c: Renamed from lib/acl.c.
77948         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
77949         (Makefile.am): Update lib_SOURCES.
77951 2008-05-25  Bruno Haible  <bruno@clisp.org>
77953         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
77955 2008-05-25  Jim Meyering  <meyering@redhat.com>
77957         useless-if-before-free: freed expr may have white-space differences
77958         * build-aux/useless-if-before-free: Recognize cases in which the
77959         freed expression differs from the tested one in embedded white
77960         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
77961         $1 was used, so we can't make any regexp shy.  Improved tests now
77962         detect this.
77964         useless-if-before-free: accept white space in the expression.
77965         * build-aux/useless-if-before-free: For now, any white space
77966         in the expression must be identical in the free argument.
77968         useless-if-before-free: efficiency tweak
77969         * build-aux/useless-if-before-free: Make the expression-matching
77970         regexp "shy".
77971         Make the *outer* regexp shy, not the expr-matching one.
77973         update code-in-comment to accept cast of free arg
77974         * build-aux/useless-if-before-free: Update regexp.
77976 2008-05-25  Bruno Haible  <bruno@clisp.org>
77978         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
77979         * modules/copy-file-tests (Files, Makefile.am): Update.
77980         * tests/test-copy-file.c (func_test_copy): Update.
77982 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
77984         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
77986 2008-05-23  Bruno Haible  <bruno@clisp.org>
77988         Improve support for ACLs on OSF/1.
77989         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
77990         Remove fallback for unknown flavors of ACLs.
77992 2008-05-22  Bruno Haible  <bruno@clisp.org>
77994         Add support for ACLs on OSF/1.
77995         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
77996         replacements.
77997         (acl_free_text): New macro fallback.
77998         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
77999         acl_free.
78000         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
78001         acl_free_text function. Require AC_C_INLINE.
78003 2008-05-22  Bruno Haible  <bruno@clisp.org>
78005         Make copy_acl work on MacOS X 10.5.
78006         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
78007         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
78008         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
78009         If MODE_INSIDE_ACL, don't assume that every system has the same text
78010         representation for ACLs as FreeBSD.
78011         * lib/copy-acl.c (copy_acl): Add support for platforms with
78012         !MODE_INSIDE_ACL.
78013         * lib/file-has-acl.c (file_has_acl): Likewise.
78014         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
78015         FreeBSD, MacOS X, or IRIX, respectively.
78017 2008-05-22  Bruno Haible  <bruno@clisp.org>
78019         * lib/acl.h: Don't include <sys/acl.h>.
78020         (GETACLCNT): Move fallback to lib/acl-internal.h.
78021         * lib/acl-internal.h: Include <sys/acl.h> here.
78022         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
78024 2008-05-22  Bruno Haible  <bruno@clisp.org>
78026         Split off copy_acl function to separate file.
78027         * lib/copy-acl.c: New file, extracted from lib/acl.c.
78028         * lib/acl.c (copy_acl): Moved function to separate file.
78029         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
78030         * modules/acl (Files): Add lib/copy-acl.c.
78031         (Makefiles.am): Augment lib_SOURCES.
78033 2008-05-22  Bruno Haible  <bruno@clisp.org>
78035         * modules/copy-file-tests: New file.
78036         * tests/test-copy-file.sh: New file.
78037         * tests/test-copy-file.c: New file.
78038         * tests/test-copy-file-sameacls.c: New file.
78040 2008-05-22  Eric Blake  <ebb9@byu.net>
78042         Avoid gcc warning.
78043         * tests/test-memcmp.c (main): Pass NULL indirectly.
78045 2008-05-21  Bruno Haible  <bruno@clisp.org>
78047         Add reference doc about ACLs.
78048         * doc/acl-resources.txt: New file.
78049         * doc/acl-cygwin.txt: New file.
78051 2008-05-21  Bruno Haible  <bruno@clisp.org>
78053         Avoid one more warning from gcc.
78054         * lib/vasnprintf.c (IF_LINT): Update comments.
78055         (VASNPRINTF): Use it also for the 'prefix' array initializer.
78057 2008-05-21  Jim Meyering  <meyering@redhat.com>
78059         avoid a warning from gcc
78060         * lib/vasnprintf.c (IF_LINT): Define.
78061         (scale10_round_decimal_long_double):
78062         Use it to avoid a "may be used uninitialized" warning.
78063         (scale10_round_decimal_double): Likewise.
78065 2008-05-21  Simon Josefsson  <simon@josefsson.org>
78067         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
78068         declared.
78070 2008-05-20  Bruno Haible  <bruno@clisp.org>
78072         * tests/test-memcmp.c (main): Test also the sign of the result. Test
78073         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
78075 2008-05-20  Simon Josefsson  <simon@josefsson.org>
78077         * modules/memcmp-tests: New file.
78078         * tests/test-memcmp.c: New file.
78080 2008-05-19  Bruno Haible  <bruno@clisp.org>
78082         * modules/propername (Notice, configure.ac): Put quoted "..." into
78083         --keyword option.
78084         * lib/propername.h: Update comments accordingly.
78085         Reported by Eric Blake.
78087 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
78089         * modules/getpass-gnu (Depends-on): Add fseeko.
78091 2008-05-19  Simon Josefsson  <simon@josefsson.org>
78093         * modules/base64-tests: New file.
78095 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
78097         * lib/base64.c (base64_decode_ctx): If a decode context structure
78098         was passed in use it to ignore newlines.  If a context structure
78099         was _not_ passed in, continue to treat newlines as garbage (this
78100         is the historical behavior).  Formerly base64_decode.
78101         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
78102         takes a decode context structure.
78103         * lib/base64.h (base64_decode): Macro for four-argument calls.
78104         (base64_decode_alloc): Likewise.
78105         * lib/base64.c (base64_decode_ctx): If a decode context structure
78106         was passed in use it to ignore newlines.  If a context structure
78107         was _not_ passed in, continue to treat newlines as garbage (this
78108         is the historical behavior).  Formerly base64_decode.
78109         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
78110         takes a decode context structure.
78111         * lib/base64.h (base64_decode): Macro for four-argument calls.
78112         (base64_decode_alloc): Likewise.
78114 2008-05-19  Jim Meyering  <meyering@redhat.com>
78116         avoid a warning from gcc
78117         * lib/trim.c (IF_LINT): Define.
78118         (trim2): Use it to avoid a "may be used uninitialized" warning.
78120         Fix doc typo.
78121         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
78123 2008-05-19  Bruno Haible  <bruno@clisp.org>
78125         * doc/glibc-functions/getpass.texi: Document limits of other
78126         implementations.
78128 2008-05-19  Simon Josefsson  <simon@josefsson.org>
78129             Bruno Haible <bruno@clisp.org>
78131         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
78133 2008-05-18  Bruno Haible  <bruno@clisp.org>
78135         * modules/propername: New file, from GNU gettext.
78136         * lib/propername.h: New file, from GNU gettext.
78137         * lib/propername.c: New file, from GNU gettext.
78138         * MODULES.html.sh (Internationalization functions): Add propername.
78140 2008-05-16  Jim Meyering  <meyering@redhat.com>
78141             Bruno Haible  <bruno@clisp.org>
78143         Avoid some warnings from "gcc -Wshadow".
78144         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
78146 2008-05-15  Eric Blake  <ebb9@byu.net>
78148         Extend previous patch to cygwin 1.7.0.
78149         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
78150         fast implementation in cygwin >= 1.7.0.
78151         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
78152         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78154 2008-05-15  Bruno Haible  <bruno@clisp.org>
78156         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
78157         implementation in glibc >= 2.9.
78158         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
78159         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78161 2008-05-15  Bruno Haible  <bruno@clisp.org>
78163         * MODULES.html.sh (Internationalization functions): Remove linebreak.
78164         (Unicode string functions): Add unilbrk/*.
78165         Reported by Karl Berry.
78167 2008-05-15  Eric Blake  <ebb9@byu.net>
78169         Fix violation of <stdbool.h> replacement in regex.
78170         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
78171         * lib/regexec.c (re_search_internal): Likewise.
78172         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
78174 2008-05-15  Jim Meyering  <meyering@redhat.com>
78176         avoid distracting test output when git or cvs is not found
78177         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
78178         * tests/test-vc-list-files-git.sh: Likewise.
78180 2008-05-15  Eric Blake  <ebb9@byu.net>
78182         Glibc finally accepted the memmem speedup code, bugzilla #5514.
78183         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
78184         glibc version.
78185         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
78186         * doc/posix-functions/strstr.texi (strstr): Likewise.
78187         * lib/str-two-way.h (MAX): Sychronize with glibc.
78189 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
78191         * lib/regcomp.c (optimize_utf8): Add a note on why we test
78192         opr.ctx_type.
78193         (calc_first): Initialize constraint field.
78194         (duplicate_node_closure): Use it instead of special casing ANCHORS.
78195         Fix grammar.
78196         (duplicate_node): Merge constraint field for all node types.
78197         (calc_eclosure_iter): Look at constraint field for all node types.
78198         * lib/regex_internal.c (create_cd_newstate): Don't look at
78199         opr.ctx_type.
78201 2008-05-14  Bruno Haible  <bruno@clisp.org>
78203         Help GCC to do better code generation.
78204         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
78205         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
78206         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
78207         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
78208         Declare with attribute 'malloc' if supported.
78210 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
78212         use "echo STR|wc -c" rather than unportable "expr length STR"
78213         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
78214         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
78216 2008-05-14  Jim Meyering  <meyering@redhat.com>
78218         use dd ibs=$n count=1 ... rather than less-portable head -c$n
78219         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
78220         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
78221         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
78222         via Collin Lasse.
78224 2008-05-14  Eric Blake  <ebb9@byu.net>
78226         Avoid quadratic growth in gl_LIBSOURCES.
78227         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
78228         Suggested by Bruno Haible.
78230         Test xmemdup0.
78231         * modules/xmemdup0-tests: New file.
78232         * tests/test-xmemdup0.c: Likewise.
78234 2008-05-13  Eric Blake  <ebb9@byu.net>
78236         Split xmemdup0 into its own module.
78237         * modules/xmemdup0: New file.
78238         * lib/xmemdup0.h: Likewise.
78239         * lib/xmemdup0.c: Likewise.
78240         * MODULES.html.sh (Memory management functions): Add xmemdup0.
78241         * lib/xalloc.h (xmemdup0): Remove.
78242         * lib/xmalloc.c (xmemdup0): Likewise.
78244 2008-05-13  Eric Blake  <ebb9@byu.net>
78245             Bruno Haible  <bruno@clisp.org>
78247         Reduce number of forks required during autoconf.
78248         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
78249         and gl_LIBSOURCES_DIR.
78250         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
78251         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
78252         m4_syscmd per file.
78253         <m4_foreach_w>: Move...
78254         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
78256 2008-05-13  Eric Blake  <ebb9@byu.net>
78258         * gnulib-tool: Fix various comment typos.
78260 2008-05-12  Bruno Haible  <bruno@clisp.org>
78262         Tailor the linebreaking algorithm.
78263         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
78265 2008-05-12  Bruno Haible  <bruno@clisp.org>
78267         Update to Unicode 5.0.0.
78268         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78269         LBP_JV, LBP_JT. Redistribute values.
78270         (unilbrk_table): Change size.
78271         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
78272         Unicode TR#14 rev. 22.
78273         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78274         LBP_JV, LBP_JT. Redistribute values.
78275         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
78276         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
78277         Update.
78278         * lib/unilbrk/lbrkprop1.h: Regenerated.
78279         * lib/unilbrk/lbrkprop2.h: Regenerated.
78280         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
78281         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
78282         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
78283         Likewise.
78284         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
78285         Likewise.
78286         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
78287         result.
78288         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
78289         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
78290         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
78291         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
78292         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
78293         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
78295 2008-05-11  Bruno Haible  <bruno@clisp.org>
78297         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
78299 2008-05-11  Bruno Haible  <bruno@clisp.org>
78301         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
78302         * modules/unilbrk/gen-lbrk: New file.
78304 2008-05-11  Bruno Haible  <bruno@clisp.org>
78306         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
78307         * m4/sha512.m4 (gl_SHA512): Likewise.
78309 2008-05-11  Jim Meyering  <meyering@redhat.com>
78311         New modules: crypto/sha256, crypto/sha512 (from coreutils)
78312         * modules/crypto/sha256: New file.
78313         * modules/crypto/sha512: Likewise.
78314         * lib/sha256.c: Likewise.
78315         * lib/sha256.h: Likewise.
78316         * lib/sha512.c: Likewise.
78317         * lib/sha512.h: Likewise.
78318         * lib/u64.h: Likewise.
78319         * m4/sha256.m4: Likewise.
78320         * m4/sha512.m4: Likewise.
78321         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
78323 2008-05-10  Bruno Haible  <bruno@clisp.org>
78325         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
78326         (Input/Output <stdio.h>): Add xprintf.
78327         (Signal handling <signal.h>): Add strsignal.
78328         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
78329         (Core language properties): Add func.
78330         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
78331         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
78332         strings.
78333         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
78334         (Input/output): New section.
78335         (File system functions): Add openat-die, stat-macros.
78336         (Networking functions): Add sockets.
78337         (Unicode string functions): Add unictype/*.
78338         (Support for building libraries and executables): Add gperf.
78339         (Support for building documentation): Add agpl-3.0.
78340         (Misc): Add nocrash.
78342 2008-05-10  Bruno Haible  <bruno@clisp.org>
78344         * modules/unictype/gen-ctype: New file.
78346 2008-05-10  Jim Meyering  <meyering@redhat.com>
78348         Make chdir-safer.c more efficient on a system with no symlinks.
78349         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
78350         also if ELOOP is zero.  Suggested by Bruno Haible.
78352         Make chdir-safer.c slightly safer.
78353         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
78354         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
78356         Avoid compile failure on systems without ELOOP (like mingw).
78357         * lib/chdir-safer.c (ELOOP): Define if not already defined.
78358         Reported by Bruno Haible.
78360 2008-05-10  Bruno Haible  <bruno@clisp.org>
78362         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
78363         (is_utf8_encoding): Use a case-insensitive comparison.
78364         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
78365         streq.
78367 2008-05-10  Bruno Haible  <bruno@clisp.org>
78369         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
78370         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
78371         * lib/unilbrk/ulc-common.h (iconv_string_length,
78372         iconv_string_keeping_offsets): Remove declarations.
78373         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
78374         Don't include <iconv.h>, streq.h, xsize.h.
78375         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
78376         conversion.
78377         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
78378         <iconv.h>, streq.h, xsize.h.
78379         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
78380         conversion.
78381         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
78382         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
78383         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
78384         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
78386 2008-05-10  Bruno Haible  <bruno@clisp.org>
78388         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
78389         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
78391         * modules/unilbrk/u32-width-linebreaks-tests: New file.
78392         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
78394         * modules/unilbrk/u16-width-linebreaks-tests: New file.
78395         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
78397         * modules/unilbrk/u8-width-linebreaks-tests: New file.
78398         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
78400         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
78401         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
78403         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
78404         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
78406         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
78407         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
78409         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
78410         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
78412 2008-05-10  Bruno Haible  <bruno@clisp.org>
78414         Split up 'linebreak' module.
78415         * lib/unilbrk.h: New file, based on lib/linebreak.h.
78416         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
78417         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
78418         modifications.
78419         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
78420         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
78421         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
78422         lib/linebreak.c.
78423         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
78424         lib/linebreak.c.
78425         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
78426         lib/linebreak.c.
78427         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
78428         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
78429         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
78430         lib/linebreak.c.
78431         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
78432         lib/linebreak.c.
78433         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
78434         lib/linebreak.c.
78435         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
78436         lib/linebreak.c.
78437         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
78438         lib/linebreak.c.
78439         * modules/unilbrk/base: New file.
78440         * modules/unilbrk/tables: New file.
78441         * modules/unilbrk/u8-possible-linebreaks: New file.
78442         * modules/unilbrk/u16-possible-linebreaks: New file.
78443         * modules/unilbrk/u32-possible-linebreaks: New file.
78444         * modules/unilbrk/ulc-common: New file.
78445         * modules/unilbrk/ulc-possible-linebreaks: New file.
78446         * modules/unilbrk/u8-width-linebreaks: New file.
78447         * modules/unilbrk/u16-width-linebreaks: New file.
78448         * modules/unilbrk/u32-width-linebreaks: New file.
78449         * modules/unilbrk/ulc-width-linebreaks: New file.
78450         * lib/linebreak.h: Remove file.
78451         * lib/linebreak.c: Remove file.
78452         * m4/linebreak.m4: Remove file.
78453         * modules/linebreak: Remove file.
78454         * NEWS: Mention the changes.
78456 2008-05-09  Eric Blake  <ebb9@byu.net>
78458         Add xmemdup0.
78459         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
78460         implementation.
78461         * lib/xmalloc.c (xmemdup0): New C implementation.
78463 2008-05-08  Bruno Haible  <bruno@clisp.org>
78465         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
78467 2008-05-07  Eric Blake  <ebb9@byu.net>
78469         Support cross-compilation of <wctype.h>.
78470         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
78471         AC_CACHE_CHECK.
78473 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
78475         * build-aux/vc-list-files: Add support for bzr.
78477 2008-05-03  Jim Meyering  <meyering@redhat.com>
78479         avoid failed assertion with tight malloc
78480         * tests/test-getndelim2.c: Correct an off-by-one assertion.
78482 2008-05-03  Simon Josefsson  <simon@josefsson.org>
78484         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
78485         are needed from arpa/inet.h.
78486         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
78487         Reported by Bruno Haible.
78489 2008-05-02  Jim Meyering  <meyering@redhat.com>
78491         avoid compilation error on FreeBSD 6
78492         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
78494 2008-05-01  Jim Meyering  <meyering@redhat.com>
78496         useless-if-before-free: correct --help's exit status description
78497         * build-aux/useless-if-before-free (usage): Like grep, exit 0
78498         for one or more matches, etc.  Reported by Bruno Haible.
78500         vc-list-files: make the stand-alone gnulib test work
78501         * modules/vc-list-files-tests (configure.ac):
78502         Define and AC_SUBST abs_aux_dir.
78503         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
78504         $(abs_top_srcdir) to each script and having each of them
78505         duplicate the work of setting PATH, set PATH here, using
78506         the new variable, abs_aux_dir instead.
78507         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
78508         * tests/test-vc-list-files-git.sh: Likewise.
78509         Reported by Bruno Haible.
78511 2008-05-01  Bruno Haible  <bruno@clisp.org>
78513         * lib/getndelim2.c (getndelim2): Fix newsize computation during
78514         reallocation. Rename 'done' to 'found_delimiter'.
78516 2008-05-01  Jim Meyering  <meyering@redhat.com>
78518         vc-list-files: accommodate /bin/sh like the one from Solaris 10
78519         * build-aux/vc-list-files: Use `...`, not $(...).
78521 2008-04-30  Jim Meyering  <meyering@redhat.com>
78523         add tests for vc-list-files
78524         * modules/vc-list-files-tests: New module.
78525         * tests/test-vc-list-files-cvs.sh: New file.
78526         * tests/test-vc-list-files-git.sh: New file.
78528         avoid a warning from gcc
78529         * lib/getndelim2.c (IF_LINT): Define.
78530         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
78532         vc-list-files: work properly with build-aux/cvsu, too
78533         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
78534         to all cvs-based clauses.
78536         vc-list-files: work properly in the CVS+awk case, too
78537         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
78539         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
78540         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
78541         take more than one file argument, so .  Add quotes, just in case $dir
78542         ever contains a shell meta-character.  Prompted by Soren Hansen in
78543         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
78545 2008-04-29  Eric Blake  <ebb9@byu.net>
78547         Optimize getndelim2 to use block operations when possible.
78548         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
78549         freadseek, and memchr2.
78550         * lib/getndelim2.c (getndelim2): Use them for block reads.
78552 2008-04-29  Bruno Haible  <bruno@clisp.org>
78554         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
78555         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78556         * modules/inet_ntop (Depends-on): Add extensions.
78557         * modules/inet_pton (Depends-on): Likewise.
78558         Reported by Simon Josefsson.
78560 2008-04-29  Jim Meyering  <meyering@redhat.com>
78562         When the is more than one match in a block, match all of them.
78563         * build-aux/useless-if-before-free: Iterate through each block
78564         until there are no more matches.
78566         Fix broken useless-if-before-free script.
78567         * build-aux/useless-if-before-free: Fix typo: missing "?" after
78568         the expression to match cast of argument to free-like function.
78570 2008-04-29  Eric Blake  <ebb9@byu.net>
78572         Use new header.
78573         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
78575 2008-04-29  Jim Meyering  <meyering@redhat.com>
78577         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
78578         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
78579         by gnulib to exist and to declare e.g., inet_ntop.
78580         Don't include "inet_ntop.h", now removed.
78582         * m4/arpa_inet_h.m4: Remove trailing blanks.
78584 2008-04-29  Eric Blake  <ebb9@byu.net>
78586         Silence valgrind on safe reads beyond potential array bounds.
78587         * lib/rawmemchr.valgrind: New file.
78588         * lib/strchrnul.valgrind: Likewise.
78589         * modules/rawmemchr (Files): Distribute new file.
78590         * modules/strchrnul (Files): Likewise.
78591         Suggested by Bruno Haible.
78593 2008-04-29  Bruno Haible  <bruno@clisp.org>
78595         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
78596         (inet_ntop, inet_pton): Change portability warning's wording.
78597         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
78598         Invoke gl_CHECK_NEXT_HEADERS.
78599         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
78600         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
78601         set ARPA_INET_H.
78602         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78603         * modules/arpa_inet (Description): No longer only for systems that
78604         lack it.
78605         (Depends-on): Add include_next.
78606         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
78607         HAVE_ARPA_INET_H.
78609 2008-04-29  Jim Meyering  <meyering@redhat.com>
78611         * modules/mkdir (License): Re-license as LGPLv2+.
78613 2008-04-29  Bruno Haible  <bruno@clisp.org>
78615         * modules/rawmemchr (Maintainer): Set to Eric.
78616         * modules/strchrnul (Maintainer): Likewise.
78618 2008-04-29  Simon Josefsson  <simon@josefsson.org>
78620         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
78621         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
78623         * modules/arpa_inet (arpa/inet.h): Use them.
78625 2008-04-28  Eric Blake  <ebb9@byu.net>
78627         Test getndelim2.
78628         * modules/getndelim2-tests: New file.
78629         * tests/test-getndelim2.c: Likewise.
78630         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
78631         stream.
78632         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
78634         * MODULES.html.sh: Document new module.
78636 2008-04-20  Bruno Haible  <bruno@clisp.org>
78638         * lib/c-stack.c (die): Use raise.
78639         * modules/c-stack (Depends-on): Add raise.
78641 2008-04-28  Bruno Haible  <bruno@clisp.org>
78643         Expect rpmatch to be declared.
78644         * lib/yesno.c (rpmatch): Remove declaration.
78646         Declare rpmatch.
78647         * lib/stdlib.in.h (rpmatch): New declaration.
78648         * lib/rpmatch.c: Include <stdlib.h> first.
78649         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
78650         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
78651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
78652         HAVE_RPMATCH.
78653         * modules/rpmatch (Depends-on): Add stdlib, extensions.
78654         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
78655         (Include): Set to <stdlib.h>.
78656         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
78657         HAVE_RPMATCH.
78658         * NEWS: Document the change.
78660 2008-04-28  Bruno Haible  <bruno@clisp.org>
78662         Change rpmatch to use nl_langinfo when appropriate.
78663         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
78664         (N_): New macro.
78665         (localized_pattern): New function/macro.
78666         (try): Remove match, nomatch arguments. Copy the pattern into safe
78667         memory before caching it.
78668         (rpmatch): Use localized_pattern. Add translator comments.
78669         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
78670         Suggested by Eric Blake.
78671         * modules/rpmatch (Depends-on): Add stdbool.
78673 2008-04-28  Eric Blake  <ebb9@byu.net>
78675         Add rawmemchr module, matching glibc.
78676         * modules/string (Makefile.am): New indicator.
78677         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
78678         * lib/string.in.h (rawmemchr): Declare when appropriate.
78679         * modules/rawmemchr: New file.
78680         * m4/rawmemchr.m4: Likewise.
78681         * lib/rawmemchr.c: Likewise.
78682         * modules/rawmemchr-tests: Likewise.
78683         * tests/test-rawmemchr.c: Likewise.
78684         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
78685         module.
78686         * modules/strchrnul (Depends-on): Add rawmemchr.
78687         * lib/strchrnul.c (strchrnul): Optimize a corner case.
78689         Whitespace cleanup.
78690         * tests/test-strchrnul.c: Reindent.
78691         * lib/strchrnul.c: Likewise.
78693         Optimize and test strchrnul.
78694         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
78695         * modules/strchrnul-tests: New file.
78696         * tests/test-strchrnul.c: Likewise.
78698         Remove intprops dependency.
78699         * modules/memchr (Depends-on): Remove intprops.
78700         * modules/memrchr (Depends-on): Likewise.
78701         * modules/memchr2 (Depends-on): Likewise.
78702         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
78703         * lib/memrchr.c (__memrchr): Likewise.
78704         * lib/memrchr2.c (memchr2): Likewise.
78705         Reported by Simon Josefsson.
78707 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78709         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
78710         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78712 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78714         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
78716         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
78718         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
78720         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
78721         declarations.
78722         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
78724         * m4/inet_pton.m4: Don't check for header files.
78726         * m4/inet_ntop.m4: Don't check for header files.
78728 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78730         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
78731         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
78732         trigger for cygwin).
78733         Reported by Bruno Haible  <bruno@clisp.org>.
78735 2008-04-28  Bruno Haible  <bruno@clisp.org>
78737         * doc/posix-functions/strdup.texi: Mention mingw problem.
78739 2008-04-27  Bruno Haible  <bruno@clisp.org>
78741         * modules/stat-time-tests (Depends-on): Add sleep.
78742         * tests/test-stat-time.c (force_unlink): New function.
78743         (cleanup): Use it.
78744         (test_mtime): Remove the ctime related tests.
78745         (test_ctime): New function, containing the ctime related tests.
78746         (main): Call test_ctime, except on native Windows platforms.
78748 2008-04-27  Bruno Haible  <bruno@clisp.org>
78750         * lib/rpmatch.c (rpmatch): Add some comments.
78751         Reported by James Youngman <jay@gnu.org>.
78753 2008-04-27  Bruno Haible  <bruno@clisp.org>
78755         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
78756         quiet NaNs.
78758 2008-04-27  Bruno Haible  <bruno@clisp.org>
78760         Make test-yesno.sh work on mingw.
78761         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
78762         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
78763         (main): Set stdin to binary mode.
78764         * modules/yesno-tests (Depends-on): Add binary-io.
78766 2008-04-27  Bruno Haible  <bruno@clisp.org>
78768         Fix 'isfinite' on x86, x86_64, ia64 platforms.
78769         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
78770         argument that lie outside the IEEE 854 domain.
78771         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
78772         (gl_ISFINITE): Use it.
78773         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
78775 2008-04-27  Bruno Haible  <bruno@clisp.org>
78777         Allow local renaming in config.h.
78778         * lib/memrchr.c (memrchr): Don't undefine outside libc.
78780 2008-04-27  Bruno Haible  <bruno@clisp.org>
78782         * lib/memchr.c (__memchr): Change type of 'i'.
78783         * lib/memchr2.c (memchr2): Likewise.
78785 2008-04-26  Eric Blake  <ebb9@byu.net>
78786         and Bruno Haible  <bruno@clisp.org>
78788         Optimize and test memrchr.
78789         * modules/memrchr (Depends-on): Add intprops.
78790         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
78791         * modules/memrchr-tests: New file.
78792         * tests/test-memrchr.c: New file.
78794 2008-04-26  Bruno Haible  <bruno@clisp.org>
78796         Add tentative support for DragonFly BSD.
78797         * lib/stdio-impl.h: Add macros for DragonFly BSD.
78798         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
78799         fp.
78800         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
78801         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
78802         * lib/fpurge.c (fpurge): Likewise.
78803         * lib/freadable.c (freaadable): Likewise.
78804         * lib/freadahead.c (freadahead): Likewise.
78805         * lib/freading.c (freading): Likewise.
78806         * lib/freadptr.c (freadptr): Likewise.
78807         * lib/freadseek.c (freadptrinc): Likewise.
78808         * lib/fseeko.c (fseeko): Likewise.
78809         * lib/fseterr.c (fseterr): Likewise.
78810         * lib/fwritable.c (fwritable): Likewise.
78811         * lib/fwriting.c (fwriting): Likewise.
78813 2008-04-26  Bruno Haible  <bruno@clisp.org>
78815         * lib/stdio-impl.h: New file.
78816         * lib/fbufmode.c: Include stdio-impl.h.
78817         (fbufmode): Use fp_, remove redundant #defines.
78818         * lib/fflush.c: Include stdio-impl.h.
78819         (clear_ungetc_buffer): Remove redundant #defines.
78820         * lib/fpurge.c: Include stdio-impl.h.
78821         (fpurge): Remove redundant #defines.
78822         * lib/freadable.c: Include stdio-impl.h.
78823         (freadable): Remove redundant #defines.
78824         * lib/freadahead.c: Include stdio-impl.h.
78825         (freadahead): Remove redundant #defines.
78826         * lib/freading.c: Include stdio-impl.h.
78827         (freading): Remove redundant #defines.
78828         * lib/freadptr.c: Include stdio-impl.h.
78829         (freadptr): Remove redundant #defines.
78830         * lib/freadseek.c: Include stdio-impl.h.
78831         (freadptrinc): Remove redundant #defines.
78832         * lib/fseeko.c: Include stdio-impl.h.
78833         (rpl_fseeko): Remove redundant #defines.
78834         * lib/fseterr.c: Include stdio-impl.h.
78835         (fseterr): Remove redundant #defines.
78836         * lib/fwritable.c: Include stdio-impl.h.
78837         (fwritable: Remove redundant #defines.
78838         * lib/fwriting.c: Include stdio-impl.h.
78839         (fwriting): Remove redundant #defines.
78840         * modules/fbufmode (Files): Add lib/stdio-impl.h.
78841         * modules/fflush (Files): Likewise.
78842         * modules/fpurge (Files): Likewise.
78843         * modules/freadable (Files): Likewise.
78844         * modules/freadahead (Files): Likewise.
78845         * modules/freading (Files): Likewise.
78846         * modules/freadptr (Files): Likewise.
78847         * modules/freadseek (Files): Likewise.
78848         * modules/fseeko (Files): Likewise.
78849         * modules/fseterr (Files): Likewise.
78850         * modules/fwritable (Files): Likewise.
78851         * modules/fwriting (Files): Likewise.
78853 2008-04-26  Bruno Haible  <bruno@clisp.org>
78855         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
78856         restore_seek_optimization, update_fpos_cache): New functions, extracted
78857         from rpl_fflush.
78858         (rpl_fflush): Use them.
78859         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
78860         (gl_REPLACE_FFLUSH): Use it.
78862 2008-04-26  Bruno Haible  <bruno@clisp.org>
78864         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
78865         on Solaris.
78866         * tests/test-xstrtoimax.sh: Likewise.
78867         * tests/test-xstrtoumax.sh: Likewise.
78868         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78870 2008-04-26  Bruno Haible  <bruno@clisp.org>
78872         * modules/memchr-tests: New file.
78873         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
78875 2008-04-26  Eric Blake  <ebb9@byu.net>
78876             Bruno Haible  <bruno@clisp.org>
78878         * lib/memchr.c: Include intprops.h.
78879         (__memchr): Optimize parallel detection of matching bytes. Rename local
78880         variables. Add explanatory comments.
78882 2008-04-26  Bruno Haible  <bruno@clisp.org>
78884         Fix module 'memchr', broken since 2000-10-28.
78885         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
78887 2008-04-26  Bruno Haible  <bruno@clisp.org>
78889         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
78890         comments.
78892 2008-04-25  Eric Blake  <ebb9@byu.net>
78894         Use native fstatat on cygwin 1.7.0.
78895         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
78896         first.
78898 2008-04-23  Eric Blake  <ebb9@byu.net>
78900         Improve memchr2 performance.
78901         * lib/memchr2.c (memchr2): Further optimize parallel detection of
78902         NUL bytes.
78903         * modules/memchr2 (Depends-on): Use intprops.h.
78905 2008-04-23  Simon Josefsson  <simon@josefsson.org>
78907         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
78908         an inline function instead of a CPP macro.  Patch by Ben Pfaff
78909         <blp@cs.stanford.edu>.
78911 2008-04-23  Simon Josefsson  <simon@josefsson.org>
78913         * lib/arpa_inet.in.h: New file.
78915         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
78916         (Makefile.am): Sed in substitute header file.
78918         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
78919         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
78921         * modules/inet_ntop (configure.ac): Use
78922         gl_ARPA_INET_MODULE_INDICATOR.
78924         * modules/inet_pton (configure.ac): Use
78925         gl_ARPA_INET_MODULE_INDICATOR.
78927 2008-04-22  Jim Meyering  <meyering@redhat.com>
78929         * modules/verify (License): Re-license as LGPLv2+.
78931 2008-04-22  Simon Josefsson  <simon@josefsson.org>
78933         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
78934         parameter to void* as per POSIX standard (MinGW uses char*).
78936 2008-04-21  Bruno Haible  <bruno@clisp.org>
78938         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78939         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78940         Define to replacements if REPLACE_ISWCNTRL is 1.
78941         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
78942         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
78943         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
78944         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
78945         what it fixes.
78946         * doc/posix-functions/iswalpha.texi: Likewise.
78947         * doc/posix-functions/iswblank.texi: Likewise.
78948         * doc/posix-functions/iswcntrl.texi: Likewise.
78949         * doc/posix-functions/iswdigit.texi: Likewise.
78950         * doc/posix-functions/iswgraph.texi: Likewise.
78951         * doc/posix-functions/iswlower.texi: Likewise.
78952         * doc/posix-functions/iswprint.texi: Likewise.
78953         * doc/posix-functions/iswpunct.texi: Likewise.
78954         * doc/posix-functions/iswspace.texi: Likewise.
78955         * doc/posix-functions/iswupper.texi: Likewise.
78956         * doc/posix-functions/iswxdigit.texi: Likewise.
78957         Reported by Alain Guibert.
78959 2008-04-21  Bruno Haible  <bruno@clisp.org>
78961         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
78962         Patch by Alain Guibert.
78964 2008-04-21  Bruno Haible  <bruno@clisp.org>
78966         Fix test failures on mingw.
78967         * tests/test-xstrtol.c (print_no_progname): New function.
78968         (main): Install it in error_print_progname hook.
78969         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
78970         * tests/test-xstrtoimax.sh: Likewise.
78971         * tests/test-xstrtoumax.sh: Likewise.
78973 2008-04-21  Bruno Haible  <bruno@clisp.org>
78975         Fix test failure on mingw.
78976         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
78978 2008-04-21  Bruno Haible  <bruno@clisp.org>
78980         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
78981         Actually assign a value.
78983 2008-04-20  Bruno Haible  <bruno@clisp.org>
78985         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
78986         take 2.
78987         * lib/canonicalize.c (canonicalize_file_name): Elide if the
78988         'canonicalize-lgpl' module is also used.
78989         * lib/canonicalize-lgpl.c: Undo last change.
78990         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
78992 2008-04-20  Bruno Haible  <bruno@clisp.org>
78994         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
78995         config.h. Provide _mkdir based fallback for mingw.
78996         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
78997         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
78998         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
78999         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
79000         rather than defining mkdir in config.h.
79001         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
79002         (gl_SYS_STAT_H_DEFAULTS): New macro.
79003         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
79004         HAVE_IO_H any more.
79005         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
79006         HAVE_DECL_MKDIR and HAVE_IO_H.
79008 2008-04-20  Bruno Haible  <bruno@clisp.org>
79010         * lib/isapipe.c: Port to native Windows platforms.
79012 2008-04-20  Bruno Haible  <bruno@clisp.org>
79014         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
79016 2008-04-21  Eric Blake  <ebb9@byu.net>
79018         Work around preprocessors that don't handle UINTMAX_MAX.
79019         * lib/memchr2.c (memchr2): Avoid embedded #if.
79020         Reported by Alain Guibert, fix suggested by Bruno Haible.
79022 2008-04-21  Simon Josefsson  <simon@josefsson.org>
79024         * doc/posix-functions/strftime.texi (strftime): Explain better
79025         Windows incompatibility.  Suggested by Micah Cowan
79026         <micah@cowan.name>.
79028 2008-04-20  Bruno Haible  <bruno@clisp.org>
79030         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
79031         unistr/u8-mblen.
79033 2008-04-20  Bruno Haible  <bruno@clisp.org>
79035         Fix test failure on platforms with non-GNU iconv.
79036         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
79037         (U_TO_U8): Use it, rather than u16_to_u8.
79038         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
79039         units at the end of the input string.
79040         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
79042 2008-04-20  Bruno Haible  <bruno@clisp.org>
79044         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
79045         when the resulting length is 0.
79046         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
79048 2008-04-20  Bruno Haible  <bruno@clisp.org>
79050         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
79051         works.
79052         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
79054 2008-04-20  Bruno Haible  <bruno@clisp.org>
79056         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
79057         * modules/tsearch-tests (configure.ac): Test for initstate function.
79059 2008-04-20  Bruno Haible  <bruno@clisp.org>
79061         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
79062         for nlink_t if missing.
79063         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
79065 2008-04-19  Bruno Haible  <bruno@clisp.org>
79067         Work around snprintf bug on Linux libc5.
79068         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
79069         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
79070         gl_SNPRINTF_SIZE1.
79071         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79072         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
79073         that test failed.
79074         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
79075         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
79076         * modules/snprintf (Files): Add m4/printf.m4.
79077         * modules/vsnprintf (Files): Likewise.
79078         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
79079         * doc/posix-functions/vsnprintf.texi: Likewise.
79081 2008-04-19  Bruno Haible  <bruno@clisp.org>
79083         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
79084         from 0.0058 to less than 10^-7.
79086 2008-04-19  Bruno Haible  <bruno@clisp.org>
79088         Fix rounding when a precision is given.
79089         * lib/vasnprintf.c (is_borderline): New function.
79090         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
79091         9...9x.
79092         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
79093         %e, %g.
79094         * tests/test-vasprintf-posix.c (test_function): Likewise.
79095         * tests/test-snprintf-posix.h (test_function): Likewise.
79096         * tests/test-sprintf-posix.h (test_function): Likewise.
79097         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
79098         * tests/test-printf-posix.h (test_function): Likewise.
79099         * tests/test-printf-posix.output: Update.
79100         Reported by John Darrington <john@darrington.wattle.id.au> via
79101         Ben Pfaff <blp@cs.stanford.edu>.
79103 2008-04-18  Simon Josefsson  <simon@josefsson.org>
79105         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
79106         Suggested by Bruno Haible <bruno@clisp.org>.
79108 2008-04-17  Bruno Haible  <bruno@clisp.org>
79110         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
79111         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
79112         implementation.
79113         Patch by Bruce Merry <bmerry@gmail.com>.
79115 2008-04-17  Simon Josefsson  <simon@josefsson.org>
79117         * doc/posix-functions/strftime.texi (strftime): Mention that %e
79118         doesn't work under Windows.
79120 2008-04-16  Bruno Haible  <bruno@clisp.org>
79122         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
79123         New macros.
79124         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
79125         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
79126         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
79127         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
79128         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
79129         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
79130         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
79131         macros.
79132         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
79133         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
79134         Northern Sotho, Uighur.
79136 2008-04-16  Bruno Haible  <bruno@clisp.org>
79138         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
79139         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
79140         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
79141         Reported by Daniel Bergström <daniel@octocode.com>.
79143 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
79144             Bruno Haible  <bruno@clisp.org>
79146         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
79147         function.
79148         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
79149         New functions, mostly extracted from gl_locale_name_default.
79150         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
79152 2008-04-16  Eric Blake  <ebb9@byu.net>
79154         Adjust strtod detection to catch glibc 2.7 bug.
79155         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
79156         Reported by John Gatewood Ham.
79158 2008-04-16  Bruno Haible  <bruno@clisp.org>
79160         Add tentative support for Linux libc5.
79161         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
79162         * lib/fpurge.c (fpurge): Likewise.
79163         * lib/freadable.c (freadable): Likewise.
79164         * lib/freadahead.c (freadahead): Likewise.
79165         * lib/freading.c (freading): Likewise.
79166         * lib/freadptr.c (freadptr): Likewise.
79167         * lib/freadseek.c (freadptrinc): Likewise.
79168         * lib/fseeko.c (rpl_fseeko): Likewise.
79169         * lib/fseterr.c (fseterr): Likewise.
79170         * lib/fwritable.c (fwritable): Likewise.
79171         * lib/fwriting.c (fwriting): Likewise.
79172         Reported by Alain Guibert <alguibert+bts@free.fr>.
79174 2008-04-15  Bruno Haible  <bruno@clisp.org>
79176         * modules/mathl (configure.ac): Define module indicator.
79178 2008-04-15  Bruno Haible  <bruno@clisp.org>
79180         * lib/logl.c (logl): Remove unused variables.
79182 2008-04-15  Bruno Haible  <bruno@clisp.org>
79184         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
79185         fails.
79187 2008-04-15  Bruno Haible  <bruno@clisp.org>
79189         * lib/trim.c (trim2): Fix argument of isspace() macro.
79191 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
79193         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
79194         to 0.
79195         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
79197 2008-04-14  Bruno Haible  <bruno@clisp.org>
79199         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
79200         AC_LANG_PROGRAM argument.
79201         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
79202         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
79203         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
79204         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
79205         * m4/math_h.m4 (gl_MATH_H): Likewise.
79206         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
79207         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
79208         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
79209         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
79210         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79211         * m4/regex.m4 (gl_REGEX): Likewise.
79212         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
79213         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
79214         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
79215         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
79216         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
79217         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
79218         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
79219         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
79221 2008-04-14  Jim Meyering  <meyering@redhat.com>
79223         test-strtod: fix typos: s/abs/fabs/
79224         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
79226 2008-04-13  Bruno Haible  <bruno@clisp.org>
79228         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
79229         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
79230         module is also used and while not building the reloc-wrapper.
79232 2008-04-13  Bruno Haible  <bruno@clisp.org>
79234         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
79236 2008-04-13  Bruno Haible  <bruno@clisp.org>
79238         Fix AIX compilation failure introduced on 2008-04-02.
79239         * tests/test-frexp.c (exp): Undefine before redefining.
79240         * tests/test-frexpl.c (exp): Likewise.
79242 2008-04-13  Bruno Haible  <bruno@clisp.org>
79244         Work around a HP-UX stdio bug.
79245         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
79246         * tests/test-ftello.c (main): Likewise.
79247         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
79248         * doc/posix-functions/ftello.texi: Likewise.
79250 2008-04-13  Bruno Haible  <bruno@clisp.org>
79252         Make test-signbit pass on HP-UX/hppa.
79253         * tests/test-signbit.c (minus_zerol): New variable.
79254         (test_signbitl): Use it.
79256 2008-04-13  Bruno Haible  <bruno@clisp.org>
79258         Make truncl work on OSF/1 4.0.
79259         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
79260         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79261         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
79263         HAVE_DECL_TRUNCL.
79264         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
79265         HAVE_DECL_TRUNCL.
79266         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
79268 2008-04-13  Bruno Haible  <bruno@clisp.org>
79270         * lib/unictype.h: Remove trailing comma from enumeration definitions.
79272 2008-04-13  Bruno Haible  <bruno@clisp.org>
79274         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
79275         expression, so as to avoid HP-UX 11 cc compiler bug.
79277 2008-04-13  Bruno Haible  <bruno@clisp.org>
79279         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
79281 2008-04-13  Bruno Haible  <bruno@clisp.org>
79283         * lib/git-merge-changelog.c: Remove empty declaration outside of
79284         functions.
79286 2008-04-13  Bruno Haible  <bruno@clisp.org>
79288         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
79290 2008-04-13  Bruno Haible  <bruno@clisp.org>
79292         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
79293         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
79294         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
79295         also if it exists but lacks definitions of the SHUT_* macros.
79296         * modules/sys_socket (Description): Update.
79297         Reported by Elbert Pol <e.pol@chello.nl>.
79299 2008-04-13  Bruno Haible  <bruno@clisp.org>
79301         * lib/localcharset.c (OS2): Don't redefine if already defined.
79302         Reported by Elbert Pol <e.pol@chello.nl>.
79304 2008-04-13  Bruno Haible  <bruno@clisp.org>
79306         * lib/binary-io.h [__EMX__]: Include <io.h>.
79307         Reported by Elbert Pol <e.pol@chello.nl>.
79309 2008-04-12  Bruno Haible  <bruno@clisp.org>
79311         * lib/fpucw.h: Enable the definitions also for x86_64.
79312         Needed for NetBSD/x86_64.
79313         Reported by Thomas Klausner <tk@giga.or.at>.
79315 2008-04-12  Bruno Haible  <bruno@clisp.org>
79317         * tests/test-strtod.c: Include isnand.h.
79318         (main): Use isnand instead of isnan.
79319         Reported by Jim Meyering.
79321 2008-04-12  Bruno Haible  <bruno@clisp.org>
79323         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
79324         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
79326 2008-04-12  Jim Meyering  <meyering@redhat.com>
79328         * m4/math_h.m4 (gl_MATH_H): Fix typos.
79330 2008-04-12  Bruno Haible  <bruno@clisp.org>
79332         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
79333         Reported by Elbert Pol <e.pol@chello.nl>.
79335 2008-04-12  Eric Blake  <ebb9@byu.net>
79337         Work around Solaris 10 math.h bug.
79338         * m4/math_h.m4 (gl_MATH_H): Check for bug.
79339         (gl_MATH_H_DEFAULTS): Set up default.
79340         * modules/math (Makefile.am): Replace new indicators.
79341         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
79342         * tests/test-math.c (main): Test this.
79343         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
79344         * doc/posix-headers/math.texi (math.h): Mention bug.
79345         Reported by Nelson H. F. Beebe and Jim Meyering.
79347 2008-04-11  Bruno Haible  <bruno@clisp.org>
79349         Adapt to future versions of Apple GCC.
79350         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
79351         Reported by Peter O'Gorman <peter@pogma.com>.
79353 2008-04-11  Bruno Haible  <bruno@clisp.org>
79355         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
79357 2008-04-11  Bruno Haible  <bruno@clisp.org>
79359         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
79361         * modules/getaddrinfo-tests (Makefile.am): Define
79362         test_getaddrinfo_LDADD.
79364 2008-04-11  Bruno Haible  <bruno@clisp.org>
79366         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
79367         (init): Fix syntax error.
79368         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
79369         is declared.
79371 2008-04-11  Bruno Haible  <bruno@clisp.org>
79373         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
79374         * modules/glob (Depends-on): Add stdbool.
79376 2008-04-11  Bruno Haible  <bruno@clisp.org>
79378         * lib/trim.c: Include <string.h>.
79380 2008-04-11  Eric Blake  <ebb9@byu.net>
79382         Avoid compile failure on OS/2.
79383         * lib/regex_internal.h (internal_function): Disable optimization
79384         on OS/2 (__EMX__), where it caused compiler error.
79385         Reported by Elbert Pol.
79387 2008-04-11  Bruno Haible  <bruno@clisp.org>
79389         Flush the standard error stream before aborting. Needed on mingw.
79390         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
79391         * tests/test-array_list.c (ASSERT): Likewise.
79392         * tests/test-array_oset.c (ASSERT): Likewise.
79393         * tests/test-avltree_list.c (ASSERT): Likewise.
79394         * tests/test-avltree_oset.c (ASSERT): Likewise.
79395         * tests/test-avltreehash_list.c (ASSERT): Likewise.
79396         * tests/test-binary-io.c (ASSERT): Likewise.
79397         * tests/test-byteswap.c (ASSERT): Likewise.
79398         * tests/test-c-ctype.c (ASSERT): Likewise.
79399         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
79400         * tests/test-c-strcasestr.c (ASSERT): Likewise.
79401         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
79402         * tests/test-c-strstr.c (ASSERT): Likewise.
79403         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
79404         * tests/test-canonicalize.c (ASSERT): Likewise.
79405         * tests/test-carray_list.c (ASSERT): Likewise.
79406         * tests/test-ceilf1.c (ASSERT): Likewise.
79407         * tests/test-ceilf2.c (ASSERT): Likewise.
79408         * tests/test-ceill.c (ASSERT): Likewise.
79409         * tests/test-count-one-bits.c (ASSERT): Likewise.
79410         * tests/test-fbufmode.c (ASSERT): Likewise.
79411         * tests/test-fflush2.c (ASSERT): Likewise.
79412         * tests/test-floorf1.c (ASSERT): Likewise.
79413         * tests/test-floorf2.c (ASSERT): Likewise.
79414         * tests/test-floorl.c (ASSERT): Likewise.
79415         * tests/test-fopen.c (ASSERT): Likewise.
79416         * tests/test-fpending.c (ASSERT): Likewise.
79417         * tests/test-fprintf-posix.c (ASSERT): Likewise.
79418         * tests/test-fpurge.c (ASSERT): Likewise.
79419         * tests/test-freadable.c (ASSERT): Likewise.
79420         * tests/test-freadahead.c (ASSERT): Likewise.
79421         * tests/test-freading.c (ASSERT): Likewise.
79422         * tests/test-freadptr.c (ASSERT): Likewise.
79423         * tests/test-freadptr2.c (ASSERT): Likewise.
79424         * tests/test-freadseek.c (ASSERT): Likewise.
79425         * tests/test-freopen.c (ASSERT): Likewise.
79426         * tests/test-frexp.c (ASSERT): Likewise.
79427         * tests/test-frexpl.c (ASSERT): Likewise.
79428         * tests/test-fseek.c (ASSERT): Likewise.
79429         * tests/test-fseeko.c (ASSERT): Likewise.
79430         * tests/test-fstrcmp.c (ASSERT): Likewise.
79431         * tests/test-ftell.c (ASSERT): Likewise.
79432         * tests/test-ftello.c (ASSERT): Likewise.
79433         * tests/test-func.c (ASSERT): Likewise.
79434         * tests/test-fwritable.c (ASSERT): Likewise.
79435         * tests/test-fwriting.c (ASSERT): Likewise.
79436         * tests/test-getdelim.c (ASSERT): Likewise.
79437         * tests/test-getline.c (ASSERT): Likewise.
79438         * tests/test-i-ring.c (ASSERT): Likewise.
79439         * tests/test-iconv-utf.c (ASSERT): Likewise.
79440         * tests/test-iconv.c (ASSERT): Likewise.
79441         * tests/test-isfinite.c (ASSERT): Likewise.
79442         * tests/test-isnand.c (ASSERT): Likewise.
79443         * tests/test-isnanf.c (ASSERT): Likewise.
79444         * tests/test-isnanl.h (ASSERT): Likewise.
79445         * tests/test-ldexpl.c (ASSERT): Likewise.
79446         * tests/test-linked_list.c (ASSERT): Likewise.
79447         * tests/test-linkedhash_list.c (ASSERT): Likewise.
79448         * tests/test-localename.c (ASSERT): Likewise.
79449         * tests/test-lseek.c (ASSERT): Likewise.
79450         * tests/test-mbscasecmp.c (ASSERT): Likewise.
79451         * tests/test-mbscasestr1.c (ASSERT): Likewise.
79452         * tests/test-mbscasestr2.c (ASSERT): Likewise.
79453         * tests/test-mbscasestr3.c (ASSERT): Likewise.
79454         * tests/test-mbscasestr4.c (ASSERT): Likewise.
79455         * tests/test-mbschr.c (ASSERT): Likewise.
79456         * tests/test-mbscspn.c (ASSERT): Likewise.
79457         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
79458         * tests/test-mbspbrk.c (ASSERT): Likewise.
79459         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
79460         * tests/test-mbsrchr.c (ASSERT): Likewise.
79461         * tests/test-mbsspn.c (ASSERT): Likewise.
79462         * tests/test-mbsstr1.c (ASSERT): Likewise.
79463         * tests/test-mbsstr2.c (ASSERT): Likewise.
79464         * tests/test-mbsstr3.c (ASSERT): Likewise.
79465         * tests/test-memchr2.c (ASSERT): Likewise.
79466         * tests/test-memmem.c (ASSERT): Likewise.
79467         * tests/test-open.c (ASSERT): Likewise.
79468         * tests/test-printf-frexp.c (ASSERT): Likewise.
79469         * tests/test-printf-frexpl.c (ASSERT): Likewise.
79470         * tests/test-printf-posix.c (ASSERT): Likewise.
79471         * tests/test-quotearg.c (ASSERT): Likewise.
79472         * tests/test-rbtree_list.c (ASSERT): Likewise.
79473         * tests/test-rbtree_oset.c (ASSERT): Likewise.
79474         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
79475         * tests/test-round1.c (ASSERT): Likewise.
79476         * tests/test-roundf1.c (ASSERT): Likewise.
79477         * tests/test-roundl.c (ASSERT): Likewise.
79478         * tests/test-signbit.c (ASSERT): Likewise.
79479         * tests/test-sleep.c (ASSERT): Likewise.
79480         * tests/test-snprintf-posix.c (ASSERT): Likewise.
79481         * tests/test-snprintf.c (ASSERT): Likewise.
79482         * tests/test-sprintf-posix.c (ASSERT): Likewise.
79483         * tests/test-stat-time.c (ASSERT): Likewise.
79484         * tests/test-strcasestr.c (ASSERT): Likewise.
79485         * tests/test-strerror.c (ASSERT): Likewise.
79486         * tests/test-striconv.c (ASSERT): Likewise.
79487         * tests/test-striconveh.c (ASSERT): Likewise.
79488         * tests/test-striconveha.c (ASSERT): Likewise.
79489         * tests/test-strsignal.c (ASSERT): Likewise.
79490         * tests/test-strstr.c (ASSERT): Likewise.
79491         * tests/test-strtod.c (ASSERT): Likewise.
79492         * tests/test-trunc1.c (ASSERT): Likewise.
79493         * tests/test-trunc2.c (ASSERT): Likewise.
79494         * tests/test-truncf1.c (ASSERT): Likewise.
79495         * tests/test-truncf2.c (ASSERT): Likewise.
79496         * tests/test-truncl.c (ASSERT): Likewise.
79497         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
79498         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
79499         * tests/test-vasnprintf.c (ASSERT): Likewise.
79500         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
79501         * tests/test-vasprintf.c (ASSERT): Likewise.
79502         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
79503         * tests/test-vprintf-posix.c (ASSERT): Likewise.
79504         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
79505         * tests/test-vsnprintf.c (ASSERT): Likewise.
79506         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
79507         * tests/test-wcwidth.c (ASSERT): Likewise.
79508         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
79509         * tests/test-xprintf-posix.c (ASSERT): Likewise.
79510         * tests/test-xvasprintf.c (ASSERT): Likewise.
79511         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
79512         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
79513         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
79514         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
79515         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
79516         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
79517         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
79518         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
79519         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
79520         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
79521         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
79522         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
79523         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
79524         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
79525         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
79526         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
79527         * tests/unictype/test-block_list.c (ASSERT): Likewise.
79528         * tests/unictype/test-block_of.c (ASSERT): Likewise.
79529         * tests/unictype/test-block_test.c (ASSERT): Likewise.
79530         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
79531         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
79532         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
79533         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
79534         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
79535         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
79536         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
79537         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
79538         * tests/unictype/test-combining.c (ASSERT): Likewise.
79539         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
79540         * tests/unictype/test-digit.c (ASSERT): Likewise.
79541         * tests/unictype/test-mirror.c (ASSERT): Likewise.
79542         * tests/unictype/test-numeric.c (ASSERT): Likewise.
79543         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
79544         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
79545         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
79546         * tests/unictype/test-scripts.c (ASSERT): Likewise.
79547         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
79548         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
79549         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
79550         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
79551         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
79552         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
79553         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
79554         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
79555         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
79556         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
79557         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
79558         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
79559         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
79560         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
79561         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
79562         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
79563         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
79564         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
79565         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
79566         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
79567         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
79568         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
79569         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
79570         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
79571         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
79572         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
79573         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
79574         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
79575         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
79576         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
79577         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
79578         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
79579         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
79580         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
79581         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
79582         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
79583         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
79584         Reported by Eric Blake.
79586 2008-04-11  Bruno Haible  <bruno@clisp.org>
79588         * lib/wchar.in.h: Tweak comment.
79590 2008-04-11  Bruno Haible  <bruno@clisp.org>
79592         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
79593         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
79594         gl_COMMON.
79595         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
79597 2008-04-11  Bruno Haible  <bruno@clisp.org>
79599         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
79601 2008-04-11  Simon Josefsson  <simon@josefsson.org>
79603         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
79604         of attempting to use non-existing /dev/*random.  Based on patch
79605         from Adam Strzelecki <ono@java.pl> in
79606         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
79608 2008-04-08  Bruno Haible  <bruno@clisp.org>
79610         Add tentative support for emx+gcc.
79611         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
79612         * lib/fpurge.c (fpurge): Likewise.
79613         * lib/freadable.c (freadable): Likewise.
79614         * lib/freadahead.c (freadahead): Likewise.
79615         * lib/freading.c (freading): Likewise.
79616         * lib/freadptr.c (freadptr): Likewise.
79617         * lib/freadseek.c (freadptrinc): Likewise.
79618         * lib/fseeko.c (rpl_fseeko): Likewise.
79619         * lib/fseterr.c (fseterr): Likewise.
79620         * lib/fwritable.c (fwritable): Likewise.
79621         * lib/fwriting.c (fwriting): Likewise.
79622         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
79624 2008-04-09  Eric Blake  <ebb9@byu.net>
79626         Avoid some autoconf warnings.
79627         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
79628         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
79629         * m4/afs.m4 (gl_AFS): Likewise.
79630         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
79631         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
79632         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79633         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
79634         (gl_INTEGER_TYPE_SUFFIX): Likewise.
79635         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
79636         (AC_CHECK_DECLS_ONCE): Likewise.
79637         Rename file...
79638         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
79639         gnulib-tool requires autoconf 2.59 or better.
79640         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
79642 2008-04-08  Eric Blake  <ebb9@byu.net>
79644         Use 'git describe --match' if present (added in git 1.5.5).
79645         * build-aux/git-version-gen: Limit result to tags that match 'v*'
79646         if possible.
79648 2008-04-08  Bruno Haible  <bruno@clisp.org>
79650         Add tentative support for OpenServer.
79651         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
79652         _ptr, _cnt.
79653         * lib/fpurge.c (fpurge): Likewise.
79654         * lib/freadable.c (freadable): Likewise.
79655         * lib/freadahead.c (freadahead): Likewise.
79656         * lib/freading.c (freading): Likewise.
79657         * lib/freadptr.c (freadptr): Likewise.
79658         * lib/freadseek.c (freadptrinc): Likewise.
79659         * lib/fseeko.c (rpl_fseeko): Likewise.
79660         * lib/fseterr.c (fseterr): Likewise.
79661         * lib/fwritable.c (fwritable): Likewise.
79662         * lib/fwriting.c (fwriting): Likewise.
79663         Reported by Roger Cornelius <rac@tenzing.org> and
79664         Brian K. White <brian@aljex.com>.
79666 2008-04-06  Jim Meyering  <meyering@redhat.com>
79668         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
79670 2008-04-06  Bruno Haible  <bruno@clisp.org>
79672         Avoid possible error with non-ASCII bytes in UTF-8 locales.
79673         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
79674         * tests/test-printf-posix.sh: Likewise.
79675         * tests/test-vfprintf-posix.sh: Likewise.
79676         * tests/test-vprintf-posix.sh: Likewise.
79677         * tests/test-xprintf-posix.sh: Likewise.
79679 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79681         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
79682         hide error from 'ls', needed on OS/2.
79683         Report by Elbert Pol <elbert.pol@gmail.com>.
79685 2008-04-04  Eric Blake  <ebb9@byu.net>
79687         Make test-fseeko.c failures meaningful.
79688         * tests/test-fseeko.c: Print line number on failure.
79689         * tests/test-fseek.c: Likewise.
79690         Reported by Nelson H. F. Beebe.
79692         Improve strtod bug detection check.
79693         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
79694         required for Solaris 10.
79695         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
79697 2008-04-04  Bruno Haible  <bruno@clisp.org>
79699         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
79700         by m4/setenv.m4.
79702 2008-04-03  Eric Blake  <ebb9@byu.net>
79704         Ensure sane .version contents.
79705         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
79706         version string.
79707         * build-aux/git-version-gen: Improve documentation.
79709         Make GNU make output nicer.
79710         * top/GNUmakefile [!_have-Makefile]: Add dependency on
79711         MAKECMDGOALS to enforce message for all command line targets.  Set
79712         srcdir for use in maint.mk.
79714         Another maintainer tweak.
79715         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
79716         a target that regenerates version.
79718 2008-04-03  Jim Meyering  <meyering@redhat.com>
79720         vc-list-files: don't cause coreutils "make po-check" failure
79721         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
79723 2008-04-03  Eric Blake  <ebb9@byu.net>
79725         Allow VPATH usage of vc-list-files.
79726         * build-aux/vc-list-files (scriptversion): Add timestamp.
79727         (options): Add --help, --version, -C.
79728         (CVS): Support installed cvsu.
79730 2008-04-02  Bruno Haible  <bruno@clisp.org>
79732         Avoid some "statement with no effect" warnings from gcc.
79733         * tests/test-wctype.c (main): Explicitly ignore unused values.
79734         Reported by Jim Meyering.
79736 2008-04-02  Jim Meyering  <meyering@redhat.com>
79738         Avoid some warnings from "gcc -Wshadow".
79739         * tests/test-frexp.c (exp): Define to a different identifier.
79740         * tests/test-frexpl.c (exp): Likewise.
79742 2008-04-03  Jim Meyering  <meyering@redhat.com>
79744         bootstrap: remove dangling *.[ch] symlinks from lib
79745         * build-aux/bootstrap [dangling symlink removal]: Move find's
79746         -depth option to precede all others, to avoid a warning.
79747         Remove *.[ch] files too, and from "$source_base" (usually lib/).
79749 2008-04-02  Bruno Haible  <bruno@clisp.org>
79751         Avoid some warnings from "gcc -Wshadow".
79752         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
79753         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
79754         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
79755         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
79756         Reported by Jim Meyering.
79758 2008-04-01  Bruno Haible  <bruno@clisp.org>
79760         Fix test to work on IRIX 6.5 with cc.
79761         * tests/test-math.c (numeric_equal): New function.
79762         (main): Use it.
79764 2008-04-01  Bruno Haible  <bruno@clisp.org>
79766         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
79768 2008-04-01  Bruno Haible  <bruno@clisp.org>
79770         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
79771         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79772         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
79773         (Depends-on): Remove math.
79775         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
79776         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79777         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
79778         (Depends-on): Remove math.
79780         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
79781         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79782         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
79783         (Depends-on): Remove math.
79784         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
79785         (Depends-on): Remove math.
79787         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
79788         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79789         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
79790         (Depends-on): Remove math.
79791         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
79792         (Depends-on): Remove math.
79794         * tests/test-round1.c: Include nan.h.
79795         (main): Use NaNd instead of NAN.
79796         * modules/round-tests (Files): Add tests/nan.h.
79798         * tests/test-trunc1.c: Include nan.h.
79799         (main): Use NaNd instead of NAN.
79800         * modules/trunc-tests (Files): Add tests/nan.h.
79802         * tests/test-roundf1.c: Include nan.h.
79803         (main): Use NaNf instead of NAN.
79804         * modules/roundf-tests (Files): Add tests/nan.h.
79806         * tests/test-truncf1.c: Include nan.h.
79807         (main): Use NaNf instead of NAN.
79808         * modules/truncf-tests (Files): Add tests/nan.h.
79810         * tests/test-ceilf1.c: Include nan.h.
79811         (main): Use NaNf instead of NAN.
79812         * modules/ceilf-tests (Files): Add tests/nan.h.
79814         * tests/test-floorf1.c: Include nan.h.
79815         (main): Use NaNf instead of NAN.
79816         * modules/floorf-tests (Files): Add tests/nan.h.
79818         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
79819         (main): Use NaNf instead of NAN.
79820         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
79822         * tests/test-isnand.c: Include nan.h instead of <math.h>.
79823         (main): Use NaNd instead of NAN.
79824         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
79826         * tests/test-frexp.c: Include nan.h.
79827         (main): Use NaNd instead of NAN.
79828         * modules/frexp-tests (Files): Add tests/nan.h.
79830         * lib/isnan.c: Don't include <math.h>.
79831         (FUNC): Don't use NAN macro.
79832         * modules/isnand-nolibm (Depends-on): Remove math.
79833         * modules/isnanf-nolibm (Depends-on): Remove math.
79834         * modules/isnanl (Depends-on): Remove math.
79835         * modules/isnanl-nolibm (Depends-on): Remove math.
79837         * tests/nan.h: New file.
79839 2008-04-01  Eric Blake  <ebb9@byu.net>
79841         Fix typos.
79842         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
79843         values to be the right type.
79845         For now, cater to gnulib strtod inaccuracies.
79846         * tests/test-strtod.c (main): Allow 1-ulp error on expected
79847         fractional results.  While not as nice from a QoI perspective, it
79848         is a quicker patch than correctly implementing decimal to binary
79849         rounding.
79851 2008-03-31  Eric Blake  <ebb9@byu.net>
79853         Guarantee a definition of NAN.
79854         * lib/math.in.h (NAN): Define if missing.
79855         * tests/test-math.c (main): Test it.
79856         * doc/posix-headers/math.texi (math.h): Document this.
79857         * lib/isnan.c (rpl_isnand): Use it.
79858         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
79859         * tests/test-floorf1.c (NaN): Likewise.
79860         * tests/test-frexp.c (NaN): Likewise.
79861         * tests/test-isnand.c (NaN): Likewise.
79862         * tests/test-isnanf.c (NaN): Likewise.
79863         * tests/test-round1.c (NaN): Likewise.
79864         * tests/test-roundf1.c (NaN): Likewise.
79865         * tests/test-snprintf-posix.h (NaN): Likewise.
79866         * tests/test-sprintf-posix.h (NaN): Likewise.
79867         * tests/test-trunc1.c (NaN): Likewise.
79868         * tests/test-truncf1.c (NaN): Likewise.
79869         * tests/test-vasnprintf-posix.c (NaN): Likewise.
79870         * tests/test-vasprintf-posix.c (NaN): Likewise.
79871         * modules/isnand-nolibm (Depends-on): Add math.
79872         * modules/isnanf-nolibm (Depends-on): Likewise.
79873         * modules/isnanl (Depends-on): Likewise.
79874         * modules/isnanl-nolibm (Depends-on): Likewise.
79875         * modules/snprintf-posix-tests (Depends-on): Likewise.
79876         * modules/sprintf-posix-tests (Depends-on): Likewise.
79877         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
79878         * modules/vsprintf-posix-tests (Depends-on): Likewise.
79879         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
79880         * modules/vasprintf-posix-tests (Depends-on): Likewise.
79882 2008-03-31  Bruno Haible  <bruno@clisp.org>
79884         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
79885         * doc/posix-functions/strtod.texi: Likewise.
79887 2008-03-31  Bruno Haible  <bruno@clisp.org>
79889         * tests/test-strtod.c (main): Don't use C99 syntax.
79891 2008-03-31  Bruno Haible  <bruno@clisp.org>
79893         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
79894         Reported by Eric Blake.
79896 2008-03-31  Jim Meyering  <meyering@redhat.com>
79898         Don't compare actual signbit return values.
79899         * tests/test-strtod.c (main): Rather, compare only their
79900         zero/non-zero nature.
79902 2008-03-31  Eric Blake  <ebb9@byu.net>
79904         More strtod documentation.
79905         * doc/posix-functions/strtod.texi (strtod): Interpret more test
79906         failures as distinct bugs.
79908 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
79910         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
79911         Problem reported by Erik Benada in
79912         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
79914 2008-03-30  Bruno Haible  <bruno@clisp.org>
79916         * tests/test-strtod.c: Add comments about which assertion fails on which
79917         platform.
79918         * doc/posix-functions/strtod.texi: Add info about many more platforms.
79920 2008-03-30  Eric Blake  <ebb9@byu.net>
79922         Test signbit behavior on zeros.
79923         * tests/test-signbit.c (test_signbitf): Add tests for zero.
79924         (test_signbitd, test_signbitl): Likewise.
79926         More strtod touchups.
79927         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
79928         sign of negative underflow, for now.  Use .5, not .1.
79929         * doc/posix-functions/strtod.texi (strtod): Mention these
79930         limitations.
79931         Reported by Jim Meyering.
79933 2008-03-30  Bruno Haible  <bruno@clisp.org>
79935         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
79936         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
79938 2008-03-30  Bruno Haible  <bruno@clisp.org>
79940         Avoid failure when attempting to return empty iconv results on some
79941         platforms.
79942         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
79943         allocation, don't report ENOMEM when the resulting string is empty.
79945 2008-03-30  Bruno Haible  <bruno@clisp.org>
79947         Fix buffer overrun.
79948         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
79949         Don't consider the width for tmp_length. Check count against tmp_length
79950         before doing the padding. Ensure enough allocation during padding.
79952 2008-03-30  Eric Blake  <ebb9@byu.net>
79954         strtod touchups.
79955         * lib/strtod.c (strtod): Avoid compiler warnings.
79956         Reported by Jim Meyering.
79958 2008-03-30  Bruno Haible  <bruno@clisp.org>
79960         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
79961         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
79962         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
79963         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
79964         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
79965         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
79966         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
79967         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
79969         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
79970         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
79971         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
79972         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
79973         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
79974         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
79975         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
79976         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
79978         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
79979         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
79980         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
79981         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
79982         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
79983         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
79984         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
79985         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
79987         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
79988         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
79990         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
79991         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
79993         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
79994         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
79996         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
79997         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
79998         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
80000         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
80001         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
80002         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
80004         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
80005         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
80006         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
80008         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
80009         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
80010         * modules/vasprintf (Depends-on): Add EOVERFLOW.
80012         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
80013         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
80014         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
80015         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
80016         (Depends-on): Add EOVERFLOW.
80017         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
80018         (Depends-on): Add EOVERFLOW.
80019         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
80020         (Depends-on): Add EOVERFLOW.
80021         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
80022         (Depends-on): Add EOVERFLOW.
80023         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
80024         (Depends-on): Add EOVERFLOW.
80025         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
80026         (Depends-on): Add EOVERFLOW.
80027         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
80028         (Depends-on): Add EOVERFLOW.
80029         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
80030         (Depends-on): Add EOVERFLOW.
80032         * lib/sprintf.c (EOVERFLOW): Remove fallback.
80033         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
80034         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
80036         * lib/snprintf.c (EOVERFLOW): Remove fallback.
80037         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
80038         * modules/snprintf (Depends-on): Add EOVERFLOW.
80040         * lib/poll.c (EOVERFLOW): Remove fallback.
80041         * modules/poll (Depends-on): Add EOVERFLOW.
80043         * lib/getugroups.c (EOVERFLOW): Remove fallback.
80044         * modules/getugroups (Depends-on): Add EOVERFLOW.
80046         * lib/getdelim.c (EOVERFLOW): Remove fallback.
80047         * modules/getdelim (Depends-on): Add EOVERFLOW.
80049         * lib/ftell.c (EOVERFLOW): Remove fallback.
80050         * modules/ftell (Depends-on): Add EOVERFLOW.
80052         * lib/fprintf.c (EOVERFLOW): Remove fallback.
80053         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
80054         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
80056         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
80058         * modules/EOVERFLOW-tests: New file.
80059         * tests/test-EOVERFLOW.c: New file.
80061         * modules/EOVERFLOW: New file.
80062         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
80064 2008-03-30  Bruno Haible  <bruno@clisp.org>
80066         Fix bug introduced on 2007-06-10.
80067         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
80068         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
80070 2008-03-30  Bruno Haible  <bruno@clisp.org>
80072         Improve freadseek's efficiency after ungetc.
80073         * lib/freadseek.c: Include freadahead.h.
80074         (freadptrinc): New function, extracted from freadseek.
80075         (freadseek): Use it in a loop. Use freadahead to determine the number
80076         of loop iterations.
80077         * modules/freadseek (Depends-on): Add freadahead.
80078         (configure.ac): Require AC_C_INLINE.
80080 2008-03-30  Bruno Haible  <bruno@clisp.org>
80082         * lib/freadseek.c (freadseek): Don't ignore the return value of
80083         freadptr.
80085 2008-03-29  Eric Blake  <ebb9@byu.net>
80087         Add hex float support.
80088         * modules/strtod (Depends-on): Add c-ctype.
80089         (Link): Mention POW_LIB.
80090         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
80091         whitespace between 'e' and exponent.
80092         * tests/test-strtod.c (main): Enable hex float tests.
80093         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
80094         now provides.
80096         Document various strtod bugs, with some fixes.
80097         * doc/posix-functions/strtod.texi (strtod): Document bugs with
80098         "-0x", "inf", "nan", and hex constants.
80099         * doc/posix-functions/atof.texi (atof): Likewise.
80100         * modules/stdlib (Makefile.am): Support strtod.
80101         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
80102         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
80103         detect additional strtod bugs.
80104         * lib/stdlib.in.h (rpl_strtod): Add declarations.
80105         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
80106         bool where appropriate.  Parse 'inf' and 'nan'.
80107         * tests/test-strtod.c: New file.
80108         * modules/strtod (Depends-on): Add stdbool, stdlib.
80109         (configure.ac): Turn on module indicator.
80110         * modules/strtod-tests: New module.
80112 2008-03-29  Eric Blake  <ebb9@byu.net>
80114         Fix ftell on mingw.
80115         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
80116         * modules/ftell-tests (Depends-on): Add binary-io.
80117         * modules/ftello-tests (Depends-on): Likewise.
80118         * tests/test-ftell.c (main): Enhance test to cover behavior after
80119         ungetc.  Enforce binary mode.
80120         * tests/test-ftello.c (main): Likewise.
80122         Pass test-freadseek on cygwin.
80123         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
80124         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
80125         ungetc buffer.
80127         * tests/test-fflush2.c (main): Fix typo.
80129 2008-03-29  Bruno Haible  <bruno@clisp.org>
80131         * tests/test-fflush2.c (main): Temporarily disable the contents of
80132         this test.
80133         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
80134         Reported by Eric Blake.
80136 2008-03-28  Simon Josefsson  <simon@josefsson.org>
80138         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
80139         (GC_SHA224_DIGEST_SIZE): Add.
80141         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
80142         (gc_hash_digest_length): Likewise.
80143         (gc_hash_buffer): Likewise.
80145 2008-03-25  Bruno Haible  <bruno@clisp.org>
80147         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
80148         detail which gettext release to use.
80149         Reported by Simon Josefsson.
80151 2008-03-26  Jim Meyering  <meyering@redhat.com>
80153         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
80154         * modules/gnumakefile (clean-GNUmakefile): Also, use
80155         test ... && ... || : syntax rather than if-then ... fi.
80157         gnumakefile: Don't double-quote-expand $(VPATH) value.
80158         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
80160 2008-03-24  Eric Blake  <ebb9@byu.net>
80162         Alter GNUmakefile to install into top directory.
80163         * modules/maintainer-makefile: Split, and add dependency...
80164         * modules/gnumakefile: to this new module.
80165         * build-aux/GNUmakefile: Move...
80166         * top/GNUmakefile: ...here.
80167         * build-aux/maint.mk: Move...
80168         * top/maint.mk: ...here.
80169         * MODULES.html.sh (Support for maintaining...): Document new
80170         module.
80172 2008-03-23  Bruno Haible  <bruno@clisp.org>
80174         * gnulib-tool: New options --vc-files, --no-vc-files.
80175         (func_usage): Document them.
80176         (vc_files): New variable.
80177         (func_import): Consider vc_files.
80178         (func_create_testdir): Set vc_files to empty.
80179         Suggested by Jim Meyering and Karl Berry.
80181 2008-03-23  Bruno Haible  <bruno@clisp.org>
80183         Fix regex compilation error on HP-UX 11.
80184         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
80185         * modules/regex (Files): Add m4/mbstate_t.m4.
80186         Reported by Ton Voon <ton.voon@altinity.com>.
80188 2008-03-23  Bruno Haible  <bruno@clisp.org>
80190         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
80192 2008-03-23  Eric Blake  <ebb9@byu.net>
80193             Bruno Haible  <bruno@clisp.org>
80195         Install files from top/ in the destination directory.
80196         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
80197         augmentation also for the files from top/.
80198         (func_import, func_create_testdir): Rewrite file names:
80199         top/filename -> filename.
80201 2008-03-23  Bruno Haible  <bruno@clisp.org>
80203         Tweak "gnulib --version" output.
80204         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
80206 2008-03-23  Bruno Haible  <bruno@clisp.org>
80208         Tweak "gnulib --version" output.
80209         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
80210         rather than contents of ChangeLog, when possible.
80212 2008-03-21  Eric Blake  <ebb9@byu.net>
80214         More --version tweaks.
80215         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
80216         date of last ChangeLog entry.
80218 2008-03-21  Jim Meyering  <meyering@redhat.com>
80220         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
80222 2008-03-20  Eric Blake  <ebb9@byu.net>
80224         VPATH fix.
80225         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
80227 2008-03-20  Simon Josefsson  <simon@josefsson.org>
80229         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
80230         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
80232 2008-03-20  Eric Blake  <ebb9@byu.net>
80234         Sync GNUmakefile with coreutils.
80235         * build-aux/GNUmakefile (have-Makefile): Rename...
80236         (_have-Makefile): ...to this, for namespace consideration.
80237         (GNUmakefile.cfg): Include, if present.
80238         (_autoreconf): Define a default.
80239         (_is-dist-target): New rule for rebuilds to pick up intra-release
80240         version.
80241         (maint-cfg.mk): Rename...
80242         (cfg.mk): ...to this.
80244 2008-03-18  Jim Meyering  <meyering@redhat.com>
80246         New script and module: mktempd
80247         * MODULES.html.sh (maint+release support): Add mktempd.
80248         * build-aux/mktempd: New file.
80249         * modules/mktempd: New file.
80251 2008-03-15  Jim Meyering  <meyering@redhat.com>
80253         Undo last change.
80254         * lib/sha1.c, lib/md5.c: 63 != ~63.
80255         Reported by Andreas Schwab.
80257         sha1.c, md5.c: Hoist a redundant expression.
80258         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
80259         "ctx->buflen" only once, before calling *_process_block.
80260         * lib/md5.c (md5_process_bytes): Likewise.
80262 2008-03-14  Eric Blake  <ebb9@byu.net>
80264         Bump copyright year in files generated by gnulib-tool.
80265         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
80266         gnulib-tool, rather than hard-coding it.
80268         Fix 'gnulib-tool --version' output to work with git.
80269         * gnulib-tool (func_gnulib_dir): New function, extracted from...
80270         (startup): ...here.
80271         (func_version): Use it to invoke git-version-gen, rather than
80272         relying on CVS keyword expansion.  Modernize wording.
80273         (cvsdatestamp, last_checkin_date, version): Kill unused
80274         variables.
80276 2008-03-12  Jim Meyering  <meyering@redhat.com>
80278         Recognize optional cast of the argument to free.
80279         * build-aux/useless-if-before-free: Update regexps.
80281         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
80283 2008-03-11  Bruno Haible  <bruno@clisp.org>
80285         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
80286         by a single package.
80287         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
80288         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
80289         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
80290         Reported by Sam Steingold <sds@gnu.org>.
80292 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80294         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
80295         repositories.
80297 2008-03-11  Bruno Haible  <bruno@clisp.org>
80299         Avoid conflicts between local macro definitions.
80300         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
80301         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
80303 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
80304             Bruno Haible  <bruno@clisp.org>
80306         Make va_copy work with some version of xlc on AIX 5.1.
80307         * lib/stdarg.in.h: New file.
80308         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
80309         On AIX, use a <stdarg.h> file substitute.
80310         * modules/stdarg (Files): Add lib/stdarg.in.h.
80311         (Depends-on): Add include_next.
80312         (Makefile.am): Build a stdarg.h substitute if requested.
80313         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
80315 2008-03-10  Bruno Haible  <bruno@clisp.org>
80317         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
80318         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
80319         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
80321 2008-03-10  Bruno Haible  <bruno@clisp.org>
80323         * modules/stdlib (Depends-on): Add include_next, remove
80324         absolute-header.
80326 2008-03-09  Bruno Haible  <bruno@clisp.org>
80328         * lib/freadahead.h (freadahead): Document more precisely.
80329         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
80330         the sum of both buffer sizes.
80331         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
80332         * NEWS: Document the change.
80334 2008-03-09  Bruno Haible  <bruno@clisp.org>
80336         Extend freadptr to return also the buffer size.
80337         * lib/freadptr.h (freadptr): Add sizep argument.
80338         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
80339         (freadptr): Add sizep argument. Determine buffer size like freadahead
80340         does.
80341         * tests/test-freadptr.c: Don't include freadahead.h.
80342         (main): Adapt for new calling convention of freadptr.
80343         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
80344         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
80345         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
80346         tests/test-freadptr2.sh.
80347         (Depends): Remove freadahead.
80348         (TESTS): Add test-freadptr2.sh.
80349         (check_PROGRAMS): Add test-freadptr2.
80351 2008-03-09  Bruno Haible  <bruno@clisp.org>
80353         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
80354         Report and solution by Simon Josefsson.
80356 2008-03-06  Bruno Haible  <bruno@clisp.org>
80358         Make fflush after ungetc work on BSD platforms.
80359         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
80360         * tests/test-fflush2.c: New file.
80361         * tests/test-fflush2.sh: New file.
80362         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
80363         tests/test-fflush2.c.
80364         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
80365         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
80367 2008-03-06  Eric Blake  <ebb9@byu.net>
80369         Likewise for ftello.
80370         * modules/ftello (Dependencies): Add extensions.
80371         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
80373 2008-03-06  Bruno Haible  <bruno@clisp.org>
80375         * modules/fseeko (Dependencies): Add extensions.
80376         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
80377         Needed on glibc systems.
80379 2008-03-06  Bruno Haible  <bruno@clisp.org>
80381         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
80382         email address.
80383         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80385 2008-03-06  Bruno Haible  <bruno@clisp.org>
80387         * users.txt: Add libgnupdf.
80389 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
80391         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
80392         (Header File Substitutes, Function Substitutes,
80393         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
80394         (Build robot for gnulib): Fix typo.
80396 2008-03-06  Bruno Haible  <bruno@clisp.org>
80398         * doc/gnulib-tool.texi (VCS Issues): Small updates.
80399         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80401 2008-03-06  Bruno Haible  <bruno@clisp.org>
80403         * doc/func.texi: New file, extracted from doc/gnulib.texi.
80404         * doc/gnulib.texi: Include it.
80406 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80408         * modules/func (License): Change license to unlimited; there was
80409         no LGPL parts in the module anyway.
80411 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80413         * modules/__func__: Renamed to modules/func.
80414         * modules/__func__-tests: Renamed to modules/func-tests.
80415         * tests/test-__func__.c: Renamed to tests/test-func.c.
80416         * m4/__func__.m4: Renamed to m4/func.m4.
80417         * doc/gnulib.texi (__func__): Section renamed to func.
80418         Suggested by Eric Blake <ebb9@byu.net>.
80420 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80422         * doc/gnulib.texi (__func__): Use C99 terminology when talking
80423         about __func__.  Make example self-contained.  Suggested by Eric
80424         Blake <ebb9@byu.net>.
80426         * tests/test-__func__.c (main): Avoid extraneous () around __func.
80427         Suggested by Eric Blake <ebb9@byu.net>.
80429 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80431         * modules/__func__: New file.
80432         * modules/__func__-tests: New file.
80433         * tests/test-__func__.c: New file.
80434         * m4/__func__.m4: New file.
80435         * doc/gnulib.texi (__func__): Document __func__ module.
80437 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80439         * modules/byteswap (License): Re-license as LGPLv2+.
80441 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80443         * doc/Makefile: Add pdf target.
80445 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80447         * modules/inline (License): Use 'unlimited', since there are only
80448         *.m4 files in this module.
80450 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80451             Bruno Haible  <bruno@clisp.org>
80453         Add support for HP C 7.1 on OpenVMS 8.3.
80454         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
80456 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80458         Update VMS specifics.
80459         * lib/getopt.c [VMS]: Remove include of unixlib.h.
80461 2008-03-02  Jim Meyering  <meyering@redhat.com>
80463         Remove the last dependency on the "free" module.
80464         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
80465         Reported by Bob Proulx.
80467         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
80469         Remove useless "if" tests before free.  Deprecate "free" module.
80470         * doc/posix-functions/free.texi: Mention that this
80471         module is no longer useful.
80472         * modules/free (Notice): Say this module is obsolete.
80473         * modules/readutmp (Depends-on): Remove free.
80474         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
80475         * lib/putenv.c (putenv): Likewise.
80476         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
80477         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
80478         * tests/test-c-strcasestr.c (main): Likewise.
80479         * tests/test-c-strstr.c (main): Likewise.
80480         * tests/test-mbscasestr1.c (main): Likewise.
80481         * tests/test-mbscasestr2.c (main): Likewise.
80482         * tests/test-mbsstr1.c (main): Likewise.
80483         * tests/test-mbsstr2.c (main): Likewise.
80484         * tests/test-memmem.c (main): Likewise.
80485         * tests/test-strcasestr.c (main): Likewise.
80486         * tests/test-striconv.c (main): Likewise.
80487         * tests/test-striconveh.c (main): Likewise.
80488         * tests/test-striconveha.c (main): Likewise.
80489         * tests/test-strstr.c (main): Likewise.
80491         * build-aux/git-version-gen: Adjust a comment and the Usage string.
80493         bootstrap: sync from coreutils again
80494         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
80496 2008-03-01  Jim Meyering  <meyering@redhat.com>
80498         bootstrap: sync from coreutils
80499         * build-aux/bootstrap (update_po_files): Copy a .po file into place
80500         also when the target doesn't exist.
80502 2008-03-01  Eric Blake  <ebb9@byu.net>
80504         Fix bugs in last patch.
80505         * lib/memchr2.c (memchr2): Fix typo.
80506         * tests/test-memchr2.c: Test previous bug, and don't use GNU
80507         extension.
80508         Reported by Bruce Korb.
80510         New module 'memchr2'.
80511         * modules/memchr2: New file.
80512         * modules/memchr2-tests: Likewise.
80513         * lib/memchr2.h: Likewise.
80514         * lib/memchr2.c: Likewise, based on memchr.c.
80515         * tests/test-memchr2.c: New test.
80516         * MODULES.html.sh (String handling): Add memchr2.
80518 2008-02-29  Bruno Haible  <bruno@clisp.org>
80520         * modules/freadseek-tests: New file.
80521         * tests/test-freadseek.sh: New file.
80522         * tests/test-freadseek.c: New file.
80524         New module 'freadseek'.
80525         * modules/freadseek: New file.
80526         * lib/freadseek.h: New file.
80527         * lib/freadseek.c: New file.
80528         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
80530 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
80532         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
80533         wydawca.
80535         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
80536         program_invocation_name and program_invocation_short_name are
80537         present.
80539 2008-02-28  Bruno Haible  <bruno@clisp.org>
80541         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
80542         * tests/test-freadptr.sh: Also test non-seekable stdin.
80544 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
80546         * build-aux/bootstrap (source_base, m4_base)
80547         (doc_base, tests_base): New variables.
80548         (gnulib_tool_options): Do not hardcode base directories, use
80549         the above variables instead.
80551 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
80553         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
80555 2008-02-28  Bruno Haible  <bruno@clisp.org>
80557         * modules/freadptr-tests: New file.
80558         * tests/test-freadptr.sh: New file.
80559         * tests/test-freadptr.c: New file.
80561         New module 'freadptr'.
80562         * modules/freadptr: New file.
80563         * lib/freadptr.h: New file.
80564         * lib/freadptr.c: New file.
80565         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
80567 2008-02-26  Karl Berry  <karl@freefriends.org>
80569         Sync from Libtool:
80570         * libltdl/argz.c (argz_add, argz_count): New functions.
80571         * libltdl/argz.in.h: Declare them.
80572         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
80574 2008-02-22  Bruno Haible  <bruno@clisp.org>
80576         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
80577         is a pointer type.  Needed for HP-UX 10.
80578         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
80579         * doc/posix-functions/gmtime_r.texi: Likewise.
80580         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
80582 2008-02-24  Bruno Haible  <bruno@clisp.org>
80584         * modules/environ-tests: New file.
80585         * tests/test-environ.c: New file.
80587         New module 'environ'.
80588         * modules/environ: New file.
80589         * lib/unistd.in.h (environ): New declaration.
80590         * m4/environ.m4: New file.
80591         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
80592         after use.
80593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
80594         HAVE_DECL_ENVIRON.
80595         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
80596         HAVE_DECL_ENVIRON.
80597         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
80598         wrong claim that 'environ' is missing on some systems.
80599         * modules/execute (Depends-on): Add environ.
80600         * lib/execute.c (environ): Remove fallback declaration.
80601         * modules/pipe (Depends-on): Add environ.
80602         * lib/pipe.c (environ): Remove fallback declaration.
80603         * modules/setenv (Depends-on): Add environ.
80604         * lib/setenv.c (environ): Remove fallback declaration.
80605         * modules/unsetenv (Depends-on): Add environ.
80606         * lib/unsetenv.c (environ): Remove fallback declaration.
80607         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
80608         m4/environ.m4.
80609         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
80610         (gl_PREREQ_UNSETENV): Likewise.
80612 2008-02-24  Bruno Haible  <bruno@clisp.org>
80614         * doc/posix-functions/environ.texi: Document the MacOS X problem.
80616 2008-02-20  Bob Proulx  <bob@proulx.com>
80618         Enable use of older two part flavor 'git describe'.
80619         * build-aux/git-version-gen: If using the older two part flavor of
80620         git version then recreate the third part now present in the
80621         newer three part flavor of git describe.
80623 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
80625         * lib/fts.c (fts_build): Typo correction to comment.
80627 2008-02-17  Bruno Haible  <bruno@clisp.org>
80629         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
80630         generating no-op conflicts.
80632 2008-02-17  Bruno Haible  <bruno@clisp.org>
80634         Speed up by 10%.
80635         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
80636         result_entries, rather than an index-based loop.
80638 2008-02-17  Bruno Haible  <bruno@clisp.org>
80640         Speed up by 25%.
80641         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
80642         'hashcode_cached'.
80643         (entry_create): New function.
80644         (entry_hashcode): Use the cached hashcode if possible.
80645         (read_changelog_file, try_split_merged_entry): Use entry_create.
80647 2008-02-17  Bruno Haible  <bruno@clisp.org>
80649         Speed up from O(n^2) to O(n) for long ChangeLog files.
80650         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
80651         (read_changelog_file): Change implementation of entries_reversed list
80652         to rbtreehash.
80653         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
80655 2008-02-17  Bruno Haible  <bruno@clisp.org>
80657         New option --split-merged-entry.
80658         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
80659         (find_paragraph_end, try_split_merged_entry): New functions.
80660         (long_options): Add option --split-merged-entry.
80661         (usage): Document option --split-merged-entry.
80662         (main): Implement option --split-merged-entry.
80663         Reported by Eric Blake.
80665 2008-02-17  Bruno Haible  <bruno@clisp.org>
80667         * lib/git-merge-changelog.c: Include c-strstr.h.
80668         (main): Support the "git pull --rebase" situation.
80669         * modules/git-merge-changelog (Depends-on): Add c-strstr.
80670         Reported by Eric Blake.
80672 2008-02-16  Eric Blake  <ebb9@byu.net>
80674         Avoid doubling \ in common case of "c-maybe" quoting style.
80675         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
80676         eliding outer quotes.
80677         * lib/quotearg.h: Document this.
80678         * tests/test-quotearg.c (result_strings, inputs, results_g)
80679         (flag_results, locale_results): Test it by adding a new string to
80680         each test group.
80681         (compare_strings): Test new string.
80683 2008-02-13  Eric Blake  <ebb9@byu.net>
80685         Avoid trigraph quoting in default output.
80686         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
80687         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
80688         unless explicitly requested.
80689         * tests/test-quotearg.c (flag_results, main): Add additional tests.
80691 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
80693         Don't rely on signed integer overflowing to negative value.
80694         * lib/getugroups.c (getugroups): Include <limits.h>.
80695         Instead, compare against INT_MAX, and increment only if the test passes.
80697 2008-02-13  Jim Meyering  <meyering@redhat.com>
80698         and Eric Blake  <ebb9@byu.net>
80700         Avoid shadowing warning and compile errors on Linux.
80701         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
80702         forwarding macros on Linux.
80703         (dcgettext): Define a stub, for Linux.
80704         (results_g, main): Avoid warnings.
80706 2008-02-12  Eric Blake  <ebb9@byu.net>
80708         Silence warning in last patch.
80709         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
80711         Quotearg part 4: add tests, fix c-maybe colon quoting.
80712         * lib/quotearg.h: Improve documentation.
80713         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
80714         escapes when adding outer quotes.  When quoting trigraphs, use
80715         valid C notation.  When quoting NUL, omit extra characters if next
80716         character is not digit.  Alter prototype.
80717         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
80718         callers.
80719         * modules/quotearg-tests: New module.
80720         * tests/test-quotearg.c: New test.
80722 2008-02-07  Eric Blake  <ebb9@byu.net>
80724         Quotearg part 3: add flag to control outer quote elision.
80725         * lib/quotearg.h (c_maybe_quoting_style): New style.
80726         (enum quoting_flags): Better documentation of flags.
80727         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
80728         c-maybe style.
80729         (quotearg_buffer_restyled): Handle new flag to elide outer
80730         quotes.
80732         Quotearg part 2: add flag that can control NUL elision.
80733         * lib/quotearg.h (set_quoting_flags): New prototype.
80734         * lib/quotearg.c (struct quoting_options): Add flag field.
80735         (set_quoting_flags): New function.
80736         (quotearg_buffer_restyled): Add flags parameter.
80737         (quotearg_alloc_mem): Set the flag if length cannot be returned.
80738         (quotearg_n_options): Set the flag, since length cannot be
80739         returned.
80740         (quoting_options_from_style): Default flags correctly.
80742         Quotearg part 1: more wrappers, restore quotearg_char state.
80743         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
80744         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
80745         (quotearg_colon_mem): New wrappers.
80746         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
80747         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
80748         functions.
80749         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
80750         (quotearg_colon_mem): New functions.
80752 2008-02-11  Bruno Haible  <bruno@clisp.org>
80754         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
80755         library in the current directory: it does not work with parallel make.
80756         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80758 2008-02-11  Bruno Haible  <bruno@clisp.org>
80760         * .gitattributes: New file.
80762 2008-02-11  Jim Meyering  <meyering@redhat.com>
80764         useless-if-before-free: Fix reversed exit values.
80765         * build-aux/useless-if-before-free: Use correct values
80766         for EXIT_MATCH and EXIT_NO_MATCH.
80768         * build-aux/useless-if-before-free: Close stdout carefully.
80770 2008-02-10  Bruno Haible  <bruno@clisp.org>
80772         New module 'git-merge-changelog'.
80773         * modules/git-merge-changelog: New file.
80774         * lib/git-merge-changelog.c: New file.
80776 2008-02-10  Jim Meyering  <meyering@redhat.com>
80778         useless-if-before-free: New option: --list (-l).
80780         useless-if-before-free: Don't exit immediately upon open failure.
80781         * build-aux/useless-if-before-free: Exit 2 for errors.
80782         Upon failure to open a file, don't exit immediately.
80783         Rather, just warn and continue with any remaining files.
80785 2008-02-10  Bruno Haible  <bruno@clisp.org>
80787         New abstract list operation 'node_set_value'.
80788         * lib/gl_list.h (gl_list_node_set_value): New function.
80789         (struct gl_list_implementation): New field node_set_value.
80790         * lib/gl_list.c (gl_list_node_set_value): New function.
80791         * lib/gl_array_list.c (gl_array_node_set_value): New function.
80792         (gl_array_list_implementation): Update.
80793         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
80794         (gl_carray_list_implementation): Update.
80795         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
80796         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
80797         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
80798         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
80799         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
80800         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
80801         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
80802         Update.
80803         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
80804         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
80805         (gl_sublist_list_implementation): Update.
80807 2008-02-10  Bruno Haible  <bruno@clisp.org>
80809         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
80810         Needed when ELEMENT is #defined to 'some_type *'.
80812 2008-02-10  Jim Meyering  <meyering@redhat.com>
80814         New script and module: useless-if-before-free
80815         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
80816         * build-aux/useless-if-before-free: New file.
80817         * modules/useless-if-before-free: New file.
80819         * build-aux/gitlog-to-changelog: Use committer date, not author date.
80821         xstrtol_error: Fix typo.
80822         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
80823         s/exit_failure/exit_status/.
80825 2008-02-09  Jim Meyering  <meyering@redhat.com>
80827         New script and module: gitlog-to-changelog
80828         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
80829         * modules/gitlog-to-changelog: New file.
80830         * build-aux/gitlog-to-changelog: New file.
80832 2008-02-08  Jim Meyering  <meyering@redhat.com>
80834         Avoid two "parameter unused" warnings.
80835         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
80836         Mark "st" as used.
80838         Use "git COMMAND", not "git-COMMAND".
80839         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
80840         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
80841         * build-aux/git-version-gen: Use "git status", not "git-status".
80843 2008-02-07  Bruno Haible  <bruno@clisp.org>
80845         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
80846         Avoids a crash on Windows Vista.
80847         Reported by Adam Strzelecki <ono@java.pl> via
80848         Simon Josefsson <simon@josefsson.org>.
80850 2008-02-06  Bruno Haible  <bruno@clisp.org>
80852         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
80853         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
80854         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
80855         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
80856         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
80857         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80858         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
80859         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
80860         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80861         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80862         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80863         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80864         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80865         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80866         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80867         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
80868         left-adjust flag.
80869         * tests/test-snprintf-posix.h (test_function): Likewise.
80870         * tests/test-sprintf-posix.h (test_function): Likewise.
80871         * tests/test-vasprintf-posix.c (test_function): Likewise.
80872         * doc/posix-functions/fprintf.texi: Update.
80873         * doc/posix-functions/printf.texi: Update.
80874         * doc/posix-functions/snprintf.texi: Update.
80875         * doc/posix-functions/sprintf.texi: Update.
80876         * doc/posix-functions/vfprintf.texi: Update.
80877         * doc/posix-functions/vprintf.texi: Update.
80878         * doc/posix-functions/vsnprintf.texi: Update.
80879         * doc/posix-functions/vsprintf.texi: Update.
80880         Reported by Peter Fales <psfales@alcatel-lucent.com>.
80882 2008-02-06  Bruno Haible  <bruno@clisp.org>
80884         Fix bug introduced on 2008-01-26.
80885         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
80887 2008-02-06  Bruno Haible  <bruno@clisp.org>
80889         Fix bug introduced on 2007-06-10.
80890         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
80891         !NEED_PRINTF_FLAG_ZERO.
80893 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
80895         getloadavg: use libperfstat on AIX5
80896         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
80898 2008-02-03  Bruno Haible  <bruno@clisp.org>
80900         * lib/diffseq.h: Add comments about required #includes.
80901         Reported by Michael Biggs <gnulib@doubleplum.net>.
80903 2008-02-01  Bruno Haible  <bruno@clisp.org>
80905         * users.txt: Add gnuit.
80907 2008-01-31  Bruno Haible  <bruno@clisp.org>
80909         * lib/md4.c (set_uint32): Mark as inline.
80910         * lib/md5.c (set_uint32): Likewise.
80911         * lib/sha1.c (set_uint32): Likewise.
80912         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
80913         * m4/md5.m4 (gl_MD5): Likewise.
80914         * m4/sha1.m4 (gl_SHA1): Likewise.
80916 2008-01-31  Jim Meyering  <meyering@redhat.com>
80918         Use "sizeof VAR", rather than a literal "4".
80919         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
80920         * lib/md4.c (md4_read_ctx): Likewise.
80921         * lib/sha1.c (sha1_read_ctx): Likewise.
80923 2008-01-31  Simon Josefsson  <simon@josefsson.org>
80925         * tests/test-sha1.c: New file, based on test-md5.c.
80927         * modules/crypto/sha1-tests: New file.
80929 2008-01-31  Simon Josefsson  <simon@josefsson.org>
80931         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
80933 2008-01-31  Jim Meyering  <meyering@redhat.com>
80935         Prefer "sizeof v" over the equivalent "4".
80936         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
80937         * lib/md5.c (set_uint32): Likewise.
80938         * lib/sha1.c (set_uint32): Likewise.
80940 2008-01-31  Simon Josefsson  <simon@josefsson.org>
80942         * lib/sha1.c (set_uint32): Mark function as static.
80944 2008-01-31  Simon Josefsson  <simon@josefsson.org>
80946         md2: clarify comments to say that alignment is not required.
80947         * lib/md2.h: Remove warning about alignment in comment.
80948         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
80949         never been required.
80951 2008-01-31  Simon Josefsson  <simon@josefsson.org>
80953         md4: adapt alignment constraint fix from sha1.
80954         * lib/md4.c (set_uint32): New function, from sha1.c
80955         (md4_read_ctx): Use it.
80956         (md4_finish_ctx): Doc fix.
80957         * lib/md4.h: Doc fix.
80959 2008-01-31  Simon Josefsson  <simon@josefsson.org>
80961         md5: adapt alignment constraint fix from sha1.
80962         * lib/md5.c (set_uint32): New function, from sha1.c
80963         (md5_read_ctx): Use it.
80964         (md5_finish_ctx): Doc fix.
80965         * lib/md5.h: Doc fix.
80967 2008-01-30  Peter Palfrader  <weasel@debian.org>
80969         sha1: remove the result buffer alignment constraint
80970         * lib/sha1.c (set_uint32): New function.
80971         (sha1_read_ctx): Rewrite to remove the result buffer alignment
80972         constraint.
80973         (sha1_finish_ctx): Remove comment warning about alignment constraint.
80974         * lib/sha1.h: Likewise.
80976 2008-01-30  Andreas Schwab  <schwab@suse.de>
80977             Bruno Haible  <bruno@clisp.org>
80979         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
80980         correct definition of LDBL_MIN_EXP.
80982 2008-01-30  Karl Berry  <karl@gnu.org>
80984         * config/srclist-update: try to preserve x bit on updates.
80985         * config/srclistvars.sh: update for karl.
80987 2008-01-29  Jim Meyering  <meyering@redhat.com>
80989         vasnprintf.c: Avoid warning about unused label
80990         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
80991         "overflow" label definition and associated code with the
80992         same cpp condition that guards the sole use of that label.
80994 2008-01-26  Bruno Haible  <bruno@clisp.org>
80996         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
80997         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
80998         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
80999         * lib/isnanl-nolibm.h (isnanl): Likewise.
81000         Reported by Paul Eggert <eggert@cs.ucla.edu>.
81002 2008-01-26  Bruno Haible  <bruno@clisp.org>
81004         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
81005         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
81007 2008-01-26  Bruno Haible  <bruno@clisp.org>
81009         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
81010         GCC >= 4.0 built-in.
81011         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
81013 2008-01-26  Bruno Haible  <bruno@clisp.org>
81015         Rename isnan, applicable to 'double' only, to isnand.
81016         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
81017         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
81018         (configure.ac): Update.
81019         (Include): Replace "isnan.h" with "isnand.h".
81020         * m4/isnand.m4: Renamed from m4/isnan.m4.
81021         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
81022         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
81023         instead of isnan.c.
81024         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
81025         instead of HAVE_ISNAN_IN_LIBC.
81026         (isnand): Renamed from isnan.
81027         * lib/isnand.c: New file.
81028         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
81029         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
81030         (Makefile.am): Update.
81031         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
81032         Include isnand.h instead of isnan.h.
81033         (main): Test isnand instead of isnan.
81034         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
81035         isnan-nolibm.
81036         * modules/frexp (Depends-on): Likewise.
81037         * modules/frexp-tests (Depends-on): Likewise.
81038         * modules/frexp-nolibm (Depends-on): Likewise.
81039         * modules/frexp-nolibm-tests (Depends-on): Likewise.
81040         * modules/isfinite (Depends-on): Likewise.
81041         * modules/round-tests (Depends-on): Likewise.
81042         * modules/signbit (Depends-on): Likewise.
81043         * modules/signbit-tests (Depends-on): Likewise.
81044         * modules/snprintf-posix (Depends-on): Likewise.
81045         * modules/sprintf-posix (Depends-on): Likewise.
81046         * modules/trunc-tests (Depends-on): Likewise.
81047         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
81048         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
81049         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
81050         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
81051         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
81052         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
81053         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
81054         * modules/vasnprintf-posix (Depends-on): Likewise.
81055         * modules/vasprintf-posix (Depends-on): Likewise.
81056         * modules/vfprintf-posix (Depends-on): Likewise.
81057         * modules/vsnprintf-posix (Depends-on): Likewise.
81058         * modules/vsprintf-posix (Depends-on): Likewise.
81059         * lib/frexp.c: Include isnand.h instead of isnan.h.
81060         (ISNAN): Set to isnand instead of isnan.
81061         * lib/isfinite.c: Include isnand.h instead of isnan.h.
81062         (gl_isfinited): Use isnand instead of isnan.
81063         * lib/signbitd.c: Include isnand.h instead of isnan.h.
81064         (gl_signbitd): Use isnand instead of isnan.
81065         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
81066         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
81067         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
81068         (main): Use isnand instead of isnan.
81069         * tests/test-round1.c: Include isnand.h.
81070         (main): Use isnand instead of isnan.
81071         * tests/test-round2.c: Include isnand.h instead of isnan.h.
81072         (ISNAN): Set to isnand instead of isnan.
81073         * tests/test-trunc1.c: Include isnand.h.
81074         (main): Use isnand instead of isnan.
81075         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
81076         (equal): Use isnand instead of isnan.
81077         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
81078         isnand-nolibm.
81079         * NEWS: Mention the change.
81081 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81082             Bruno Haible  <bruno@clisp.org>
81084         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
81085         the GCC builtins for signbits are present and set
81086         REPLACE_SIGNBIT_USING_GCC if so.
81087         * lib/math.in.h (signbit): Define using GCC builtins if
81088         REPLACE_SIGNBIT_USING_GCC is set.
81089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
81090         REPLACE_SIGNBIT_USING_GCC.
81091         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
81093 2008-01-25  Jim Meyering  <meyering@redhat.com>
81095         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
81096         * lib/poll.c: Include <config.h>, not "config.h".
81097         * tests/test-getaddrinfo.c: Likewise.
81099 2008-01-25  Simon Josefsson  <simon@josefsson.org>
81101         * modules/sockets-tests: New file.
81103 2008-01-24  Simon Josefsson  <simon@josefsson.org>
81105         * modules/sockets: New module, can be used to call WSA_Startup and
81106         WSA_Cleanup when needed.
81108         * lib/sockets.h, lib/sockets.c: New files.
81110         * m4/sockets.m4: New file.
81112         * tests/test-sockets.c: New file.
81114 2008-01-19  Bruno Haible  <bruno@clisp.org>
81116         * doc/posix-headers: Renamed from doc/headers.
81117         * doc/posix-functions: Renamed from doc/functions.
81118         * doc/gnulib.texi: Update.
81120 2008-01-19  Bruno Haible  <bruno@clisp.org>
81122         * doc/glibc-functions/strcasestr.texi: Include contents of
81123         doc/functions/strcasestr.texi, fixing the list of platforms.
81124         * doc/functions/strcasestr.texi: Remove file.
81126 2008-01-19  Bruno Haible  <bruno@clisp.org>
81128         * doc/glibc-functions/memmem.texi: Include contents of
81129         doc/functions/memmem.texi.
81130         * doc/functions/memmem.texi: Remove file.
81132 2008-01-18  Bruno Haible  <bruno@clisp.org>
81134         * doc/glibc-functions/*.texi: New files.
81135         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
81136         to use the new files.
81138 2008-01-17  Bruno Haible  <bruno@clisp.org>
81140         * tests/test-gethostname.c (main): Fix printf statement.
81142 2008-01-17  Simon Josefsson  <simon@josefsson.org>
81144         * modules/gethostname-tests: New file.
81146         * tests/test-gethostname.c: New file.
81148 2008-01-17  Simon Josefsson  <simon@josefsson.org>
81150         * lib/gethostname.c: Include string.h unconditionally, strncpy is
81151         used by the UNAME case.  Reported by Bruno Haible
81152         <bruno@clisp.org>.
81154 2008-01-17  Eric Blake  <ebb9@byu.net>
81156         Convert c-strcasestr to be more efficient.
81157         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
81158         (Depends-on): Add c-strcase, remove malloca, strnlen.
81159         * tests/test-c-strcasestr.c (main): Enhance test.
81160         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
81162 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
81164         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
81165         Use it in creating po/Makevars.
81167 2008-01-15  Simon Josefsson  <simon@josefsson.org>
81169         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
81170         Applications that requires it should initialize libgcrypt
81171         manually.
81173 2008-01-16  Simon Josefsson  <simon@josefsson.org>
81175         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
81177 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
81179         Fix problem with getdate on mingw32 reported by Simon Josefsson
81180         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
81181         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
81182         tzname", when deciding whether to declare tzname.
81183         * lib/strftime.c (tzname): Likewise.
81185 2008-01-15  Bruno Haible  <bruno@clisp.org>
81187         Work around a MacOS X 10.5 bug in frexpl().
81188         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
81189         * doc/functions/frexpl.texi: Document the bug.
81190         Reported by Elias Pipping <pipping@gentoo.org>.
81192 2008-01-14  Eric Blake  <ebb9@byu.net>
81194         Touch up previous patch.
81195         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
81196         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
81198         Convert strcasestr module to use Two-Way algorithm.
81199         * modules/strcasestr-simple: New module, based on the old
81200         strcasestr, but with Two-Way rather than KMP.
81201         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
81202         * lib/string.in.h (rpl_strcasestr): Declare.
81203         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
81204         performance.
81205         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
81206         * modules/string (Makefile.am): Support strcasestr.
81207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
81208         * modules/strcasestr-tests (Depends-on): Check for alarm.
81209         * tests/test-strcasestr.c: Augment test.
81210         * lib/str-two-way.h: Clean up stray macro.
81211         * NEWS: Document new module.
81212         * MODULES.html.sh (string handling): Likewise.
81213         * doc/functions/strcasestr.texi: New file.
81214         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
81215         here, since it is not a POSIX function.
81217 2008-01-14  Colin Watson  <cjwatson@debian.org>
81218             Bruno Haible  <bruno@clisp.org>
81220         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
81221         works fine; if not, set REPLACE_STRSIGNAL.
81222         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
81223         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81224         REPLACE_STRSIGNAL.
81225         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
81226         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
81227         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
81229 2008-01-14  Bruno Haible  <bruno@clisp.org>
81231         * modules/strsignal (Include): Change to <string.h>.
81233 2008-01-14  Colin Watson  <cjwatson@debian.org>
81235         * modules/argp (Notice): Add a notice recommending to change
81236         XGETTEXT_OPTIONS.
81237         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
81239 2008-01-13  Colin Watson  <cjwatson@debian.org>
81241         * modules/strsignal-tests: New file.
81242         * tests/test-strsignal.c: New file.
81244         * lib/strsignal.c: New file, from glibc with modifications.
81245         * lib/siglist.h: New file, from glibc with modifications.
81246         * lib/string.in.h (strsignal): New declaration.
81247         * m4/strsignal.m4: New file.
81248         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81249         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
81250         * modules/strsignal: New file.
81251         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
81252         HAVE_DECL_STRSIGNAL.
81254 2008-01-13  Bruno Haible  <bruno@clisp.org>
81256         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
81257         locale encoding is not ASCII. Needed for OpenBSD 4.0.
81258         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
81259         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
81261 2008-01-13  Bruno Haible  <bruno@clisp.org>
81263         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
81264         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
81265         * lib/argp.h (__attribute__): Likewise.
81266         * lib/c-stack.c (__attribute__): Likewise.
81267         * lib/error.h (__attribute__): Likewise.
81268         * lib/fts.c (__attribute__): Likewise.
81269         * lib/openat.h (__attribute__): Likewise.
81270         * lib/stdio.in.h (__attribute__): Likewise.
81271         * lib/string.in.h (__attribute__): Likewise.
81272         * lib/utimens.c (__attribute__): Likewise.
81273         * lib/vasnprintf.h (__attribute__): Likewise.
81274         * lib/xalloc.h (__attribute__): Likewise.
81275         * lib/xprintf.h (__attribute__): Likewise.
81276         * lib/xstrtol.h (__attribute__): Likewise.
81277         * lib/xvasprintf.h (__attribute__): Likewise.
81279 2008-01-12  Bruno Haible  <bruno@clisp.org>
81281         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
81282         * doc/glibc-headers/a.out.texi: New file.
81283         * doc/glibc-headers/aliases.texi: New file.
81284         * doc/glibc-headers/alloca.texi: New file.
81285         * doc/glibc-headers/ar.texi: New file.
81286         * doc/glibc-headers/argp.texi: New file.
81287         * doc/glibc-headers/argz.texi: New file.
81288         * doc/glibc-headers/byteswap.texi: New file.
81289         * doc/glibc-headers/crypt.texi: New file.
81290         * doc/glibc-headers/endian.texi: New file.
81291         * doc/glibc-headers/envz.texi: New file.
81292         * doc/glibc-headers/err.texi: New file.
81293         * doc/glibc-headers/error.texi: New file.
81294         * doc/glibc-headers/execinfo.texi: New file.
81295         * doc/glibc-headers/fpu_control.texi: New file.
81296         * doc/glibc-headers/fstab.texi: New file.
81297         * doc/glibc-headers/fts.texi: New file.
81298         * doc/glibc-headers/getopt.texi: New file.
81299         * doc/glibc-headers/ieee754.texi: New file.
81300         * doc/glibc-headers/ifaddrs.texi: New file.
81301         * doc/glibc-headers/libintl.texi: New file.
81302         * doc/glibc-headers/mcheck.texi: New file.
81303         * doc/glibc-headers/mntent.texi: New file.
81304         * doc/glibc-headers/obstack.texi: New file.
81305         * doc/glibc-headers/paths.texi: New file.
81306         * doc/glibc-headers/printf.texi: New file.
81307         * doc/glibc-headers/pty.texi: New file.
81308         * doc/glibc-headers/resolv.texi: New file.
81309         * doc/glibc-headers/shadow.texi: New file.
81310         * doc/glibc-headers/sysexits.texi: New file.
81311         * doc/glibc-headers/ttyent.texi: New file.
81313 2008-01-12  Jim Meyering  <meyering@redhat.com>
81315         announce-gen: emit Gnulib's git-based version string.
81316         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
81317         New option --gnulib-version=V, where V is expected to be
81318         the output of running git describe in the gnulib directory.
81319         (get_tool_versions): Request feedback on xdelta.  I suspect it's
81320         not useful, and plan to stop publishing an xdelta file with each
81321         coreutils release.
81323         * build-aux/announce-gen: Also check for lzma-compressed files.
81325 2008-01-11  Bruno Haible  <bruno@clisp.org>
81327         * tests/test-memmem.c (main): Increase maximum allowed time.
81328         * tests/test-strstr.c (main): Likewise.
81330 2008-01-11  Bruno Haible  <bruno@clisp.org>
81332         * doc/functions/memmem.texi: Add more precisions about platforms.
81333         * doc/functions/strstr.texi: Likewise.
81335 2008-01-10  Eric Blake  <ebb9@byu.net>
81337         * m4/strstr.m4: Delete cruft from copy-n-paste.
81338         Reported by Bruno Haible.
81340 2008-01-10  Bruno Haible  <bruno@clisp.org>
81342         Make c-strstr rely on strstr.
81343         * lib/c-strstr.c: Don't include str-kmp.h.
81344         (c_strstr): Define in terms of strstr.
81345         * modules/c-strstr (Files): Remove lib/str-kmp.h.
81346         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
81348 2008-01-10  Bruno Haible  <bruno@clisp.org>
81350         * doc/gnulib.texi (String Functions in C Locale): New section.
81351         * doc/c-ctype.texi: New file.
81352         * doc/c-strcase.texi: New file.
81353         * doc/c-strcaseeq.texi: New file.
81354         * doc/c-strcasestr.texi: New file.
81355         * doc/c-strstr.texi: New file.
81356         * doc/c-strtod.texi: New file.
81357         * doc/c-strtold.texi: New file.
81359 2008-01-10  Eric Blake  <ebb9@byu.net>
81361         * lib/relocatable.h: Fix a comment.
81363 2008-01-10  Eric Blake  <ebb9@byu.net>
81365         Share two-way algorithm.
81366         * lib/str-two-way.h: New file, merged from...
81367         * lib/memmem.c: ...here...
81368         * lib/strstr.c: ...and here.
81369         * modules/memmem (Files): Use it.
81370         * modules/strstr (Files): Likewise.
81372         Avoid quadratic strstr implementations.
81373         * lib/strstr.c: New file.
81374         * m4/strstr.m4: Likewise.
81375         * modules/strstr: Likewise.
81376         * modules/strstr-tests: Likewise.
81377         * tests/test-strstr.c: Likewise.
81378         * lib/string.in.h (rpl_strstr): Declare.
81379         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
81380         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
81381         * modules/string (Makefile.am): Likewise.
81382         * MODULES.html.sh (string handling): Mention new module.
81383         * doc/functions/strstr.texi (strstr): Document the bug.
81385 2008-01-10  Bruno Haible  <bruno@clisp.org>
81387         * lib/relocatable.h (relocate): State whether result is freshly
81388         allocated or not.
81389         * lib/relocatable.c (relocate): Return a freshly allocated string
81390         instead of a pointer to a privately held string.
81391         Reported by Sylvain Beucler <beuc@gnu.org>.
81393 2008-01-10  Colin Watson  <cjwatson@debian.org>
81395         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
81396         s/S_ISNLK/S_ISLNK/.
81398 2008-01-09  Bruno Haible  <bruno@clisp.org>
81400         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
81401         and other files.
81402         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
81403         if it's only a guess.
81404         * modules/memmem: Simplify by depending on memmem-simple.
81406 2008-01-09  Bruno Haible  <bruno@clisp.org>
81408         Work around OpenBSD 4.0 tdelete() bug.
81409         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
81410         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
81411         macros and don't redefine the enum values.
81412         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
81413         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
81414         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
81416 2008-01-09  Bruno Haible  <bruno@clisp.org>
81418         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
81419         (main): Don't perform the tests if setlocale did not install a UTF-8
81420         locale. Needed on OpenBSD 4.0.
81421         * modules/wcwidth-tests (Depends-on): Add localcharset.
81423 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81425         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
81426         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
81427         * NEWS: announce this.
81428         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
81430 2008-01-09  Simon Josefsson  <simon@josefsson.org>
81431         and Eric Blake  <ebb9@byu.net>
81433         Add memmem-simple module.
81434         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
81435         (gl_FUNC_MEMMEM): Separate performance from presence checks.
81436         * modules/memmem-simple: New file.
81437         * modules/memmem (Description): Tweak.
81438         * MODULES.html.sh (string handling): Mention new module.
81439         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
81440         addressed by memmem-simple.
81441         * NEWS: Document the difference.
81443 2008-01-09  Eric Blake  <ebb9@byu.net>
81445         Give gcc some memmem optimization hints.
81446         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
81447         (strcasestr): Declare as pure.
81448         * modules/memmem (Maintainer): Claim my implementation.
81450 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81452         Support AIX 6.1 and higher.
81453         * build-aux/config.libpath: Likewise.
81454         * build-aux/config.rpath: Likewise.
81456 2008-01-08  Jim Meyering  <meyering@redhat.com>
81457             Bruno Haible  <bruno@clisp.org>
81459         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
81460         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
81461         Reported by Peter Fales in
81462         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
81464 2008-01-08  Bruno Haible  <bruno@clisp.org>
81466         * modules/unictype/category-of (Depends-on): Add
81467         unictype/category-none.
81468         * modules/unictype/category-and-tests (Depends-on): Add
81469         unictype/category-{L,N,Lu,Nd}.
81470         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
81471         * modules/unictype/category-or-tests (Depends-on): Add
81472         unictype/category-{L,N}.
81473         * modules/unictype/category-name-tests (Depends-on): Add
81474         unictype/category-{Z,Nl}.
81475         Reported by Simon Josefsson.
81477 2008-01-08  Bruno Haible  <bruno@clisp.org>
81479         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
81480         convention better.
81481         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
81482         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
81483         Reported by Peter Miller <millerp@canb.auug.org.au>.
81485 2008-01-08  Eric Blake  <ebb9@byu.net>
81487         Rewrite memmem to guarantee linear complexity without malloc.
81488         * lib/memmem.c (memmem): Use Two-Way rather than
81489         Knuth-Morris-Pratt, to allow O(1) space usage.
81490         (critical_factorization, two_way_short_needle)
81491         (two_way_long_needle): New functions.
81492         (knuth_morris_pratt): Delete.
81493         * modules/memmem (Depends-on): No longer need malloca or stdbool.
81494         Add stdint.
81495         * tests/test-memmem.c (main): Add tests for periodic needle and
81496         sublinear performance.
81497         * doc/functions/memmem.texi (memmem): Document other deficiencies
81498         in cygwin and older glibc.
81500 2008-01-08  Bruno Haible  <bruno@clisp.org>
81502         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
81503         augmentation.
81505 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
81507         Add a configure time option: --disable-acl.
81508         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
81509         AC_ARG_ENABLE(acl).
81511 2008-01-06  Simon Josefsson  <simon@josefsson.org>
81513         * tests/test-localename.c: Don't include obsolete "setenv.h".
81515         * modules/localename-tests (Depends-on): Need unsetenv.
81517 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81519         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
81521 2008-01-06  Colin Watson  <cjwatson@debian.org>
81523         * users.txt: Add man-db.
81525 2008-01-07  Bruno Haible  <bruno@clisp.org>
81527         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
81528         previous section name.
81530 2008-01-07  Bruno Haible  <bruno@clisp.org>
81532         * lib/progname.c (set_program_name): Don't strip off a leading
81533         "lt-" prefix outside a .libs directory.
81534         Suggested by Paul Eggert.
81536 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
81537             Bruno Haible  <bruno@clisp.org>
81539         Improve memory cleanup in 'relocatable' module.
81540         * lib/relocatable.h (compute_curr_prefix): Change return type to
81541         'char *'.
81542         * lib/relocatable.c (compute_curr_prefix): Change return type to
81543         'char *'. Free curr_installdir after use.
81544         (relocate): Free curr_prefix_better after use.
81545         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
81547 2008-01-01  Bruno Haible  <bruno@clisp.org>
81549         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
81550         failure on older glibc systems.
81551         Reported by Peter Fales <psfales@alcatel-lucent.com>.
81553 2008-01-05  Eric Blake  <ebb9@byu.net>
81555         Avoid quadratic system memmem.
81556         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
81557         Reported by Ralf Wildenhues.
81559         Fix memmem test for mingw.
81560         * modules/memmem-tests (configure.ac): Check for alarm.
81561         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
81562         it.
81563         * doc/functions/memmem.texi: New file.
81564         * doc/gnulib.texi (Function Substitutes): Add memmem.
81565         Reported by Bruno Haible.
81567 2008-01-04  Bruno Haible  <bruno@clisp.org>
81569         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
81570         Require gl_HEADER_STRINGS_H_DEFAULTS, not
81571         gl_HEADER_STRING_H_DEFAULTS.
81573 2008-01-04  Eric Blake  <ebb9@byu.net>
81575         Shorten duration of memmem test.
81576         * tests/test-memmem.c (main): Use alarm to declare failure if test
81577         is taking too long.
81578         Reported by Ralf Wildenhues.
81580 2007-12-21  Simon Josefsson  <simon@josefsson.org>
81582         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
81583         string, needed by strerror.
81585 2008-01-03  Colin Watson  <cjwatson@debian.org>
81586             Bruno Haible  <bruno@clisp.org>
81588         * doc/gnulib-tool.texi (Localization): New section.
81590 2008-01-02  Bruno Haible  <bruno@clisp.org>
81592         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
81593         variables to 'unsigned char *' type.
81594         Reported by Paul Eggert.
81596 2008-01-02  Jim Meyering  <jim@meyering.net>
81598         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
81600 2007-12-31  Jim Meyering  <jim@meyering.net>
81602         Avoid use of private FTS type name.
81603         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
81605 2007-12-30  Karl Berry  <karl@gnu.org>
81607         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
81608         work around defect in Texinfo and/or the standalone Info browser.
81610 2007-12-30  Bruno Haible  <bruno@clisp.org>
81612         Unify 5 copies of the KMP code.
81613         * lib/str-kmp.h: New file.
81614         * lib/c-strcasestr.c: Include str-kmp.h.
81615         (knuth_morris_pratt): Remove function.
81616         (c_strcasestr): Update.
81617         * lib/c-strstr.c: Include str-kmp.h.
81618         (knuth_morris_pratt): Remove function.
81619         (c_strcasestr): Update.
81620         * lib/mbscasestr.c: Include str-kmp.h.
81621         (knuth_morris_pratt_unibyte): Remove function.
81622         * lib/mbsstr.c: Include str-kmp.h.
81623         (knuth_morris_pratt_unibyte): Remove function.
81624         * lib/strcasestr.c: Include str-kmp.h.
81625         (knuth_morris_pratt): Remove function.
81626         (strcasestr): Update.
81627         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
81628         * modules/c-strstr (Files): Likewise.
81629         * modules/mbscasestr (Files): Likewise.
81630         * modules/mbsstr (Files): Likewise.
81631         * modules/strcasestr (Files): Likewise.
81632         Suggested by Paul Eggert.
81634 2007-12-30  Bruno Haible  <bruno@clisp.org>
81636         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
81637         defined.
81639 2007-12-30  Bruno Haible  <bruno@clisp.org>
81641         * lib/xmalloca.h: Include xalloc.h.
81642         (xnmalloca): New macro.
81644 2007-12-30  Bruno Haible  <bruno@clisp.org>
81646         * lib/malloca.h (nmalloca): New macro.
81647         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
81648         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
81649         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
81650         knuth_morris_pratt_multibyte): Likewise.
81651         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
81652         knuth_morris_pratt_multibyte): Likewise.
81653         * lib/memmem.c (knuth_morris_pratt): Likewise.
81654         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
81656 2007-12-25  Bruno Haible  <bruno@clisp.org>
81658         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
81659         * lib/glob.c: Don't include openat.h.
81660         (link_exists2_p): Add back the code that deals with the
81661         !GLOB_ALTDIRFUNC case.
81662         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
81663         let it do the filename concatenation.
81664         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
81665         * modules/glob (Depends-on): Remove openat.
81667 2007-12-31  Bruno Haible  <bruno@clisp.org>
81669         * modules/dirfd (License): Change to LGPLv2+.
81670         Approved by Jim Meyering.
81672 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
81674         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
81675         when multiplying M by sizeof (size_t).
81677 2007-12-10  Martin Lambers  <marlam@marlam.de>
81679         Override getpagesize on mingw.
81680         * lib/getpagesize.c: New file.
81681         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
81682         * modules/getpagesize (Files): Add lib/getpagesize.c.
81683         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
81684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81685         REPLACE_GETPAGESIZE.
81686         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
81688 2007-12-25  Bruno Haible  <bruno@clisp.org>
81690         * modules/localcharset (Notice): New field.
81691         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
81692         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
81694 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
81695             Bruno Haible  <bruno@clisp.org>
81697         Avoid using the syntax symbol() in formatted documentation.
81698         * MODULES.html.sh (func_module): When replacing symbol() with a
81699         hyperlink, remove the parentheses. Show an error if some remain.
81700         Recognize and render the '...' syntax.
81701         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
81702         Rework. Add paragraph about GCC's inlining.
81703         * doc/alloca.texi: Likewise.
81704         * doc/error.texi: Remove parentheses from symbol reference.
81705         * doc/gnulib-intro.texi: Likewise.
81706         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
81707         * modules/fnmatch (Description): Reword to say "the ... function".
81708         * modules/full-read (Description): Likewise.
81709         * modules/full-write (Description): Likewise.
81710         * modules/safe-read (Description): Likewise.
81711         * modules/safe-write (Description): Likewise.
81712         * modules/strchrnul (Description): Likewise.
81713         * modules/trim (Description): Likewise.
81714         * modules/error (Description): Remove parentheses from symbol
81715         references.
81716         * modules/verror (Description): Likewise.
81717         Reported by Karl Berry.
81719 2007-12-25  Bruno Haible  <bruno@clisp.org>
81721         Fixup after 2007-10-16 commit.
81722         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
81724 2007-12-24  Bruno Haible  <bruno@clisp.org>
81726         Make --enable-relocatable work with DESTDIR.
81727         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
81728         to compute installdir from destprog.
81729         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
81730         also set the RELOC_DESTDIR variable.
81731         Reported by Левашев Иван <octagram@bluebottle.com>.
81733 2007-12-24  Bruno Haible  <bruno@clisp.org>
81735         Fix link error due to xalloc_die().
81736         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
81737         of xreadlink.
81738         * lib/relocwrapper.c: Update comments.
81739         * build-aux/install-reloc: Remove xreadlink.c from file list.
81740         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
81741         xreadlink.c.
81742         Reported by Левашев Иван <octagram@bluebottle.com>.
81744 2007-12-24  Bruno Haible  <bruno@clisp.org>
81746         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
81747         * lib/setenv.h: Remove file.
81748         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
81749         lib/setenv.h.
81750         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
81751         (Depends-on): Add stdlib.
81752         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
81753         gl_FUNC_UNSETENV.
81754         (Include): Replace setenv.h with <stdlib.h>.
81755         * modules/unsetenv: New file.
81756         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
81757         * lib/unsetenv.c: Include <stdlib.h> first.
81758         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
81759         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
81760         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
81761         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
81762         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
81763         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
81764         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
81765         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
81766         * doc/functions/unsetenv.texi: Update.
81767         * modules/xsetenv (Depends-on): Add unsetenv.
81768         * modules/getdate (Depends-on): Likewise.
81769         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
81770         * lib/xsetenv.c: Don't include setenv.h.
81771         * lib/getdate.y: Likewise.
81772         * lib/relocwrapper.c: Likewise.
81773         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
81774         (Depends-on): Add stdlib.
81775         * NEWS: Mention the changes.
81776         Reported by Левашев Иван <octagram@bluebottle.com>.
81778 2007-12-23  Bruno Haible  <bruno@clisp.org>
81780         * lib/memmem.c (memmem): Use lowercase variable names. Tab
81781         indentation.
81783 2007-12-23  Bruno Haible  <bruno@clisp.org>
81785         * lib/c-strcasestr.c: Add more comments.
81786         * lib/c-strstr.c: Likewise.
81787         * lib/mbscasestr.c: Likewise.
81788         * lib/mbsstr.c: Likewise.
81789         * lib/strcasestr.c: Likewise.
81790         * lib/memmem.c: Likewise.
81792 2007-12-23  Bruno Haible  <bruno@clisp.org>
81794         * tests/test-memmem.c: Include <string.h> first.
81796 2007-12-22  Bruno Haible  <bruno@clisp.org>
81798         * gnulib-tool (func_create_testdir): Change $auxdir while generating
81799         the contents of $testsbase.
81800         Reported by Ralf Wildenhues.
81802 2007-12-22  Bruno Haible  <bruno@clisp.org>
81804         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
81805         two variables local_ldadd_before, local_ldadd_last.
81807 2007-12-20  Eric Blake  <ebb9@byu.net>
81809         Work around circular library issue when cross-compiling.
81810         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
81811         that progname.o does not need to pull in rpl_memcmp.
81813 2007-12-19  Eric Blake  <ebb9@byu.net>
81815         Fix memmem to avoid O(n^2) worst-case complexity.
81816         * lib/memmem.c (knuth_morris_pratt): New function.
81817         (memmem): Use it if first few naive iterations fail.
81818         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
81819         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
81820         * modules/memchr (License): Likewise.
81821         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
81822         malloca.
81823         * tests/test-memmem.c: Rewrite, borrowing ideas from
81824         test-mbsstr1.c; the old version wouldn't even compile!
81825         * modules/memmem-tests: New file.
81826         * lib/string.in.h (rpl_memmem): Add declaration.
81827         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
81828         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
81829         REPLACE_MEMMEM.
81831 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
81833         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
81834         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
81835         before any system include files, and undef after them all.  This
81836         should fix a problem on VMS reported by John E. Malmberg in
81837         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
81839 2007-12-17  Eric Blake  <ebb9@byu.net>
81841         Revert addition of verify, for BSD/OS.
81842         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
81843         can't handle large files, for the sake of obsolete platforms.
81844         * modules/fseeko (Depends-on): Remove verify.
81845         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
81846         * doc/functions/ftello.texi (ftello): Likewise.
81847         * doc/functions/fgetpos.texi (fgetpos): Likewise.
81848         Reported by Larry Jones.
81850 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
81852         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
81853         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
81855 2007-12-17  Jim Meyering  <meyering@redhat.com>
81857         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
81858         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
81859         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
81860         * modules/getcwd (Depends-on): Add openat.
81861         Reported by Petr Salinger.
81863 2007-12-17  Bruno Haible  <bruno@clisp.org>
81865         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
81866         avoid a segmentation fault of the configure test on x86_64 systems.
81868 2007-12-15  Jim Meyering  <meyering@redhat.com>
81870         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
81872 2007-12-13  Eric Blake  <ebb9@byu.net>
81874         Another fseek test.
81875         * tests/test-fseek.c (main): Also test ungetc handling.
81876         * tests/test-fseeko.c (main): Likewise.
81877         * modules/fseeko (Depends-on): Add verify.
81878         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
81879         large.
81880         Reported by Larry Jones.
81882         Fix fseeko on mingw.
81883         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
81884         seek.
81886         Beef up fseek tests.
81887         * tests/test-fseek.c (main): Also test eof handling.
81888         * tests/test-fseeko.c (main): Likewise.
81889         Reported by Larry Jones.
81891 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
81893         Fix fseeko on BSD-based platforms.
81894         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
81895         successful seek.
81897 2007-12-12  Eric Blake  <ebb9@byu.net>
81899         Allow circular dependency of separate libtests.a
81900         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
81901         when use_libtests.
81903 2007-12-11  Eric Blake  <ebb9@byu.net>
81905         Fix bug with -0.0L in previous patch.
81906         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
81907         * tests/test-isnan.c (main): Also test on zeroes.
81908         * tests/test-isnanf.c (main): Likewise.
81909         * tests/test-isnanl.h (main): Likewise.
81911         Detect pseudo-denormals on x86 even when cross-compiling.
81912         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
81913         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
81914         invalid bit patterns that happen to satisfy ==.
81916         Avoid link failures with separate libtests.a.
81917         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
81918         last, to satisfy circular dependencies.
81920 2007-12-11  Eric Blake  <ebb9@byu.net>
81921         and Bruno Haible  <bruno@clisp.org>
81923         Fix OpenBSD 4.0 <float.h> handling of long double.
81924         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
81925         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
81926         * doc/headers/float.texi (float.h): Document OpenBSD bug.
81928 2007-12-11  Jim Meyering  <meyering@redhat.com>
81930         * users.txt: Add libvirt.
81932         Support versions of autoconf prior to 2.59c.
81933         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
81934         if it is not already defined.
81936 2007-12-09  Bruno Haible  <bruno@clisp.org>
81938         Let 'gnulib-tool --import' collect sources needed for the tests in
81939         tests/ rather than in lib/.
81940         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
81941         argument. If true, add rules to generate libtests.a, and put libtests.a
81942         into $(LDADD). Consider source files in subdirectories and set
81943         uses_subdirs.
81944         (func_emit_initmacro_start, func_emit_initmacro_end,
81945         func_emit_initmacro_done): Pass all arguments explicitly.
81946         (func_import): Determine two module lists main_modules,
81947         testsrelated_modules. Determine use_libtests. Determine two variables
81948         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
81949         instead of just sed_transform_lib_file. Determine two variables
81950         main_files and testsrelated_files. Compute 'files' as the union of
81951         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
81952         func_add_or_update. In the generated gnulib-comp.m4, collect the
81953         object files for tests/ in different variables than those for lib/.
81954         Substitute LIBTESTS_LIBDEPS.
81955         (func_create_testdir): Combine the uses_subdirs results from
81956         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
81958 2007-12-09  Bruno Haible  <bruno@clisp.org>
81960         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
81961         the build-aux directory.
81963 2007-12-09  Bruno Haible  <bruno@clisp.org>
81965         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
81966         introduced on 2006-09-09.
81968 2007-12-07  Jim Meyering  <meyering@redhat.com>
81970         Let these macros work also with autoconf-2.59.
81971         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
81972         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
81973         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
81975 2007-12-06  Jim Meyering  <meyering@redhat.com>
81977         Avoid a configure-time syntax error in gl_FUNC_ACL.
81978         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
81979         function in each branch, before testing the cache variable.
81981 2007-12-04  Eric Blake  <ebb9@byu.net>
81983         Make scripts executable.
81984         * build-aux/config.guess: Add execute permissions.
81985         * build-aux/config.sub: Likewise.
81986         * build-aux/gendocs.sh: Likewise.
81988         Fix frexp on mingw.
81989         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
81990         cross-compiling.
81991         * doc/functions/frexp.texi (frexp): Document the bug.
81993         Make cygwin fseeko check more reliable.
81994         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
81995         version numbers, rather than unrelated feature check.
81996         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
81997         * doc/functions/ftello.texi (ftello): Likewise.
81998         Reported by Bruno Haible.
82000         * m4/strerror.m4: Bump version number.
82002 2007-12-03  Bruno Haible  <bruno@clisp.org>
82004         * doc/functions/mprotect.texi: Mention the mingw problem.
82006 2007-12-03  Eric Blake  <ebb9@byu.net>
82008         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
82009         REPLACE_STRERROR is initialized before this macro.
82011 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
82013         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
82014         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
82015         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
82016         put -lsec in even for programs other than 'ls'.  This fixes a problem
82017         for gettext reported by Bruno Haible in
82018         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
82019         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
82020         Add support for Solaris 10.  This isn't efficient, but should get the
82021         job done for now.
82023 2007-12-03  James Youngman  <jay@gnu.org>
82025         * doc/regexprops-generic.texi: change "an close-group" to "a
82026         close-group" and "illegal" to "not allowed".
82028 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82030         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
82031         pr_byname.h. Needed for the rare case when the maintainer has done
82032         "make maintainer-clean" in the source directory and then attempts a
82033         build outside the source directory.
82034         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
82035         scripts_byname.h.
82037 2007-12-02  Martin Lambers  <marlam@marlam.de>
82038             Bruno Haible  <bruno@clisp.org>
82040         * lib/getpagesize.h: Remove file.
82041         * lib/unistd.in.h: Include declaration of getpagesize here.
82042         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
82043         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
82044         HAVE_SYS_PARAM_H.
82045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
82046         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
82047         * modules/getpagesize (Files): Remove lib/getpagesize.h.
82048         (Depends-on): Add unistd.
82049         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82050         (Include): Use <unistd.h> instead of getpagesize.h.
82051         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
82052         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
82053         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
82054         gl_GETPAGESIZE invocation, already handled by module dependency.
82055         * lib/pagealign_alloc.c: Don't include getpagesize.h.
82057 2007-12-02  Bruno Haible  <bruno@clisp.org>
82059         * modules/strings-tests: New file.
82060         * tests/test-strings.c: New file.
82062         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
82063         * lib/strings.in.h: New file.
82064         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
82065         * m4/strings_h.m4: New file.
82066         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
82067         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
82068         * modules/strings: New file.
82069         * modules/string (Makefile.am): Update.
82070         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
82071         Reported by Karl Berry.
82073 2007-12-01  Eric Blake  <ebb9@byu.net>
82075         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
82076         accommodate fix in cygwin 1.5.25.
82078 2007-12-01  Jim Meyering  <meyering@redhat.com>
82080         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
82081         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
82082         that would inhibit utf8-optimization of a regexp containing line-
82083         or buffer-anchors, e.g., `^', `$'.
82085 2007-11-30  Bruno Haible  <bruno@clisp.org>
82087         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
82088         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
82089         glthread_recursive_lock_init.
82090         * lib/lock.c (glthread_recursive_lock_init)
82091         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
82092         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82094 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
82096         New function qset_acl, like set_acl but with syscall semantics.
82097         * lib/acl.h (qset_acl): New decl.
82098         * lib/acl.c (qset_acl): New function.
82099         (set_acl): Use new function.  Use more-consistent diagnostics.
82101 2007-11-28  Jim Meyering  <meyering@redhat.com>
82103         * modules/physmem (License): Change from GPL to LGPLv2+.
82105 2007-11-26  Bruno Haible  <bruno@clisp.org>
82107         * lib/vasnprintf.c (decode_long_double): Don't abort if the
82108         'long double' type has excess precision.
82109         Reported by Jim Meyering in
82110         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
82112 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82114         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
82115         Sync from <http://gnu.org/licenses>.
82116         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
82117         with license text from same location.
82118         * doc/maintain.texi, doc/standards.texi:  Sync from
82119         <http://savannah.gnu.org/projects/gnustandards>.
82121 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
82122         and Jim Meyering  <meyering@redhat.com>
82124         Adjust getdate' grammar to accept a slightly more regular language.
82125         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
82126         Before, the former was rejected.
82127         * lib/getdate.y (digits_to_date_time): New function, factored
82128         out of ...
82129         (number): ...here.  Just call digits_to_date_time.
82130         (hybrid): New non-terminal to handle an <unsigned number,
82131         signed relative offset> sequence consistently.
82133 2007-11-18  Jim Meyering  <meyering@redhat.com>
82135         Pull my changes from coreutils:
82136         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
82137         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
82138         use of $gnulib_tool_option_extras, so that it's separated from the
82139         preceding argument.
82141         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
82142         * build-aux/bootstrap (cp_mark_as_generated): Create any required
82143         parent destination directories before copying a file into place.
82145 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
82147         bootstrap: work also with 4-argument variant of AC_INIT
82148         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
82150 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82152         Port test-getaddrinfo to Solaris.
82153         Problem reported by Bruno Haible in
82154         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
82155         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
82156         explanation of setting 'hints'.
82157         Don't reject an implementation merely because it returns EAI_SERVICE.
82158         (EAI_SERVICE): Define to 0 if not defined.
82160 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82162         The license of gnu-make and posix-shell is now "GPLed build tool".
82163         * modules/gnu-make (License): Likewise.
82164         * modules/posix-shell (License): Likewise.
82166         New module posix-shell, for determining a POSIX shell
82167         or perhaps something that is close enough to a POSIX shell.
82168         * m4/posix-shell.m4: New file.
82169         * modules/posix-shell: New file.
82171         * MODULES.html.sh: Mention new module.
82173         New module gnu-make, for determining whether we're using GNU Make.
82174         * m4/gnu-make.m4: New file.
82175         * modules/gnu-make: New file.
82176         * MODULES.html.sh: Mention new module.
82178 2007-11-14  Jim Meyering  <meyering@redhat.com>
82180         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
82181         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
82182         use this macro to create a function _definition_.
82183         Remove useless "#undef ARGMATCH_DIE".
82185 2007-11-14  Bruno Haible  <bruno@clisp.org>
82187         * lib/config.charset: Update for OpenBSD 4.1.
82188         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
82190 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
82192         Document 64-bit #if problems in stdint.texi.
82193         * doc/headers/stdint.texi (stdint.h): Mention problems with
82194         64-bit-#if, and how to work around them.
82196         Don't insist on 'long long int' support in the preprocessor.  It
82197         breaks too many things.  For example, PRIdMAX still uses a 'long
82198         long int' format with the latest Sun compiler, even though
82199         HAVE_LONG_LONG_INT isn't defined due to that compiler's
82200         preprocessor problem.  This causes the latest coreutils to dump
82201         core on Solaris 10 sparc with the Sun C compiler.
82202         Instead, fix the 2007-10-16 problem in a different way, by evaluating
82203         the troublesome expressions at configure-time, not at #if-time.
82204         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
82205         preprocessor.
82206         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
82207         compile-time C checks, done at 'configure'-time.
82208         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
82209         * modules/inttypes (Makefile): Substitute the new symbols that
82210         gl_INTTYPES_H now generates.
82211         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
82213 2007-11-12  Bruno Haible  <bruno@clisp.org>
82215         Tests for Unicode character classification functions.
82217         * modules/unictype/bidicategory-byname-tests: New file.
82218         * modules/unictype/bidicategory-name-tests: New file.
82219         * modules/unictype/bidicategory-of-tests: New file.
82220         * modules/unictype/bidicategory-test-tests: New file.
82221         * modules/unictype/block-list-tests: New file.
82222         * modules/unictype/block-of-tests: New file.
82223         * modules/unictype/block-test-tests: New file.
82224         * modules/unictype/category-C-tests: New file.
82225         * modules/unictype/category-Cc-tests: New file.
82226         * modules/unictype/category-Cf-tests: New file.
82227         * modules/unictype/category-Cn-tests: New file.
82228         * modules/unictype/category-Co-tests: New file.
82229         * modules/unictype/category-Cs-tests: New file.
82230         * modules/unictype/category-L-tests: New file.
82231         * modules/unictype/category-Ll-tests: New file.
82232         * modules/unictype/category-Lm-tests: New file.
82233         * modules/unictype/category-Lo-tests: New file.
82234         * modules/unictype/category-Lt-tests: New file.
82235         * modules/unictype/category-Lu-tests: New file.
82236         * modules/unictype/category-M-tests: New file.
82237         * modules/unictype/category-Mc-tests: New file.
82238         * modules/unictype/category-Me-tests: New file.
82239         * modules/unictype/category-Mn-tests: New file.
82240         * modules/unictype/category-N-tests: New file.
82241         * modules/unictype/category-Nd-tests: New file.
82242         * modules/unictype/category-Nl-tests: New file.
82243         * modules/unictype/category-No-tests: New file.
82244         * modules/unictype/category-P-tests: New file.
82245         * modules/unictype/category-Pc-tests: New file.
82246         * modules/unictype/category-Pd-tests: New file.
82247         * modules/unictype/category-Pe-tests: New file.
82248         * modules/unictype/category-Pf-tests: New file.
82249         * modules/unictype/category-Pi-tests: New file.
82250         * modules/unictype/category-Po-tests: New file.
82251         * modules/unictype/category-Ps-tests: New file.
82252         * modules/unictype/category-S-tests: New file.
82253         * modules/unictype/category-Sc-tests: New file.
82254         * modules/unictype/category-Sk-tests: New file.
82255         * modules/unictype/category-Sm-tests: New file.
82256         * modules/unictype/category-So-tests: New file.
82257         * modules/unictype/category-Z-tests: New file.
82258         * modules/unictype/category-Zl-tests: New file.
82259         * modules/unictype/category-Zp-tests: New file.
82260         * modules/unictype/category-Zs-tests: New file.
82261         * modules/unictype/category-and-not-tests: New file.
82262         * modules/unictype/category-and-tests: New file.
82263         * modules/unictype/category-byname-tests: New file.
82264         * modules/unictype/category-name-tests: New file.
82265         * modules/unictype/category-none-tests: New file.
82266         * modules/unictype/category-of-tests: New file.
82267         * modules/unictype/category-or-tests: New file.
82268         * modules/unictype/category-test-withtable-tests: New file.
82269         * modules/unictype/combining-class-tests: New file.
82270         * modules/unictype/ctype-alnum-tests: New file.
82271         * modules/unictype/ctype-alpha-tests: New file.
82272         * modules/unictype/ctype-blank-tests: New file.
82273         * modules/unictype/ctype-cntrl-tests: New file.
82274         * modules/unictype/ctype-digit-tests: New file.
82275         * modules/unictype/ctype-graph-tests: New file.
82276         * modules/unictype/ctype-lower-tests: New file.
82277         * modules/unictype/ctype-print-tests: New file.
82278         * modules/unictype/ctype-punct-tests: New file.
82279         * modules/unictype/ctype-space-tests: New file.
82280         * modules/unictype/ctype-upper-tests: New file.
82281         * modules/unictype/ctype-xdigit-tests: New file.
82282         * modules/unictype/decimal-digit-tests: New file.
82283         * modules/unictype/digit-tests: New file.
82284         * modules/unictype/mirror-tests: New file.
82285         * modules/unictype/numeric-tests: New file.
82286         * modules/unictype/property-alphabetic-tests: New file.
82287         * modules/unictype/property-ascii-hex-digit-tests: New file.
82288         * modules/unictype/property-bidi-arabic-digit-tests: New file.
82289         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
82290         * modules/unictype/property-bidi-block-separator-tests: New file.
82291         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
82292         * modules/unictype/property-bidi-common-separator-tests: New file.
82293         * modules/unictype/property-bidi-control-tests: New file.
82294         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
82295         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
82296         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
82297         * modules/unictype/property-bidi-european-digit-tests: New file.
82298         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
82299         * modules/unictype/property-bidi-left-to-right-tests: New file.
82300         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
82301         * modules/unictype/property-bidi-other-neutral-tests: New file.
82302         * modules/unictype/property-bidi-pdf-tests: New file.
82303         * modules/unictype/property-bidi-segment-separator-tests: New file.
82304         * modules/unictype/property-bidi-whitespace-tests: New file.
82305         * modules/unictype/property-byname-tests: New file.
82306         * modules/unictype/property-combining-tests: New file.
82307         * modules/unictype/property-composite-tests: New file.
82308         * modules/unictype/property-currency-symbol-tests: New file.
82309         * modules/unictype/property-dash-tests: New file.
82310         * modules/unictype/property-decimal-digit-tests: New file.
82311         * modules/unictype/property-default-ignorable-code-point-tests: New file.
82312         * modules/unictype/property-deprecated-tests: New file.
82313         * modules/unictype/property-diacritic-tests: New file.
82314         * modules/unictype/property-extender-tests: New file.
82315         * modules/unictype/property-format-control-tests: New file.
82316         * modules/unictype/property-grapheme-base-tests: New file.
82317         * modules/unictype/property-grapheme-extend-tests: New file.
82318         * modules/unictype/property-grapheme-link-tests: New file.
82319         * modules/unictype/property-hex-digit-tests: New file.
82320         * modules/unictype/property-hyphen-tests: New file.
82321         * modules/unictype/property-id-continue-tests: New file.
82322         * modules/unictype/property-id-start-tests: New file.
82323         * modules/unictype/property-ideographic-tests: New file.
82324         * modules/unictype/property-ids-binary-operator-tests: New file.
82325         * modules/unictype/property-ids-trinary-operator-tests: New file.
82326         * modules/unictype/property-ignorable-control-tests: New file.
82327         * modules/unictype/property-iso-control-tests: New file.
82328         * modules/unictype/property-join-control-tests: New file.
82329         * modules/unictype/property-left-of-pair-tests: New file.
82330         * modules/unictype/property-line-separator-tests: New file.
82331         * modules/unictype/property-logical-order-exception-tests: New file.
82332         * modules/unictype/property-lowercase-tests: New file.
82333         * modules/unictype/property-math-tests: New file.
82334         * modules/unictype/property-non-break-tests: New file.
82335         * modules/unictype/property-not-a-character-tests: New file.
82336         * modules/unictype/property-numeric-tests: New file.
82337         * modules/unictype/property-other-alphabetic-tests: New file.
82338         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
82339         * modules/unictype/property-other-grapheme-extend-tests: New file.
82340         * modules/unictype/property-other-id-continue-tests: New file.
82341         * modules/unictype/property-other-id-start-tests: New file.
82342         * modules/unictype/property-other-lowercase-tests: New file.
82343         * modules/unictype/property-other-math-tests: New file.
82344         * modules/unictype/property-other-uppercase-tests: New file.
82345         * modules/unictype/property-paired-punctuation-tests: New file.
82346         * modules/unictype/property-paragraph-separator-tests: New file.
82347         * modules/unictype/property-pattern-syntax-tests: New file.
82348         * modules/unictype/property-pattern-white-space-tests: New file.
82349         * modules/unictype/property-private-use-tests: New file.
82350         * modules/unictype/property-punctuation-tests: New file.
82351         * modules/unictype/property-quotation-mark-tests: New file.
82352         * modules/unictype/property-radical-tests: New file.
82353         * modules/unictype/property-sentence-terminal-tests: New file.
82354         * modules/unictype/property-soft-dotted-tests: New file.
82355         * modules/unictype/property-space-tests: New file.
82356         * modules/unictype/property-terminal-punctuation-tests: New file.
82357         * modules/unictype/property-test-tests: New file.
82358         * modules/unictype/property-titlecase-tests: New file.
82359         * modules/unictype/property-unassigned-code-value-tests: New file.
82360         * modules/unictype/property-unified-ideograph-tests: New file.
82361         * modules/unictype/property-uppercase-tests: New file.
82362         * modules/unictype/property-variation-selector-tests: New file.
82363         * modules/unictype/property-white-space-tests: New file.
82364         * modules/unictype/property-xid-continue-tests: New file.
82365         * modules/unictype/property-xid-start-tests: New file.
82366         * modules/unictype/property-zero-width-tests: New file.
82367         * modules/unictype/scripts-tests: New file.
82368         * modules/unictype/syntax-c-ident-tests: New file.
82369         * modules/unictype/syntax-c-whitespace-tests: New file.
82370         * modules/unictype/syntax-java-ident-tests: New file.
82371         * modules/unictype/syntax-java-whitespace-tests: New file.
82372         * tests/unictype/test-bidi_byname.c: New file.
82373         * tests/unictype/test-bidi_name.c: New file.
82374         * tests/unictype/test-bidi_of.c: New file.
82375         * tests/unictype/test-bidi_test.c: New file.
82376         * tests/unictype/test-block_list.c: New file.
82377         * tests/unictype/test-block_of.c: New file.
82378         * tests/unictype/test-block_test.c: New file.
82379         * tests/unictype/test-categ_and.c: New file.
82380         * tests/unictype/test-categ_and_not.c: New file.
82381         * tests/unictype/test-categ_byname.c: New file.
82382         * tests/unictype/test-categ_name.c: New file.
82383         * tests/unictype/test-categ_none.c: New file.
82384         * tests/unictype/test-categ_of.c: New file.
82385         * tests/unictype/test-categ_or.c: New file.
82386         * tests/unictype/test-categ_test_withtable.c: New file.
82387         * tests/unictype/test-combining.c: New file.
82388         * tests/unictype/test-decdigit.c: New file.
82389         * tests/unictype/test-digit.c: New file.
82390         * tests/unictype/test-mirror.c: New file.
82391         * tests/unictype/test-numeric.c: New file.
82392         * tests/unictype/test-pr_byname.c: New file.
82393         * tests/unictype/test-pr_test.c: New file.
82394         * tests/unictype/test-predicate-part1.h: New file.
82395         * tests/unictype/test-predicate-part2.h: New file.
82396         * tests/unictype/test-scripts.c: New file.
82397         * tests/unictype/test-sy_c_ident.c: New file.
82398         * tests/unictype/test-sy_java_ident.c: New file.
82400         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
82401         for Unicode 5.0.0.
82402         * tests/unictype/test-categ_Cc.c: Likewise.
82403         * tests/unictype/test-categ_Cf.c: Likewise.
82404         * tests/unictype/test-categ_Cn.c: Likewise.
82405         * tests/unictype/test-categ_Co.c: Likewise.
82406         * tests/unictype/test-categ_Cs.c: Likewise.
82407         * tests/unictype/test-categ_L.c: Likewise.
82408         * tests/unictype/test-categ_Ll.c: Likewise.
82409         * tests/unictype/test-categ_Lm.c: Likewise.
82410         * tests/unictype/test-categ_Lo.c: Likewise.
82411         * tests/unictype/test-categ_Lt.c: Likewise.
82412         * tests/unictype/test-categ_Lu.c: Likewise.
82413         * tests/unictype/test-categ_M.c: Likewise.
82414         * tests/unictype/test-categ_Mc.c: Likewise.
82415         * tests/unictype/test-categ_Me.c: Likewise.
82416         * tests/unictype/test-categ_Mn.c: Likewise.
82417         * tests/unictype/test-categ_N.c: Likewise.
82418         * tests/unictype/test-categ_Nd.c: Likewise.
82419         * tests/unictype/test-categ_Nl.c: Likewise.
82420         * tests/unictype/test-categ_No.c: Likewise.
82421         * tests/unictype/test-categ_P.c: Likewise.
82422         * tests/unictype/test-categ_Pc.c: Likewise.
82423         * tests/unictype/test-categ_Pd.c: Likewise.
82424         * tests/unictype/test-categ_Pe.c: Likewise.
82425         * tests/unictype/test-categ_Pf.c: Likewise.
82426         * tests/unictype/test-categ_Pi.c: Likewise.
82427         * tests/unictype/test-categ_Po.c: Likewise.
82428         * tests/unictype/test-categ_Ps.c: Likewise.
82429         * tests/unictype/test-categ_S.c: Likewise.
82430         * tests/unictype/test-categ_Sc.c: Likewise.
82431         * tests/unictype/test-categ_Sk.c: Likewise.
82432         * tests/unictype/test-categ_Sm.c: Likewise.
82433         * tests/unictype/test-categ_So.c: Likewise.
82434         * tests/unictype/test-categ_Z.c: Likewise.
82435         * tests/unictype/test-categ_Zl.c: Likewise.
82436         * tests/unictype/test-categ_Zp.c: Likewise.
82437         * tests/unictype/test-categ_Zs.c: Likewise.
82438         * tests/unictype/test-ctype_alnum.c: Likewise.
82439         * tests/unictype/test-ctype_alpha.c: Likewise.
82440         * tests/unictype/test-ctype_blank.c: Likewise.
82441         * tests/unictype/test-ctype_cntrl.c: Likewise.
82442         * tests/unictype/test-ctype_digit.c: Likewise.
82443         * tests/unictype/test-ctype_graph.c: Likewise.
82444         * tests/unictype/test-ctype_lower.c: Likewise.
82445         * tests/unictype/test-ctype_print.c: Likewise.
82446         * tests/unictype/test-ctype_punct.c: Likewise.
82447         * tests/unictype/test-ctype_space.c: Likewise.
82448         * tests/unictype/test-ctype_upper.c: Likewise.
82449         * tests/unictype/test-ctype_xdigit.c: Likewise.
82450         * tests/unictype/test-decdigit.h: Likewise.
82451         * tests/unictype/test-digit.h: Likewise.
82452         * tests/unictype/test-numeric.h: Likewise.
82453         * tests/unictype/test-pr_alphabetic.c: Likewise.
82454         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
82455         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
82456         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
82457         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
82458         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
82459         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
82460         * tests/unictype/test-pr_bidi_control.c: Likewise.
82461         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
82462         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
82463         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
82464         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
82465         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
82466         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
82467         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
82468         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
82469         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
82470         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
82471         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
82472         * tests/unictype/test-pr_combining.c: Likewise.
82473         * tests/unictype/test-pr_composite.c: Likewise.
82474         * tests/unictype/test-pr_currency_symbol.c: Likewise.
82475         * tests/unictype/test-pr_dash.c: Likewise.
82476         * tests/unictype/test-pr_decimal_digit.c: Likewise.
82477         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
82478         * tests/unictype/test-pr_deprecated.c: Likewise.
82479         * tests/unictype/test-pr_diacritic.c: Likewise.
82480         * tests/unictype/test-pr_extender.c: Likewise.
82481         * tests/unictype/test-pr_format_control.c: Likewise.
82482         * tests/unictype/test-pr_grapheme_base.c: Likewise.
82483         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
82484         * tests/unictype/test-pr_grapheme_link.c: Likewise.
82485         * tests/unictype/test-pr_hex_digit.c: Likewise.
82486         * tests/unictype/test-pr_hyphen.c: Likewise.
82487         * tests/unictype/test-pr_id_continue.c: Likewise.
82488         * tests/unictype/test-pr_id_start.c: Likewise.
82489         * tests/unictype/test-pr_ideographic.c: Likewise.
82490         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
82491         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
82492         * tests/unictype/test-pr_ignorable_control.c: Likewise.
82493         * tests/unictype/test-pr_iso_control.c: Likewise.
82494         * tests/unictype/test-pr_join_control.c: Likewise.
82495         * tests/unictype/test-pr_left_of_pair.c: Likewise.
82496         * tests/unictype/test-pr_line_separator.c: Likewise.
82497         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
82498         * tests/unictype/test-pr_lowercase.c: Likewise.
82499         * tests/unictype/test-pr_math.c: Likewise.
82500         * tests/unictype/test-pr_non_break.c: Likewise.
82501         * tests/unictype/test-pr_not_a_character.c: Likewise.
82502         * tests/unictype/test-pr_numeric.c: Likewise.
82503         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
82504         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
82505         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
82506         * tests/unictype/test-pr_other_id_continue.c: Likewise.
82507         * tests/unictype/test-pr_other_id_start.c: Likewise.
82508         * tests/unictype/test-pr_other_lowercase.c: Likewise.
82509         * tests/unictype/test-pr_other_math.c: Likewise.
82510         * tests/unictype/test-pr_other_uppercase.c: Likewise.
82511         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
82512         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
82513         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
82514         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
82515         * tests/unictype/test-pr_private_use.c: Likewise.
82516         * tests/unictype/test-pr_punctuation.c: Likewise.
82517         * tests/unictype/test-pr_quotation_mark.c: Likewise.
82518         * tests/unictype/test-pr_radical.c: Likewise.
82519         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
82520         * tests/unictype/test-pr_soft_dotted.c: Likewise.
82521         * tests/unictype/test-pr_space.c: Likewise.
82522         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
82523         * tests/unictype/test-pr_titlecase.c: Likewise.
82524         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
82525         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
82526         * tests/unictype/test-pr_uppercase.c: Likewise.
82527         * tests/unictype/test-pr_variation_selector.c: Likewise.
82528         * tests/unictype/test-pr_white_space.c: Likewise.
82529         * tests/unictype/test-pr_xid_continue.c: Likewise.
82530         * tests/unictype/test-pr_xid_start.c: Likewise.
82531         * tests/unictype/test-pr_zero_width.c: Likewise.
82532         * tests/unictype/test-sy_c_whitespace.c: Likewise.
82533         * tests/unictype/test-sy_java_whitespace.c: Likewise.
82535 2007-11-12  Bruno Haible  <bruno@clisp.org>
82537         Unicode character classification functions.
82538         * lib/unictype.h: New file.
82539         * modules/unictype/base: New file.
82540         * modules/unictype/category-L: New file.
82541         * modules/unictype/category-Lu: New file.
82542         * modules/unictype/category-Ll: New file.
82543         * modules/unictype/category-Lt: New file.
82544         * modules/unictype/category-Lm: New file.
82545         * modules/unictype/category-Lo: New file.
82546         * modules/unictype/category-M: New file.
82547         * modules/unictype/category-Mn: New file.
82548         * modules/unictype/category-Mc: New file.
82549         * modules/unictype/category-Me: New file.
82550         * modules/unictype/category-N: New file.
82551         * modules/unictype/category-Nd: New file.
82552         * modules/unictype/category-Nl: New file.
82553         * modules/unictype/category-No: New file.
82554         * modules/unictype/category-P: New file.
82555         * modules/unictype/category-Pc: New file.
82556         * modules/unictype/category-Pd: New file.
82557         * modules/unictype/category-Ps: New file.
82558         * modules/unictype/category-Pe: New file.
82559         * modules/unictype/category-Pi: New file.
82560         * modules/unictype/category-Pf: New file.
82561         * modules/unictype/category-Po: New file.
82562         * modules/unictype/category-S: New file.
82563         * modules/unictype/category-Sm: New file.
82564         * modules/unictype/category-Sc: New file.
82565         * modules/unictype/category-Sk: New file.
82566         * modules/unictype/category-So: New file.
82567         * modules/unictype/category-Z: New file.
82568         * modules/unictype/category-Zs: New file.
82569         * modules/unictype/category-Zl: New file.
82570         * modules/unictype/category-Zp: New file.
82571         * modules/unictype/category-C: New file.
82572         * modules/unictype/category-Cc: New file.
82573         * modules/unictype/category-Cf: New file.
82574         * modules/unictype/category-Cs: New file.
82575         * modules/unictype/category-Co: New file.
82576         * modules/unictype/category-Cn: New file.
82577         * modules/unictype/category-or: New file.
82578         * modules/unictype/category-of: New file.
82579         * modules/unictype/category-test: New file.
82580         * modules/unictype/category-test-withtable: New file.
82581         * modules/unictype/category-byname: New file.
82582         * modules/unictype/category-none: New file.
82583         * modules/unictype/category-and: New file.
82584         * modules/unictype/category-and-not: New file.
82585         * modules/unictype/category-name: New file.
82586         * modules/unictype/combining-class: New file.
82587         * modules/unictype/category-all: New file.
82588         * modules/unictype/bidicategory-all: New file.
82589         * modules/unictype/bidicategory-byname: New file.
82590         * modules/unictype/bidicategory-name: New file.
82591         * modules/unictype/bidicategory-of: New file.
82592         * modules/unictype/bidicategory-test: New file.
82593         * modules/unictype/decimal-digit: New file.
82594         * modules/unictype/digit: New file.
82595         * modules/unictype/numeric: New file.
82596         * modules/unictype/mirror: New file.
82597         * modules/unictype/property-white-space: New file.
82598         * modules/unictype/property-alphabetic: New file.
82599         * modules/unictype/property-other-alphabetic: New file.
82600         * modules/unictype/property-not-a-character: New file.
82601         * modules/unictype/property-default-ignorable-code-point: New file.
82602         * modules/unictype/property-other-default-ignorable-code-point: New
82603         file.
82604         * modules/unictype/property-deprecated: New file.
82605         * modules/unictype/property-logical-order-exception: New file.
82606         * modules/unictype/property-variation-selector: New file.
82607         * modules/unictype/property-private-use: New file.
82608         * modules/unictype/property-unassigned-code-value: New file.
82609         * modules/unictype/property-uppercase: New file.
82610         * modules/unictype/property-other-uppercase: New file.
82611         * modules/unictype/property-lowercase: New file.
82612         * modules/unictype/property-other-lowercase: New file.
82613         * modules/unictype/property-titlecase: New file.
82614         * modules/unictype/property-soft-dotted: New file.
82615         * modules/unictype/property-id-start: New file.
82616         * modules/unictype/property-other-id-start: New file.
82617         * modules/unictype/property-id-continue: New file.
82618         * modules/unictype/property-other-id-continue: New file.
82619         * modules/unictype/property-xid-start: New file.
82620         * modules/unictype/property-xid-continue: New file.
82621         * modules/unictype/property-pattern-white-space: New file.
82622         * modules/unictype/property-pattern-syntax: New file.
82623         * modules/unictype/property-join-control: New file.
82624         * modules/unictype/property-grapheme-base: New file.
82625         * modules/unictype/property-grapheme-extend: New file.
82626         * modules/unictype/property-other-grapheme-extend: New file.
82627         * modules/unictype/property-grapheme-link: New file.
82628         * modules/unictype/property-bidi-control: New file.
82629         * modules/unictype/property-bidi-left-to-right: New file.
82630         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
82631         * modules/unictype/property-bidi-arabic-right-to-left: New file.
82632         * modules/unictype/property-bidi-european-digit: New file.
82633         * modules/unictype/property-bidi-eur-num-separator: New file.
82634         * modules/unictype/property-bidi-eur-num-terminator: New file.
82635         * modules/unictype/property-bidi-arabic-digit: New file.
82636         * modules/unictype/property-bidi-common-separator: New file.
82637         * modules/unictype/property-bidi-block-separator: New file.
82638         * modules/unictype/property-bidi-segment-separator: New file.
82639         * modules/unictype/property-bidi-whitespace: New file.
82640         * modules/unictype/property-bidi-non-spacing-mark: New file.
82641         * modules/unictype/property-bidi-boundary-neutral: New file.
82642         * modules/unictype/property-bidi-pdf: New file.
82643         * modules/unictype/property-bidi-embedding-or-override: New file.
82644         * modules/unictype/property-bidi-other-neutral: New file.
82645         * modules/unictype/property-hex-digit: New file.
82646         * modules/unictype/property-ascii-hex-digit: New file.
82647         * modules/unictype/property-ideographic: New file.
82648         * modules/unictype/property-unified-ideograph: New file.
82649         * modules/unictype/property-radical: New file.
82650         * modules/unictype/property-ids-binary-operator: New file.
82651         * modules/unictype/property-ids-trinary-operator: New file.
82652         * modules/unictype/property-zero-width: New file.
82653         * modules/unictype/property-space: New file.
82654         * modules/unictype/property-non-break: New file.
82655         * modules/unictype/property-iso-control: New file.
82656         * modules/unictype/property-format-control: New file.
82657         * modules/unictype/property-dash: New file.
82658         * modules/unictype/property-hyphen: New file.
82659         * modules/unictype/property-punctuation: New file.
82660         * modules/unictype/property-line-separator: New file.
82661         * modules/unictype/property-paragraph-separator: New file.
82662         * modules/unictype/property-quotation-mark: New file.
82663         * modules/unictype/property-sentence-terminal: New file.
82664         * modules/unictype/property-terminal-punctuation: New file.
82665         * modules/unictype/property-currency-symbol: New file.
82666         * modules/unictype/property-math: New file.
82667         * modules/unictype/property-other-math: New file.
82668         * modules/unictype/property-paired-punctuation: New file.
82669         * modules/unictype/property-left-of-pair: New file.
82670         * modules/unictype/property-combining: New file.
82671         * modules/unictype/property-composite: New file.
82672         * modules/unictype/property-decimal-digit: New file.
82673         * modules/unictype/property-numeric: New file.
82674         * modules/unictype/property-diacritic: New file.
82675         * modules/unictype/property-extender: New file.
82676         * modules/unictype/property-ignorable-control: New file.
82677         * modules/unictype/property-test: New file.
82678         * modules/unictype/property-byname: New file.
82679         * modules/unictype/property-all: New file.
82680         * modules/unictype/scripts: New file.
82681         * modules/unictype/scripts-all: New file.
82682         * modules/unictype/block-of: New file.
82683         * modules/unictype/block-test: New file.
82684         * modules/unictype/block-list: New file.
82685         * modules/unictype/block-all: New file.
82686         * modules/unictype/syntax-c-whitespace: New file.
82687         * modules/unictype/syntax-java-whitespace: New file.
82688         * modules/unictype/syntax-c-ident: New file.
82689         * modules/unictype/syntax-java-ident: New file.
82690         * modules/unictype/ctype-alnum: New file.
82691         * modules/unictype/ctype-alpha: New file.
82692         * modules/unictype/ctype-cntrl: New file.
82693         * modules/unictype/ctype-digit: New file.
82694         * modules/unictype/ctype-graph: New file.
82695         * modules/unictype/ctype-lower: New file.
82696         * modules/unictype/ctype-print: New file.
82697         * modules/unictype/ctype-punct: New file.
82698         * modules/unictype/ctype-space: New file.
82699         * modules/unictype/ctype-upper: New file.
82700         * modules/unictype/ctype-xdigit: New file.
82701         * modules/unictype/ctype-blank: New file.
82702         * lib/unictype/bidi_byname.c: New file.
82703         * lib/unictype/bidi_name.c: New file.
82704         * lib/unictype/bidi_of.c: New file.
82705         * lib/unictype/bidi_test.c: New file.
82706         * lib/unictype/bitmap.h: New file.
82707         * lib/unictype/block_test.c: New file.
82708         * lib/unictype/blocks.c: New file.
82709         * lib/unictype/categ_C.c: New file.
82710         * lib/unictype/categ_Cc.c: New file.
82711         * lib/unictype/categ_Cf.c: New file.
82712         * lib/unictype/categ_Cn.c: New file.
82713         * lib/unictype/categ_Co.c: New file.
82714         * lib/unictype/categ_Cs.c: New file.
82715         * lib/unictype/categ_L.c: New file.
82716         * lib/unictype/categ_Ll.c: New file.
82717         * lib/unictype/categ_Lm.c: New file.
82718         * lib/unictype/categ_Lo.c: New file.
82719         * lib/unictype/categ_Lt.c: New file.
82720         * lib/unictype/categ_Lu.c: New file.
82721         * lib/unictype/categ_M.c: New file.
82722         * lib/unictype/categ_Mc.c: New file.
82723         * lib/unictype/categ_Me.c: New file.
82724         * lib/unictype/categ_Mn.c: New file.
82725         * lib/unictype/categ_N.c: New file.
82726         * lib/unictype/categ_Nd.c: New file.
82727         * lib/unictype/categ_Nl.c: New file.
82728         * lib/unictype/categ_No.c: New file.
82729         * lib/unictype/categ_P.c: New file.
82730         * lib/unictype/categ_Pc.c: New file.
82731         * lib/unictype/categ_Pd.c: New file.
82732         * lib/unictype/categ_Pe.c: New file.
82733         * lib/unictype/categ_Pf.c: New file.
82734         * lib/unictype/categ_Pi.c: New file.
82735         * lib/unictype/categ_Po.c: New file.
82736         * lib/unictype/categ_Ps.c: New file.
82737         * lib/unictype/categ_S.c: New file.
82738         * lib/unictype/categ_Sc.c: New file.
82739         * lib/unictype/categ_Sk.c: New file.
82740         * lib/unictype/categ_Sm.c: New file.
82741         * lib/unictype/categ_So.c: New file.
82742         * lib/unictype/categ_Z.c: New file.
82743         * lib/unictype/categ_Zl.c: New file.
82744         * lib/unictype/categ_Zp.c: New file.
82745         * lib/unictype/categ_Zs.c: New file.
82746         * lib/unictype/categ_and.c: New file.
82747         * lib/unictype/categ_and_not.c: New file.
82748         * lib/unictype/categ_byname.c: New file.
82749         * lib/unictype/categ_name.c: New file.
82750         * lib/unictype/categ_none.c: New file.
82751         * lib/unictype/categ_of.c: New file.
82752         * lib/unictype/categ_or.c: New file.
82753         * lib/unictype/categ_test.c: New file.
82754         * lib/unictype/combining.c: New file.
82755         * lib/unictype/ctype_alnum.c: New file.
82756         * lib/unictype/ctype_alpha.c: New file.
82757         * lib/unictype/ctype_blank.c: New file.
82758         * lib/unictype/ctype_cntrl.c: New file.
82759         * lib/unictype/ctype_digit.c: New file.
82760         * lib/unictype/ctype_graph.c: New file.
82761         * lib/unictype/ctype_lower.c: New file.
82762         * lib/unictype/ctype_print.c: New file.
82763         * lib/unictype/ctype_punct.c: New file.
82764         * lib/unictype/ctype_space.c: New file.
82765         * lib/unictype/ctype_upper.c: New file.
82766         * lib/unictype/ctype_xdigit.c: New file.
82767         * lib/unictype/decdigit.c: New file.
82768         * lib/unictype/digit.c: New file.
82769         * lib/unictype/identsyntaxmap.h: New file.
82770         * lib/unictype/mirror.c: New file.
82771         * lib/unictype/numeric.c: New file.
82772         * lib/unictype/pr_alphabetic.c: New file.
82773         * lib/unictype/pr_ascii_hex_digit.c: New file.
82774         * lib/unictype/pr_bidi_arabic_digit.c: New file.
82775         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
82776         * lib/unictype/pr_bidi_block_separator.c: New file.
82777         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
82778         * lib/unictype/pr_bidi_common_separator.c: New file.
82779         * lib/unictype/pr_bidi_control.c: New file.
82780         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
82781         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
82782         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
82783         * lib/unictype/pr_bidi_european_digit.c: New file.
82784         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
82785         * lib/unictype/pr_bidi_left_to_right.c: New file.
82786         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
82787         * lib/unictype/pr_bidi_other_neutral.c: New file.
82788         * lib/unictype/pr_bidi_pdf.c: New file.
82789         * lib/unictype/pr_bidi_segment_separator.c: New file.
82790         * lib/unictype/pr_bidi_whitespace.c: New file.
82791         * lib/unictype/pr_byname.c: New file.
82792         * lib/unictype/pr_byname.gperf: New file.
82793         * lib/unictype/pr_combining.c: New file.
82794         * lib/unictype/pr_composite.c: New file.
82795         * lib/unictype/pr_currency_symbol.c: New file.
82796         * lib/unictype/pr_dash.c: New file.
82797         * lib/unictype/pr_decimal_digit.c: New file.
82798         * lib/unictype/pr_default_ignorable_code_point.c: New file.
82799         * lib/unictype/pr_deprecated.c: New file.
82800         * lib/unictype/pr_diacritic.c: New file.
82801         * lib/unictype/pr_extender.c: New file.
82802         * lib/unictype/pr_format_control.c: New file.
82803         * lib/unictype/pr_grapheme_base.c: New file.
82804         * lib/unictype/pr_grapheme_extend.c: New file.
82805         * lib/unictype/pr_grapheme_link.c: New file.
82806         * lib/unictype/pr_hex_digit.c: New file.
82807         * lib/unictype/pr_hyphen.c: New file.
82808         * lib/unictype/pr_id_continue.c: New file.
82809         * lib/unictype/pr_id_start.c: New file.
82810         * lib/unictype/pr_ideographic.c: New file.
82811         * lib/unictype/pr_ids_binary_operator.c: New file.
82812         * lib/unictype/pr_ids_trinary_operator.c: New file.
82813         * lib/unictype/pr_ignorable_control.c: New file.
82814         * lib/unictype/pr_iso_control.c: New file.
82815         * lib/unictype/pr_join_control.c: New file.
82816         * lib/unictype/pr_left_of_pair.c: New file.
82817         * lib/unictype/pr_line_separator.c: New file.
82818         * lib/unictype/pr_logical_order_exception.c: New file.
82819         * lib/unictype/pr_lowercase.c: New file.
82820         * lib/unictype/pr_math.c: New file.
82821         * lib/unictype/pr_non_break.c: New file.
82822         * lib/unictype/pr_not_a_character.c: New file.
82823         * lib/unictype/pr_numeric.c: New file.
82824         * lib/unictype/pr_other_alphabetic.c: New file.
82825         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
82826         * lib/unictype/pr_other_grapheme_extend.c: New file.
82827         * lib/unictype/pr_other_id_continue.c: New file.
82828         * lib/unictype/pr_other_id_start.c: New file.
82829         * lib/unictype/pr_other_lowercase.c: New file.
82830         * lib/unictype/pr_other_math.c: New file.
82831         * lib/unictype/pr_other_uppercase.c: New file.
82832         * lib/unictype/pr_paired_punctuation.c: New file.
82833         * lib/unictype/pr_paragraph_separator.c: New file.
82834         * lib/unictype/pr_pattern_syntax.c: New file.
82835         * lib/unictype/pr_pattern_white_space.c: New file.
82836         * lib/unictype/pr_private_use.c: New file.
82837         * lib/unictype/pr_punctuation.c: New file.
82838         * lib/unictype/pr_quotation_mark.c: New file.
82839         * lib/unictype/pr_radical.c: New file.
82840         * lib/unictype/pr_sentence_terminal.c: New file.
82841         * lib/unictype/pr_soft_dotted.c: New file.
82842         * lib/unictype/pr_space.c: New file.
82843         * lib/unictype/pr_terminal_punctuation.c: New file.
82844         * lib/unictype/pr_test.c: New file.
82845         * lib/unictype/pr_titlecase.c: New file.
82846         * lib/unictype/pr_unassigned_code_value.c: New file.
82847         * lib/unictype/pr_unified_ideograph.c: New file.
82848         * lib/unictype/pr_uppercase.c: New file.
82849         * lib/unictype/pr_variation_selector.c: New file.
82850         * lib/unictype/pr_white_space.c: New file.
82851         * lib/unictype/pr_xid_continue.c: New file.
82852         * lib/unictype/pr_xid_start.c: New file.
82853         * lib/unictype/pr_zero_width.c: New file.
82854         * lib/unictype/scripts.c: New file.
82855         * lib/unictype/sy_c_ident.c: New file.
82856         * lib/unictype/sy_c_whitespace.c: New file.
82857         * lib/unictype/sy_java_ident.c: New file.
82858         * lib/unictype/sy_java_whitespace.c: New file.
82860         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
82861         Unicode 5.0.0.
82862         * lib/unictype/blocks.h: Likewise.
82863         * lib/unictype/categ_C.h: Likewise.
82864         * lib/unictype/categ_Cc.h: Likewise.
82865         * lib/unictype/categ_Cf.h: Likewise.
82866         * lib/unictype/categ_Cn.h: Likewise.
82867         * lib/unictype/categ_Co.h: Likewise.
82868         * lib/unictype/categ_Cs.h: Likewise.
82869         * lib/unictype/categ_L.h: Likewise.
82870         * lib/unictype/categ_Ll.h: Likewise.
82871         * lib/unictype/categ_Lm.h: Likewise.
82872         * lib/unictype/categ_Lo.h: Likewise.
82873         * lib/unictype/categ_Lt.h: Likewise.
82874         * lib/unictype/categ_Lu.h: Likewise.
82875         * lib/unictype/categ_M.h: Likewise.
82876         * lib/unictype/categ_Mc.h: Likewise.
82877         * lib/unictype/categ_Me.h: Likewise.
82878         * lib/unictype/categ_Mn.h: Likewise.
82879         * lib/unictype/categ_N.h: Likewise.
82880         * lib/unictype/categ_Nd.h: Likewise.
82881         * lib/unictype/categ_Nl.h: Likewise.
82882         * lib/unictype/categ_No.h: Likewise.
82883         * lib/unictype/categ_P.h: Likewise.
82884         * lib/unictype/categ_Pc.h: Likewise.
82885         * lib/unictype/categ_Pd.h: Likewise.
82886         * lib/unictype/categ_Pe.h: Likewise.
82887         * lib/unictype/categ_Pf.h: Likewise.
82888         * lib/unictype/categ_Pi.h: Likewise.
82889         * lib/unictype/categ_Po.h: Likewise.
82890         * lib/unictype/categ_Ps.h: Likewise.
82891         * lib/unictype/categ_S.h: Likewise.
82892         * lib/unictype/categ_Sc.h: Likewise.
82893         * lib/unictype/categ_Sk.h: Likewise.
82894         * lib/unictype/categ_Sm.h: Likewise.
82895         * lib/unictype/categ_So.h: Likewise.
82896         * lib/unictype/categ_Z.h: Likewise.
82897         * lib/unictype/categ_Zl.h: Likewise.
82898         * lib/unictype/categ_Zp.h: Likewise.
82899         * lib/unictype/categ_Zs.h: Likewise.
82900         * lib/unictype/categ_of.h: Likewise.
82901         * lib/unictype/combining.h: Likewise.
82902         * lib/unictype/ctype_alnum.h: Likewise.
82903         * lib/unictype/ctype_alpha.h: Likewise.
82904         * lib/unictype/ctype_blank.h: Likewise.
82905         * lib/unictype/ctype_cntrl.h: Likewise.
82906         * lib/unictype/ctype_digit.h: Likewise.
82907         * lib/unictype/ctype_graph.h: Likewise.
82908         * lib/unictype/ctype_lower.h: Likewise.
82909         * lib/unictype/ctype_print.h: Likewise.
82910         * lib/unictype/ctype_punct.h: Likewise.
82911         * lib/unictype/ctype_space.h: Likewise.
82912         * lib/unictype/ctype_upper.h: Likewise.
82913         * lib/unictype/ctype_xdigit.h: Likewise.
82914         * lib/unictype/decdigit.h: Likewise.
82915         * lib/unictype/digit.h: Likewise.
82916         * lib/unictype/mirror.h: Likewise.
82917         * lib/unictype/numeric.h: Likewise.
82918         * lib/unictype/pr_alphabetic.h: Likewise.
82919         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
82920         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
82921         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
82922         * lib/unictype/pr_bidi_block_separator.h: Likewise.
82923         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
82924         * lib/unictype/pr_bidi_common_separator.h: Likewise.
82925         * lib/unictype/pr_bidi_control.h: Likewise.
82926         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
82927         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
82928         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
82929         * lib/unictype/pr_bidi_european_digit.h: Likewise.
82930         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
82931         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
82932         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
82933         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
82934         * lib/unictype/pr_bidi_pdf.h: Likewise.
82935         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
82936         * lib/unictype/pr_bidi_whitespace.h: Likewise.
82937         * lib/unictype/pr_combining.h: Likewise.
82938         * lib/unictype/pr_composite.h: Likewise.
82939         * lib/unictype/pr_currency_symbol.h: Likewise.
82940         * lib/unictype/pr_dash.h: Likewise.
82941         * lib/unictype/pr_decimal_digit.h: Likewise.
82942         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
82943         * lib/unictype/pr_deprecated.h: Likewise.
82944         * lib/unictype/pr_diacritic.h: Likewise.
82945         * lib/unictype/pr_extender.h: Likewise.
82946         * lib/unictype/pr_format_control.h: Likewise.
82947         * lib/unictype/pr_grapheme_base.h: Likewise.
82948         * lib/unictype/pr_grapheme_extend.h: Likewise.
82949         * lib/unictype/pr_grapheme_link.h: Likewise.
82950         * lib/unictype/pr_hex_digit.h: Likewise.
82951         * lib/unictype/pr_hyphen.h: Likewise.
82952         * lib/unictype/pr_id_continue.h: Likewise.
82953         * lib/unictype/pr_id_start.h: Likewise.
82954         * lib/unictype/pr_ideographic.h: Likewise.
82955         * lib/unictype/pr_ids_binary_operator.h: Likewise.
82956         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
82957         * lib/unictype/pr_ignorable_control.h: Likewise.
82958         * lib/unictype/pr_iso_control.h: Likewise.
82959         * lib/unictype/pr_join_control.h: Likewise.
82960         * lib/unictype/pr_left_of_pair.h: Likewise.
82961         * lib/unictype/pr_line_separator.h: Likewise.
82962         * lib/unictype/pr_logical_order_exception.h: Likewise.
82963         * lib/unictype/pr_lowercase.h: Likewise.
82964         * lib/unictype/pr_math.h: Likewise.
82965         * lib/unictype/pr_non_break.h: Likewise.
82966         * lib/unictype/pr_not_a_character.h: Likewise.
82967         * lib/unictype/pr_numeric.h: Likewise.
82968         * lib/unictype/pr_other_alphabetic.h: Likewise.
82969         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
82970         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
82971         * lib/unictype/pr_other_id_continue.h: Likewise.
82972         * lib/unictype/pr_other_id_start.h: Likewise.
82973         * lib/unictype/pr_other_lowercase.h: Likewise.
82974         * lib/unictype/pr_other_math.h: Likewise.
82975         * lib/unictype/pr_other_uppercase.h: Likewise.
82976         * lib/unictype/pr_paired_punctuation.h: Likewise.
82977         * lib/unictype/pr_paragraph_separator.h: Likewise.
82978         * lib/unictype/pr_pattern_syntax.h: Likewise.
82979         * lib/unictype/pr_pattern_white_space.h: Likewise.
82980         * lib/unictype/pr_private_use.h: Likewise.
82981         * lib/unictype/pr_punctuation.h: Likewise.
82982         * lib/unictype/pr_quotation_mark.h: Likewise.
82983         * lib/unictype/pr_radical.h: Likewise.
82984         * lib/unictype/pr_sentence_terminal.h: Likewise.
82985         * lib/unictype/pr_soft_dotted.h: Likewise.
82986         * lib/unictype/pr_space.h: Likewise.
82987         * lib/unictype/pr_terminal_punctuation.h: Likewise.
82988         * lib/unictype/pr_titlecase.h: Likewise.
82989         * lib/unictype/pr_unassigned_code_value.h: Likewise.
82990         * lib/unictype/pr_unified_ideograph.h: Likewise.
82991         * lib/unictype/pr_uppercase.h: Likewise.
82992         * lib/unictype/pr_variation_selector.h: Likewise.
82993         * lib/unictype/pr_white_space.h: Likewise.
82994         * lib/unictype/pr_xid_continue.h: Likewise.
82995         * lib/unictype/pr_xid_start.h: Likewise.
82996         * lib/unictype/pr_zero_width.h: Likewise.
82997         * lib/unictype/scripts.h: Likewise.
82998         * lib/unictype/scripts_byname.gperf: Likewise.
82999         * lib/unictype/sy_c_ident.h: Likewise.
83000         * lib/unictype/sy_c_whitespace.h: Likewise.
83001         * lib/unictype/sy_java_ident.h: Likewise.
83002         * lib/unictype/sy_java_whitespace.h: Likewise.
83004         * lib/unictype/Makefile: New file.
83005         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
83006         glibc.
83007         * lib/unictype/3level.h: New file, copied from glibc.
83008         * lib/unictype/3levelbit.h: New file.
83010 2007-11-11  Bruno Haible  <bruno@clisp.org>
83012         * modules/gperf: New file.
83013         * modules/iconv_open (Depends-on): Add it.
83014         (Makefile.am): Remove the GPERF definition.
83016 2007-11-11  Bruno Haible  <bruno@clisp.org>
83018         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
83019         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
83021 2007-11-11  Bruno Haible  <bruno@clisp.org>
83023         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
83024         (usage): Remove function.
83026 2007-11-11  Bruno Haible  <bruno@clisp.org>
83028         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
83029         gl_FUNC_CEILF_LIBS.
83030         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
83031         gl_FUNC_CEIL_LIBS.
83032         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
83033         gl_FUNC_CEILL_LIBS.
83034         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
83035         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
83036         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
83038 2007-11-11  Bruno Haible  <bruno@clisp.org>
83040         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
83041         roundf were declared but do not exist on functions.
83042         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
83043         roundl were declared but do not exist on functions.
83044         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
83045         HAVE_FLOORL_AND_CEILL, respectively.
83046         Needed for Sun C on Solaris 10.
83048 2007-11-11  Bruno Haible  <bruno@clisp.org>
83050         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
83051         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
83052         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
83053         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
83054         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
83055         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
83056         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
83057         HAVE_DECL_ROUNDF.
83058         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
83059         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
83060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
83061         of HAVE_DECL_ROUND*.
83062         * modules/math (Makefile.am): Update.
83064 2007-11-10  Bruno Haible  <bruno@clisp.org>
83066         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
83067         ptrdiff_t as m4/intl.m4.
83069 2007-11-10  Jim Meyering  <meyering@redhat.com>
83071         Avoid link failure for the argmatch test.
83072         * tests/test-argmatch.c (usage): Define function to avoid a link
83073         failure: argmatch_die requires a usage function.
83075 2007-11-09  Bruno Haible  <bruno@clisp.org>
83077         * doc/functions/snprintf.texi: Mention BeOS deficiency.
83078         * doc/functions/vsnprintf.texi: Likewise.
83079         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
83080         with a size argument < 2.
83082 2007-11-09  Bruno Haible  <bruno@clisp.org>
83084         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
83085         buffer. Fixes an inefficiency introduced on 2007-11-03.
83087 2007-11-09  Bruno Haible  <bruno@clisp.org>
83089         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
83090         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
83092 2007-11-08  Jim Meyering  <meyering@redhat.com>
83094         Change cache variable name prefix "jm_" to "gl_" everywhere.
83095         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
83096         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
83097         * m4/uptime.m4: s/gl_/jm_/
83099 2007-11-07  Bruno Haible  <bruno@clisp.org>
83101         Update to GNU gettext 0.17.
83102         * m4/intl.m4: Update to GNU gettext 0.17.
83103         * m4/po.m4: Likewise.
83104         * modules/gettext (Files): Remove m4/ulonglong.m4.
83105         (configure.ac): Require gettext infrastructure from version 0.17.
83107 2007-11-06  Bruno Haible  <bruno@clisp.org>
83109         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
83110         symbolic values are not defined in a public header.
83111         * lib/freadable.c (freadable) [QNX]: Likewise.
83112         * lib/freadahead.c (freadahead) [QNX]: Likewise.
83113         * lib/freading.c (freading) [QNX]: Likewise.
83114         * lib/fseterr.c (fseterr) [QNX]: Likewise.
83115         * lib/fwritable.c (fwritable) [QNX]: Likewise.
83116         * lib/fwriting.c (fwriting) [QNX]: Likewise.
83117         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
83118         Reported by Alain Magloire.
83120         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
83122 2007-11-05  Bruno Haible  <bruno@clisp.org>
83124         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
83125         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
83126         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
83127         Reported by Eric Blake.
83129 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83130             Bruno Haible  <bruno@clisp.org>
83132         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
83133         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
83134         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
83135         (malloc): Undefine also before including <stdlib.h>.
83136         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
83137         Needed on OSF/1 4.0.
83139 2007-11-05  Jim Meyering  <meyering@redhat.com>
83141         git-version-gen: sync from coreutils.
83142         * build-aux/git-version-gen: Add comments.
83143         Change the first '-' to '.' in the snapshot version string,
83144         e.g., 6.9-377-08144 -> 6.9.377-08144
83145         Remove first parameter.
83146         Don't declare a version "-dirty" merely because a time
83147         stamp has changed.
83149 2007-11-04  Bruno Haible  <bruno@clisp.org>
83151         * lib/lock.h: Protect all macro definitions containing an 'if'
83152         statement through a "do { ... } while (0)".
83153         * lib/tls.h: Likewise.
83155 2007-11-04  Bruno Haible  <bruno@clisp.org>
83157         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
83159 2007-11-04  Bruno Haible  <bruno@clisp.org>
83161         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
83162         * modules/fprintf-posix (Depends-on): Add nocrash.
83163         * modules/snprintf-posix (Depends-on): Likewise.
83164         * modules/sprintf-posix (Depends-on): Likewise.
83165         * modules/vasnprintf-posix (Depends-on): Likewise.
83166         * modules/vasprintf-posix (Depends-on): Likewise.
83167         * modules/vfprintf-posix (Depends-on): Likewise.
83168         * modules/vsnprintf-posix (Depends-on): Likewise.
83169         * modules/vsprintf-posix (Depends-on): Likewise.
83170         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
83171         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83172         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83173         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83174         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83175         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83176         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83178 2007-11-04  Bruno Haible  <bruno@clisp.org>
83180         * modules/nocrash: New file.
83181         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
83182         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
83184 2007-11-04  Bruno Haible  <bruno@clisp.org>
83186         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
83187         precision handling.
83188         * tests/test-vasprintf-posix.c (test_function): Likewise.
83189         * tests/test-snprintf-posix.h (test_function): Likewise.
83190         * tests/test-sprintf-posix.h (test_function): Likewise.
83192         Fix *printf behaviour for large precisions on mingw and BeOS.
83193         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
83194         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
83195         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
83196         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83197         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83198         gl_PRINTF_PRECISION and test its result. Invoke
83199         gl_PREREQ_VASNPRINTF_PRECISION.
83200         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83201         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83202         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83203         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83204         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83205         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83206         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83207         * doc/functions/fprintf.texi: Update.
83208         * doc/functions/printf.texi: Update.
83209         * doc/functions/snprintf.texi: Update.
83210         * doc/functions/sprintf.texi: Update.
83211         * doc/functions/vfprintf.texi: Update.
83212         * doc/functions/vprintf.texi: Update.
83213         * doc/functions/vsnprintf.texi: Update.
83214         * doc/functions/vsprintf.texi: Update.
83216 2007-11-04  Bruno Haible  <bruno@clisp.org>
83218         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
83220 2007-11-04  Bruno Haible  <bruno@clisp.org>
83222         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
83223         Reported by Sylvain Beucler <beuc@gnu.org>.
83225 2007-11-03  Bruno Haible  <bruno@clisp.org>
83227         * tests/test-fprintf-posix2.sh: New file.
83228         * tests/test-fprintf-posix2.c: New file.
83229         * modules/fprintf-posix-tests (Files): Add them.
83230         (TESTS): Add test-fprintf-posix2.sh.
83231         (configure.ac): Check for getrlimit and setrlimit.
83232         (check_PROGRAMS): Add test-fprintf-posix2.
83234         * tests/test-printf-posix2.sh: New file.
83235         * tests/test-printf-posix2.c: New file.
83236         * modules/printf-posix-tests (Files): Add them.
83237         (TESTS): Add test-printf-posix2.sh.
83238         (configure.ac): Check for getrlimit and setrlimit.
83239         (check_PROGRAMS): Add test-printf-posix2.
83241         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
83242         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
83243         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
83244         (decode_double): New function, copied from decode_long_double.
83245         (scale10_round_decimal_decoded): New function, extracted from
83246         scale10_round_decimal_long_double.
83247         (scale10_round_decimal_long_double): Use it.
83248         (scale10_round_decimal_double): New function.
83249         (floorlog10): New function.
83250         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
83251         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
83252         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83253         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83254         gl_PRINTF_ENOMEM and test its result. Invoke
83255         gl_PREREQ_VASNPRINTF_ENOMEM.
83256         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83257         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83258         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83259         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83260         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83261         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83262         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83263         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
83264         * modules/snprintf-posix (Depends-on): Likewise.
83265         * modules/sprintf-posix (Depends-on): Likewise.
83266         * modules/vasnprintf-posix (Depends-on): Likewise.
83267         * modules/vasprintf-posix (Depends-on): Likewise.
83268         * modules/vfprintf-posix (Depends-on): Likewise.
83269         * modules/vsnprintf-posix (Depends-on): Likewise.
83270         * modules/vsprintf-posix (Depends-on): Likewise.
83271         * doc/functions/fprintf.texi: Update.
83272         * doc/functions/printf.texi: Update.
83273         * doc/functions/snprintf.texi: Update.
83274         * doc/functions/sprintf.texi: Update.
83275         * doc/functions/vfprintf.texi: Update.
83276         * doc/functions/vprintf.texi: Update.
83277         * doc/functions/vsnprintf.texi: Update.
83278         * doc/functions/vsprintf.texi: Update.
83280 2007-11-03  Bruno Haible  <bruno@clisp.org>
83282         * modules/frexp-nolibm-tests: New file.
83284         * modules/frexp-nolibm: New file.
83285         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
83287 2007-11-03  Bruno Haible  <bruno@clisp.org>
83289         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
83290         value is C99 compliant.
83291         Needed for OSF/1 5.1.
83293 2007-11-03  Bruno Haible  <bruno@clisp.org>
83295         Fix out-of-memory handling of vasnprintf.
83296         * lib/printf-parse.c: Include <errno.h>.
83297         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
83298         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
83299         is already set.
83301 2007-11-02  Eric Blake  <ebb9@byu.net>
83303         Fix tests on cygwin.
83304         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
83306 2007-11-01  Bruno Haible  <bruno@clisp.org>
83308         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
83309         warning.
83310         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
83311         needed for POSIX compatibility.
83313 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83315         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
83316         for compatibility with GNU.
83318 2007-11-01  Bruno Haible  <bruno@clisp.org>
83320         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
83321         (putenv): Renamed from rpl_putenv. Change argument type from
83322         'const char *' to 'char *'.
83323         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
83324         of defining putenv in config.h, just set REPLACE_PUTENV.
83325         * modules/putenv (Depends-on): Add stdlib.
83326         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
83327         (Include): Use <stdlib.h>.
83328         * lib/stdlib.in.h (putenv): New declaration.
83329         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
83330         REPLACE_PUTENV.
83331         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
83332         REPLACE_PUTENV.
83333         Needed for MacOS X 10.5.0.
83334         Reported by Peter O'Gorman <peter@pogma.com>.
83336 2007-11-01  Jim Meyering  <meyering@redhat.com>
83338         Treat an empty date string exactly like "0".
83339         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
83340         if the remaining date string (to be parsed) is empty, use "0".
83341         Reported by Mischa Molhoek and discussed in this thread:
83342         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
83344 2007-10-31  Bruno Haible  <bruno@clisp.org>
83346         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
83347         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
83348         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
83349         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
83350         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
83351         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
83353 2007-10-31  Bruno Haible  <bruno@clisp.org>
83355         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
83356         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
83357         (AC_TYPE_LONG_LONG_INT): Use it.
83358         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
83359         it as well.
83360         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
83361         to m4/longlong.m4.
83362         * modules/stdint (Files): Remove m4/ulonglong.m4.
83363         * modules/strtoull (Files): Use m4/longlong.m4 instead of
83364         m4/ulonglong.m4.
83365         * modules/strtoumax (Files): Likewise.
83367 2007-10-30  Bruno Haible  <bruno@clisp.org>
83369         * modules/xvasprintf-posix: New file.
83370         Suggested by Eric Blake.
83372 2007-10-30  Bruno Haible  <bruno@clisp.org>
83374         * modules/xprintf-posix-tests: New file.
83375         * tests/test-xprintf-posix.sh: New file.
83376         * tests/test-xprintf-posix.c: New file.
83377         * tests/test-xfprintf-posix.c: New file.
83379         * modules/xprintf-posix: New file.
83381 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83383         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
83384         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
83385         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
83387 2007-10-29  Bruno Haible  <bruno@clisp.org>
83389         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
83390         contain the special marker '_cv_'.
83391         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
83392         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
83393         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
83394         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
83395         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
83396         Reported by Ralf Wildenhues.
83398 2007-10-29  Bruno Haible  <bruno@clisp.org>
83400         * gnulib-tool (func_import): When --lgpl is not specified, set
83401         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
83402         GPLv3.
83403         Reported by Simon Josefsson.
83405 2007-10-28  Bruno Haible  <bruno@clisp.org>
83407         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
83408         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
83409         HAVE_DECL_ISFINITE.
83410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83411         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
83412         HAVE_DECL_ISFINITE.
83414 2007-10-28  Bruno Haible  <bruno@clisp.org>
83416         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
83417         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
83419 2007-10-28  Bruno Haible  <bruno@clisp.org>
83421         Fix link errors with Sun C 5.0 on Solaris 10.
83422         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
83423         function is declared but not present in the compiler's libm.
83424         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
83425         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
83426         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
83427         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
83428         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
83429         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
83430         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
83431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83432         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
83433         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
83434         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
83435         HAVE_DECL_FLOORL.
83437 2007-10-28  Bruno Haible  <bruno@clisp.org>
83439         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
83440         gl_FUNC_FLOORL. Cache the result.
83441         (gl_FUNC_FLOORL): Use it.
83442         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
83443         gl_FUNC_CEILL. Cache the result.
83444         (gl_FUNC_CEILL): Use it.
83446         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
83447         gl_FUNC_FLOOR. Cache the result.
83448         (gl_FUNC_FLOOR): Use it.
83449         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
83450         gl_FUNC_CEIL. Cache the result.
83451         (gl_FUNC_CEIL): Use it.
83453         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
83454         gl_FUNC_FLOORF. Cache the result.
83455         (gl_FUNC_FLOORF): Use it.
83456         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
83457         gl_FUNC_CEILF. Cache the result.
83458         (gl_FUNC_CEILF): Use it.
83460 2007-10-28  Bruno Haible  <bruno@clisp.org>
83462         * gnulib-tool: Allow specifying the LGPL version number through
83463         --lgpl=2 or --lgpl=3.
83464         (func_usage): Document --lgpl with argument.
83465         Handle --lgpl=... arguments.
83466         (func_import): Recognize also gl_LGPL calls with an argument. When
83467         --lgpl=2 is used and the module's license is just LGPL, report an
83468         error. Set sed_transform_lib_file according to the lgpl variable. In
83469         the generated files, use --lgpl or gl_LGPL invocations with argument,
83470         if necessary.
83471         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
83472         an LGPv2+ license.
83473         * doc/gnulib-tool.texi (Modified imports): Update explanation of
83474         gl_LGPL macro.
83476 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83477             Bruno Haible  <bruno@clisp.org>
83479         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
83480         (u16_uctomb_aux): Likewise.
83481         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
83482         !HAVE_INLINE.
83483         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
83485 2007-10-28  Bruno Haible  <bruno@clisp.org>
83487         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
83488         Invoke AM_GETTEXT_OPTION if it exists.
83489         * modules/vasprintf: Likewise.
83490         * modules/verror: Likewise.
83491         * modules/xprintf: Likewise.
83492         * modules/xvasprintf: Likewise.
83494 2007-10-27  Ben Pfaff  <blp@gnu.org>
83496         * lib/math.in.h: Define isfinite macro and prototypes for
83497         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
83498         implementations.
83499         * m4/math_h.m4: New substitutions for isfinite module.
83500         * lib/isfinite.c: New file.
83501         * m4/isfinite.m4: New file.
83502         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
83503         * modules/isfinite: New file.
83504         * modules/isfinite-tests: New file.
83505         * tests/tests-isfinite.c: New file.
83506         * doc/functions/isfinite.texi: Mention isfinite module.
83507         * MODULES.html.sh: Mention new module.
83509 2007-10-27  Ben Pfaff  <blp@gnu.org>
83511         Ralf Wildenhues reported that Tru64 4.0D declares the round
83512         functions but does not have definitions.
83513         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
83514         cannot be found in any library, set the output variable to
83515         "missing" instead of "".
83516         * m4/round.m4: Also use our substitute if we cannot find round in
83517         any library, even if it is declared.
83518         * m4/roundf.m4: Likewise for roundf.
83519         * m4/roundl.m4: Likewise for roundl.
83520         * lib/math.in.h: Undefine roundf, round, roundl before defining
83521         their replacements, to allow for hypothetical systems where these
83522         may be defined as macros but not available in libraries.
83524 2007-10-27  Bruno Haible  <bruno@clisp.org>
83526         * doc/gnulib.texi: Invoke @firstparagraphindent.
83527         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
83528         changes in gnulib.
83529         (Source changes): New section.
83531 2007-10-26  Bruno Haible  <bruno@clisp.org>
83533         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
83534         borrowed from autoconf.
83536 2007-10-26  Bruno Haible  <bruno@clisp.org>
83538         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
83539         strerror returned the empty string. Needed on HP-UX 11.00.
83541 2007-10-24  Micah Cowan  <micah@cowan.name>
83543         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
83544         * build-aux/bootstrap: Remove support for now-unnecessary option,
83545         --cvs-user, and envvars CVS_USER, CVS_RSH.
83547 2007-10-24  Jim Meyering  <meyering@redhat.com>
83549         Avoid diagnostics from sha1sum when there is no cached checksum.
83550         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
83551         if the po.s1 file hasn't been created yet.
83553         * build-aux/bootstrap: Sync from coreutils:
83554         2007-10-24  Jim Meyering  <meyering@redhat.com>
83555         Get gnulib from the git repository, not from an obsolete cvs one.
83556         * build-aux/bootstrap: Suggestion from Micah Cowan.
83557         2007-10-04  Jim Meyering  <jim@meyering.net>
83558         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
83559         (update_po_files): Work also when there are no .po files in po/.
83561 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83563         * README: Append ".git" to git and cg examples.
83564         Problem reported by Benoit Sigoure.
83566 2007-10-23  Micah Cowan  <micah@cowan.name>
83568         * users.txt: Add wget.
83570 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83572         Fix linking of some unistdio tests on FreeBSD.
83573         * modules/unistdio/u16-vsnprintf-tests
83574         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
83575         * modules/unistdio/u16-vsprintf-tests
83576         (test_u16_vsnprintf1_LDADD): Likewise.
83577         * modules/unistdio/u32-vsnprintf-tests
83578         (test_u32_vsnprintf1_LDADD): Likewise.
83579         * modules/unistdio/u32-vsprintf-tests
83580         (test_u32_vsprintf1_LDADD): Likewise.
83581         * modules/unistdio/u8-vsnprintf-tests
83582         (test_u8_vsnprintf1_LDADD): Likewise.
83583         * modules/unistdio/u8-vsprintf-tests
83584         (test_u8_vsprintf1_LDADD): Likewise.
83585         * modules/unistdio/ulc-vsnprintf-tests
83586         (test_ulc_vsnprintf1_LDADD): Likewise.
83587         * modules/unistdio/ulc-vsprintf-tests
83588         (test_ulc_vsprintf1_LDADD): Likewise.
83590         Fix linking of some uniconv tests on FreeBSD.
83591         * modules/uniconv/u16-conv-from-enc-tests
83592         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
83593         * modules/uniconv/u16-conv-to-enc-tests
83594         (test_u16_conv_to_enc_LDADD): Likewise.
83595         * modules/uniconv/u16-strconv-from-enc-tests
83596         (test_u16_strconv_from_enc_LDADD): Likewise.
83597         * modules/uniconv/u16-strconv-to-enc-tests
83598         (test_u16_strconv_to_enc_LDADD): Likewise.
83599         * modules/uniconv/u32-conv-from-enc-tests
83600         (test_u32_conv_from_enc_LDADD): Likewise.
83601         * modules/uniconv/u32-conv-to-enc-tests
83602         (test_u32_conv_to_enc_LDADD): Likewise.
83603         * modules/uniconv/u32-strconv-from-enc-tests
83604         (test_u32_strconv_from_enc_LDADD): Likewise.
83605         * modules/uniconv/u32-strconv-to-enc-tests
83606         (test_u32_strconv_to_enc_LDADD): Likewise.
83607         * modules/uniconv/u8-conv-from-enc-tests
83608         (test_u8_conv_from_enc_LDADD): Likewise.
83609         * modules/uniconv/u8-conv-to-enc-tests
83610         (test_u8_conv_to_enc_LDADD): Likewise.
83611         * modules/uniconv/u8-strconv-from-enc-tests
83612         (test_u8_strconv_from_enc_LDADD): Likewise.
83613         * modules/uniconv/u8-strconv-to-enc-tests
83614         (test_u8_strconv_to_enc_LDADD): Likewise.
83616 2007-10-22  Bruno Haible  <bruno@clisp.org>
83618         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
83619         size.
83621 2007-10-22  Eric Blake  <ebb9@byu.net>
83623         Tweak x*printf documentation.
83624         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
83625         variable name and comments.
83626         Suggested by Bruno Haible.
83628 2007-10-22  Bruno Haible  <bruno@clisp.org>
83630         * lib/acl.c (copy_acl): Fix file name in comment.
83632 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83634         Fix Tru64 problem with stdbool.h.
83635         * lib/stdbool.in.h (false, true):
83636         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
83637         Don't declare as an enum in this situation; it runs afoul of Tru64.
83638         Problem reported by Steven M. Schweda in
83639         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
83641 2007-10-22  Eric Blake  <ebb9@byu.net>
83643         Also wrap vf?printf.
83644         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
83645         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
83646         (xvprintf, xvfprintf): New functions.
83648 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83650         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
83651         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
83653         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
83654         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
83656 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83658         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
83659         by Bruno Haible.
83661 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83663         * lib/getloadavg.c
83664         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
83665         Undef `sys' after including sys/table.h, for Tru64 4.0D.
83667         * tests/test-i-ring.c: Work for C89.
83669 2007-10-22  Bruno Haible  <bruno@clisp.org>
83671         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
83672         -1u, in preprocessor expression, so that we don't test for the bug
83673         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
83674         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
83676 2007-10-22  Eric Blake  <ebb9@byu.net>
83678         * tests/test-yesno.sh: Silence stderr during test.
83680 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83682         * modules/crypto/gc-camellia: New file.
83684         * m4/gc-camellia.m4: New file.
83686         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
83688         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
83690 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83692         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
83693         --help to stdout.  Reported by sms@antinode.org (Steven
83694         M. Schweda).
83696 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83698         * users.txt: Fix link to libksba.
83700 2007-10-21  Ben Pfaff  <blp@gnu.org>
83702         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
83703         round.c roundf implementation that depends on floorf and ceilf to
83704         be tested unconditionally.
83706 2007-10-21  Ben Pfaff  <blp@gnu.org>
83708         * m4/check-libm-func.m4: Removed.
83709         * m4/check-math-lib.m4: New file.
83710         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
83711         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
83712         definition and lack of AC_LIBOBJ([roundf]).
83713         * m4/roundl.m4: Ditto, and similarly for roundl.
83714         * modules/round: Reference new m4 file.
83715         * modules/roundf: Ditto.
83716         * modules/roundl: Ditto.
83717         * tests/test-round2.c (main): Use ROUND instead of round.
83718         Bug report from Bruno Haible.
83720 2007-10-21  Bruno Haible  <bruno@clisp.org>
83722         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
83723         context.
83725 2007-10-21  Bruno Haible  <bruno@clisp.org>
83727         * tests/test-wcwidth.c (main): Allow negative result for some control
83728         characters.
83730         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
83731         Needed on OSF/1 5.1.
83733 2007-10-21  Bruno Haible  <bruno@clisp.org>
83735         * tests/test-floorf1.c: Include isnanf.h.
83736         (main): Use isnanf() instead of isnan().
83737         * tests/test-ceilf1.c: Include isnanf.h.
83738         (main): Use isnanf() instead of isnan().
83739         * tests/test-truncf1.c: Include isnanf.h.
83740         (main): Use isnanf() instead of isnan().
83741         * tests/test-roundf1.c: Include isnanf.h.
83742         (main): Use isnanf() instead of isnan().
83744 2007-10-21  Eric Blake  <ebb9@byu.net>
83746         * users.txt: Update URL for m4.
83748 2007-10-21  Bruno Haible  <bruno@clisp.org>
83750         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
83752 2007-10-21  Bruno Haible  <bruno@clisp.org>
83754         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
83755         Git's management files if the CVS files are not present.
83757 2007-10-20  Bruno Haible  <bruno@clisp.org>
83759         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
83760         gcc-3.4.x.
83762 2007-10-20  Ben Pfaff  <blp@gnu.org>
83764         * lib/math.in.h: Declare round, roundf, roundl if we are providing
83765         implementations.
83766         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
83767         * lib/round.c: New file.
83768         * lib/roundf.c: New file.
83769         * lib/roundl.c: New file.
83770         * m4/round.m4: New file.
83771         * m4/roundf.m4: New file.
83772         * m4/roundl.m4: New file.
83773         * m4/check-libm-func-m4: New file.
83774         * modules/math: Replace round, roundf, roundl related @VARS@ in
83775         math.in.h.
83776         * modules/round: New file.
83777         * modules/round-tests: New file.
83778         * modules/roundf: New file.
83779         * modules/roundf-tests: New file.
83780         * modules/roundl: New file.
83781         * modules/roundl-tests: New file.
83782         * tests/test-round1.c: New file.
83783         * tests/test-round2.c: New file.
83784         * tests/test-roundf1.c: New file.
83785         * tests/test-roundf2.c: New file.
83786         * tests/test-roundl.c: New file.
83787         * doc/functions/round.texi: Mention round module.
83788         * doc/functions/roundf.texi: Mention roundf module.
83789         * doc/functions/roundl.texi: Mention roundl module.
83790         * MODULES.html.sh: Mention new modules.
83791         Thanks to Bruno Haible for suggestions.
83793 2007-10-20  Jim Meyering  <meyering@redhat.com>
83795         * lib/xprintf.c: Include <config.h> unconditionally.
83797         Change xprintf's license to GPL.
83798         * modules/xprintf (License): s/LGPL/GPL/, since this module
83799         depends on modules (exit and exitfail) which are GPL.
83800         Suggestion from Bruno Haible.
83802         xprintf fixes.
83803         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
83804         Use a clearer diagnostic.
83805         Patch from Bruno Haible.
83807 2007-10-20  Bruno Haible  <bruno@clisp.org>
83809         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
83810         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
83811         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83813 2007-10-20  Bruno Haible  <bruno@clisp.org>
83815         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
83816         precision in the comparison result > x - 1 or similar.
83817         * tests/test-ceilf2.c (correct_result_p): Likewise.
83818         * tests/test-truncf2.c (correct_result_p): Likewise.
83819         * tests/test-trunc2.c (correct_result_p): Likewise.
83820         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83822 2007-10-20  Bruno Haible  <bruno@clisp.org>
83824         * modules/ceil: New file.
83825         * m4/ceil.m4: New file.
83826         * doc/functions/ceil.texi: Mention the 'ceil' module.
83828 2007-10-20  Bruno Haible  <bruno@clisp.org>
83830         * modules/floor: New file.
83831         * m4/floor.m4: New file.
83832         * doc/functions/floor.texi: Mention the 'floor' module.
83834 2007-10-20  Bruno Haible  <bruno@clisp.org>
83836         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
83837         of %a.
83838         * modules/floorf-tests (Depends-on): Likewise.
83839         * modules/truncf-tests (Depends-on): Likewise.
83840         * modules/trunc-tests (Depends-on): Likewise.
83841         Reported by Ben Pfaff.
83843 2007-10-19  Jim Meyering  <meyering@redhat.com>
83845         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
83846         Don't bother testing specific errno values.  Just test ferror.
83848         New module: xprintf
83849         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
83851 2007-10-19  Bruno Haible  <bruno@clisp.org>
83853         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
83854         syntax.
83855         * modules/javaexec (Makefile.am): Likewise.
83856         * modules/relocatable-prog (Makefile.am): Likewise.
83857         Suggested by Jim Meyering.
83859 2007-10-18  Bruno Haible  <bruno@clisp.org>
83861         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
83862         Reported by Jim Meyering.
83864 2007-10-18  Eric Blake  <ebb9@byu.net>
83866         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
83868 2007-10-18  Bruno Haible  <bruno@clisp.org>
83870         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
83871         the format string into writable memory. Needed in Fortify conditions.
83873 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
83874             Bruno Haible  <bruno@clisp.org>
83876         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
83877         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
83878         * modules/trim (Depends-on): Add mbchar.
83879         (configure.ac): Add gl_FUNC_MBRTOWC.
83880         (Makefile.am): Augment lib_SOURCES.
83882 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
83884         Modify glob.c to use fstatat and dirfd, to simplify it.
83885         Suggested by Eric Blake.
83886         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
83887         Don't include <stdbool.h>; not used.
83888         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
83889         (link_exists_p): Simplify implementation, since we can now assume
83890         dirfd and fstatat.
83891         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
83893 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83895         * gnulib-tool (func_get_dependencies): Fix sed script to
83896         match only tests.
83898 2007-10-17  Bruno Haible  <bruno@clisp.org>
83900         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
83901         allow locale names without encoding suffix.
83902         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
83903         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
83905 2007-10-16  Bruno Haible  <bruno@clisp.org>
83907         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
83908         * lib/getgroups.c (getgroups): Likewise.
83909         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
83911 2007-10-16  Bruno Haible  <bruno@clisp.org>
83913         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
83914         * modules/malloc-posix (License): Likewise.
83915         * modules/realloc-posix (License): Likewise.
83916         * modules/calloc-posix (License): Likewise.
83917         * modules/intprops (License): Change from GPL to LGPL, with
83918         Paul Eggert's approval.
83920 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
83922         Merge glibc changes into lib/glob.c.
83924         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
83925         2007-10-15 04:59:03 UTC.  Here are the changes:
83927         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
83929         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
83931         * lib/glob.c: Add some branch prediction throughout.
83933         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
83935         [BZ #5103]
83936         * lib/glob.c (glob): Recognize patterns starting \/.
83938         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
83940         [BZ #3996]
83941         * lib/glob.c (attribute_hidden): Define if not defined.
83942         (glob): Unescape dirname, filename or username when needed and not
83943         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
83944         is NULL.  Handle unescaped [ in pattern without closing ].
83945         Don't pass GLOB_CHECK down to recursive glob for directories.
83946         (__glob_pattern_type): New function.
83947         (__glob_pattern_p): Implement using __glob_pattern_type.
83948         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
83949         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
83950         Remove unreachable code.
83952         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
83954         * lib/glob.c (glob_in_dir): Add some comments and asserts to
83955         explain why there are no leaks.
83957         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
83959         [BZ #3253]
83960         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
83961         time, rather allocate increasingly bigger arrays of pointers, if
83962         possible with alloca, if too large with malloc.
83964 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
83966         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
83967         Problem reported by H.Merijn Brand in
83968         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
83969         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
83970         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
83972 2007-10-15  Bruno Haible  <bruno@clisp.org>
83974         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
83975         with explicit rpl_ prefix.
83976         * lib/fopen.c (fopen): Likewise.
83977         * lib/freopen.c (freopen): Likewise.
83978         * lib/iconv.c (iconv): Likewise.
83979         * lib/iconv_close.c (iconv_close): Likewise.
83981 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83983         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
83985 2007-10-15  Bruno Haible  <bruno@clisp.org>
83987         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
83988         <stddef.h> instead of <stdlib.h> since we only need NULL.
83989         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83991 2007-10-15  Bruno Haible  <bruno@clisp.org>
83993         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
83994         Replace paragraph talking about LIBOBJS.
83995         Reported by Colin Watson <cjwatson@debian.org>.
83997 2007-10-15  Bruno Haible  <bruno@clisp.org>
83999         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
84000         <stdlib.h> before using NULL.
84002 2007-10-15  Simon Josefsson  <simon@josefsson.org>
84004         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
84005         Reported by Albert Chin <china@thewrittenword.com>.
84007 2007-10-14  Bruno Haible  <bruno@clisp.org>
84009         * modules/iconv_open-utf-tests: New file.
84010         * tests/test-iconv-utf.c: New file.
84012         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
84013         * modules/iconv_open-utf: New file.
84014         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
84015         (iconv, iconv_close): New declarations.
84016         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
84017         be defined.
84018         (iconv_open): Add special handling of conversion between UTF-8 and
84019         UTF-{16,32}{BE,LE}.
84020         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
84021         * lib/iconv_close.c: New file.
84022         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
84023         gl_FUNC_ICONV_OPEN.
84024         (gl_FUNC_ICONV_OPEN): Use it.
84025         (gl_FUNC_ICONV_OPEN_UTF): New macro.
84026         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
84027         and REPLACE_ICONV_UTF.
84028         * modules/iconv_open (Depends-on): Add c-strcase.
84029         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
84030         ICONV_CONST.
84031         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
84033 2007-10-13  Albert Chin  <china@thewrittenword.com>
84034             Bruno Haible  <bruno@clisp.org>
84036         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
84037         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
84039 2007-10-13  Bruno Haible  <bruno@clisp.org>
84041         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
84042         defined, use the ISO C99 inline semantics.
84043         * lib/argp.h (ARGP_EI): Likewise.
84045 2007-10-13  Bruno Haible  <bruno@clisp.org>
84047         Handle 'inline' change in gcc 4.3.0.
84048         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
84049         argp_fmtstream_write, argp_fmtstream_set_lmargin,
84050         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
84051         argp_fmtstream_point): Disable 'extern' declaration if the function
84052         definition is going to be provided inline.
84053         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
84054         semantics, not the ISO C99 inline semantics.
84055         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
84056         'extern' declaration if the function definition is going to be provided
84057         inline.
84058         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
84059         the GNU C inline semantics, not the ISO C99 inline semantics. With
84060         GCC 4.2, avoid a warning.
84062 2007-10-13  Bruno Haible  <bruno@clisp.org>
84064         * lib/freading.h (freading): Enable the use of __freading for
84065         glibc >= 2.7.
84066         * lib/freading.c (freading): Likewise.
84068 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
84070         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
84071         "warning: C99 inline functions are not supported; using GNU89".
84073 2007-10-12  Bruno Haible  <bruno@clisp.org>
84075         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
84076         of 2.
84077         * tests/test-ceilf2.c: New file.
84078         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
84080         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
84081         * modules/ceilf-tests: Update.
84083 2007-10-12  Bruno Haible  <bruno@clisp.org>
84085         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
84086         of 2.
84087         * tests/test-floorf2.c: New file.
84088         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
84090         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
84091         * modules/floorf-tests: Update.
84093 2007-10-12  Bruno Haible  <bruno@clisp.org>
84095         * tests/test-trunc2.c: New file.
84096         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
84098         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
84099         * modules/trunc-tests: Update.
84101 2007-10-12  Bruno Haible  <bruno@clisp.org>
84103         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
84104         of 2.
84105         * tests/test-truncf2.c: New file.
84106         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
84108         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
84109         * modules/truncf-tests: Update.
84111 2007-10-11  Eric Blake  <ebb9@byu.net>
84113         Don't claim strerror is broken on Interix.
84114         * doc/functions/strerror.texi (strerror): Known broken systems are
84115         now Solaris 8, and not Interix.
84116         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
84117         Interix on cross-compile.
84118         Reported by Martin Koeppe in
84119         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
84121 2007-10-11  Bruno Haible  <bruno@clisp.org>
84123         * modules/i-ring-tests: New file.
84124         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
84125         instead of assert.
84127 2007-10-11  Bruno Haible  <bruno@clisp.org>
84129         * modules/filenamecat-tests: New file.
84130         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
84131         * lib/filenamecat.c: Remove test code.
84133 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
84135         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
84137         * lib/strerror.c: Include <string.h> always, to test interface,
84138         and to remove the need for the dummy.
84139         Include intprops.h to compute width instead of doing it ourselves
84140         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
84141         (strerror): Define it to return NULL if there's no system strerror.
84142         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
84143         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
84144         ancient pre-strerror Unix systems well any more.  Saying "unknown
84145         system error" is enough.
84146         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
84147         simpler strerror.c implementation.
84148         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
84149         Simplify the tests to reflect the simpler strerror implementation.
84150         * modules/strerror (Depends-on): Add intprops.
84152 2007-10-09  Eric Blake  <ebb9@byu.net>
84154         Silence test-fpending.
84155         * modules/fpending-tests (Files): Add wrapper script.
84156         * tests/test-fpending.sh: New file.
84158 2007-10-09  Bruno Haible  <bruno@clisp.org>
84160         * MODULES.html.sh (func_module): Don't create a hyperlink for
84161         function names like 'printf_frexp'.
84162         (Misc): Add crc, memxor.
84163         (Characteristics of floating types): New section.
84164         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
84165         isnanf-nolibm, signbit, trunc, truncf, truncl.
84166         (Enhancements for ISO C 99 functions): New subsection Input/output.
84167         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
84168         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
84169         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
84170         (Compatibility checks for POSIX:2001 functions): Add clock-time.
84171         (Enhancements for POSIX:2001 functions): Add chdir-long.
84172         (File system functions): Add areadlink, chdir-safer, read-file.
84173         Remove cycle-check.
84174         (File system as inode set): New section.
84175         (Date and time): Add gethrxtime.
84176         (Multithreading): Add openmp.
84177         (Internationalization functions): Add localename.
84178         (Unicode string functions): Add unistr/u*-mbsnlen.
84179         (Support for maintaining and releasing projects): Add git-version-gen.
84180         (Lone files): Remove directories.
84182 2007-10-08  Ben Pfaff  <blp@gnu.org>
84184         * lib/xmalloca.h: Fix typo in comment.
84186 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
84188         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
84189         when avoiding problems with integer overflow.  Use a portable test
84190         instead.
84192 2007-10-08  Simon Josefsson  <simon@josefsson.org>
84194         * modules/dummy (License): Change to LGPLv2+.
84195         * modules/float (License): Likewise
84196         * modules/realloc (License): Likewise
84197         * modules/stdlib (License): Likewise
84199 2007-10-07  Bruno Haible  <bruno@clisp.org>
84201         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
84202         * floor.c (TWO_MANT_DIG): Likewise.
84203         * ceil.c (TWO_MANT_DIG): Likewise.
84204         Reported by Ben Pfaff.
84206 2007-10-07  Bruno Haible  <bruno@clisp.org>
84208         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
84209         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
84210         * lib/frexp.c (FUNC): Likewise.
84211         * lib/printf-frexp.h (printf_frexp): Likewise.
84212         * lib/printf-frexpl.h (printf_frexpl): Likewise.
84213         * lib/printf-frexp.c (FUNC): Likewise.
84214         Suggested by Jim Meyering.
84216 2007-10-07  Jim Meyering  <meyering@redhat.com>
84218         Make xnanosleep's integer overflow test more robust.
84219         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
84220         so that gcc-4.3.0 doesn't optimize away this test for overflow.
84222 2007-10-07  Bruno Haible  <bruno@clisp.org>
84224         * NEWS: Mention the license change.
84226         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
84227         abbreviations in the modules files.
84229         Change copyright notice from GPLv2+ to GPLv3+.
84230         * README: Change copyright notice.
84231         * MODULES.html.sh: Likewise.
84232         * build-aux/bootstrap.conf: Likewise.
84233         * build-aux/config.libpath: Likewise.
84234         * build-aux/csharpcomp.sh.in: Likewise.
84235         * build-aux/csharpexec.sh.in: Likewise.
84236         * build-aux/install-reloc: Likewise.
84237         * build-aux/javacomp.sh.in: Likewise.
84238         * build-aux/javaexec.sh.in: Likewise.
84239         * build-aux/ldd.sh.in: Likewise.
84240         * build-aux/reloc-ldflags: Likewise.
84241         * build-aux/relocatable.sh.in: Likewise.
84242         * build-aux/x-to-1.in: Likewise.
84243         * check-module: Likewise.
84244         * config/srclistvars.sh: Likewise.
84245         * gnulib-tool: Likewise.
84246         * lib/acl-internal.h: Likewise.
84247         * lib/acl.c: Likewise.
84248         * lib/acl.h: Likewise.
84249         * lib/acl_entries.c: Likewise.
84250         * lib/areadlink-with-size.c: Likewise.
84251         * lib/areadlink.c: Likewise.
84252         * lib/areadlink.h: Likewise.
84253         * lib/argmatch.c: Likewise.
84254         * lib/argmatch.h: Likewise.
84255         * lib/argp-ba.c: Likewise.
84256         * lib/argp-eexst.c: Likewise.
84257         * lib/argp-fmtstream.c: Likewise.
84258         * lib/argp-fmtstream.h: Likewise.
84259         * lib/argp-fs-xinl.c: Likewise.
84260         * lib/argp-help.c: Likewise.
84261         * lib/argp-namefrob.h: Likewise.
84262         * lib/argp-parse.c: Likewise.
84263         * lib/argp-pin.c: Likewise.
84264         * lib/argp-pv.c: Likewise.
84265         * lib/argp-pvh.c: Likewise.
84266         * lib/argp-xinl.c: Likewise.
84267         * lib/argp.h: Likewise.
84268         * lib/at-func.c: Likewise.
84269         * lib/atanl.c: Likewise.
84270         * lib/backupfile.c: Likewise.
84271         * lib/backupfile.h: Likewise.
84272         * lib/basename.c: Likewise.
84273         * lib/binary-io.h: Likewise.
84274         * lib/byteswap.in.h: Likewise.
84275         * lib/c-stack.c: Likewise.
84276         * lib/c-stack.h: Likewise.
84277         * lib/c-strcasestr.c: Likewise.
84278         * lib/c-strcasestr.h: Likewise.
84279         * lib/c-strstr.c: Likewise.
84280         * lib/c-strstr.h: Likewise.
84281         * lib/c-strtod.c: Likewise.
84282         * lib/calloc.c: Likewise.
84283         * lib/canon-host.c: Likewise.
84284         * lib/canon-host.h: Likewise.
84285         * lib/canonicalize-lgpl.c: Likewise.
84286         * lib/canonicalize.c: Likewise.
84287         * lib/canonicalize.h: Likewise.
84288         * lib/ceil.c: Likewise.
84289         * lib/ceilf.c: Likewise.
84290         * lib/ceill.c: Likewise.
84291         * lib/chdir-long.c: Likewise.
84292         * lib/chdir-long.h: Likewise.
84293         * lib/chdir-safer.c: Likewise.
84294         * lib/chdir-safer.h: Likewise.
84295         * lib/chown.c: Likewise.
84296         * lib/classpath.c: Likewise.
84297         * lib/classpath.h: Likewise.
84298         * lib/clean-temp.c: Likewise.
84299         * lib/clean-temp.h: Likewise.
84300         * lib/cloexec.c: Likewise.
84301         * lib/close-stream.c: Likewise.
84302         * lib/closein.c: Likewise.
84303         * lib/closein.h: Likewise.
84304         * lib/closeout.c: Likewise.
84305         * lib/closeout.h: Likewise.
84306         * lib/concat-filename.c: Likewise.
84307         * lib/copy-file.c: Likewise.
84308         * lib/copy-file.h: Likewise.
84309         * lib/count-one-bits.h: Likewise.
84310         * lib/crc.c: Likewise.
84311         * lib/crc.h: Likewise.
84312         * lib/creat-safer.c: Likewise.
84313         * lib/csharpcomp.c: Likewise.
84314         * lib/csharpcomp.h: Likewise.
84315         * lib/csharpexec.c: Likewise.
84316         * lib/csharpexec.h: Likewise.
84317         * lib/cycle-check.c: Likewise.
84318         * lib/cycle-check.h: Likewise.
84319         * lib/diacrit.c: Likewise.
84320         * lib/diacrit.h: Likewise.
84321         * lib/diffseq.h: Likewise.
84322         * lib/dirchownmod.c: Likewise.
84323         * lib/dirent.in.h: Likewise.
84324         * lib/dirfd.c: Likewise.
84325         * lib/dirfd.h: Likewise.
84326         * lib/dirname.c: Likewise.
84327         * lib/dirname.h: Likewise.
84328         * lib/dummy.c: Likewise.
84329         * lib/dup-safer.c: Likewise.
84330         * lib/dup2.c: Likewise.
84331         * lib/eealloc.h: Likewise.
84332         * lib/error.c: Likewise.
84333         * lib/error.h: Likewise.
84334         * lib/euidaccess.c: Likewise.
84335         * lib/exclude.c: Likewise.
84336         * lib/exclude.h: Likewise.
84337         * lib/execute.c: Likewise.
84338         * lib/execute.h: Likewise.
84339         * lib/exitfail.c: Likewise.
84340         * lib/exitfail.h: Likewise.
84341         * lib/expl.c: Likewise.
84342         * lib/fatal-signal.c: Likewise.
84343         * lib/fatal-signal.h: Likewise.
84344         * lib/fbufmode.c: Likewise.
84345         * lib/fbufmode.h: Likewise.
84346         * lib/fchdir.c: Likewise.
84347         * lib/fchmodat.c: Likewise.
84348         * lib/fchownat.c: Likewise.
84349         * lib/fcntl--.h: Likewise.
84350         * lib/fcntl-safer.h: Likewise.
84351         * lib/fcntl.in.h: Likewise.
84352         * lib/fd-safer.c: Likewise.
84353         * lib/fflush.c: Likewise.
84354         * lib/file-has-acl.c: Likewise.
84355         * lib/file-set.c: Likewise.
84356         * lib/file-type.c: Likewise.
84357         * lib/file-type.h: Likewise.
84358         * lib/fileblocks.c: Likewise.
84359         * lib/filemode.c: Likewise.
84360         * lib/filemode.h: Likewise.
84361         * lib/filename.h: Likewise.
84362         * lib/filenamecat.c: Likewise.
84363         * lib/filenamecat.h: Likewise.
84364         * lib/findprog.c: Likewise.
84365         * lib/findprog.h: Likewise.
84366         * lib/float.in.h: Likewise.
84367         * lib/floor.c: Likewise.
84368         * lib/floorf.c: Likewise.
84369         * lib/floorl.c: Likewise.
84370         * lib/fopen-safer.c: Likewise.
84371         * lib/fopen.c: Likewise.
84372         * lib/fpending.c: Likewise.
84373         * lib/fpending.h: Likewise.
84374         * lib/fprintf.c: Likewise.
84375         * lib/fprintftime.h: Likewise.
84376         * lib/fpucw.h: Likewise.
84377         * lib/fpurge.c: Likewise.
84378         * lib/fpurge.h: Likewise.
84379         * lib/freadable.c: Likewise.
84380         * lib/freadable.h: Likewise.
84381         * lib/freadahead.c: Likewise.
84382         * lib/freadahead.h: Likewise.
84383         * lib/freading.c: Likewise.
84384         * lib/freading.h: Likewise.
84385         * lib/free.c: Likewise.
84386         * lib/freopen.c: Likewise.
84387         * lib/frexp.c: Likewise.
84388         * lib/frexpl.c: Likewise.
84389         * lib/fseek.c: Likewise.
84390         * lib/fseterr.c: Likewise.
84391         * lib/fseterr.h: Likewise.
84392         * lib/fstatat.c: Likewise.
84393         * lib/fstrcmp.c: Likewise.
84394         * lib/fstrcmp.h: Likewise.
84395         * lib/fsusage.c: Likewise.
84396         * lib/fsusage.h: Likewise.
84397         * lib/ftell.c: Likewise.
84398         * lib/ftello.c: Likewise.
84399         * lib/fts-cycle.c: Likewise.
84400         * lib/fts.c: Likewise.
84401         * lib/fts_.h: Likewise.
84402         * lib/full-read.c: Likewise.
84403         * lib/full-read.h: Likewise.
84404         * lib/full-write.c: Likewise.
84405         * lib/full-write.h: Likewise.
84406         * lib/fwritable.c: Likewise.
84407         * lib/fwritable.h: Likewise.
84408         * lib/fwriteerror.c: Likewise.
84409         * lib/fwriteerror.h: Likewise.
84410         * lib/fwriting.c: Likewise.
84411         * lib/fwriting.h: Likewise.
84412         * lib/gcd.c: Likewise.
84413         * lib/gcd.h: Likewise.
84414         * lib/getcwd.c: Likewise.
84415         * lib/getdate.h: Likewise.
84416         * lib/getdate.y: Likewise.
84417         * lib/getdomainname.c: Likewise.
84418         * lib/getdomainname.h: Likewise.
84419         * lib/getgroups.c: Likewise.
84420         * lib/gethostname.c: Likewise.
84421         * lib/gethrxtime.c: Likewise.
84422         * lib/gethrxtime.h: Likewise.
84423         * lib/getloadavg.c: Likewise.
84424         * lib/getndelim2.c: Likewise.
84425         * lib/getndelim2.h: Likewise.
84426         * lib/getnline.c: Likewise.
84427         * lib/getnline.h: Likewise.
84428         * lib/getopt.c: Likewise.
84429         * lib/getopt.in.h: Likewise.
84430         * lib/getopt1.c: Likewise.
84431         * lib/getopt_int.h: Likewise.
84432         * lib/getpagesize.h: Likewise.
84433         * lib/getsubopt.c: Likewise.
84434         * lib/gettime.c: Likewise.
84435         * lib/getugroups.c: Likewise.
84436         * lib/getugroups.h: Likewise.
84437         * lib/getusershell.c: Likewise.
84438         * lib/gl_anyavltree_list1.h: Likewise.
84439         * lib/gl_anyavltree_list2.h: Likewise.
84440         * lib/gl_anyhash_list1.h: Likewise.
84441         * lib/gl_anyhash_list2.h: Likewise.
84442         * lib/gl_anylinked_list1.h: Likewise.
84443         * lib/gl_anylinked_list2.h: Likewise.
84444         * lib/gl_anyrbtree_list1.h: Likewise.
84445         * lib/gl_anyrbtree_list2.h: Likewise.
84446         * lib/gl_anytree_list1.h: Likewise.
84447         * lib/gl_anytree_list2.h: Likewise.
84448         * lib/gl_anytree_oset.h: Likewise.
84449         * lib/gl_anytreehash_list1.h: Likewise.
84450         * lib/gl_anytreehash_list2.h: Likewise.
84451         * lib/gl_array_list.c: Likewise.
84452         * lib/gl_array_list.h: Likewise.
84453         * lib/gl_array_oset.c: Likewise.
84454         * lib/gl_array_oset.h: Likewise.
84455         * lib/gl_avltree_list.c: Likewise.
84456         * lib/gl_avltree_list.h: Likewise.
84457         * lib/gl_avltree_oset.c: Likewise.
84458         * lib/gl_avltree_oset.h: Likewise.
84459         * lib/gl_avltreehash_list.c: Likewise.
84460         * lib/gl_avltreehash_list.h: Likewise.
84461         * lib/gl_carray_list.c: Likewise.
84462         * lib/gl_carray_list.h: Likewise.
84463         * lib/gl_linked_list.c: Likewise.
84464         * lib/gl_linked_list.h: Likewise.
84465         * lib/gl_linkedhash_list.c: Likewise.
84466         * lib/gl_linkedhash_list.h: Likewise.
84467         * lib/gl_list.c: Likewise.
84468         * lib/gl_list.h: Likewise.
84469         * lib/gl_oset.c: Likewise.
84470         * lib/gl_oset.h: Likewise.
84471         * lib/gl_rbtree_list.c: Likewise.
84472         * lib/gl_rbtree_list.h: Likewise.
84473         * lib/gl_rbtree_oset.c: Likewise.
84474         * lib/gl_rbtree_oset.h: Likewise.
84475         * lib/gl_rbtreehash_list.c: Likewise.
84476         * lib/gl_rbtreehash_list.h: Likewise.
84477         * lib/gl_sublist.c: Likewise.
84478         * lib/gl_sublist.h: Likewise.
84479         * lib/group-member.c: Likewise.
84480         * lib/group-member.h: Likewise.
84481         * lib/hard-locale.c: Likewise.
84482         * lib/hard-locale.h: Likewise.
84483         * lib/hash-pjw.c: Likewise.
84484         * lib/hash-pjw.h: Likewise.
84485         * lib/hash-triple.c: Likewise.
84486         * lib/hash.c: Likewise.
84487         * lib/hash.h: Likewise.
84488         * lib/human.c: Likewise.
84489         * lib/human.h: Likewise.
84490         * lib/i-ring.c: Likewise.
84491         * lib/i-ring.h: Likewise.
84492         * lib/idcache.c: Likewise.
84493         * lib/imaxabs.c: Likewise.
84494         * lib/imaxdiv.c: Likewise.
84495         * lib/inet_pton.c: Likewise.
84496         * lib/inet_pton.h: Likewise.
84497         * lib/intprops.h: Likewise.
84498         * lib/inttostr.c: Likewise.
84499         * lib/inttostr.h: Likewise.
84500         * lib/inttypes.in.h: Likewise.
84501         * lib/isapipe.c: Likewise.
84502         * lib/isdir.c: Likewise.
84503         * lib/isnan.c: Likewise.
84504         * lib/isnan.h: Likewise.
84505         * lib/isnanf.c: Likewise.
84506         * lib/isnanf.h: Likewise.
84507         * lib/isnanl-nolibm.h: Likewise.
84508         * lib/isnanl.c: Likewise.
84509         * lib/isnanl.h: Likewise.
84510         * lib/javacomp.c: Likewise.
84511         * lib/javacomp.h: Likewise.
84512         * lib/javaexec.c: Likewise.
84513         * lib/javaexec.h: Likewise.
84514         * lib/javaversion.c: Likewise.
84515         * lib/javaversion.h: Likewise.
84516         * lib/javaversion.java: Likewise.
84517         * lib/lbrkprop.h: Likewise.
84518         * lib/lchmod.h: Likewise.
84519         * lib/lchown.c: Likewise.
84520         * lib/ldexpl.c: Likewise.
84521         * lib/linebreak.c: Likewise.
84522         * lib/linebreak.h: Likewise.
84523         * lib/linebuffer.c: Likewise.
84524         * lib/linebuffer.h: Likewise.
84525         * lib/locale.in.h: Likewise.
84526         * lib/logl.c: Likewise.
84527         * lib/long-options.c: Likewise.
84528         * lib/long-options.h: Likewise.
84529         * lib/lstat.c: Likewise.
84530         * lib/lstat.h: Likewise.
84531         * lib/math.in.h: Likewise.
84532         * lib/mbchar.c: Likewise.
84533         * lib/mbchar.h: Likewise.
84534         * lib/mbfile.h: Likewise.
84535         * lib/mbiter.h: Likewise.
84536         * lib/mbscasecmp.c: Likewise.
84537         * lib/mbscasestr.c: Likewise.
84538         * lib/mbschr.c: Likewise.
84539         * lib/mbscspn.c: Likewise.
84540         * lib/mbslen.c: Likewise.
84541         * lib/mbsncasecmp.c: Likewise.
84542         * lib/mbsnlen.c: Likewise.
84543         * lib/mbspbrk.c: Likewise.
84544         * lib/mbspcasecmp.c: Likewise.
84545         * lib/mbsrchr.c: Likewise.
84546         * lib/mbssep.c: Likewise.
84547         * lib/mbsspn.c: Likewise.
84548         * lib/mbsstr.c: Likewise.
84549         * lib/mbstok_r.c: Likewise.
84550         * lib/mbswidth.c: Likewise.
84551         * lib/mbswidth.h: Likewise.
84552         * lib/mbuiter.h: Likewise.
84553         * lib/memcasecmp.c: Likewise.
84554         * lib/memcasecmp.h: Likewise.
84555         * lib/memchr.c: Likewise.
84556         * lib/memcmp.c: Likewise.
84557         * lib/memcoll.c: Likewise.
84558         * lib/memcoll.h: Likewise.
84559         * lib/memcpy.c: Likewise.
84560         * lib/memrchr.c: Likewise.
84561         * lib/mkancesdirs.c: Likewise.
84562         * lib/mkdir-p.c: Likewise.
84563         * lib/mkdir-p.h: Likewise.
84564         * lib/mkdir.c: Likewise.
84565         * lib/mkdirat.c: Likewise.
84566         * lib/mkdtemp.c: Likewise.
84567         * lib/mkstemp-safer.c: Likewise.
84568         * lib/mkstemp.c: Likewise.
84569         * lib/modechange.c: Likewise.
84570         * lib/modechange.h: Likewise.
84571         * lib/mountlist.c: Likewise.
84572         * lib/mountlist.h: Likewise.
84573         * lib/mpsort.c: Likewise.
84574         * lib/nanosleep.c: Likewise.
84575         * lib/obstack.c: Likewise.
84576         * lib/obstack.h: Likewise.
84577         * lib/open-safer.c: Likewise.
84578         * lib/open.c: Likewise.
84579         * lib/openat-die.c: Likewise.
84580         * lib/openat-priv.h: Likewise.
84581         * lib/openat-proc.c: Likewise.
84582         * lib/openat.c: Likewise.
84583         * lib/openat.h: Likewise.
84584         * lib/pagealign_alloc.c: Likewise.
84585         * lib/pagealign_alloc.h: Likewise.
84586         * lib/physmem.c: Likewise.
84587         * lib/physmem.h: Likewise.
84588         * lib/pipe-safer.c: Likewise.
84589         * lib/pipe.c: Likewise.
84590         * lib/pipe.h: Likewise.
84591         * lib/posixtm.c: Likewise.
84592         * lib/posixtm.h: Likewise.
84593         * lib/posixver.c: Likewise.
84594         * lib/printf-frexp.c: Likewise.
84595         * lib/printf-frexp.h: Likewise.
84596         * lib/printf-frexpl.c: Likewise.
84597         * lib/printf-frexpl.h: Likewise.
84598         * lib/printf.c: Likewise.
84599         * lib/progname.c: Likewise.
84600         * lib/progname.h: Likewise.
84601         * lib/progreloc.c: Likewise.
84602         * lib/putenv.c: Likewise.
84603         * lib/quote.c: Likewise.
84604         * lib/quote.h: Likewise.
84605         * lib/quotearg.c: Likewise.
84606         * lib/quotearg.h: Likewise.
84607         * lib/raise.c: Likewise.
84608         * lib/readline.c: Likewise.
84609         * lib/readline.h: Likewise.
84610         * lib/readlink.c: Likewise.
84611         * lib/readtokens.c: Likewise.
84612         * lib/readtokens.h: Likewise.
84613         * lib/readtokens0.c: Likewise.
84614         * lib/readtokens0.h: Likewise.
84615         * lib/readutmp.c: Likewise.
84616         * lib/readutmp.h: Likewise.
84617         * lib/realloc.c: Likewise.
84618         * lib/relocwrapper.c: Likewise.
84619         * lib/rename-dest-slash.c: Likewise.
84620         * lib/rename.c: Likewise.
84621         * lib/rmdir.c: Likewise.
84622         * lib/rpmatch.c: Likewise.
84623         * lib/safe-read.c: Likewise.
84624         * lib/safe-read.h: Likewise.
84625         * lib/safe-write.c: Likewise.
84626         * lib/safe-write.h: Likewise.
84627         * lib/same-inode.h: Likewise.
84628         * lib/same.c: Likewise.
84629         * lib/same.h: Likewise.
84630         * lib/save-cwd.c: Likewise.
84631         * lib/save-cwd.h: Likewise.
84632         * lib/savedir.c: Likewise.
84633         * lib/savedir.h: Likewise.
84634         * lib/savewd.c: Likewise.
84635         * lib/savewd.h: Likewise.
84636         * lib/search.in.h: Likewise.
84637         * lib/setenv.c: Likewise.
84638         * lib/setenv.h: Likewise.
84639         * lib/settime.c: Likewise.
84640         * lib/sh-quote.c: Likewise.
84641         * lib/sh-quote.h: Likewise.
84642         * lib/sig2str.c: Likewise.
84643         * lib/sig2str.h: Likewise.
84644         * lib/signal.in.h: Likewise.
84645         * lib/signbitd.c: Likewise.
84646         * lib/signbitf.c: Likewise.
84647         * lib/signbitl.c: Likewise.
84648         * lib/sigprocmask.c: Likewise.
84649         * lib/sincosl.c: Likewise.
84650         * lib/sleep.c: Likewise.
84651         * lib/sprintf.c: Likewise.
84652         * lib/sqrtl.c: Likewise.
84653         * lib/stat-time.h: Likewise.
84654         * lib/stdio--.h: Likewise.
84655         * lib/stdio-safer.h: Likewise.
84656         * lib/stdlib--.h: Likewise.
84657         * lib/stdlib-safer.h: Likewise.
84658         * lib/stdlib.in.h: Likewise.
84659         * lib/stpcpy.c: Likewise.
84660         * lib/stpncpy.c: Likewise.
84661         * lib/strchrnul.c: Likewise.
84662         * lib/strcspn.c: Likewise.
84663         * lib/strerror.c: Likewise.
84664         * lib/strftime.c: Likewise.
84665         * lib/strftime.h: Likewise.
84666         * lib/striconveh.c: Likewise.
84667         * lib/striconveh.h: Likewise.
84668         * lib/striconveha.c: Likewise.
84669         * lib/striconveha.h: Likewise.
84670         * lib/stripslash.c: Likewise.
84671         * lib/strnlen1.c: Likewise.
84672         * lib/strnlen1.h: Likewise.
84673         * lib/strtod.c: Likewise.
84674         * lib/strtoimax.c: Likewise.
84675         * lib/strtok_r.c: Likewise.
84676         * lib/strtol.c: Likewise.
84677         * lib/strtoll.c: Likewise.
84678         * lib/strtoul.c: Likewise.
84679         * lib/strtoull.c: Likewise.
84680         * lib/sysexits.in.h: Likewise.
84681         * lib/tempname.c: Likewise.
84682         * lib/tempname.h: Likewise.
84683         * lib/timespec.h: Likewise.
84684         * lib/tls.c: Likewise.
84685         * lib/tls.h: Likewise.
84686         * lib/tmpdir.c: Likewise.
84687         * lib/tmpdir.h: Likewise.
84688         * lib/tmpfile-safer.c: Likewise.
84689         * lib/tmpfile.c: Likewise.
84690         * lib/trigl.c: Likewise.
84691         * lib/trigl.h: Likewise.
84692         * lib/trim.c: Likewise.
84693         * lib/trim.h: Likewise.
84694         * lib/trunc.c: Likewise.
84695         * lib/truncf.c: Likewise.
84696         * lib/truncl.c: Likewise.
84697         * lib/tsearch.c: Likewise.
84698         * lib/unicodeio.c: Likewise.
84699         * lib/unicodeio.h: Likewise.
84700         * lib/unistd--.h: Likewise.
84701         * lib/unistd-safer.h: Likewise.
84702         * lib/unistdio/ulc-fprintf.c: Likewise.
84703         * lib/unistdio/ulc-vfprintf.c: Likewise.
84704         * lib/unlinkdir.c: Likewise.
84705         * lib/unlinkdir.h: Likewise.
84706         * lib/unlocked-io.h: Likewise.
84707         * lib/unsetenv.c: Likewise.
84708         * lib/userspec.c: Likewise.
84709         * lib/utime.c: Likewise.
84710         * lib/utimecmp.c: Likewise.
84711         * lib/utimecmp.h: Likewise.
84712         * lib/utimens.c: Likewise.
84713         * lib/verify.h: Likewise.
84714         * lib/verror.c: Likewise.
84715         * lib/verror.h: Likewise.
84716         * lib/version-etc-fsf.c: Likewise.
84717         * lib/version-etc.c: Likewise.
84718         * lib/version-etc.h: Likewise.
84719         * lib/vfprintf.c: Likewise.
84720         * lib/vprintf.c: Likewise.
84721         * lib/vsprintf.c: Likewise.
84722         * lib/w32spawn.h: Likewise.
84723         * lib/wait-process.c: Likewise.
84724         * lib/wait-process.h: Likewise.
84725         * lib/wcwidth.c: Likewise.
84726         * lib/write-any-file.c: Likewise.
84727         * lib/xalloc-die.c: Likewise.
84728         * lib/xalloc.h: Likewise.
84729         * lib/xasprintf.c: Likewise.
84730         * lib/xgetcwd.c: Likewise.
84731         * lib/xgetcwd.h: Likewise.
84732         * lib/xgetdomainname.c: Likewise.
84733         * lib/xgetdomainname.h: Likewise.
84734         * lib/xgethostname.c: Likewise.
84735         * lib/xmalloc.c: Likewise.
84736         * lib/xmalloca.c: Likewise.
84737         * lib/xmalloca.h: Likewise.
84738         * lib/xmemcoll.c: Likewise.
84739         * lib/xnanosleep.c: Likewise.
84740         * lib/xreadlink.c: Likewise.
84741         * lib/xreadlink.h: Likewise.
84742         * lib/xsetenv.c: Likewise.
84743         * lib/xsetenv.h: Likewise.
84744         * lib/xstriconv.c: Likewise.
84745         * lib/xstriconv.h: Likewise.
84746         * lib/xstrndup.c: Likewise.
84747         * lib/xstrndup.h: Likewise.
84748         * lib/xstrtod.c: Likewise.
84749         * lib/xstrtod.h: Likewise.
84750         * lib/xstrtol-error.c: Likewise.
84751         * lib/xstrtol.c: Likewise.
84752         * lib/xstrtol.h: Likewise.
84753         * lib/xtime.h: Likewise.
84754         * lib/xvasprintf.c: Likewise.
84755         * lib/xvasprintf.h: Likewise.
84756         * lib/yesno.c: Likewise.
84757         * lib/yesno.h: Likewise.
84758         * posix-modules: Likewise.
84759         * tests/test-alloca-opt.c: Likewise.
84760         * tests/test-arcfour.c: Likewise.
84761         * tests/test-arctwo.c: Likewise.
84762         * tests/test-argmatch.c: Likewise.
84763         * tests/test-argp-2.sh: Likewise.
84764         * tests/test-argp.c: Likewise.
84765         * tests/test-arpa_inet.c: Likewise.
84766         * tests/test-array_list.c: Likewise.
84767         * tests/test-array_oset.c: Likewise.
84768         * tests/test-atexit.c: Likewise.
84769         * tests/test-avltree_list.c: Likewise.
84770         * tests/test-avltree_oset.c: Likewise.
84771         * tests/test-avltreehash_list.c: Likewise.
84772         * tests/test-base64.c: Likewise.
84773         * tests/test-binary-io.c: Likewise.
84774         * tests/test-byteswap.c: Likewise.
84775         * tests/test-c-ctype.c: Likewise.
84776         * tests/test-c-strcasecmp.c: Likewise.
84777         * tests/test-c-strcasestr.c: Likewise.
84778         * tests/test-c-strncasecmp.c: Likewise.
84779         * tests/test-c-strstr.c: Likewise.
84780         * tests/test-canonicalize-lgpl.c: Likewise.
84781         * tests/test-canonicalize.c: Likewise.
84782         * tests/test-carray_list.c: Likewise.
84783         * tests/test-ceilf.c: Likewise.
84784         * tests/test-ceill.c: Likewise.
84785         * tests/test-count-one-bits.c: Likewise.
84786         * tests/test-crc.c: Likewise.
84787         * tests/test-dirname.c: Likewise.
84788         * tests/test-fbufmode.c: Likewise.
84789         * tests/test-fcntl.c: Likewise.
84790         * tests/test-fflush.c: Likewise.
84791         * tests/test-floorf.c: Likewise.
84792         * tests/test-floorl.c: Likewise.
84793         * tests/test-fopen.c: Likewise.
84794         * tests/test-fprintf-posix.c: Likewise.
84795         * tests/test-fprintf-posix.h: Likewise.
84796         * tests/test-fpurge.c: Likewise.
84797         * tests/test-freadable.c: Likewise.
84798         * tests/test-freadahead.c: Likewise.
84799         * tests/test-freading.c: Likewise.
84800         * tests/test-freopen.c: Likewise.
84801         * tests/test-frexp.c: Likewise.
84802         * tests/test-frexpl.c: Likewise.
84803         * tests/test-fseek.c: Likewise.
84804         * tests/test-fseeko.c: Likewise.
84805         * tests/test-fseterr.c: Likewise.
84806         * tests/test-fstrcmp.c: Likewise.
84807         * tests/test-ftell.c: Likewise.
84808         * tests/test-ftello.c: Likewise.
84809         * tests/test-fwritable.c: Likewise.
84810         * tests/test-fwriting.c: Likewise.
84811         * tests/test-getaddrinfo.c: Likewise.
84812         * tests/test-getpass.c: Likewise.
84813         * tests/test-gettimeofday.c: Likewise.
84814         * tests/test-hmac-md5.c: Likewise.
84815         * tests/test-hmac-sha1.c: Likewise.
84816         * tests/test-iconv.c: Likewise.
84817         * tests/test-iconvme.c: Likewise.
84818         * tests/test-inttypes.c: Likewise.
84819         * tests/test-isnan.c: Likewise.
84820         * tests/test-isnanf.c: Likewise.
84821         * tests/test-isnanl-nolibm.c: Likewise.
84822         * tests/test-isnanl.c: Likewise.
84823         * tests/test-isnanl.h: Likewise.
84824         * tests/test-ldexpl.c: Likewise.
84825         * tests/test-linked_list.c: Likewise.
84826         * tests/test-linkedhash_list.c: Likewise.
84827         * tests/test-locale.c: Likewise.
84828         * tests/test-localename.c: Likewise.
84829         * tests/test-lock.c: Likewise.
84830         * tests/test-lseek.c: Likewise.
84831         * tests/test-malloca.c: Likewise.
84832         * tests/test-math.c: Likewise.
84833         * tests/test-mbscasecmp.c: Likewise.
84834         * tests/test-mbscasestr1.c: Likewise.
84835         * tests/test-mbscasestr2.c: Likewise.
84836         * tests/test-mbscasestr3.c: Likewise.
84837         * tests/test-mbscasestr4.c: Likewise.
84838         * tests/test-mbschr.c: Likewise.
84839         * tests/test-mbscspn.c: Likewise.
84840         * tests/test-mbsncasecmp.c: Likewise.
84841         * tests/test-mbspbrk.c: Likewise.
84842         * tests/test-mbspcasecmp.c: Likewise.
84843         * tests/test-mbsrchr.c: Likewise.
84844         * tests/test-mbsspn.c: Likewise.
84845         * tests/test-mbsstr1.c: Likewise.
84846         * tests/test-mbsstr2.c: Likewise.
84847         * tests/test-mbsstr3.c: Likewise.
84848         * tests/test-md5.c: Likewise.
84849         * tests/test-memmem.c: Likewise.
84850         * tests/test-netinet_in.c: Likewise.
84851         * tests/test-open.c: Likewise.
84852         * tests/test-printf-frexp.c: Likewise.
84853         * tests/test-printf-frexpl.c: Likewise.
84854         * tests/test-printf-posix.c: Likewise.
84855         * tests/test-printf-posix.h: Likewise.
84856         * tests/test-rbtree_list.c: Likewise.
84857         * tests/test-rbtree_oset.c: Likewise.
84858         * tests/test-rbtreehash_list.c: Likewise.
84859         * tests/test-read-file.c: Likewise.
84860         * tests/test-rijndael.c: Likewise.
84861         * tests/test-search.c: Likewise.
84862         * tests/test-signbit.c: Likewise.
84863         * tests/test-sleep.c: Likewise.
84864         * tests/test-snprintf-posix.c: Likewise.
84865         * tests/test-snprintf-posix.h: Likewise.
84866         * tests/test-snprintf.c: Likewise.
84867         * tests/test-sprintf-posix.c: Likewise.
84868         * tests/test-sprintf-posix.h: Likewise.
84869         * tests/test-stat-time.c: Likewise.
84870         * tests/test-stdbool.c: Likewise.
84871         * tests/test-stdint.c: Likewise.
84872         * tests/test-stdio.c: Likewise.
84873         * tests/test-stdlib.c: Likewise.
84874         * tests/test-stpncpy.c: Likewise.
84875         * tests/test-strcasestr.c: Likewise.
84876         * tests/test-striconv.c: Likewise.
84877         * tests/test-striconveh.c: Likewise.
84878         * tests/test-striconveha.c: Likewise.
84879         * tests/test-string.c: Likewise.
84880         * tests/test-sys_select.c: Likewise.
84881         * tests/test-sys_socket.c: Likewise.
84882         * tests/test-sys_stat.c: Likewise.
84883         * tests/test-sys_time.c: Likewise.
84884         * tests/test-sysexits.c: Likewise.
84885         * tests/test-time.c: Likewise.
84886         * tests/test-tls.c: Likewise.
84887         * tests/test-trunc.c: Likewise.
84888         * tests/test-truncf.c: Likewise.
84889         * tests/test-truncl.c: Likewise.
84890         * tests/test-unistd.c: Likewise.
84891         * tests/test-vasnprintf-posix.c: Likewise.
84892         * tests/test-vasnprintf-posix2.c: Likewise.
84893         * tests/test-vasnprintf.c: Likewise.
84894         * tests/test-vasprintf-posix.c: Likewise.
84895         * tests/test-vasprintf.c: Likewise.
84896         * tests/test-verify.c: Likewise.
84897         * tests/test-vfprintf-posix.c: Likewise.
84898         * tests/test-vprintf-posix.c: Likewise.
84899         * tests/test-vsnprintf-posix.c: Likewise.
84900         * tests/test-vsnprintf.c: Likewise.
84901         * tests/test-vsprintf-posix.c: Likewise.
84902         * tests/test-wchar.c: Likewise.
84903         * tests/test-wctype.c: Likewise.
84904         * tests/test-wcwidth.c: Likewise.
84905         * tests/test-xstrtol.c: Likewise.
84906         * tests/test-xvasprintf.c: Likewise.
84907         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
84908         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
84909         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
84910         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
84911         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
84912         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
84913         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
84914         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
84915         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
84916         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
84917         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
84918         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
84919         * tests/uniname/test-uninames.c: Likewise.
84920         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
84921         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
84922         * tests/unistdio/test-u16-printf1.h: Likewise.
84923         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
84924         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
84925         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
84926         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
84927         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
84928         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
84929         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
84930         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
84931         * tests/unistdio/test-u32-printf1.h: Likewise.
84932         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
84933         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
84934         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
84935         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
84936         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
84937         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
84938         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
84939         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
84940         * tests/unistdio/test-u8-printf1.h: Likewise.
84941         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
84942         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
84943         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
84944         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
84945         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
84946         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
84947         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
84948         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
84949         * tests/unistdio/test-ulc-printf1.h: Likewise.
84950         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
84951         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
84952         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
84953         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
84954         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
84955         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
84956         * tests/uniwidth/test-u16-strwidth.c: Likewise.
84957         * tests/uniwidth/test-u16-width.c: Likewise.
84958         * tests/uniwidth/test-u32-strwidth.c: Likewise.
84959         * tests/uniwidth/test-u32-width.c: Likewise.
84960         * tests/uniwidth/test-u8-strwidth.c: Likewise.
84961         * tests/uniwidth/test-u8-width.c: Likewise.
84962         * tests/uniwidth/test-uc_width.c: Likewise.
84963         * config/srclist-update: Likewise.
84964         (fixlicense): Update to GPLv3+.
84966         Change copyright notice from LGPLv2.1+ to LGPLv3+.
84967         * tests/test-tsearch.c: Change copyright notice.
84969         Change copyright notice from LGPLv2.0+ to LGPLv3+.
84970         * lib/c-strcaseeq.h: Change copyright notice.
84971         * lib/streq.h: Likewise.
84972         * lib/uniconv.h: Likewise.
84973         * lib/uniconv/u-conv-from-enc.h: Likewise.
84974         * lib/uniconv/u-conv-to-enc.h: Likewise.
84975         * lib/uniconv/u-strconv-from-enc.h: Likewise.
84976         * lib/uniconv/u-strconv-to-enc.h: Likewise.
84977         * lib/uniconv/u16-conv-from-enc.c: Likewise.
84978         * lib/uniconv/u16-conv-to-enc.c: Likewise.
84979         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
84980         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
84981         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
84982         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
84983         * lib/uniconv/u32-conv-from-enc.c: Likewise.
84984         * lib/uniconv/u32-conv-to-enc.c: Likewise.
84985         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
84986         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
84987         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
84988         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
84989         * lib/uniconv/u8-conv-from-enc.c: Likewise.
84990         * lib/uniconv/u8-conv-to-enc.c: Likewise.
84991         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
84992         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
84993         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
84994         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
84995         * lib/uniname.h: Likewise.
84996         * lib/uniname/uniname.c: Likewise.
84997         * lib/unistdio.h: Likewise.
84998         * lib/unistdio/u-asnprintf.h: Likewise.
84999         * lib/unistdio/u-asprintf.h: Likewise.
85000         * lib/unistdio/u-printf-args.c: Likewise.
85001         * lib/unistdio/u-printf-args.h: Likewise.
85002         * lib/unistdio/u-printf-parse.h: Likewise.
85003         * lib/unistdio/u-snprintf.h: Likewise.
85004         * lib/unistdio/u-sprintf.h: Likewise.
85005         * lib/unistdio/u-vasprintf.h: Likewise.
85006         * lib/unistdio/u-vsnprintf.h: Likewise.
85007         * lib/unistdio/u-vsprintf.h: Likewise.
85008         * lib/unistdio/u16-asnprintf.c: Likewise.
85009         * lib/unistdio/u16-asprintf.c: Likewise.
85010         * lib/unistdio/u16-printf-parse.c: Likewise.
85011         * lib/unistdio/u16-snprintf.c: Likewise.
85012         * lib/unistdio/u16-sprintf.c: Likewise.
85013         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
85014         * lib/unistdio/u16-u16-asprintf.c: Likewise.
85015         * lib/unistdio/u16-u16-snprintf.c: Likewise.
85016         * lib/unistdio/u16-u16-sprintf.c: Likewise.
85017         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
85018         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
85019         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
85020         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
85021         * lib/unistdio/u16-vasnprintf.c: Likewise.
85022         * lib/unistdio/u16-vasprintf.c: Likewise.
85023         * lib/unistdio/u16-vsnprintf.c: Likewise.
85024         * lib/unistdio/u16-vsprintf.c: Likewise.
85025         * lib/unistdio/u32-asnprintf.c: Likewise.
85026         * lib/unistdio/u32-asprintf.c: Likewise.
85027         * lib/unistdio/u32-printf-parse.c: Likewise.
85028         * lib/unistdio/u32-snprintf.c: Likewise.
85029         * lib/unistdio/u32-sprintf.c: Likewise.
85030         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
85031         * lib/unistdio/u32-u32-asprintf.c: Likewise.
85032         * lib/unistdio/u32-u32-snprintf.c: Likewise.
85033         * lib/unistdio/u32-u32-sprintf.c: Likewise.
85034         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
85035         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
85036         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
85037         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
85038         * lib/unistdio/u32-vasnprintf.c: Likewise.
85039         * lib/unistdio/u32-vasprintf.c: Likewise.
85040         * lib/unistdio/u32-vsnprintf.c: Likewise.
85041         * lib/unistdio/u32-vsprintf.c: Likewise.
85042         * lib/unistdio/u8-asnprintf.c: Likewise.
85043         * lib/unistdio/u8-asprintf.c: Likewise.
85044         * lib/unistdio/u8-printf-parse.c: Likewise.
85045         * lib/unistdio/u8-snprintf.c: Likewise.
85046         * lib/unistdio/u8-sprintf.c: Likewise.
85047         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
85048         * lib/unistdio/u8-u8-asprintf.c: Likewise.
85049         * lib/unistdio/u8-u8-snprintf.c: Likewise.
85050         * lib/unistdio/u8-u8-sprintf.c: Likewise.
85051         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
85052         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
85053         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
85054         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
85055         * lib/unistdio/u8-vasnprintf.c: Likewise.
85056         * lib/unistdio/u8-vasprintf.c: Likewise.
85057         * lib/unistdio/u8-vsnprintf.c: Likewise.
85058         * lib/unistdio/u8-vsprintf.c: Likewise.
85059         * lib/unistdio/ulc-asnprintf.c: Likewise.
85060         * lib/unistdio/ulc-asprintf.c: Likewise.
85061         * lib/unistdio/ulc-printf-parse.c: Likewise.
85062         * lib/unistdio/ulc-snprintf.c: Likewise.
85063         * lib/unistdio/ulc-sprintf.c: Likewise.
85064         * lib/unistdio/ulc-vasnprintf.c: Likewise.
85065         * lib/unistdio/ulc-vasprintf.c: Likewise.
85066         * lib/unistdio/ulc-vsnprintf.c: Likewise.
85067         * lib/unistdio/ulc-vsprintf.c: Likewise.
85068         * lib/unistr.h: Likewise.
85069         * lib/unistr/u-cpy-alloc.h: Likewise.
85070         * lib/unistr/u-cpy.h: Likewise.
85071         * lib/unistr/u-endswith.h: Likewise.
85072         * lib/unistr/u-move.h: Likewise.
85073         * lib/unistr/u-set.h: Likewise.
85074         * lib/unistr/u-startswith.h: Likewise.
85075         * lib/unistr/u-stpcpy.h: Likewise.
85076         * lib/unistr/u-stpncpy.h: Likewise.
85077         * lib/unistr/u-strcat.h: Likewise.
85078         * lib/unistr/u-strcpy.h: Likewise.
85079         * lib/unistr/u-strcspn.h: Likewise.
85080         * lib/unistr/u-strdup.h: Likewise.
85081         * lib/unistr/u-strlen.h: Likewise.
85082         * lib/unistr/u-strncat.h: Likewise.
85083         * lib/unistr/u-strncpy.h: Likewise.
85084         * lib/unistr/u-strnlen.h: Likewise.
85085         * lib/unistr/u-strpbrk.h: Likewise.
85086         * lib/unistr/u-strspn.h: Likewise.
85087         * lib/unistr/u-strstr.h: Likewise.
85088         * lib/unistr/u-strtok.h: Likewise.
85089         * lib/unistr/u16-check.c: Likewise.
85090         * lib/unistr/u16-chr.c: Likewise.
85091         * lib/unistr/u16-cmp.c: Likewise.
85092         * lib/unistr/u16-cpy-alloc.c: Likewise.
85093         * lib/unistr/u16-cpy.c: Likewise.
85094         * lib/unistr/u16-endswith.c: Likewise.
85095         * lib/unistr/u16-mblen.c: Likewise.
85096         * lib/unistr/u16-mbsnlen.c: Likewise.
85097         * lib/unistr/u16-mbtouc-aux.c: Likewise.
85098         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
85099         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
85100         * lib/unistr/u16-mbtouc.c: Likewise.
85101         * lib/unistr/u16-mbtoucr.c: Likewise.
85102         * lib/unistr/u16-move.c: Likewise.
85103         * lib/unistr/u16-next.c: Likewise.
85104         * lib/unistr/u16-prev.c: Likewise.
85105         * lib/unistr/u16-set.c: Likewise.
85106         * lib/unistr/u16-startswith.c: Likewise.
85107         * lib/unistr/u16-stpcpy.c: Likewise.
85108         * lib/unistr/u16-stpncpy.c: Likewise.
85109         * lib/unistr/u16-strcat.c: Likewise.
85110         * lib/unistr/u16-strchr.c: Likewise.
85111         * lib/unistr/u16-strcmp.c: Likewise.
85112         * lib/unistr/u16-strcpy.c: Likewise.
85113         * lib/unistr/u16-strcspn.c: Likewise.
85114         * lib/unistr/u16-strdup.c: Likewise.
85115         * lib/unistr/u16-strlen.c: Likewise.
85116         * lib/unistr/u16-strmblen.c: Likewise.
85117         * lib/unistr/u16-strmbtouc.c: Likewise.
85118         * lib/unistr/u16-strncat.c: Likewise.
85119         * lib/unistr/u16-strncmp.c: Likewise.
85120         * lib/unistr/u16-strncpy.c: Likewise.
85121         * lib/unistr/u16-strnlen.c: Likewise.
85122         * lib/unistr/u16-strpbrk.c: Likewise.
85123         * lib/unistr/u16-strrchr.c: Likewise.
85124         * lib/unistr/u16-strspn.c: Likewise.
85125         * lib/unistr/u16-strstr.c: Likewise.
85126         * lib/unistr/u16-strtok.c: Likewise.
85127         * lib/unistr/u16-to-u32.c: Likewise.
85128         * lib/unistr/u16-to-u8.c: Likewise.
85129         * lib/unistr/u16-uctomb-aux.c: Likewise.
85130         * lib/unistr/u16-uctomb.c: Likewise.
85131         * lib/unistr/u32-check.c: Likewise.
85132         * lib/unistr/u32-chr.c: Likewise.
85133         * lib/unistr/u32-cmp.c: Likewise.
85134         * lib/unistr/u32-cpy-alloc.c: Likewise.
85135         * lib/unistr/u32-cpy.c: Likewise.
85136         * lib/unistr/u32-endswith.c: Likewise.
85137         * lib/unistr/u32-mblen.c: Likewise.
85138         * lib/unistr/u32-mbsnlen.c: Likewise.
85139         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
85140         * lib/unistr/u32-mbtouc.c: Likewise.
85141         * lib/unistr/u32-mbtoucr.c: Likewise.
85142         * lib/unistr/u32-move.c: Likewise.
85143         * lib/unistr/u32-next.c: Likewise.
85144         * lib/unistr/u32-prev.c: Likewise.
85145         * lib/unistr/u32-set.c: Likewise.
85146         * lib/unistr/u32-startswith.c: Likewise.
85147         * lib/unistr/u32-stpcpy.c: Likewise.
85148         * lib/unistr/u32-stpncpy.c: Likewise.
85149         * lib/unistr/u32-strcat.c: Likewise.
85150         * lib/unistr/u32-strchr.c: Likewise.
85151         * lib/unistr/u32-strcmp.c: Likewise.
85152         * lib/unistr/u32-strcpy.c: Likewise.
85153         * lib/unistr/u32-strcspn.c: Likewise.
85154         * lib/unistr/u32-strdup.c: Likewise.
85155         * lib/unistr/u32-strlen.c: Likewise.
85156         * lib/unistr/u32-strmblen.c: Likewise.
85157         * lib/unistr/u32-strmbtouc.c: Likewise.
85158         * lib/unistr/u32-strncat.c: Likewise.
85159         * lib/unistr/u32-strncmp.c: Likewise.
85160         * lib/unistr/u32-strncpy.c: Likewise.
85161         * lib/unistr/u32-strnlen.c: Likewise.
85162         * lib/unistr/u32-strpbrk.c: Likewise.
85163         * lib/unistr/u32-strrchr.c: Likewise.
85164         * lib/unistr/u32-strspn.c: Likewise.
85165         * lib/unistr/u32-strstr.c: Likewise.
85166         * lib/unistr/u32-strtok.c: Likewise.
85167         * lib/unistr/u32-to-u16.c: Likewise.
85168         * lib/unistr/u32-to-u8.c: Likewise.
85169         * lib/unistr/u32-uctomb.c: Likewise.
85170         * lib/unistr/u8-check.c: Likewise.
85171         * lib/unistr/u8-chr.c: Likewise.
85172         * lib/unistr/u8-cmp.c: Likewise.
85173         * lib/unistr/u8-cpy-alloc.c: Likewise.
85174         * lib/unistr/u8-cpy.c: Likewise.
85175         * lib/unistr/u8-endswith.c: Likewise.
85176         * lib/unistr/u8-mblen.c: Likewise.
85177         * lib/unistr/u8-mbsnlen.c: Likewise.
85178         * lib/unistr/u8-mbtouc-aux.c: Likewise.
85179         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
85180         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
85181         * lib/unistr/u8-mbtouc.c: Likewise.
85182         * lib/unistr/u8-mbtoucr.c: Likewise.
85183         * lib/unistr/u8-move.c: Likewise.
85184         * lib/unistr/u8-next.c: Likewise.
85185         * lib/unistr/u8-prev.c: Likewise.
85186         * lib/unistr/u8-set.c: Likewise.
85187         * lib/unistr/u8-startswith.c: Likewise.
85188         * lib/unistr/u8-stpcpy.c: Likewise.
85189         * lib/unistr/u8-stpncpy.c: Likewise.
85190         * lib/unistr/u8-strcat.c: Likewise.
85191         * lib/unistr/u8-strchr.c: Likewise.
85192         * lib/unistr/u8-strcmp.c: Likewise.
85193         * lib/unistr/u8-strcpy.c: Likewise.
85194         * lib/unistr/u8-strcspn.c: Likewise.
85195         * lib/unistr/u8-strdup.c: Likewise.
85196         * lib/unistr/u8-strlen.c: Likewise.
85197         * lib/unistr/u8-strmblen.c: Likewise.
85198         * lib/unistr/u8-strmbtouc.c: Likewise.
85199         * lib/unistr/u8-strncat.c: Likewise.
85200         * lib/unistr/u8-strncmp.c: Likewise.
85201         * lib/unistr/u8-strncpy.c: Likewise.
85202         * lib/unistr/u8-strnlen.c: Likewise.
85203         * lib/unistr/u8-strpbrk.c: Likewise.
85204         * lib/unistr/u8-strrchr.c: Likewise.
85205         * lib/unistr/u8-strspn.c: Likewise.
85206         * lib/unistr/u8-strstr.c: Likewise.
85207         * lib/unistr/u8-strtok.c: Likewise.
85208         * lib/unistr/u8-to-u16.c: Likewise.
85209         * lib/unistr/u8-to-u32.c: Likewise.
85210         * lib/unistr/u8-uctomb-aux.c: Likewise.
85211         * lib/unistr/u8-uctomb.c: Likewise.
85212         * lib/unitypes.h: Likewise.
85213         * lib/uniwidth.h: Likewise.
85214         * lib/uniwidth/cjk.h: Likewise.
85215         * lib/uniwidth/u16-strwidth.c: Likewise.
85216         * lib/uniwidth/u16-width.c: Likewise.
85217         * lib/uniwidth/u32-strwidth.c: Likewise.
85218         * lib/uniwidth/u32-width.c: Likewise.
85219         * lib/uniwidth/u8-strwidth.c: Likewise.
85220         * lib/uniwidth/u8-width.c: Likewise.
85221         * lib/uniwidth/width.c: Likewise.
85223 2007-10-07  Bruno Haible  <bruno@clisp.org>
85225         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
85226         The file is still under LGPL (see modules/inttypes).
85228 2007-10-06  Bruno Haible  <bruno@clisp.org>
85230         * modules/trunc (Dependencies): Add 'extensions'.
85231         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
85232         Reported by Ben Pfaff <blp@gnu.org>.
85234 2007-10-06  Bruno Haible  <bruno@clisp.org>
85236         * modules/freopen-tests: New file.
85237         * tests/test-freopen.c: New file.
85239         * modules/fopen-tests: New file.
85240         * tests/test-fopen.c: New file.
85242         * modules/fopen: New file.
85243         * lib/fopen.c: New file.
85244         * m4/fopen.m4: New file.
85245         * modules/freopen: New file.
85246         * lib/freopen.c: New file.
85247         * m4/freopen.m4: New file.
85248         * lib/stdio.in.h (fopen, freopen): New declarations.
85249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
85250         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85251         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
85252         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85253         * doc/functions/fopen.texi: Mention the 'fopen' module.
85254         * doc/functions/freopen.texi: Mention the 'freopen' module.
85256 2007-10-06  Bruno Haible  <bruno@clisp.org>
85258         * modules/open-tests: New file.
85259         * tests/test-open.c: New file.
85261         * modules/open: New file.
85262         * lib/open.c: New file.
85263         * m4/open.m4: New file.
85264         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
85265         lib/open.c does.
85266         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
85267         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
85268         macros.
85269         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
85270         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
85271         REPLACE_OPEN.
85272         * doc/functions/open.texi: Mention the 'open' module.
85274 2007-10-04  Bruno Haible  <bruno@clisp.org>
85276         * modules/ceill-tests: New file.
85277         * tests/test-ceill.c: New file.
85279         * modules/ceill: New file.
85280         * lib/ceill.c: Replace entire file.
85281         * m4/ceill.m4: New file.
85282         * lib/math.in.h (ceill): Replace declaration.
85283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
85284         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
85285         * doc/functions/ceill.texi: Mention the 'ceill' module.
85286         * modules/mathl (Files): Remove lib/ceill.c.
85287         (Depends-on): Add ceill.
85289 2007-10-04  Bruno Haible  <bruno@clisp.org>
85291         * modules/ceilf-tests: New file.
85292         * tests/test-ceilf.c: New file.
85294         * modules/ceilf: New file.
85295         * lib/ceil.c: New file.
85296         * lib/ceilf.c: New file.
85297         * m4/ceilf.m4: New file.
85298         * lib/math.in.h (ceilf): New declaration.
85299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
85300         HAVE_DECL_CEILF.
85301         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
85302         HAVE_DECL_CEILF.
85303         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
85305 2007-10-04  Bruno Haible  <bruno@clisp.org>
85307         * modules/floorl-tests: New file.
85308         * tests/test-floorl.c: New file.
85310         * modules/floorl: New file.
85311         * lib/floorl.c: Replace entire file.
85312         * m4/floorl.m4: New file.
85313         * lib/math.in.h (floorl): Replace declaration.
85314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
85315         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
85316         * doc/functions/floorl.texi: Mention the 'floorl' module.
85317         * modules/mathl (Files): Remove lib/floorl.c.
85318         (Depends-on): Add floorl.
85320 2007-10-04  Bruno Haible  <bruno@clisp.org>
85322         * modules/floorf-tests: New file.
85323         * tests/test-floorf.c: New file.
85325         * modules/floorf: New file.
85326         * lib/floor.c: New file.
85327         * lib/floorf.c: New file.
85328         * m4/floorf.m4: New file.
85329         * lib/math.in.h (floorf): New declaration.
85330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
85331         HAVE_DECL_FLOORF.
85332         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
85333         HAVE_DECL_FLOORF.
85334         * doc/functions/floorf.texi: Mention the 'floorf' module.
85336 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
85337             Bruno Haible  <bruno@clisp.org>
85339         Advertise for the Git server instead of the CVS server.
85340         * doc/gnulib-intro.texi (Steady Development): Mention the Git
85341         repository instead of the CVS one.
85342         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
85343         about all VCS systems generically.
85344         * doc/gnulib.texi (Introduction): Capitalize `Git'.
85346 2007-10-04  Bruno Haible  <bruno@clisp.org>
85348         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
85349         means.
85350         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
85352 2007-10-04  Bruno Haible  <bruno@clisp.org>
85354         * modules/truncl-tests: New file.
85355         * tests/test-truncl.c: New file.
85357         * modules/truncl: New file.
85358         * lib/truncl.c: New file.
85359         * m4/truncl.m4: New file.
85360         * lib/math.in.h (truncl): New declaration.
85361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
85362         HAVE_DECL_TRUNCL.
85363         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
85364         HAVE_DECL_TRUNCL.
85365         * doc/functions/truncl.texi: Mention the 'truncl' module.
85367 2007-10-04  Bruno Haible  <bruno@clisp.org>
85369         * modules/truncf-tests: New file.
85370         * tests/test-truncf.c: New file.
85372         * modules/truncf: New file.
85373         * lib/trunc.c: Make paramerizable through USE_* macros.
85374         * lib/truncf.c: New file.
85375         * m4/truncf.m4: New file.
85376         * lib/math.in.h (truncf): New declaration.
85377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
85378         HAVE_DECL_TRUNCF.
85379         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
85380         HAVE_DECL_TRUNCF.
85381         * doc/functions/truncf.texi: Mention the 'truncf' module.
85383 2007-10-03  Bruno Haible  <bruno@clisp.org>
85385         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
85386         augmentation also for tests modules.
85387         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
85388         * modules/atexit-tests (Makefile.am): Likewise.
85389         * modules/binary-io-tests (Makefile.am): Likewise.
85390         * modules/c-strcase-tests (Makefile.am): Likewise.
85391         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
85392         * modules/canonicalize-tests (Makefile.am): Likewise.
85393         * modules/closein-tests (Makefile.am): Likewise.
85394         * modules/fprintf-posix-tests (Makefile.am): Likewise.
85395         * modules/freadahead-tests (Makefile.am): Likewise.
85396         * modules/fseek-tests (Makefile.am): Likewise.
85397         * modules/fseeko-tests (Makefile.am): Likewise.
85398         * modules/ftell-tests (Makefile.am): Likewise.
85399         * modules/ftello-tests (Makefile.am): Likewise.
85400         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
85401         * modules/isnanl-tests (Makefile.am): Likewise.
85402         * modules/lseek-tests (Makefile.am): Likewise.
85403         * modules/mbscasecmp-tests (Makefile.am): Likewise.
85404         * modules/mbscasestr-tests (Makefile.am): Likewise.
85405         * modules/mbschr-tests (Makefile.am): Likewise.
85406         * modules/mbscspn-tests (Makefile.am): Likewise.
85407         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
85408         * modules/mbspbrk-tests (Makefile.am): Likewise.
85409         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
85410         * modules/mbsrchr-tests (Makefile.am): Likewise.
85411         * modules/mbsspn-tests (Makefile.am): Likewise.
85412         * modules/mbsstr-tests (Makefile.am): Likewise.
85413         * modules/printf-posix-tests (Makefile.am): Likewise.
85414         * modules/snprintf-posix-tests (Makefile.am): Likewise.
85415         * modules/sprintf-posix-tests (Makefile.am): Likewise.
85416         * modules/tsearch-tests (Makefile.am): Likewise.
85417         * modules/uniname/uniname-tests (Makefile.am): Likewise.
85418         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
85419         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
85420         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
85421         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
85422         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
85423         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
85424         * modules/vprintf-posix-tests (Makefile.am): Likewise.
85425         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
85426         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
85427         * modules/xstrtoimax-tests (Makefile.am): Likewise.
85428         * modules/xstrtol-tests (Makefile.am): Likewise.
85429         * modules/xstrtoumax-tests (Makefile.am): Likewise.
85430         * modules/yesno-tests (Makefile.am): Likewise.
85432 2007-10-03  Bruno Haible  <bruno@clisp.org>
85434         * modules/trunc-tests: New file.
85435         * tests/test-trunc.c: New file.
85437         * modules/trunc: New file.
85438         * lib/trunc.c: New file.
85439         * m4/trunc.m4: New file.
85440         * lib/math.in.h (trunc): New declaration.
85441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
85442         HAVE_DECL_TRUNC.
85443         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
85444         HAVE_DECL_TRUNC.
85445         * doc/functions/trunc.texi: Mention the 'trunc' module.
85447 2007-10-03  Bruno Haible  <bruno@clisp.org>
85449         * tests/test-fpending.c: New file, mostly copied
85450         from coreutils/lib/t-fpending.c.
85451         * modules/fpending-tests: New file.
85453 2007-10-03  Bruno Haible  <bruno@clisp.org>
85455         Port the stdio extensions to QNX (untested).
85456         * lib/fseterr.c (fseterr): Add support for QNX.
85457         * lib/fbufmode.c (fbufmode): Likewise.
85458         * lib/freadable.c (freadable): Likewise.
85459         * lib/fwritable.c (fwritable): Likewise.
85460         * lib/freading.c (freading): Likewise.
85461         * lib/fwriting.c (fwriting): Likewise.
85462         * lib/freadahead.c (freadahed): Likewise.
85463         * lib/fpurge.c (fpurge): Likewise.
85464         * lib/fseeko.c (rpl_fseeko): Likewise.
85466 2007-10-03  Bruno Haible  <bruno@clisp.org>
85467             Jim Meyering  <jim@meyering.net>
85468             Eric Blake  <ebb9@byu.net>
85470         * doc/relocatable.texi: Use @command instead of @program.
85472 2007-10-02  Jim Meyering  <jim@meyering.net>
85474         Perform one more "_.h" -> ".in.h" substitution.
85475         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
85476         instead of unistd_.h here, too.
85478 2007-10-01  Bruno Haible  <bruno@clisp.org>
85480         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
85481         Needed for the alloca-opt module.
85483 2007-09-30  Bruno Haible  <bruno@clisp.org>
85485         * lib/alloca.in.h: Renamed from lib/alloca_.h.
85486         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
85487         alloca_.h.
85488         * lib/argz.in.h: Renamed from lib/argz_.h.
85489         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
85490         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
85491         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
85492         byteswap_.h.
85493         * lib/dirent.in.h: Renamed from lib/dirent_.h.
85494         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
85495         dirent_.h.
85496         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
85497         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
85498         fcntl_.h.
85499         * lib/float.in.h: Renamed from lib/float_.h.
85500         * modules/float (Files, Makefile.am): Use float.in.h instead of
85501         float_.h.
85502         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
85503         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
85504         fnmatch_.h.
85505         * lib/getopt.in.h: Renamed from lib/getopt_.h.
85506         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
85507         getopt_.h.
85508         * lib/glob.in.h: Renamed from lib/glob_.h.
85509         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
85510         * lib/iconv.in.h: Renamed from lib/iconv_.h.
85511         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
85512         iconv_.h.
85513         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
85514         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
85515         inttypes_.h.
85516         * lib/locale.in.h: Renamed from lib/locale_.h.
85517         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
85518         locale_.h.
85519         * lib/math.in.h: Renamed from lib/math_.h.
85520         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
85521         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
85522         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
85523         of netinet_in_.h. Add dependency.
85524         * lib/poll.in.h: Renamed from lib/poll_.h.
85525         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
85526         * lib/search.in.h: Renamed from lib/search_.h.
85527         * modules/search (Files, Makefile.am): Use search.in.h instead of
85528         search_.h.
85529         * lib/signal.in.h: Renamed from lib/signal_.h.
85530         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
85531         _signal.h.
85532         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
85533         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
85534         stdbool_.h.
85535         * lib/stdint.in.h: Renamed from lib/stdint_.h.
85536         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
85537         stdint_.h.
85538         * lib/stdio.in.h: Renamed from lib/stdio_.h.
85539         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
85540         stdio_.h.
85541         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
85542         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
85543         stdlib_.h.
85544         * lib/string.in.h: Renamed from lib/string_.h.
85545         * modules/string (Files, Makefile.am): Use string.in.h instead of
85546         string_.h.
85547         * doc/gnulib-tool.texi (Initial import): Update.
85548         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
85549         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
85550         of sys_select_.h. Add dependency.
85551         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
85552         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
85553         of sys_socket_.h.
85554         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
85555         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
85556         sys_stat_.h.
85557         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
85558         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
85559         sys_time_.h.
85560         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
85561         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
85562         sysexits_.h.
85563         * lib/time.in.h: Renamed from lib/time_.h.
85564         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
85565         * lib/unistd.in.h: Renamed from lib/unistd_.h.
85566         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
85567         unistd_.h.
85568         * lib/wchar.in.h: Renamed from lib/wchar_.h.
85569         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
85570         wchar_.h.
85571         * lib/wctype.in.h: Renamed from lib/wctype_.h.
85572         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
85573         wctype_.h.
85574         * build-aux/bootstrap (slurp): Update.
85575         * lib/.cppi-disable: Update.
85577 2007-09-30  Bruno Haible  <bruno@clisp.org>
85579         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
85580         Needed on BeOS.
85582 2007-09-30  Bruno Haible  <bruno@clisp.org>
85584         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
85586 2007-09-29  Bruno Haible  <bruno@clisp.org>
85588         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
85590 2007-09-29  Bruno Haible  <bruno@clisp.org>
85592         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
85593         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
85594         * build-aux/install-reloc: Compile also areadlink.c.
85595         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
85597 2007-09-29  Bruno Haible  <bruno@clisp.org>
85599         * gnulib-tool (func_emit_initmacro_done): Indentation.
85601 2007-09-29  Bruno Haible  <bruno@clisp.org>
85603         * README: Add CVS checkout update instructions.
85604         Info from Bob Proulx <bob@proulx.com>.
85606 2007-09-28  Eric Blake  <ebb9@byu.net>
85608         Provide move-if-change.
85609         * build-aux/move-if-change: New file, based on best practice
85610         rather than any canonical upstream location.
85612 2007-09-28  Jim Meyering  <jim@meyering.net>
85614         Fix canonicalize loop-detection corner case.
85615         Do not attempt to stat the symlink values stored via seen_triple.
85616         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
85617         on linux-2.6.18, (but not 2.6.22).
85618         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
85619         triple_compare.  The former compares dev,ino,filename, while the latter
85620         would actually stat dirname(filename) when dev and ino were equal.
85621         * lib/hash-triple.c: Install <string.h>.
85622         (STREQ): Define.
85623         (triple_compare_ino_str): New function.
85624         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
85626 2007-09-28  Eric Blake  <ebb9@byu.net>
85628         Enforce that AC_REPLACE_FUNCS files exist.
85629         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
85630         override check for typos.
85632         Fix test-closein on Solaris 10.
85633         * tests/test-closein.c (main): Don't assume stdin can be inherited
85634         closed on all systems.
85635         * tests/test-closein.sh: Likewise.
85636         Reported by Piotr Tarnowski.
85638 2007-09-28  Jim Meyering  <jim@meyering.net>
85640         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
85642 2007-09-27  Jim Meyering  <jim@meyering.net>
85644         canonicalize: Avoid a false-positive cycle failure.
85645         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
85646         Sort.  Remove cycle-check.
85647         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
85648         not cycle-check.h.
85649         (seen_triple): New function.
85650         (canonicalize_filename_mode): Use it instead of cycle-check.
85651         * tests/test-canonicalize.c: Add a test for this bug.
85652         * tests/test-canonicalize.sh: Set up and run the test.
85654         New module, file-set, from coreutils.
85655         * modules/file-set: Define it.
85656         * lib/file-set.c, lib/file-set.h: Implement.
85658         New module, hash-triple, from coreutils.
85659         * modules/hash-triple: Define it.
85660         * lib/hash-triple.c, lib/hash-triple.h: Implement.
85662 2007-09-25  Eric Blake  <ebb9@byu.net>
85664         Fix strerror on Interix.
85665         * lib/string_.h (strerror): Declare replacement.
85666         * doc/functions/strerror.texi (strerror): Document the Interix
85667         shortcoming.
85668         * modules/string (Makefile.am): Support new hooks.
85669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
85670         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
85671         gl_FUNC_STRERROR_SEPARATE.
85672         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
85673         * lib/strerror.c (rpl_strerror): Provide replacement.
85674         * modules/strerror (Depends-on): Add string.
85675         (configure.ac): Detect use of module.
85676         * tests/test-strerror.c: New file.
85677         * modules/strerror-tests: New test module.
85678         * modules/argp (Depends-on): Add strerror.
85679         * modules/error (Depends-on): Likewise.
85680         Reported by Martin Koeppe.
85682 2007-09-24  Bruno Haible  <bruno@clisp.org>
85684         * README: Update git instructions.
85686 2007-09-24  Eric Blake  <ebb9@byu.net>
85688         Revert fpending breakage from 2007-09-08.
85689         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
85690         __fpending.c.
85692 2007-09-24  Jim Meyering  <jim@meyering.net>
85694         filenamecat.c: Add a test.
85695         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
85696         showing how the function works when DIR is the empty string.
85698 2007-09-21  Simon Josefsson  <simon@josefsson.org>
85700         * tests/test-canonicalize.sh: Turn on executable bit.
85702 2007-09-19  Eric Blake  <ebb9@byu.net>
85704         * README: Update CVS instructions.
85706 2007-09-18  Bruno Haible  <bruno@clisp.org>
85708         * modules/areadlink: New file.
85709         * lib/areadlink.h (areadlink): New declaration.
85710         * lib/areadlink.c: New file, based on lib/xreadlink.c.
85712 2007-09-17  Jim Meyering  <jim@meyering.net>
85714         * lib/savewd.c (ESTALE) [!defined]: Define.
85715         Reported to be required on Interix by Martin Koeppe.
85717 2007-09-17  Bruno Haible  <bruno@clisp.org>
85719         * gnulib-tool (func_version): Use $version.
85721 2007-09-16  Bruno Haible  <bruno@clisp.org>
85723         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
85724         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
85725         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
85726         Reported by Greg Schafer <gschafer@zip.com.au>.
85728 2007-09-15  Bruno Haible  <bruno@clisp.org>
85730         * gnulib-tool (sed): Try a little harder to make bash understand the
85731         alias.
85732         Reported by Bruce Korb <bruce.korb@gmail.com>.
85734 2007-09-13  Eric Blake  <ebb9@byu.net>
85736         * ChangeLog: Remove conflict markers.
85738 2007-09-13  Simon Josefsson  <simon@josefsson.org>
85740         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
85741         Reported by Bruno Haible <bruno@clisp.org>.
85743 2007-09-12  Bruno Haible  <bruno@clisp.org>
85745         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
85746         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
85747         is not defined.
85749 2007-09-12  Eric Blake  <ebb9@byu.net>
85751         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
85752         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
85753         Autoconf definition.
85754         * modules/euidaccess (Depends-on): Add extensions, for
85755         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
85756         * modules/fnmatch (Depends-on): Likewise.
85757         * modules/getaddrinfo (Depends-on): Likewise.
85758         * modules/getdelim (Depends-on): Likewise.
85759         * modules/getline (Depends-on): Likewise.
85760         * modules/getsubopt (Depends-on): Likewise.
85761         * modules/gettext (Depends-on): Likewise.
85762         * modules/group-member (Depends-on): Likewise.
85763         * modules/mbchar (Depends-on): Likewise.
85764         * modules/memmem (Depends-on): Likewise.
85765         * modules/mempcpy (Depends-on): Likewise.
85766         * modules/memrchr (Depends-on): Likewise.
85767         * modules/pagealign_alloc (Depends-on): Likewise.
85768         * modules/readutmp (Depends-on): Likewise.
85769         * modules/stpcpy (Depends-on): Likewise.
85770         * modules/stpncpy (Depends-on): Likewise.
85771         * modules/strchrnul (Depends-on): Likewise.
85772         * modules/strndup (Depends-on): Likewise.
85773         * modules/strsep (Depends-on): Likewise.
85774         * modules/strverscmp (Depends-on): Likewise.
85775         * modules/vasprintf (Depends-on): Likewise.
85776         * modules/wcwidth (Depends-on): Likewise.
85777         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
85778         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
85779         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
85780         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
85781         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
85782         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
85783         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
85784         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
85785         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
85786         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
85787         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
85788         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
85789         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
85790         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
85791         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
85792         * m4/readutmp.m4 (gl_READUTMP): Likewise.
85793         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
85794         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
85795         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
85796         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
85797         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
85798         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
85799         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
85800         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
85801         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
85802         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
85803         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
85804         so that lock.m4 can be used in gettext without extensions module.
85806 2007-09-11  Bruno Haible  <bruno@clisp.org>
85808         * m4/isc-posix.m4: Remove file.
85809         Suggested by Eric Blake.
85811 2007-09-11  Eric Blake  <ebb9@byu.net>
85813         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
85815 2007-09-10  Bruno Haible  <bruno@clisp.org>
85817         * posix-modules: Fix typo in error message.
85818         Reported by Matt <mkraai@beckman.com>.
85820 2007-09-09  Bruno Haible  <bruno@clisp.org>
85822         * doc/functions/getdelim.texi: Update list of platforms lacking the
85823         function.
85824         * doc/functions/getline.texi: Likewise.
85826 2007-09-09  Jim Meyering  <jim@meyering.net>
85828         * lib/hash.c (hash_initialize): Detect calloc failure.
85829         Reported by Bruno Haible.
85831 2007-09-09  Bruno Haible  <bruno@clisp.org>
85833         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
85834         malloc or realloc fails.
85836 2007-09-09  Bruno Haible  <bruno@clisp.org>
85838         * modules/getcwd (Depends-on): Add malloc-posix.
85839         * modules/glob (Depends-on): Likewise.
85840         * modules/putenv (Depends-on): Likewise.
85841         * modules/strdup (Depends-on): Likewise.
85842         * modules/getdelim (Depends-on): Add realloc-posix.
85843         * modules/read-file (Depends-on): Likewise.
85845 2007-09-09  Bruno Haible  <bruno@clisp.org>
85847         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
85848         (gl_FUNC_MALLOC_POSIX): Require it.
85849         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
85850         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
85851         * modules/realloc (Files): Add m4/malloc.m4.
85852         * modules/calloc (Files): Likewise.
85854 2007-09-09  Bruno Haible  <bruno@clisp.org>
85856         * modules/malloc-posix: New file.
85857         * modules/malloc (Depends-on): Add malloc-posix.
85858         * lib/malloc.c: Include errno.h.
85859         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
85860         and a POSIX-compatible malloc into a single function. Set ENOMEM
85861         when returning NULL.
85862         * m4/malloc.m4: New file.
85863         * doc/functions/malloc.texi: Mention the malloc-posix module.
85864         * lib/stdlib_.h (malloc): New declaration.
85865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
85866         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
85867         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
85868         and HAVE_MALLOC_POSIX.
85870 2007-09-09  Bruno Haible  <bruno@clisp.org>
85872         * modules/realloc-posix: New file.
85873         * modules/realloc (Depends-on): Add realloc-posix.
85874         * lib/realloc.c: Include errno.h.
85875         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
85876         and a POSIX-compatible realloc into a single function. Set ENOMEM
85877         when returning NULL.
85878         * m4/realloc.m4: New file.
85879         * doc/functions/realloc.texi: Mention the realloc-posix module.
85880         * lib/stdlib_.h (realloc): New declaration.
85881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
85882         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
85883         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
85884         and HAVE_REALLOC_POSIX.
85886 2007-09-09  Bruno Haible  <bruno@clisp.org>
85888         * modules/calloc-posix: New file.
85889         * modules/calloc (Depends-on): Add calloc-posix.
85890         * lib/calloc.c: Include errno.h.
85891         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
85892         and a POSIX-compatible calloc into a single function. Set ENOMEM
85893         when returning NULL.
85894         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
85895         * doc/functions/calloc.texi: Mention the calloc-posix module.
85896         * lib/stdlib_.h (calloc): New declaration.
85897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
85898         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
85899         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
85900         and HAVE_CALLOC_POSIX.
85902 2007-09-09  Bruno Haible  <bruno@clisp.org>
85904         Allow for modules to show an arbitrary notice.
85905         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
85906         * gnulib-tool: New option --extract-notice.
85907         (func_usage): Document it.
85908         (sed_extract_prog): Update.
85909         (func_get_notice): New function.
85910         (func_modules_notice): New function.
85911         (func_import, func_create_testdir): Invoke it.
85912         Suggested by Jim Meyering.
85914 2007-09-09  Bruno Haible  <bruno@clisp.org>
85916         * gnulib-tool: New options --verbose, --quiet.
85917         (func_usage): Document them.
85918         (verbose): New variable.
85919         (func_execute_command): New function.
85920         (func_import): Don't show the module list and the file list if
85921         $verbose < 0.
85922         (func_create_testdir): Likewise. Use func_execute_command.
85923         (func_create_megatestdir): Use func_execute_command.
85925 2007-09-08  Bruno Haible  <bruno@clisp.org>
85927         * gnulib-tool (func_import): Prefer rsync over wget when available,
85928         for fetching the PO files.
85930 2007-09-08  Bruno Haible  <bruno@clisp.org>
85932         * posix-modules: New file. Portions copied from gnulib-tool.
85933         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
85935 2007-09-08  Jim Meyering  <jim@meyering.net>
85937         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
85938         * lib/fpending.h: Rename from __fpending.h.
85939         * lib/fpending.c: Rename from __fpending.c.
85940         Include "fpending.h", not "__fpending.h".
85941         * lib/__fpending.h, lib/__fpending.c: Remove files.
85942         * modules/fpending (Files): Reflect new file names.
85943         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
85945 2007-09-08  Bruno Haible  <bruno@clisp.org>
85947         * m4/inttypes-h.m4: Remove stub file.
85949 2007-09-07  Simon Josefsson  <simon@josefsson.org>
85951         * doc/headers/stdint.texi: Discuss #include_next issue.
85953 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85955         * build-aux/bootstrap: Remove obsolete comment about wget --help.
85957 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85959         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
85960         in variable name.
85962 2007-09-03  Jim Meyering  <jim@meyering.net>
85964         New module: git-version-gen.
85965         * modules/git-version-gen: New file.
85967         Import changes from coreutils for bootstrap script.
85969         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
85971         bootstrap: uses rsync to download the .po files
85972         * build-aux/bootstrap (po_download_command_format): New global.
85973         (download_po_files): Use rsync.
85974         (update_po_files): Don't remove .po files after download,
85975         so future rsync runs can take advantage of the copies.
85977         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
85979         Solve the unnecessary-.po-file-regeneration problem once and for all.
85980         * build-aux/bootstrap (download_po_files): New function, renamed from
85981         get_translations.  Now, downloads, but doesn't update LINGUAS.
85982         (update_po_files): New function.
85984         bootstrap: Ignore more.
85985         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
85986         uniwidth to e.g., lib/.gitignore.
85987         (slurp): Handle the sys_stat_.h -> sys mapping, too.
85989         * build-aux/bootstrap: New setting: vc_ignore.
85990         (insert_sorted_if_absent): Create $file if absent.
85991         Adapt to new, possibly empty, list: $vc_ignore.
85993         bootstrap: generate more ignorable names
85994         * build-aux/bootstrap (slurp): When generating ignorable names,
85995         also map .sin to .sed, .gperf to .c, and .y to .c.
85997 2007-09-03  Jim Meyering  <jim@meyering.net>
85999         * build-aux/git-version-gen: New file, from coreutils.  For details, see
86000         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
86002 2007-09-02  Bruno Haible  <bruno@clisp.org>
86004         Fix mis-recognition of 'mcs' on QNX 6.
86005         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
86006         output contains the string "Mono".
86007         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
86008         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
86010 2007-09-01  Bruno Haible  <bruno@clisp.org>
86012         Fix collision between uniwidth/* and linebreak modules.
86013         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
86014         u32_width): Remove declarations.
86015         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
86016         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
86017         streq3, streq2, streq1, streq0): Remove functions.
86018         (STREQ): Remove macro.
86019         (is_cjk_encoding): Remove function.
86020         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
86021         (uc_width, u8_width, u16_width, u32_width): Remove functions.
86022         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
86023         * NEWS: Document the change.
86025 2007-09-01  Bruno Haible  <bruno@clisp.org>
86027         * lib/streq.h: Add double-inclusion guard.
86029 2007-09-01  Karl Berry  <karl@gnu.org>
86031         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
86033 2007-08-28  Jim Meyering  <jim@meyering.net>
86035         Rename mreadlink_with_size to areadlink_with_size.
86036         * NEWS: Document the change.
86037         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
86038         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
86039         * lib/mreadlink.h: Rename this to...
86040         * lib/areadlink.h: ...this.
86041         * modules/mreadlink-with-size: Rename this to...
86042         * modules/areadlink-with-size: ...this.
86043         * lib/canonicalize.c: Reflect the renaming.
86044         * modules/canonicalize: Likewise.
86046 2007-08-26  Bruno Haible  <bruno@clisp.org>
86048         * gnulib-tool (func_import): When deciding which files to remove,
86049         consider also dangling symbolic links.
86050         Reported by Eric Blake.
86052 2007-08-26  Bruno Haible  <bruno@clisp.org>
86054         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
86056 2007-08-23  Simon Josefsson  <simon@josefsson.org>
86058         * lib/readline.c: Don't include getline.h, the prototype is now
86059         found in stdio.h.
86061 2007-08-23  Jim Meyering  <jim@meyering.net>
86063         Getdelim touchup.
86064         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
86065         around the funlockfile call, since funlockfile never sets errno.
86066         Don't set errno upon failed realloc.
86068 2007-08-22  Eric Blake  <ebb9@byu.net>
86070         Getline touchups.
86071         * lib/getdelim.c (getdelim): Revert regression that required *n to
86072         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
86073         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
86074         getdelim, rather than whether implementation is missing.
86075         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
86076         * lib/stdio_.h (getline): Also declare if replacement is
86077         required.
86078         * doc/functions/getdelim.texi: New file.
86079         * doc/functions/getline.texi: Likewise.
86080         * doc/gnulib.texi (Function Substitutes): Add new files.
86081         Reported by Bruno Haible.
86083 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
86085         * users.txt: Add Guile.
86087 2007-08-22  Eric Blake  <ebb9@byu.net>
86089         * tests/test-getdelim.c (main): Use remove, not unlink.
86090         * tests/test-getline.c (main): Likewise.
86092         Move getline and getdelim into stdio.h, per POSIX 200x.
86093         * modules/getline (Files): Remove getline.h.
86094         (Depends-on): Add stdio.
86095         (configure.ac): Add module indicator.
86096         * modules/getdelim (Files): Remove getdelim.h.
86097         (Depends-on): Add stdio.
86098         (configure.ac): Add module indicator.
86099         * modules/stdio (Makefile.am): Work with new indicators.
86100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
86101         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
86102         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
86103         * lib/getdelim.h: Delete.
86104         * lib/getline.h: Delete.
86105         * lib/stdio_.h (getdelim, getline): Declare.
86106         * modules/getdelim-tests: New module.
86107         * modules/getline-tests: Likewise.
86108         * tests/test-getdelim.c: New file.
86109         * tests/test-getline.c: Likewise.
86110         * NEWS: Document the change.
86111         * lib/getline.c: Update choice of header.
86112         * lib/csharpcomp.c: Likewise.
86113         * lib/getpass.c: Likewise.
86114         * lib/javacomp.c: Likewise.
86115         * lib/javaversion.c: Likewise.
86116         * lib/yesno.c: Likewise.
86117         * lib/getdelim.c: Likewise.
86118         (getdelim): Set errno on failure, and avoid memory leak.
86120 2007-08-19  Bruno Haible  <bruno@clisp.org>
86122         * modules/closein (Depends-on): Add freadahead.
86123         * lib/closein.c: Include freadahead.h.
86124         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
86125         is zero.
86127 2007-08-19  Bruno Haible  <bruno@clisp.org>
86129         * modules/freadahead-tests: New file.
86130         * tests/test-freadahead.sh: New file.
86131         * tests/test-freadahead.c: New file.
86133         * modules/freadahead: New file.
86134         * lib/freadahead.h: New file.
86135         * lib/freadahead.c: New file.
86136         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
86137         fbufmode, fpurge, freadable, fwritable.
86139 2007-08-19  Eric Blake  <ebb9@byu.net>
86141         Test yesno in combination with closein.
86142         * lib/yesno.c (yesno): Document use of stdin.
86143         * modules/yesno-tests (Files): New module.
86144         * tests/test-yesno.c (main): New file.
86145         * tests/test-yesno.sh: Likewise.
86147 2007-08-19  Bruno Haible  <bruno@clisp.org>
86149         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
86150         * lib/fseeko.c (rpl_fseeko): Likewise.
86151         * lib/fseterr.c (fseterr): Likewise.
86153 2007-08-19  Bruno Haible  <bruno@clisp.org>
86155         * tests/test-lseek.c (main): Disable a test for BeOS.
86156         * doc/functions/lseek.texi: Document the BeOS bug.
86158 2007-08-19  Bruno Haible  <bruno@clisp.org>
86159             Eric Blake  <ebb9@byu.net>
86161         * lib/lseek.c: Include <sys/stat.h>.
86162         (rpl_lseek): Add workaround code also for Unix platforms.
86163         Needed for BeOS.
86164         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
86165         * doc/functions/lseek.texi: Document BeOS definiency.
86167 2007-08-18  Bruno Haible  <bruno@clisp.org>
86169         * modules/fstrcmp-tests: New file.
86170         * tests/test-fstrcmp.c: New file.
86172 2007-08-18  Bruno Haible  <bruno@clisp.org>
86174         * modules/fstrcmp: New file, from GNU gettext with modifications.
86175         * lib/fstrcmp.h: New file, from GNU gettext.
86176         * lib/fstrcmp.c: New file, from GNU gettext.
86177         * MODULES.html.sh (String handling): Add fstrcmp.
86179 2007-08-18  Bruno Haible  <bruno@clisp.org>
86181         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
86182         'bool'.
86183         (diag, compareseq): Remove const from the ctxt argument.
86184         (USE_HEURISTIC): Undefine at the end.
86186 2007-08-18  Jim Meyering  <jim@meyering.net>
86188         New file: lib/idcache.h
86189         * NEWS: Mention the addition.
86190         * modules/idcache (Files): Add lib/idcache.h
86191         * lib/idcache.c: Include "idcache.h".
86192         Don't include <sys/types.h>.
86193         Add a FIXME comment.
86194         Move file-scoped "static" declarations to the top.
86195         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
86197 2007-08-17  Bruno Haible  <bruno@clisp.org>
86198         and Paul Eggert  <eggert@cs.ucla.edu>
86200         * MODULES.html.sh: Add diffseq.
86201         * modules/diffseq: New file.
86202         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
86203         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
86205 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86207         Import changes from coreutils for bootstrap script.
86209         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
86211         * build-aux/bootstrap (slurp): Work even in environments where
86212         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
86213         current code does not slurp files whose names start with ".", and
86214         this looks like it might be a troublesome area.
86216         2007-07-11  Jim Meyering  <jim@meyering.net>
86218         If there's a GPL vN copyright comment, require that N == 3.
86220         2007-07-08  Jim Meyering  <jim@meyering.net>
86222         Run the coreutils-specific code only if tests/Makefile.am.in exists.
86223         * build-aux/bootstrap (mam_template): Move definition out of loop.
86225         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
86227         * build-aux/bootstrap (symlink_to_dir): Rename function from
86228         symlink_to_gnulib.  Add a directory parameter.  Update all
86229         callers.
86230         (cp_mark_as_generated): Also check for -- and link to -- files in
86231         gl/.
86233         2007-07-08  Jim Meyering  <jim@meyering.net>
86235         Adapt to deeper hierarchy in gnulib.
86236         * build-aux/bootstrap (symlink_to_dir): If the destination
86237         directory doesn't exist, create it. This is required at least for
86238         "lib/uniwidth/cjk.h".
86240         2007-05-15  Jim Meyering  <jim@meyering.net>
86242         * build-aux/bootstrap: Now that generated Makefile.am files
86243         are no longer under version control, they must be created at
86244         bootstrap time.
86246 2007-08-14  Ben Pfaff  <blp@gnu.org>
86248         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
86250 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
86252         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
86253         given the changes below.
86254         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
86255         even on hosts that have padding bits beyond the supported 64.
86257 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
86259         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
86260         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
86261         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
86262         depends on it.
86263         (xstrtol_error): Remove.
86264         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
86265         but with a different signature.
86266         (ATTRIBUTE_NORETURN, __attribute__): New macros.
86267         * lib/xstrtol-error.c: Include exitfail.h.
86268         (xstrtol_fatal): New function, with a different signature from the
86269         old xstrtol_error, so that the caller need not worry about passing
86270         in an exit status, or about storage management of the option argument.
86271         (xstrtol_error): Now a static function.  Redo signature to
86272         implement xstrtol_fatal.  Output the correct number of hyphens in
86273         front of the option so that the caller need not worry about
86274         storage management.
86275         (N_): New macro.
86276         (_): Remove; not used now.
86277         * modules/xstrtol: Depend on getopt.
86278         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
86279         of old STRTOL_FATAL_ERROR macro.
86280         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
86281         of test program.
86282         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
86283         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
86285 2007-08-08  Eric Blake  <ebb9@byu.net>
86287         * lib/xstrtol-error.c: Add missing include.
86289         Move xstrtol messages into gnulib domain, when --pobase is used.
86290         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
86291         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
86292         * modules/xstrtol (Files): Distribute new file.
86293         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
86294         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
86295         * tests/test-xstrtol.c: ...into new file.
86296         * tests/test-xstrtoul.c: Also test xstrtoul.
86297         * tests/test-xstrtoimax.c: Also test xstrtoimax.
86298         * tests/test-xstrtoumax.c: Also test xstrtoumax.
86299         * tests/test-xstrtol.sh: Drive the tests.
86300         * tests/test-xstrtoimax.sh: Likewise.
86301         * tests/test-xstrtoumax.sh: Likewise.
86302         * modules/xstrtol-tests: New module.
86303         * modules/xstrtoimax-tests: Likewise.
86304         * modules/xstrtoumax-tests: Likewise.
86306 2007-08-08  Jim Meyering  <jim@meyering.net>
86308         New function: mfile_name_concat.
86309         * lib/filenamecat.c (mfile_name_concat): New function, just like
86310         file_name_concat, but return NULL upon failure rather than exiting
86311         with a diagnostic.
86312         * lib/filenamecat.h: Declare it.
86314 2007-08-07  Bruno Haible  <bruno@clisp.org>
86316         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
86317         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
86318         warning from gcc.
86319         Reported by Eric Blake.
86321 2007-08-07  Simon Josefsson  <simon@josefsson.org>
86323         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
86324         * modules/crypto/arcfour (License): Likewise.
86325         * modules/crypto/des-tests (License): Likewise.
86326         * modules/crypto/gc-arctwo-tests (License): Likewise.
86327         * modules/crypto/gc-des-tests (License): Likewise.
86328         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
86329         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
86330         * modules/crypto/gc-md2-tests (License): Likewise.
86331         * modules/crypto/gc-md4-tests (License): Likewise.
86332         * modules/crypto/gc-md5-tests (License): Likewise.
86333         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
86334         * modules/crypto/gc-rijndael-tests (License): Likewise.
86335         * modules/crypto/gc-sha1-tests (License): Likewise.
86336         * modules/crypto/gc-tests (License): Likewise.
86337         * modules/crypto/hmac-md5 (License): Likewise.
86338         * modules/crypto/hmac-sha1 (License): Likewise.
86339         * modules/crypto/md2-tests (License): Likewise.
86340         * modules/crypto/md4-tests (License): Likewise.
86341         * modules/crypto/md5 (License): Likewise.
86342         * modules/crypto/rijndael (License): Likewise.
86343         * modules/crypto/sha1 (License): Likewise.
86344         * modules/memxor (License): Likewise.
86346 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86347         and Bruno Haible  <bruno@clisp.org>
86349         * NEWS: Describe interface changes to human, xstrtol.
86350         * lib/human.h: Include <xstrtol.h>.
86351         (human_options): Return enum strtol_error, not int.  Remove
86352         bool arg; take int * instead.
86353         * lib/human.c: Don't include "gettext.h".
86354         (_): Remove; no longer used.
86355         Don't include <xstrtol.h>, since human.h does it.
86356         (human_options): Adjust to abovementioned interface changes.
86357         Do not report error to stderr; that's now the caller's
86358         responsibility.
86359         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
86360         interface change.
86361         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
86362         Str, Argument_type_string.  All uses changed.  Put " argument"
86363         in diagnostics to make them clearer.  Change wording of suffix
86364         message for clarity.
86365         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
86366         Argument_type_string.
86367         (STRTOL_FATAL_WARN): Remove; no longer used.
86368         * modules/human (Depends-on): Remove gettext-h.
86370 2007-08-06  Simon Josefsson  <simon@josefsson.org>
86372         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
86374 2007-07-31  Bruno Haible  <bruno@clisp.org>
86376         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
86377         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
86378         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
86380 2007-07-31  Bruno Haible  <bruno@clisp.org>
86382         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
86383         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
86385 2007-07-30  Bruno Haible  <bruno@clisp.org>
86387         * modules/base64 (License): Use the synonymous term "LGPLv2+".
86388         * modules/c-ctype (License): Likewise.
86389         * modules/c-strcase (License): Likewise.
86390         * modules/check-version (License): Likewise.
86391         * modules/iconv (License): Likewise.
86392         * modules/iconv_open (License): Likewise.
86393         * modules/read-file (License): Likewise.
86394         * modules/striconv (License): Likewise.
86395         * modules/strverscmp (License): Likewise.
86396         * modules/vasprintf (License): Likewise.
86397         * modules/crypto/des (License): Likewise.
86398         * modules/crypto/gc (License): Likewise.
86399         * modules/crypto/gc-arcfour (License): Likewise.
86400         * modules/crypto/gc-arctwo (License): Likewise.
86401         * modules/crypto/gc-des (License): Likewise.
86402         * modules/crypto/gc-hmac-md5 (License): Likewise.
86403         * modules/crypto/gc-hmac-sha1 (License): Likewise.
86404         * modules/crypto/gc-md2 (License): Likewise.
86405         * modules/crypto/gc-md4 (License): Likewise.
86406         * modules/crypto/gc-md5 (License): Likewise.
86407         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
86408         * modules/crypto/gc-random (License): Likewise.
86409         * modules/crypto/gc-rijndael (License): Likewise.
86410         * modules/crypto/gc-sha1 (License): Likewise.
86411         * modules/crypto/md2 (License): Likewise.
86412         * modules/crypto/md4 (License): Likewise.
86414 2007-07-30  Jim Meyering  <jim@meyering.net>
86416         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
86417         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
86418         it has valid stat data.  This bug would cause du not to count the
86419         sizes of inaccessible directories.
86420         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
86421         in <http://bugzilla.redhat.com/250077>.
86423 2007-07-25  Peter O'Gorman  <peter@pogma.com>
86424             Bruno Haible  <bruno@clisp.org>
86426         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
86427         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
86428         #include_next, gives a diagnostic about it, but reports no error in
86429         the exit code.
86430         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
86432 2007-07-24  Ben Pfaff  <blp@gnu.org>
86434         Improve name: "count-one-bits" is better than "popcount".
86435         * MODULES.html.sh: Update name.
86436         * lib/popcount.h: Renamed lib/count-one-bits.h.
86437         (popcount): Renamed count_one_bits.
86438         (popcountl): Renamed count_one_bits_l.
86439         (popcountll): Renamed count_one_bits_ll.
86440         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
86441         * modules/popcount: Renamed module/count-one-bits.
86442         * modules/popcount-tests: Renamed module/count-one-bits-tests.
86443         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
86445 2007-07-23  Ben Pfaff  <blp@gnu.org>
86447         * lib/popcount.h (popcount32): Reduce size of constants, to allow
86448         better code generation, and add U to large constants to avoid
86449         warnings, in non-GCC case.
86450         Suggested by Bruno Haible.
86452 2007-07-23  Ben Pfaff  <blp@gnu.org>
86454         * lib/popcount.h: Use verify_true instead of if...abort.
86455         * modules/popcount: Depend on verify module.
86456         Suggested by Jim Meyering.
86458 2007-07-23  Bruno Haible  <bruno@clisp.org>
86460         * gnulib-tool (func_import): Create a .cvsignore file also when the
86461         directory is not yet in CVS but the toplevel directory is. When
86462         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
86463         Reported by Karl Berry.
86465 2007-07-22  Ben Pfaff  <blp@gnu.org>
86467         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
86468         case.
86469         Suggested by Eric Blake.
86471 2007-07-22  Ben Pfaff  <blp@gnu.org>
86473         New module: popcount.
86474         * MODULES.html.sh: Add popcount.
86475         * modules/popcount: New file.
86476         * modules/popcount-tests: New file.
86477         * tests/test-popcount.c: New file.
86478         * lib/popcount.h: New file.
86479         * m4/popcount.m4: New file.
86481 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
86483         * build-aux/announce-gen: Update to GPLv3.
86485         * build-aux/config.guess: Update from config.
86487 2007-07-21  Bruno Haible  <bruno@clisp.org>
86489         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
86490         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
86492 2007-07-20  Jim Meyering  <jim@meyering.net>
86494         * check-module: Diagnose a self-dependency.
86496 2007-07-19  Bruno Haible  <bruno@clisp.org>
86498         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
86499         empty.
86500         Reported by Eric Blake.
86502 2007-07-18  Bruno Haible  <bruno@clisp.org>
86504         * gnulib-tool: New options --po-base, --po-domain.
86505         (func_usage): Document them.
86506         (pobase, po_domain): New variables.
86507         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
86508         DEFAULT_TEXT_DOMAIN.
86509         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
86510         (func_import): Consider pobase and po_domain. Create a po/ directory.
86511         (func_create_testdir): Set pobase and po_domain to empty.
86512         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
86513         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
86515 2007-07-18  Bruno Haible  <bruno@clisp.org>
86517         * gnulib-tool (func_get_automake_snippet): Synthesize also an
86518         EXTRA_DIST augmentation for files in build-aux/.
86520 2007-07-16  Bruno Haible  <bruno@clisp.org>
86522         * modules/lseek (License): Use the synonymous term "LGPLv2+".
86523         * modules/getdelim (License): Likewise.
86525 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86527         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
86528         * modules/d-type (License): Likewise.
86529         * modules/extensions (License): Likewise.
86530         * modules/fnmatch (License): Likewise.
86531         * modules/fseeko (License): Likewise.
86532         * modules/getaddrinfo (License): Likewise.
86533         * modules/getline (License): Likewise.
86534         * modules/getlogin_r (License): Likewise.
86535         * modules/getpass (License): Likewise.
86536         * modules/gettimeofday (License): Likewise.
86537         * modules/glob (License): Likewise.
86538         * modules/inet_ntop (License): Likewise.
86539         * modules/malloc (License): Likewise.
86540         * modules/malloca (License): Likewise.
86541         * modules/memmem (License): Likewise.
86542         * modules/mempcpy (License): Likewise.
86543         * modules/memset (License): Likewise.
86544         * modules/minmax (License): Likewise.
86545         * modules/mktime (License): Likewise.
86546         * modules/netinet_in (License): Likewise.
86547         * modules/pathmax (License): Likewise.
86548         * modules/poll (License): Likewise.
86549         * modules/regex (License): Likewise.
86550         * modules/snprintf (License): Likewise.
86551         * modules/stdbool (License): Likewise.
86552         * modules/stdint (License): Likewise.
86553         * modules/stdio (License): Likewise.
86554         * modules/strcase (License): Likewise.
86555         * modules/strcasestr (License): Likewise.
86556         * modules/strdup (License): Likewise.
86557         * modules/string (License): Likewise.
86558         * modules/strndup (License): Likewise.
86559         * modules/strnlen (License): Likewise.
86560         * modules/strpbrk (License): Likewise.
86561         * modules/strptime (License): Likewise.
86562         * modules/strsep (License): Likewise.
86563         * modules/sys_select (License): Likewise.
86564         * modules/sys_socket (License): Likewise.
86565         * modules/sys_stat (License): Likewise.
86566         * modules/sys_time (License): Likewise.
86567         * modules/time (License): Likewise.
86568         * modules/time_r (License): Likewise.
86569         * modules/timegm (License): Likewise.
86570         * modules/unistd (License): Likewise.
86571         * modules/vsnprintf (License): Likewise.
86572         * modules/wctype (License): Likewise.
86574 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86576         * modules/argz (License): LGPLv2+.
86578 2007-07-15  Karl Berry  <karl@gnu.org>
86580         * doc/gnulib.texi: revise node structure per new fdl.texi.
86582 2007-07-14  Bruno Haible  <bruno@clisp.org>
86584         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
86585         the output file.
86586         * lib/uniname/uninames.h: Regenerated.
86588 2007-07-14  Karl Berry  <karl@gnu.org>
86590         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
86591         omitting sectioning and index commands.
86593 2007-07-13  Bruno Haible  <bruno@clisp.org>
86595         New gnulib-tool option --more-symlinks.
86596         * gnulib-tool (func_usage): Document --more-symlinks.
86597         (do_copyrights): New variable.
86598         Recognize option --more-symlinks.
86599         (func_import): Don't add a copyright notice transform to
86600         sed_transform_lib_file if do_copyrights is empty.
86602 2007-07-13  Bruno Haible  <bruno@clisp.org>
86604         * lib/vasnprintf.c (decimal_point_char): Define also if
86605         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
86606         && !NEED_PRINTF_DIRECTIVE_A.
86607         Reported by Clemens Koller <clemens.koller@anagramm.de> via
86608         Gary V. Vaughan <gary@gnu.org>.
86610 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
86612         * lib/inttypes_.h: Undo previous change, since it was fixed
86613         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
86615 2007-07-13  Bruno Haible  <bruno@clisp.org>
86617         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
86618         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
86620 2007-07-13  Jim Meyering  <jim@meyering.net>
86622         df: Don't fail for Tru64's "file-on-file mount".
86623         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
86624         so we fall through and use statfs instead.  Details here:
86625         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
86626         Reported by Albert Chin.
86628 2007-07-13  Bruno Haible  <bruno@clisp.org>
86630         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
86631         * modules/configmake (License): Likewise.
86632         * modules/gettext (License): Likewise.
86633         * modules/gettext-h (License): Likewise.
86634         * modules/include_next (License): Likewise.
86635         * modules/link-warning (License): Likewise.
86636         * modules/localcharset (License): Likewise.
86637         * modules/localename (License): Likewise.
86638         * modules/lock (License): Likewise.
86639         * modules/relocatable-lib-lgpl (License): Likewise.
86640         * modules/size_max (License): Likewise.
86641         * modules/vasnprintf (License): Likewise.
86642         * modules/wchar (License): Likewise.
86643         * modules/xsize (License): Likewise.
86645 2007-07-13  Bruno Haible  <bruno@clisp.org>
86647         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
86648         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
86650 2007-07-12  Bruno Haible  <bruno@clisp.org>
86652         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
86653         in the modules files.
86655 2007-07-11  Karl Berry  <karl@gnu.org>
86657         * MODULES.html.sh (func_module): use
86658          sed -e '\|^'"${includefile}"'$|d'
86659          instead of /.../d, to avoid errors on $includefile's containing /.
86661 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
86663         * gnulib-tool (func_import): Avoid duplication of --avoid
86664         statements
86665         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
86666         names to `_' in variable names.
86668 2007-07-10  Eric Blake  <ebb9@byu.net>
86670         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
86671         * NEWS: Document this change.
86673 2007-07-08  Bruno Haible  <bruno@clisp.org>
86675         Update to Unicode 5.0.
86676         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
86677         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
86678         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
86679         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
86680         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
86681         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
86682         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
86683         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
86684         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
86685         U+10A3F, U+1D242..U+1D244.
86686         (nonspacing_table_ind): Update.
86687         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
86688         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
86690 2007-07-08  Bruno Haible  <bruno@clisp.org>
86692         Update to Unicode 5.0.
86693         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
86694         code transform. Extend the name index field of unicode_name_to_code and
86695         unicode_code_to_name from 16 to 24 bits.
86696         * lib/uniname/uniname.c (unicode_character_name,
86697         unicode_name_character): Add the range 0x12xxx to the code transform.
86698         * lib/uniname/uninames.h: Regenerated.
86699         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
86701 2007-07-07  Bruno Haible  <bruno@clisp.org>
86703         * modules/wcwidth-tests: New file.
86704         * tests/test-wcwidth.c: New file.
86706         Work around MacOS X wcwidth() bug.
86707         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
86708         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
86709         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
86710         original wcwidth in non-UTF-8 locales.
86711         * modules/wcwidth (Depends-on): Add localcharset, streq,
86712         uniwidth/width.
86713         * doc/functions/wcwidth.texi: Update.
86715 2007-07-07  Bruno Haible  <bruno@clisp.org>
86717         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
86718         (wcwidth): New declaration.
86719         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
86720         macros.
86721         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
86722         here. Prepare for creating <wchar.h> unconditionally.
86723         * modules/wchar (Depends-on): Add link-warning.
86724         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
86725         REPLACE_WCWIDTH, and GL_LINK_WARNING.
86726         * lib/wcwidth.h: Remove file.
86727         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
86728         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
86729         * modules/wcwidth (Files): Remove lib/wcwidth.h.
86730         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
86731         (Include): Replace wcwidth.h with <wchar.h>.
86732         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
86733         * lib/mbchar.h: Don't include wcwidth.h.
86734         * lib/mbswidth.c: Likewise.
86735         * NEWS: Mention the change.
86737 2007-07-07  Bruno Haible  <bruno@clisp.org>
86739         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
86740         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
86741         definition with an external declaration.
86742         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
86743         defined as a function. Remove AC_C_INLINE requirement.
86744         * modules/wcwidth (Files): Add lib/wcwidth.c.
86745         (Makefile.am): Remove redundant statement.
86747 2007-07-07  Bruno Haible  <bruno@clisp.org>
86749         * MODULES.html.sh (Unicode string functions): Add the new modules.
86751         * tests/uniwidth/test-u32-strwidth.c: New file.
86752         * modules/uniwidth/u32-strwidth-tests: New file.
86754         * lib/uniwidth/u32-strwidth.c: New file.
86755         * modules/uniwidth/u32-strwidth: New file.
86757         * tests/uniwidth/test-u16-strwidth.c: New file.
86758         * modules/uniwidth/u16-strwidth-tests: New file.
86760         * lib/uniwidth/u16-strwidth.c: New file.
86761         * modules/uniwidth/u16-strwidth: New file.
86763         * tests/uniwidth/test-u8-strwidth.c: New file.
86764         * modules/uniwidth/u8-strwidth-tests: New file.
86766         * lib/uniwidth/u8-strwidth.c: New file.
86767         * modules/uniwidth/u8-strwidth: New file.
86769         * tests/uniwidth/test-u32-width.c: New file.
86770         * modules/uniwidth/u32-width-tests: New file.
86772         * lib/uniwidth/u32-width.c: New file.
86773         * modules/uniwidth/u32-width: New file.
86775         * tests/uniwidth/test-u16-width.c: New file.
86776         * modules/uniwidth/u16-width-tests: New file.
86778         * lib/uniwidth/u16-width.c: New file.
86779         * modules/uniwidth/u16-width: New file.
86781         * tests/uniwidth/test-u8-width.c: New file.
86782         * modules/uniwidth/u8-width-tests: New file.
86784         * lib/uniwidth/u8-width.c: New file.
86785         * modules/uniwidth/u8-width: New file.
86787         * tests/uniwidth/test-uc_width.c: New file.
86788         * modules/uniwidth/width-tests: New file.
86790         * lib/uniwidth/width.c: New file, from GNU libiconv.
86791         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
86792         * modules/uniwidth/width: New file.
86794         * lib/uniwidth.h: New file, from GNU libiconv.
86795         * modules/uniwidth/base: New file.
86797 2007-07-07  Bruno Haible  <bruno@clisp.org>
86799         * lib/uniname.h: New file, from GNU gettext.
86800         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
86801         * lib/uniname/uninames.h: New file, from GNU gettext.
86802         * lib/uniname/uniname.c: New file, from GNU gettext.
86803         * tests/uniname/test-uninames.sh: New file.
86804         * tests/uniname/test-uninames.c: New file, from GNU gettext.
86805         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
86806         * modules/uniname/base: New file.
86807         * modules/uniname/uniname: New file.
86808         * modules/uniname/uniname-tests: New file.
86809         * MODULES.html.sh (Unicode string functions): Add the new modules.
86811 2007-07-06  Bruno Haible  <bruno@clisp.org>
86813         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
86815 2007-07-06  Bruno Haible  <bruno@clisp.org>
86817         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
86818         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
86819         includes <cygwin/sys_time.h> which includes <sys/select.h> which
86820         include <sys/time.h>.
86821         Reported by Eric Blake.
86823 2007-07-06  Eric Blake  <ebb9@byu.net>
86825         Fix testing canonicalize on cygwin.
86826         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
86827         Revert patch from 2007-06-19.
86828         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
86829         canonicalize module is also in use.
86830         * tests/test-canonicalize.c: New file.
86831         * tests/test-canonicalize.sh: Likewise.
86832         * modules/canonicalize-tests: Likewise.
86834 2007-07-06  Jim Meyering  <jim@meyering.net>
86836         * lib/getugroups.c (getugroups): Detect getgrent failure.
86837         Adjust comment to reflect reality: this function may return -1.
86839 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
86841         * build-aux/bootstrap (TP_URL,get_translations): Update to use
86842         the new TP address.
86843         (usage): Fix typo
86844         (gnulib_mk): New variable.
86846 2007-07-05  Jim Meyering  <jim@meyering.net>
86848         Don't let endgrent clobber errno, no matter how improbable.
86849         * lib/getugroups.c (getugroups): Save and restore errno around
86850         endgrent call.
86852         Close the group DB even when failing with 2^31 or more members.
86853         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
86855 2007-07-04  Jim Meyering  <jim@meyering.net>
86857         * lib/getugroups.h: New file.
86858         * lib/getugroups.c: Include "getugroups.h".
86859         Remove uses of "register" keyword.
86860         Move local variable, "cp", down into scope where used.
86861         Give "username" parameter the "const" attribute.
86862         * modules/getugroups (Files): Add lib/getugroups.h
86864 2007-07-04  Karl Berry  <karl@gnu.org>
86866         * MODULES.html.sh (func_all_modules): Complete rename of
86867         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
86869 2007-07-02  Bruno Haible  <bruno@clisp.org>
86871         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
86872         mode, when inttypes.h comes from gnulib.
86873         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
86875 2007-07-02  Simon Josefsson  <simon@josefsson.org>
86877         * NEWS: Mention lgpl module name change.
86879         * modules/lgpl-2.1: Renamed from lgpl.
86881         * NEWS: Mention gpl module name change.
86883         * modules/gpl-3.0: New file, based on gpl-2.0.
86885         * modules/gpl-2.0: Renamed from gpl.
86887         * modules/gpl: Fix filename, doc/gpl.texi is now found at
86888         doc/gpl-2.0.texi.
86890 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
86892         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
86893         #define __STDC_LIMIT_MACROS temporarily while including
86894         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
86895         Problem reported by Joel E. Denny in
86896         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
86898 2007-07-01  Bruno Haible  <bruno@clisp.org>
86900         * lib/unistdio.h: New file.
86901         * lib/unistdio/u-asnprintf.h: New file.
86902         * lib/unistdio/u-asprintf.h: New file.
86903         * lib/unistdio/u-printf-args.c: New file.
86904         * lib/unistdio/u-printf-args.h: New file.
86905         * lib/unistdio/u-printf-parse.h: New file.
86906         * lib/unistdio/u-snprintf.h: New file.
86907         * lib/unistdio/u-sprintf.h: New file.
86908         * lib/unistdio/u-vasprintf.h: New file.
86909         * lib/unistdio/u-vsnprintf.h: New file.
86910         * lib/unistdio/u-vsprintf.h: New file.
86911         * lib/unistdio/ulc-asnprintf.c: New file.
86912         * lib/unistdio/ulc-asprintf.c: New file.
86913         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
86914         * lib/unistdio/ulc-printf-parse.c: New file.
86915         * lib/unistdio/ulc-snprintf.c: New file.
86916         * lib/unistdio/ulc-sprintf.c: New file.
86917         * lib/unistdio/ulc-vasnprintf.c: New file.
86918         * lib/unistdio/ulc-vasprintf.c: New file.
86919         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
86920         * lib/unistdio/ulc-vsnprintf.c: New file.
86921         * lib/unistdio/ulc-vsprintf.c: New file.
86922         * lib/unistdio/u8-asnprintf.c: New file.
86923         * lib/unistdio/u8-asprintf.c: New file.
86924         * lib/unistdio/u8-printf-parse.c: New file.
86925         * lib/unistdio/u8-snprintf.c: New file.
86926         * lib/unistdio/u8-sprintf.c: New file.
86927         * lib/unistdio/u8-vasnprintf.c: New file.
86928         * lib/unistdio/u8-vasprintf.c: New file.
86929         * lib/unistdio/u8-vsnprintf.c: New file.
86930         * lib/unistdio/u8-vsprintf.c: New file.
86931         * lib/unistdio/u8-u8-asnprintf.c: New file.
86932         * lib/unistdio/u8-u8-asprintf.c: New file.
86933         * lib/unistdio/u8-u8-snprintf.c: New file.
86934         * lib/unistdio/u8-u8-sprintf.c: New file.
86935         * lib/unistdio/u8-u8-vasnprintf.c: New file.
86936         * lib/unistdio/u8-u8-vasprintf.c: New file.
86937         * lib/unistdio/u8-u8-vsnprintf.c: New file.
86938         * lib/unistdio/u8-u8-vsprintf.c: New file.
86939         * lib/unistdio/u16-asnprintf.c: New file.
86940         * lib/unistdio/u16-asprintf.c: New file.
86941         * lib/unistdio/u16-printf-parse.c: New file.
86942         * lib/unistdio/u16-snprintf.c: New file.
86943         * lib/unistdio/u16-sprintf.c: New file.
86944         * lib/unistdio/u16-vasnprintf.c: New file.
86945         * lib/unistdio/u16-vasprintf.c: New file.
86946         * lib/unistdio/u16-vsnprintf.c: New file.
86947         * lib/unistdio/u16-vsprintf.c: New file.
86948         * lib/unistdio/u16-u16-asnprintf.c: New file.
86949         * lib/unistdio/u16-u16-asprintf.c: New file.
86950         * lib/unistdio/u16-u16-snprintf.c: New file.
86951         * lib/unistdio/u16-u16-sprintf.c: New file.
86952         * lib/unistdio/u16-u16-vasnprintf.c: New file.
86953         * lib/unistdio/u16-u16-vasprintf.c: New file.
86954         * lib/unistdio/u16-u16-vsnprintf.c: New file.
86955         * lib/unistdio/u16-u16-vsprintf.c: New file.
86956         * lib/unistdio/u32-asnprintf.c: New file.
86957         * lib/unistdio/u32-asprintf.c: New file.
86958         * lib/unistdio/u32-printf-parse.c: New file.
86959         * lib/unistdio/u32-snprintf.c: New file.
86960         * lib/unistdio/u32-sprintf.c: New file.
86961         * lib/unistdio/u32-vasnprintf.c: New file.
86962         * lib/unistdio/u32-vasprintf.c: New file.
86963         * lib/unistdio/u32-vsnprintf.c: New file.
86964         * lib/unistdio/u32-vsprintf.c: New file.
86965         * lib/unistdio/u32-u32-asnprintf.c: New file.
86966         * lib/unistdio/u32-u32-asprintf.c: New file.
86967         * lib/unistdio/u32-u32-snprintf.c: New file.
86968         * lib/unistdio/u32-u32-sprintf.c: New file.
86969         * lib/unistdio/u32-u32-vasnprintf.c: New file.
86970         * lib/unistdio/u32-u32-vasprintf.c: New file.
86971         * lib/unistdio/u32-u32-vsnprintf.c: New file.
86972         * lib/unistdio/u32-u32-vsprintf.c: New file.
86973         * tests/unistdio/test-ulc-asnprintf1.c: New file.
86974         * tests/unistdio/test-ulc-asnprintf1.h: New file.
86975         * tests/unistdio/test-ulc-printf1.h: New file.
86976         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
86977         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
86978         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
86979         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
86980         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
86981         * tests/unistdio/test-ulc-vasprintf1.c: New file.
86982         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
86983         * tests/unistdio/test-ulc-vsprintf1.c: New file.
86984         * tests/unistdio/test-u8-asnprintf1.c: New file.
86985         * tests/unistdio/test-u8-asnprintf1.h: New file.
86986         * tests/unistdio/test-u8-printf1.h: New file.
86987         * tests/unistdio/test-u8-vasnprintf1.c: New file.
86988         * tests/unistdio/test-u8-vasnprintf2.c: New file.
86989         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
86990         * tests/unistdio/test-u8-vasnprintf3.c: New file.
86991         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
86992         * tests/unistdio/test-u8-vasprintf1.c: New file.
86993         * tests/unistdio/test-u8-vsnprintf1.c: New file.
86994         * tests/unistdio/test-u8-vsprintf1.c: New file.
86995         * tests/unistdio/test-u16-asnprintf1.c: New file.
86996         * tests/unistdio/test-u16-asnprintf1.h: New file.
86997         * tests/unistdio/test-u16-printf1.h: New file.
86998         * tests/unistdio/test-u16-vasnprintf1.c: New file.
86999         * tests/unistdio/test-u16-vasnprintf2.c: New file.
87000         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
87001         * tests/unistdio/test-u16-vasnprintf3.c: New file.
87002         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
87003         * tests/unistdio/test-u16-vasprintf1.c: New file.
87004         * tests/unistdio/test-u16-vsnprintf1.c: New file.
87005         * tests/unistdio/test-u16-vsprintf1.c: New file.
87006         * tests/unistdio/test-u32-asnprintf1.c: New file.
87007         * tests/unistdio/test-u32-asnprintf1.h: New file.
87008         * tests/unistdio/test-u32-printf1.h: New file.
87009         * tests/unistdio/test-u32-vasnprintf1.c: New file.
87010         * tests/unistdio/test-u32-vasnprintf2.c: New file.
87011         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
87012         * tests/unistdio/test-u32-vasnprintf3.c: New file.
87013         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
87014         * tests/unistdio/test-u32-vasprintf1.c: New file.
87015         * tests/unistdio/test-u32-vsnprintf1.c: New file.
87016         * tests/unistdio/test-u32-vsprintf1.c: New file.
87017         * modules/unistdio/base: New file.
87018         * modules/unistdio/u-printf-args: New file.
87019         * modules/unistdio/ulc-asnprintf: New file.
87020         * modules/unistdio/ulc-asprintf: New file.
87021         * modules/unistdio/ulc-fprintf: New file.
87022         * modules/unistdio/ulc-printf-parse: New file.
87023         * modules/unistdio/ulc-snprintf: New file.
87024         * modules/unistdio/ulc-sprintf: New file.
87025         * modules/unistdio/ulc-vasnprintf: New file.
87026         * modules/unistdio/ulc-vasprintf: New file.
87027         * modules/unistdio/ulc-vfprintf: New file.
87028         * modules/unistdio/ulc-vsnprintf: New file.
87029         * modules/unistdio/ulc-vsprintf: New file.
87030         * modules/unistdio/u8-asnprintf: New file.
87031         * modules/unistdio/u8-asprintf: New file.
87032         * modules/unistdio/u8-printf-parse: New file.
87033         * modules/unistdio/u8-snprintf: New file.
87034         * modules/unistdio/u8-sprintf: New file.
87035         * modules/unistdio/u8-vasnprintf: New file.
87036         * modules/unistdio/u8-vasprintf: New file.
87037         * modules/unistdio/u8-vsnprintf: New file.
87038         * modules/unistdio/u8-vsprintf: New file.
87039         * modules/unistdio/u8-u8-asnprintf: New file.
87040         * modules/unistdio/u8-u8-asprintf: New file.
87041         * modules/unistdio/u8-u8-snprintf: New file.
87042         * modules/unistdio/u8-u8-sprintf: New file.
87043         * modules/unistdio/u8-u8-vasnprintf: New file.
87044         * modules/unistdio/u8-u8-vasprintf: New file.
87045         * modules/unistdio/u8-u8-vsnprintf: New file.
87046         * modules/unistdio/u8-u8-vsprintf: New file.
87047         * modules/unistdio/u16-asnprintf: New file.
87048         * modules/unistdio/u16-asprintf: New file.
87049         * modules/unistdio/u16-printf-parse: New file.
87050         * modules/unistdio/u16-snprintf: New file.
87051         * modules/unistdio/u16-sprintf: New file.
87052         * modules/unistdio/u16-vasnprintf: New file.
87053         * modules/unistdio/u16-vasprintf: New file.
87054         * modules/unistdio/u16-vsnprintf: New file.
87055         * modules/unistdio/u16-vsprintf: New file.
87056         * modules/unistdio/u16-u16-asnprintf: New file.
87057         * modules/unistdio/u16-u16-asprintf: New file.
87058         * modules/unistdio/u16-u16-snprintf: New file.
87059         * modules/unistdio/u16-u16-sprintf: New file.
87060         * modules/unistdio/u16-u16-vasnprintf: New file.
87061         * modules/unistdio/u16-u16-vasprintf: New file.
87062         * modules/unistdio/u16-u16-vsnprintf: New file.
87063         * modules/unistdio/u16-u16-vsprintf: New file.
87064         * modules/unistdio/u32-asnprintf: New file.
87065         * modules/unistdio/u32-asprintf: New file.
87066         * modules/unistdio/u32-printf-parse: New file.
87067         * modules/unistdio/u32-snprintf: New file.
87068         * modules/unistdio/u32-sprintf: New file.
87069         * modules/unistdio/u32-vasnprintf: New file.
87070         * modules/unistdio/u32-vasprintf: New file.
87071         * modules/unistdio/u32-vsnprintf: New file.
87072         * modules/unistdio/u32-vsprintf: New file.
87073         * modules/unistdio/u32-u32-asnprintf: New file.
87074         * modules/unistdio/u32-u32-asprintf: New file.
87075         * modules/unistdio/u32-u32-snprintf: New file.
87076         * modules/unistdio/u32-u32-sprintf: New file.
87077         * modules/unistdio/u32-u32-vasnprintf: New file.
87078         * modules/unistdio/u32-u32-vasprintf: New file.
87079         * modules/unistdio/u32-u32-vsnprintf: New file.
87080         * modules/unistdio/u32-u32-vsprintf: New file.
87081         * modules/unistdio/ulc-asnprintf-tests: New file.
87082         * modules/unistdio/ulc-vasnprintf-tests: New file.
87083         * modules/unistdio/ulc-vasprintf-tests: New file.
87084         * modules/unistdio/ulc-vsnprintf-tests: New file.
87085         * modules/unistdio/ulc-vsprintf-tests: New file.
87086         * modules/unistdio/u8-asnprintf-tests: New file.
87087         * modules/unistdio/u8-vasnprintf-tests: New file.
87088         * modules/unistdio/u8-vasprintf-tests: New file.
87089         * modules/unistdio/u8-vsnprintf-tests: New file.
87090         * modules/unistdio/u8-vsprintf-tests: New file.
87091         * modules/unistdio/u16-asnprintf-tests: New file.
87092         * modules/unistdio/u16-vasnprintf-tests: New file.
87093         * modules/unistdio/u16-vasprintf-tests: New file.
87094         * modules/unistdio/u16-vsnprintf-tests: New file.
87095         * modules/unistdio/u16-vsprintf-tests: New file.
87096         * modules/unistdio/u32-asnprintf-tests: New file.
87097         * modules/unistdio/u32-vasnprintf-tests: New file.
87098         * modules/unistdio/u32-vasprintf-tests: New file.
87099         * modules/unistdio/u32-vsnprintf-tests: New file.
87100         * modules/unistdio/u32-vsprintf-tests: New file.
87101         * MODULES.html.sh (Unicode string functions): Add the new modules.
87103 2007-07-01  Bruno Haible  <bruno@clisp.org>
87105         * lib/sprintf.c (sprintf): Limit the available length estimation,
87106         to avoid address wraparound.
87107         * lib/vsprintf.c (vsprintf): Likewise.
87108         * modules/sprintf-posix (Dependencies): Add stdint.
87109         * modules/vsprintf-posix (Dependencies): Likewise.
87111 2007-07-01  Bruno Haible  <bruno@clisp.org>
87113         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
87114         Windows PATH as well. Conservative double-quoting. Comments.
87116 2007-07-01  Bruno Haible  <bruno@clisp.org>
87117             Eric Blake  <ebb9@byu.net>
87118             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87120         * gnulib-tool (self_abspathname): Fix algorithm to cope with
87121         empty components in $PATH, denoting '.'.
87123 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87125         * gnulib-tool: Fix indentation.
87126         (func_create_megatestdir): Likewise.
87127         Report by Bruno Haible.
87129 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87131         Sync from Automake.
87132         * build-aux/gnupload: Fix shell portability issues with for loops.
87133         Report by Karl Berry.
87135 2007-06-29  Simon Josefsson  <simon@josefsson.org>
87137         * build-aux/maint.mk (POURL): Use translationproject.org.
87139 2007-06-27  Simon Josefsson  <simon@josefsson.org>
87140             Bruno Haible  <bruno@clisp.org>
87142         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
87143         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
87144         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
87145         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
87146         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
87148 2007-06-27  Bruno Haible  <bruno@clisp.org>
87150         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
87151         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
87153 2007-06-26  Karl Berry  <karl@gnu.org>
87155         * MODULES.html.sh: remove xreadlink-with-size.
87157 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87159         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
87160         method that I hope also handles the double-include problem noted
87161         by Bruno Haible in
87162         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
87164 2007-06-23  Bruno Haible  <bruno@clisp.org>
87166         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
87167         Don't let the 'mostlyclean' target fail if the last subdirectory could
87168         not be removed.
87169         Reported by Karl Berry.
87171 2007-06-23  Bruno Haible  <bruno@clisp.org>
87173         * gnulib-tool (echo): Add a speedier workaround for ksh.
87174         * tests/test-echo.sh: Likewise.
87176 2007-06-23  Bruno Haible  <bruno@clisp.org>
87178         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
87179         * tests/test-echo.sh: Likewise.
87181 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87183         * gnulib-tool (IFS): Initialize early, so we don't set it to
87184         empty later.
87185         (self_abspathname): Rewrite algorithm to set it, reindent.
87186         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
87187         (func_create_megatestdir): Merge some sed scripts.
87189 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87191         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
87192         exposed by Sun Studio 11 cc on Solaris 8.
87194 2007-06-22  Bruno Haible  <bruno@clisp.org>
87196         * gnulib-tool (echo): Ensure the echo primitive does not interpret
87197         backslashes.
87198         * tests/test-echo.sh: New file.
87200 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87202         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
87203         simplify `sed_replace_build_aux' scripts, they are portable but
87204         echoing them with `echo' is not.
87205         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
87207 2007-06-21  Karl Berry  <karl@gnu.org>
87209         * config/srclist.txt: guess we can't handle the licenses via
87210         srclist at the moment.
87212 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
87214         * MODULES.html.sh: Add include_next.
87215         * modules/include_next: New file.
87217 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
87219         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
87220         INCLUDE_NEXT.
87221         (gl_CHECK_NEXT_HEADERS): New macro.
87222         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
87223         the obsolescent gl_ABSOLUTE_HEADER.
87224         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
87225         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
87226         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
87227         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
87228         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
87229         * m4/math_h.m4 (gl_MATH_H): Likewise.
87230         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
87231         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
87232         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
87233         * m4/stdint.m4 (gl_STDINT_H): Likewise.
87234         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
87235         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
87236         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
87237         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87238         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
87239         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
87240         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
87241         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
87242         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
87243         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
87244         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
87245         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
87246         * m4/inttypes.m4 (gl_INTTYPES_H): Define
87247         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
87248         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
87249         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
87250         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
87251         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
87252         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
87253         * lib/float_.h: Likewise.
87254         * lib/inttypes_.h: Likewise.
87255         * lib/math_.h: Likewise.
87256         * lib/search_.h: Likewise.
87257         * lib/signal_.h: Likewise.
87258         * lib/stdint_.h: Likewise.
87259         * lib/stdio_.h: Likewise.
87260         * lib/stdlib_.h: Likewise.
87261         * lib/string_.h: Likewise.
87262         * lib/sys_stat_.h: Likewise.
87263         * lib/sys_time_.h: Likewise.
87264         * lib/time_.h: Likewise.
87265         * lib/unistd_.h: Likewise.
87266         * lib/wchar_.h: Likewise.
87267         * lib/wctype_.h: Likewise.
87268         * lib/dirent_.h: Likewise.
87269         * lib/iconv_.h: Likewise.
87270         * lib/locale_.h: Likewise.
87271         * lib/netinet_in_.h: Likewise.
87272         * lib/sys_select_.h: Likewise.
87273         * lib/sys_socket_.h: Likewise.
87274         * lib/sysexits_.h: Likewise.
87275         * modules/fcntl (Depends-on): Depend on include_next, not
87276         absolute_header.
87277         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
87278         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
87279         * modules/fchdir: Likewise.
87280         * modules/float: Likewise.
87281         * modules/iconv_open: Likewise.
87282         * modules/inttypes: Likewise.
87283         * modules/locale: Likewise.
87284         * modules/math: Likewise.
87285         * modules/netinet_in: Likewise.
87286         * modules/search: Likewise.
87287         * modules/signal: Likewise.
87288         * modules/stdint: Likewise.
87289         * modules/stdio: Likewise.
87290         * modules/stdlib: Likewise.
87291         * modules/string: Likewise.
87292         * modules/sys_select: Likewise.
87293         * modules/sys_socket: Likewise.
87294         * modules/sys_stat: Likewise.
87295         * modules/sys_time: Likewise.
87296         * modules/sysexits: Likewise.
87297         * modules/time: Likewise.
87298         * modules/unistd: Likewise.
87299         * modules/wchar: Likewise.
87300         * modules/wctype: Likewise.
87301         * modules/sys_stat: Change maintainer to "all".
87302         * modules/unistd: Likewise.
87304 2007-06-20  Karl Berry  <karl@gnu.org>
87306         * config/srclist.txt: track www changes in license files.
87308 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
87310         * build-aux/bootstrap: Remove stray dot.
87311         Make sure build_aux settings are honored when linking
87312         gnulib_extra_files.
87314 2007-06-19  Eric Blake  <ebb9@byu.net>
87316         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
87317         Allow compilation on cygwin.
87319 2007-06-19  Jim Meyering  <jim@meyering.net>
87321         xreadlink-with-size: Remove module.  No longer used.
87322         Ex-callers now use xreadlink or mreadlink-with-size.
87323         * modules/xreadlink-with-size: Remove module.
87324         * lib/xreadlink-with-size.c: Remove file.
87325         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
87326         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
87327         just before the function definition *is* accurate.
87329         Eliminate one way canonicalize_filename_mode could exit.
87330         * lib/canonicalize.c (canonicalize_filename_mode):
87331         Use mreadlink_with_size, not xreadlink_with_size.
87333 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
87335         Detect porting problems to FreeBSD/arm, which has time_t wider than
87336         long int.  Original problem reported for GNU diff by Xin Li in
87337         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
87338         * modules/getdate (Depends-on): Add intprops, verify.
87339         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
87340         is an integer type no wider than long int.
87342 2007-06-18  Jim Meyering  <jim@meyering.net>
87344         New module: mreadlink-with-size.
87345         * MODULES.html.sh: Add mreadlink-with-size.
87346         * modules/mreadlink-with-size: New module
87347         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
87348         not xreadlink-with-size.
87349         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
87351 2007-06-16  Bruno Haible  <bruno@clisp.org>
87353         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
87354         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
87355         Reported by Gary V. Vaughan <gary@gnu.org>.
87357 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
87359         Revamp lchown so that it lives in unistd.h where it belongs.
87360         * lib/lchown.h: Remove.
87361         * lib/dirchownmod.c: Don't include lib/lchown.h.
87362         * lib/fchownat.c: Likewise.
87363         * lib/openat.c: Likewise.
87364         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
87365         does not follow symlinks.
87366         (EOPNOTSUPP): Define if not defined.
87367         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
87368         is defined to 0.
87369         (lchown): New decl.
87370         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
87371         Do not check for lchown decl.
87372         Set REPLACE_LCHOWN.
87373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
87374         REPLACE_LCHOWN.
87375         * modules/chown: Make it clear it follows symlinks.
87376         * modules/lchown: Make it clear it doesn't follow symlinks.
87377         (Files): Remove lib/lchown.h
87378         (Depends-on): Add unistd.
87379         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
87380         (Include): Include <unistd.h>, not "lchown.h".
87381         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
87382         REPLACE_LCHOWN.
87384 2007-06-15  Jim Meyering  <jim@meyering.net>
87386         Change license (GPL to LGPL) of fsusage and dependents.
87387         * modules/fsusage (License): Change to LGPL.
87388         * modules/full-read (License): Likewise.
87389         * modules/full-write (License): Likewise.
87390         * modules/safe-read (License): Likewise.
87391         * modules/safe-write (License): Likewise.
87393 2007-06-14  Ben Pfaff  <blp@gnu.org>
87395         Missing part of allocsa -> malloca transition.
87396         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
87397         gl_MALLOCA.
87399 2007-06-12  Bruno Haible  <bruno@clisp.org>
87401         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
87402         to ia64, x86_64, i386.
87403         Reported by Eric Blake.
87405 2007-06-12  Bruno Haible  <bruno@clisp.org>
87407         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
87408         cross-compiling to x86_64.
87410 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
87412         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
87413         glitch reported by Ralf Wildenhues in
87414         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
87416         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
87417         Vin Shelton.
87419 2007-06-11  Bruno Haible  <bruno@clisp.org>
87421         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
87422         replacement string.
87423         Reported by Eric Blake.
87425 2007-06-10  Bruno Haible  <bruno@clisp.org>
87427         Prepare vasnprintf code for use with Unicode strings.
87428         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
87429         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
87430         TYPE_U32_STRING.
87431         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
87432         a_u32_string variants.
87433         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87434         * lib/printf-args.c: Don't include config.h and the specification
87435         header if PRINTF_FETCHARGS is already defined.
87436         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87437         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
87438         TYPE_U16_STRING, TYPE_U32_STRING.
87439         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
87440         u16_directive, u16_directives, u32_directive, u32_directives): New
87441         types.
87442         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
87443         New declarations.
87444         * lib/printf-parse.c: Don't include config.h and the specification
87445         header if PRINTF_PARSE is already defined. Eliminate the set of
87446         parameters for WIDE_CHAR_VERSION; the user of this file must provide
87447         them now. Include c-ctype.h.
87448         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
87449         directive and CHAR_T_ONLY_ASCII.
87450         * lib/vasnprintf.c: Don't include config.h and the specification header
87451         if VASNPRINTF is already defined.
87452         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
87453         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
87454         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
87455         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
87456         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
87457         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
87458         code accordingly.
87459         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
87460         pad_ourselves also in this case, with the 'c' and 's' directives, and
87461         with a different notion of "width".
87462         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
87464 2007-06-10  Bruno Haible  <bruno@clisp.org>
87466         * modules/unistr/u32-mbsnlen: New file.
87467         * lib/unistr/u32-mbsnlen.c: New file.
87469         * modules/unistr/u16-mbsnlen: New file.
87470         * lib/unistr/u16-mbsnlen.c: New file.
87472         * modules/unistr/u8-mbsnlen: New file.
87473         * lib/unistr/u8-mbsnlen.c: New file.
87475         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
87476         declarations.
87478 2007-06-10  Bruno Haible  <bruno@clisp.org>
87480         * lib/string_.h (mbsnlen): New declaration.
87481         * lib/mbsnlen.c: New file.
87482         * m4/mbsnlen.m4: New file.
87483         * modules/mbsnlen: New file.
87484         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
87485         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
87486         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
87488 2007-06-10  Bruno Haible  <bruno@clisp.org>
87490         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
87492 2007-06-10  Bruno Haible  <bruno@clisp.org>
87494         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
87495         * lib/mbuiter.h: Likewise.
87497 2007-06-10  Bruno Haible  <bruno@clisp.org>
87499         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
87500         declaration.
87502 2007-06-10  Karl Berry  <karl@gnu.org>
87504         * config/srclist.txt: remove gettext entries, Bruno prefers
87505         to update individually.
87507 2007-06-10  Bruno Haible  <bruno@clisp.org>
87509         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
87510         'maxlen'. Ensure only length + width bytes are allocated, not
87511         length + 1 + width.
87513 2007-06-09  Bruno Haible  <bruno@clisp.org>
87515         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
87516         (CHAR_T): Remove macro.
87517         (VASNPRINTF): Update.
87519 2007-06-09  Bruno Haible  <bruno@clisp.org>
87521         * MODULES.html.sh (Unicode string functions): Add the new modules.
87523         * modules/uniconv/u32-conv-to-enc: New file.
87524         * lib/uniconv/u32-conv-to-enc.c: New file.
87525         * modules/uniconv/u32-conv-to-enc-tests: New file.
87526         * tests/uniconv/test-u32-conv-to-enc.c: New file.
87528         * modules/uniconv/u16-conv-to-enc: New file.
87529         * lib/uniconv/u16-conv-to-enc.c: New file.
87530         * lib/uniconv/u-conv-to-enc.h: New file.
87531         * modules/uniconv/u16-conv-to-enc-tests: New file.
87532         * tests/uniconv/test-u16-conv-to-enc.c: New file.
87534         * modules/uniconv/u8-conv-to-enc: New file.
87535         * lib/uniconv/u8-conv-to-enc.c: New file.
87536         * modules/uniconv/u8-conv-to-enc-tests: New file.
87537         * tests/uniconv/test-u8-conv-to-enc.c: New file.
87539         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
87540         u32_conv_to_encoding): New declarations.
87542 2007-06-09  Bruno Haible  <bruno@clisp.org>
87544         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
87546 2007-06-09  Bruno Haible  <bruno@clisp.org>
87548         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
87549         * modules/malloca: Renamed from modules/allocsa, updated.
87550         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
87551         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
87552         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
87553         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
87554         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
87555         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
87556         * modules/xmalloca: Renamed from modules/xallocsa, updated.
87557         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
87558         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
87559         * modules/c-strcasestr (Depends-on): Update.
87560         * lib/c-strcasestr.c: Update.
87561         * modules/c-strstr (Depends-on): Update.
87562         * lib/c-strstr.c: Update.
87563         * modules/canonicalize-lgpl (Depends-on): Update.
87564         * lib/canonicalize-lgpl.c: Update.
87565         * modules/clean-temp (Depends-on): Update.
87566         * lib/clean-temp.c: Update.
87567         * modules/csharpcomp (Depends-on): Update.
87568         * lib/csharpcomp.c: Update.
87569         * modules/csharpexec (Depends-on): Update.
87570         * lib/csharpexec.c: Update.
87571         * modules/javacomp (Depends-on): Update.
87572         * lib/javacomp.c: Update.
87573         * modules/javaexec (Depends-on): Update.
87574         * lib/javaexec.c: Update.
87575         * modules/mbscasestr (Depends-on): Update.
87576         * lib/mbscasestr.c: Update.
87577         * modules/mbsstr (Depends-on): Update.
87578         * lib/mbsstr.c: Update.
87579         * modules/setenv (Depends-on): Update.
87580         * lib/setenv.c: Update.
87581         * modules/strcasestr (Depends-on): Update.
87582         * lib/strcasestr.c: Update.
87583         * modules/striconveha (Depends-on): Update.
87584         * lib/striconveha.c: Update.
87585         * modules/relocatable-prog-wrapper (Files): Update.
87586         * lib/relocwrapper.c: Update.
87587         * build-aux/install-reloc: Update.
87588         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
87590 2007-06-08  Bruno Haible  <bruno@clisp.org>
87592         Port to uClibc.
87593         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
87594         * lib/fpurge.c (fpurge): Likewise.
87595         * lib/freading.c (freading): Likewise.
87596         * lib/fseeko.c (rpl_fseeko): Likewise.
87597         * lib/fseterr.c (fseterr): Likewise.
87598         * lib/fwriting.c (fwriting): Likewise.
87599         * tests/test-fflush.c (main): Avoid a failure on uClibc.
87601 2007-06-08  Bruno Haible  <bruno@clisp.org>
87603         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
87604         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
87605         * modules/gettext (Files): Add m4/intlmacosx.m4.
87607 2007-06-07  Bruno Haible  <bruno@clisp.org>
87609         * modules/localename-tests: New file.
87610         * tests/test-localename.c: New file.
87612         New module 'localename'.
87613         * lib/localename.h: New file.
87614         * lib/localename.c: New file, from GNU gettext.
87615         * m4/localename.m4: New file.
87616         * modules/localename: New file.
87618 2007-06-07  Bruno Haible  <bruno@clisp.org>
87620         Work around the lack of <wchar.h> on some builds of uClibc.
87621         * doc/headers/wchar.texi: Update.
87622         * lib/wchar_.h: Include <wchar.h> only if it exists.
87623         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
87624         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
87625         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
87626         doesn't exist.
87627         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
87628         * modules/mbfile (Depends-on): Add wchar.
87629         * modules/mbiter (Depends-on): Likewise.
87630         * modules/mbuiter (Depends-on): Likewise.
87631         Reported by Simon Josefsson.
87633 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87635         Work around problem reported by Steven M. Schweda in
87636         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
87637         Tru64 5.1B with the Compaq compiler environment installed declares
87638         an 'isblank' function but does not define it in the C library.
87639         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
87640         * lib/regex_internal.h (isblank): Likewise.
87641         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
87642         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
87644 2007-06-05  Bruno Haible  <bruno@clisp.org>
87646         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
87647         ia64.
87648         * modules/printf-safe: New file.
87649         * modules/fprintf-posix (Depends-on): Add printf-safe.
87650         * modules/printf-posix (Depends-on): Likewise.
87651         * modules/snprintf-posix (Depends-on): Likewise.
87652         * modules/sprintf-posix (Depends-on): Likewise.
87653         * modules/vasnprintf-posix (Depends-on): Likewise.
87654         * modules/vasprintf-posix (Depends-on): Likewise.
87655         * modules/vfprintf-posix (Depends-on): Likewise.
87656         * modules/vprintf-posix (Depends-on): Likewise.
87657         * modules/vsnprintf-posix (Depends-on): Likewise.
87658         * modules/vsprintf-posix (Depends-on): Likewise.
87659         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
87660         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
87661         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
87662         "no" on i386, x86_64, ia64.
87663         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
87664         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87665         on i386, x86_64, ia64.
87666         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
87667         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87668         on i386, x86_64, ia64.
87669         * tests/test-vasnprintf-posix.c: Include float.h.
87670         (LDBL80_WORDS): New macro.
87671         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87672         on i386, x86_64, ia64.
87673         * tests/test-vasprintf-posix.c: Include float.h.
87674         (LDBL80_WORDS): New macro.
87675         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87676         on i386, x86_64, ia64.
87677         * tests/test-snprintf-posix.c: Include float.h.
87678         * tests/test-sprintf-posix.c: Likewise.
87679         * tests/test-vsnprintf-posix.c: Likewise.
87680         * tests/test-vsprintf-posix.c: Likewise.
87682 2007-06-05  Bruno Haible  <bruno@clisp.org>
87684         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
87685         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
87686         non-IEEE numbers on i386, x86_64, ia64.
87687         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
87688         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
87689         * tests/test-isnanl.h: Include float.h.
87690         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
87692 2007-06-05  Bruno Haible  <bruno@clisp.org>
87694         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
87695         also the %a / %A. Handle the %a / %A code before this extra handling.
87697 2007-06-05  Bruno Haible  <bruno@clisp.org>
87699         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
87700         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
87702 2007-06-05  Bruno Haible  <bruno@clisp.org>
87704         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
87705         typo in variable name.
87707 2007-06-05  Eric Blake  <ebb9@byu.net>
87709         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
87710         Reported by Simon Josefsson.
87712 2007-06-04  Bruno Haible  <bruno@clisp.org>
87714         Avoid test failures on some PowerPC platforms.
87715         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
87716         Define differently for PowerPC.
87717         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
87718         Reported by Gary V. Vaughan <gary@gnu.org>.
87720 2007-06-02  Bruno Haible  <bruno@clisp.org>
87722         Fix test-stdint failure on FreeBSD/ia64.
87723         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
87724         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
87725         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
87726         * doc/headers/stdint.texi: Update.
87728 2007-06-01  Bruno Haible  <bruno@clisp.org>
87730         * tests/test-binary-io.c (main): Pass a third argument to open().
87731         Reported by Gary V. Vaughan <gary@gnu.org>.
87733 2007-06-01  Bruno Haible  <bruno@clisp.org>
87735         * doc/functions/frexpl.texi: Update for mingw.
87737 2007-06-01  Bruno Haible  <bruno@clisp.org>
87739         * tests/test-lseek.c (main): Disable test of errno for invalid third
87740         argument.
87741         * doc/functions/lseek.texi: Update.
87742         Reported by Gary V. Vaughan <gary@gnu.org>.
87744 2007-05-28  Bruno Haible  <bruno@clisp.org>
87746         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
87748 2007-05-31  Eric Blake  <ebb9@byu.net>
87750         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
87751         cross compiling.
87753 2007-05-30  Eric Blake  <ebb9@byu.net>
87754         and Bruno Haible  <bruno@clisp.org>
87756         Work around mingw test failures exposed by m4-1.4.9b.
87757         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
87758         * tests/test-unistd.c: Disable uid_t and git_t tests for the
87759         moment.
87761 2007-05-30  Bruno Haible  <bruno@clisp.org>
87763         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
87764         assuming that they are closed. Needed on HP-UX 11.
87766 2007-05-29  Bruno Haible  <bruno@clisp.org>
87768         Fix a problem with #include_next.
87769         * lib/dirent_.h: Split the double-inclusion guard.
87770         * lib/fcntl_.h: Likewise.
87771         * lib/float_.h: Likewise.
87772         * lib/iconv_.h: Likewise.
87773         * lib/inttypes_.h: Likewise.
87774         * lib/locale_.h: Likewise.
87775         * lib/math_.h: Likewise.
87776         * lib/netinet_in_.h: Likewise.
87777         * lib/search_.h: Likewise.
87778         * lib/signal_.h: Likewise.
87779         * lib/stdint_.h: Likewise.
87780         * lib/stdio_.h: Likewise.
87781         * lib/stdlib_.h: Likewise.
87782         * lib/string_.h: Likewise.
87783         * lib/sys_select_.h: Likewise.
87784         * lib/sys_socket_.h: Likewise.
87785         * lib/sys_stat_.h: Likewise.
87786         * lib/sys_time_.h: Likewise.
87787         * lib/sysexits_.h: Likewise.
87788         * lib/time_.h: Likewise.
87789         * lib/unistd_.h: Likewise.
87790         * lib/wchar_.h: Likewise.
87791         * lib/wctype_.h: Likewise.
87793 2007-05-29  Bruno Haible  <bruno@clisp.org>
87795         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
87796         for the moment.
87798 2007-05-29  Bruno Haible  <bruno@clisp.org>
87800         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
87801         invocation.
87802         Reported by Eric Blake.
87804 2007-05-29  Bruno Haible  <bruno@clisp.org>
87806         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
87807         compiling case.
87809 2007-05-29  Eric Blake  <ebb9@byu.net>
87810             Bruno Haible  <bruno@clisp.org>
87812         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
87813         cross compiles.
87815 2007-05-28  Eric Blake  <ebb9@byu.net>
87817         * modules/closein-tests (test_closein_LDADD): Support test on
87818         cygwin with libtool.
87820 2007-05-28  Bruno Haible  <bruno@clisp.org>
87822         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
87823         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
87824         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
87825         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
87826         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
87827         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
87828         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
87829         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
87830         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
87832 2007-05-28  Eric Blake  <ebb9@byu.net>
87834         Unconditionally include <config.h> in unit tests.
87835         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
87836         * tests/test-allocsa.c, tests/test-arcfour.c,
87837         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
87838         tests/test-array_list.c, tests/test-array_oset.c,
87839         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
87840         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
87841         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
87842         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
87843         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
87844         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
87845         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
87846         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
87847         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
87848         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
87849         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
87850         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
87851         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
87852         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
87853         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
87854         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
87855         test-md5.c, test-memmem.c, test-printf-posix.c,
87856         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
87857         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
87858         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
87859         test-strcasestr.c, test-striconv.c, test-striconveh.c,
87860         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
87861         test-vasnprintf-posix2.c, test-vasnprintf.c,
87862         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
87863         test-vfprintf-posix.c, test-vprintf-posix.c,
87864         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
87865         test-xvasprintf.c: Likewise.
87867 2007-05-28  Bruno Haible  <bruno@clisp.org>
87869         * gnulib-tool (func_import): Remember the --with-tests command-line
87870         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
87871         Reported by Eric Blake.
87873 2007-05-28  Bruno Haible  <bruno@clisp.org>
87875         * modules/ftell-tests: New file.
87876         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
87877         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
87879         * lib/ftell.c: New file.
87880         * modules/ftell: New file.
87881         * m4/ftell.m4: New file.
87882         * doc/functions/ftell.texi: Update.
87883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
87884         REPLACE_FTELL.
87885         * lib/stdio_.h (rpl_ftell): New declaration.
87886         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
87887         REPLACE_FTELL.
87889 2007-05-28  Eric Blake  <ebb9@byu.net>
87891         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
87893 2007-05-28  Bruno Haible  <bruno@clisp.org>
87895         * modules/fseek-tests: New file.
87896         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
87897         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
87899         * lib/fseek.c: New file.
87900         * modules/fseek: New file.
87901         * m4/fseek.m4: New file.
87902         * doc/functions/fseek.texi: Update.
87903         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
87904         REPLACE_FSEEK.
87905         * lib/stdio_.h (rpl_fseek): New declaration.
87906         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
87907         REPLACE_FSEEK.
87909 2007-05-28  Bruno Haible  <bruno@clisp.org>
87911         * lib/stdio_.h (fflush): More comments.
87913 2007-05-28  Bruno Haible  <bruno@clisp.org>
87915         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
87916         runtime test.
87918 2007-05-28  Eric Blake  <ebb9@byu.net>
87920         Improve lseek module.
87921         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
87922         * lib/unistd_.h (lseek): Scale back link warning message.
87923         * tests/test-lseek.c: Beef up test.
87924         * tests/test-lseek.sh: Exercise more facets of lseek.
87925         Reported by Bruno Haible.
87927 2007-05-28  Bruno Haible  <bruno@clisp.org>
87929         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
87930         to define.
87932 2007-05-27  Bruno Haible  <bruno@clisp.org>
87934         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
87936 2007-05-27  Bruno Haible  <bruno@clisp.org>
87938         * modules/openmp: New file.
87939         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
87940         Noah Misch.
87942 2007-05-26  Bruno Haible  <bruno@clisp.org>
87944         * modules/chdir-long (Depends-on): Add fchdir.
87945         * modules/chdir-safer (Depends-on): Likewise.
87946         * modules/fts (Depends-on): Likewise.
87947         * modules/fts-lgpl (Depends-on): Likewise.
87948         * modules/openat (Depends-on): Likewise.
87949         * modules/savewd (Depends-on): Likewise.
87951 2007-05-24  Eric Blake  <ebb9@byu.net>
87953         Fix lseek on mingw.
87954         * modules/lseek: New module.
87955         * m4/lseek.m4: New file.
87956         * lib/lseek.c: New file.
87957         * modules/lseek-tests: New file.
87958         * tests/test-lseek.c: New file.
87959         * tests/test-lseek.sh: New file.
87960         * MODULES.html.sh: Document lseek module.
87961         * modules/fflush (Depends-on): Add lseek, fseeko.
87962         * modules/fseeko (Depends-on): Likewise.
87963         * modules/ftello (Depends-on): Likewise.
87964         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
87965         broken.
87966         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
87967         broken.
87968         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
87969         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
87970         * lib/ftello.c (rpl_ftello): Likewise.
87971         * tests/test-fseeko.c (main): Test this.
87972         * tests/test-fseeko.sh: Likewise.
87973         * tests/test-ftello.c (main): Likewise.
87974         * tests/test-ftello.sh: Likewise.
87975         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
87976         implies replacing fseek.
87977         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
87978         HAVE_FTELLO.
87979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
87980         * modules/unistd (Makefile.am): Likewise.
87981         * lib/unistd_.h (lseek): Declare a replacement.
87982         * doc/functions/lseek.texi (lseek): Document this fix.
87983         * doc/functions/fseek.texi (fseek): Likewise.
87984         * doc/functions/ftell.texi (ftell): Likewise.
87986 2007-05-24  Bruno Haible  <bruno@clisp.org>
87988         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
87989         in the printed representation of a NaN.
87990         * tests/test-vasprintf-posix.c (test_function): Likewise.
87991         * tests/test-snprintf-posix.h (test_function): Likewise.
87992         * tests/test-sprintf-posix.h (test_function): Likewise.
87993         Reported by Eric Blake.
87995 2007-05-23  Eric Blake  <ebb9@byu.net>
87997         Fix fseeko/ftello on cygwin 1.5.24.
87998         * doc/functions/fseeko.texi (fseeko): Document the fix.
87999         * doc/functions/ftello.texi (ftello): Document the fix.
88000         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
88001         * doc/functions/stdout.text (stdout): New file.
88002         * doc/functions/stderr.text (stderr): New file.
88003         * doc/gnulib.texi (Function Substitutes): Use new files.
88004         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
88005         prior to 1.7.0.
88006         * tests/test-ftello.c (main): Likewise for ftello.
88007         * tests/test-fseeko.sh: New file.
88008         * tests/test-ftello.sh: New file.
88009         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
88010         with seekable stdin.
88011         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
88012         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
88013         (gl_REPLACE_FSEEKO): New macro.
88014         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
88015         * modules/fseeko (Files): Distribute fseeko.c.
88016         * modules/ftello (Files): Distribute ftello.c.
88017         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
88018         mode.
88019         * lib/ftello.c (rpl_ftello): New file.
88020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
88021         fseeko, ftello.
88022         (gl_STDIN_LARGE_OFFSET): New macro.
88023         * modules/stdio (Makefile.am): Perform the replacement.
88024         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
88026 2007-05-23  Bruno Haible  <bruno@clisp.org>
88028         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
88029         GNULIB_POSIXCHECK is defined.
88031 2007-05-21  Bruno Haible  <bruno@clisp.org>
88033         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
88034         Check also the output for NaN arguments. When cross-compiling, guess
88035         no on IRIX.
88036         * lib/vasnprintf.c: Update comments.
88037         * tests/test-vasnprintf-posix.c (strisnan): New function.
88038         (test_function): Use it.
88039         * tests/test-vasprintf-posix.c (strisnan): New function.
88040         (test_function): Use it.
88041         * tests/test-snprintf-posix.h (strisnan): New function.
88042         (test_function): Use it.
88043         * tests/test-sprintf-posix.h (strisnan): New function.
88044         (test_function): Use it.
88045         Reported by Eric Blake.
88047 2007-05-20  Bruno Haible  <bruno@clisp.org>
88049         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
88050         numbers that fails on BeOS.
88051         * doc/functions/frexpl.texi: Update.
88053 2007-05-20  Jim Meyering  <jim@meyering.net>
88055         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
88056         forced upon us by glibc-2.6.
88058 2007-05-20  Bruno Haible  <bruno@clisp.org>
88060         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
88061         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
88062         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
88063         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
88064         NEED_PRINTF_INFINITE.
88065         (is_infinitel): New function.
88066         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
88067         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
88068         gl_PREREQ_VASNPRINTF_INFINITE.
88069         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
88070         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88071         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
88072         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
88073         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
88074         gl_PREREQ_VASNPRINTF_INFINITE.
88075         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88076         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88077         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88078         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88079         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88080         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88081         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88082         * doc/functions/fprintf.texi: Update.
88083         * doc/functions/printf.texi: Update.
88084         * doc/functions/snprintf.texi: Update.
88085         * doc/functions/sprintf.texi: Update.
88086         * doc/functions/vfprintf.texi: Update.
88087         * doc/functions/vprintf.texi: Update.
88088         * doc/functions/vsnprintf.texi: Update.
88089         * doc/functions/vsprintf.texi: Update.
88091 2007-05-20  Bruno Haible  <bruno@clisp.org>
88093         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
88094         was not found in libc.
88095         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
88097 2007-05-20  Bruno Haible  <bruno@clisp.org>
88099         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
88100         printed as "-nan" instead of "nan".
88101         * tests/test-vasprintf-posix.c (test_function): Likewise.
88102         * tests/test-snprintf-posix.h (test_function): Likewise.
88103         * tests/test-sprintf-posix.h (test_function): Likewise.
88104         Needed for HP-UX 11.
88106 2007-05-20  Jim Meyering  <jim@meyering.net>
88108         Fix buggy test for the fchownat-deref bug.
88109         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
88110         symlink required for the run-test.  Without it, this test would
88111         always declare that fchownat doesn't work, and client code would
88112         unnecessarily use the replacement function with fixed libc.
88113         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
88114         Reported by Greg Schafer.
88116 2007-05-19  Bruno Haible  <bruno@clisp.org>
88118         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
88119         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
88120         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
88121         Needed for IRIX 6.5 and Solaris 2.5.1.
88123 2007-05-19  Bruno Haible  <bruno@clisp.org>
88125         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
88126         (test_function): Skip tests involving -0.0 on platforms where
88127         -0.0 = 0.0.
88128         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
88129         (test_function): Skip tests involving -0.0 on platforms where
88130         -0.0 = 0.0.
88131         * tests/test-snprintf-posix.h (have_minus_zero): New function.
88132         (test_function): Skip tests involving -0.0 on platforms where
88133         -0.0 = 0.0.
88134         * tests/test-sprintf-posix.h (have_minus_zero): New function.
88135         (test_function): Skip tests involving -0.0 on platforms where
88136         -0.0 = 0.0.
88137         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
88138         tests.
88139         * tests/test-printf-posix.h (test_function): Likewise.
88140         * tests/test-printf-posix.output: Remove all -0.0 related results.
88141         Needed for IRIX 6.5.
88143 2007-05-19  Bruno Haible  <bruno@clisp.org>
88145         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
88146         printed as "nan0x7fffffff" instead of "nan".
88147         * tests/test-vasprintf-posix.c (test_function): Likewise.
88148         * tests/test-snprintf-posix.h (test_function): Likewise.
88149         * tests/test-sprintf-posix.h (test_function): Likewise.
88150         * tests/test-fprintf-posix.h (NaN): Remove macro.
88151         (test_function): Remove all NaN related tests.
88152         * tests/test-printf-posix.h (NaN): Remove macro.
88153         (test_function): Remove all NaN related tests.
88154         * tests/test-printf-posix.output: Remove all NaN related results.
88155         Needed for IRIX 6.5.
88157 2007-05-19  Bruno Haible  <bruno@clisp.org>
88159         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
88160         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
88162 2007-05-19  Bruno Haible  <bruno@clisp.org>
88164         * lib/float_.h: New file.
88165         * m4/float_h.m4: New file.
88166         * modules/float: New file.
88167         * modules/isnanl (Dependencies): Add float.
88168         * modules/isnanl-nolibm (Dependencies): Likewise.
88169         * modules/mathl (Dependencies): Likewise.
88170         * modules/printf-frexpl (Dependencies): Likewise.
88171         * modules/signbit (Dependencies): Likewise.
88172         * modules/vasnprintf (Dependencies): Likewise.
88173         * doc/headers/float.texi: Update.
88175 2007-05-19  Jim Meyering  <jim@meyering.net>
88177         * lib/utimens.c (gl_futimens): Rename from futimens,
88178         now that glibc-2.6 declares futimens.
88179         * lib/utimens.h: Likewise.
88181 2007-05-19  Bruno Haible  <bruno@clisp.org>
88183         Avoid test failures on mingw.
88184         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
88185         * tests/test-printf-posix.sh: Likewise.
88186         * tests/test-vfprintf-posix.sh: Likewise.
88187         * tests/test-vprintf-posix.sh: Likewise.
88189 2007-05-19  Bruno Haible  <bruno@clisp.org>
88191         Fix *printf result for NaN, Inf, -0.0 on mingw.
88192         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
88193         * lib/vasnprintf.c: Include math.h and isnan.h.
88194         (is_infinite_or_zero): New function.
88195         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
88196         values in the %f, %F, %e, %E, %g, %G directives.
88197         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
88198         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88199         gl_PRINTF_INFINITE and test its result. Invoke
88200         gl_PREREQ_VASNPRINTF_INFINITE.
88201         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88202         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88203         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88204         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88205         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88206         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88207         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88208         * doc/functions/fprintf.texi: Update.
88209         * doc/functions/printf.texi: Update.
88210         * doc/functions/snprintf.texi: Update.
88211         * doc/functions/sprintf.texi: Update.
88212         * doc/functions/vfprintf.texi: Update.
88213         * doc/functions/vprintf.texi: Update.
88214         * doc/functions/vsnprintf.texi: Update.
88215         * doc/functions/vsprintf.texi: Update.
88217 2007-05-19  Bruno Haible  <bruno@clisp.org>
88219         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
88220         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
88221         Instead of multiplying with 10^k, set extra_zeroes to k.
88222         (scale10_round_long_double): Remove function.
88224 2007-05-18  Bruno Haible  <bruno@clisp.org>
88226         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
88227         introduced on 2007-05-06.
88229 2007-05-18  Bruno Haible  <bruno@clisp.org>
88231         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
88232         %g directives.
88233         * tests/test-vasprintf-posix.c (test_function): Likewise.
88234         * tests/test-snprintf-posix.h (test_function): Likewise.
88235         * tests/test-sprintf-posix.h (test_function): Likewise.
88237 2007-05-18  Bruno Haible  <bruno@clisp.org>
88239         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
88240         (strmatch): New function.
88241         (test_function): Test the %f directive on numbers of various exponents.
88242         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
88243         (strmatch): New function.
88244         (test_function): Test the %f directive on numbers of various exponents.
88245         * tests/test-snprintf-posix.h (strmatch): New function.
88246         (test_function): Test the %f directive on numbers of various exponents.
88247         * tests/test-sprintf-posix.h (strmatch): New function.
88248         (test_function): Test the %f directive on numbers of various exponents.
88249         * tests/test-snprintf-posix.c (SIZEOF): New macro.
88250         * tests/test-sprintf-posix.c (SIZEOF): New macro.
88251         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
88252         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
88254 2007-05-18  Bruno Haible  <bruno@clisp.org>
88256         Add support for 'long double' number output.
88257         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
88258         * lib/vasnprintf.c: Include math.h and float+.h.
88259         (mp_limb_t): New type.
88260         (GMP_LIMB_BITS): New macro.
88261         (mp_twolimb_t): New type.
88262         (GMP_TWOLIMB_BITS): New macro.
88263         (mpn_t): New type.
88264         (multiply, divide, convert_to_decimal, decode_long_double,
88265         scale10_round_long_double, scale10_round_decimal_long_double,
88266         floorlog10l): New functions.
88267         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
88268         for the %f, %F, %e, %E, %g, %G directives.
88269         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
88270         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88271         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
88272         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
88273         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88274         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88275         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88276         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88277         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88278         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88279         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88280         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
88281         * modules/snprintf-posix (Depends-on): Likewise.
88282         * modules/sprintf-posix (Depends-on): Likewise.
88283         * modules/vasnprintf-posix (Depends-on): Likewise.
88284         * modules/vasprintf-posix (Depends-on): Likewise.
88285         * modules/vfprintf-posix (Depends-on): Likewise.
88286         * modules/vsnprintf-posix (Depends-on): Likewise.
88287         * modules/vsprintf-posix (Depends-on): Likewise.
88288         * modules/vasnprintf (Files): Add lib/float+.h.
88289         * doc/functions/fprintf.texi: Update.
88290         * doc/functions/printf.texi: Update.
88291         * doc/functions/snprintf.texi: Update.
88292         * doc/functions/sprintf.texi: Update.
88293         * doc/functions/vfprintf.texi: Update.
88294         * doc/functions/vprintf.texi: Update.
88295         * doc/functions/vsnprintf.texi: Update.
88296         * doc/functions/vsprintf.texi: Update.
88298 2007-05-18  Bruno Haible  <bruno@clisp.org>
88300         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
88302 2007-05-18  Bruno Haible  <bruno@clisp.org>
88304         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
88305         for printing 64-bit integers. Needed for mingw.
88307 2007-05-18  Bruno Haible  <bruno@clisp.org>
88309         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
88310         gl_FUNC_FREXPL_WORKS.
88311         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
88313 2007-05-18  Bruno Haible  <bruno@clisp.org>
88315         * modules/frexpl-nolibm-tests: New file.
88317         * modules/frexpl-nolibm: New file.
88318         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
88320 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88322         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
88323         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88324         GCC 4.2, which otherwise issues a lot of warnings.
88325         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
88326         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
88327         Likewise.
88328         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
88329         * modules/iconv_open (iconv.h): Likewise.
88330         * modules/locale (locale.h): Likewise.
88331         * modules/netinet_in (netinet/in.h): Likewise.
88332         * modules/sys_select (sys_select.h): Likewise.
88333         * modules/sys_socket (sys/socket.h): Likewise.
88334         * modules/sys_stat (sys/stat.h): Likewise.
88335         * modules/sysexits (sysexits.h): Likewise.
88336         * modules/unistd (unistd.h): Likewise.
88338 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88340         * modules/closein-tests (Makefile.am): Distribute
88341         `test-closein.sh'.
88343 2007-05-17  Bruno Haible  <bruno@clisp.org>
88345         * tests/test-printf-posix.output: Renamed from
88346         tests/test-fprintf-posix.out.
88347         * modules/fprintf-posix-tests: Update.
88348         * modules/printf-posix-tests: Update.
88349         * modules/vfprintf-posix-tests: Update.
88350         * modules/vprintf-posix-tests: Update.
88351         * tests/test-fprintf-posix.sh: Update.
88352         * tests/test-printf-posix.sh: Update.
88353         * tests/test-vfprintf-posix.sh: Update.
88354         * tests/test-vprintf-posix.sh: Update.
88355         Reported by Ralf Wildenhues.
88357 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88359         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
88360         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88361         GCC 4.2, which otherwise issues a lot of warnings.
88362         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
88363         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
88364         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
88365         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
88366         it should no longer be needed.
88367         * lib/string_.h: Likewise.
88368         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
88369         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
88370         * modules/inttypes (inttypes.h): Likewise.
88371         * modules/math (math.h): Likewise.
88372         * modules/search (search.h): Likewise.
88373         * modules/signal (signal.h): Likewise.
88374         * modules/stdint (stdint.h): Likewise.
88375         * modules/stdio (stdio.h): Likewise.
88376         * modules/stdlib (stdlib.h): Likewise.
88377         * modules/string (string.h): Likewise.
88378         * modules/sys_time (sys/time.h): Likewise.
88379         * modules/time (time.h): Likewise.
88380         * modules/wchar (wchar.h): Likewise.
88381         * modules/wctype (wtype.h): Likewise.
88383 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
88385         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
88387 2007-05-13  Bruno Haible  <bruno@clisp.org>
88389         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
88390         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
88391         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
88392         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
88393         (gl_PREREQ_STRTOK_R): Don't require it here.
88395 2007-05-13  Bruno Haible  <bruno@clisp.org>
88397         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
88398         when used in C++ mode.
88400 2007-05-12  Bruno Haible  <bruno@clisp.org>
88402         * lib/linebuffer.h: Tweak doc.
88403         * lib/linebuffer.c: Likewise.
88405 2007-05-12  James Youngman  <jay@gnu.org>
88407         * lib/linebuffer.c (readlinebuffer_delim): New function,
88408         like readlinebuffer, but use a caller-specified delimiter.
88409         (readlinebuffer): Just call readlinebuffer_delim with '\n'
88410         as the delimiter.
88411         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
88413 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
88415         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
88416         * modules/openat (Files): Remove openat-die.c.
88417         (Depends-on): Add openat-die.
88418         * modules/openat-die: New module.
88420 2007-05-06  Bruno Haible  <bruno@clisp.org>
88422         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
88423         Update with info about Cygwin.
88424         * doc/functions/fprintf.texi: Update.
88425         * doc/functions/printf.texi: Update.
88426         * doc/functions/snprintf.texi: Update.
88427         * doc/functions/sprintf.texi: Update.
88428         * doc/functions/vfprintf.texi: Update.
88429         * doc/functions/vprintf.texi: Update.
88430         * doc/functions/vsnprintf.texi: Update.
88431         * doc/functions/vsprintf.texi: Update.
88432         Reported by Eric Blake.
88434 2007-05-06  Bruno Haible  <bruno@clisp.org>
88436         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
88437         padding ourselves for the floating-point directives.
88438         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
88439         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
88440         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88441         gl_PRINTF_FLAG_ZERO and test its result. Invoke
88442         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
88443         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88444         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88445         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88446         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88447         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88448         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88449         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88450         * tests/test-snprintf-posix.h (test_function): Also check the width
88451         and some flags in the %f directive.
88452         * tests/test-sprintf-posix.h (test_function): Likewise.
88453         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88454         * tests/test-vasprintf-posix.c (test_function): Likewise.
88455         * doc/functions/fprintf.texi: Update.
88456         * doc/functions/printf.texi: Update.
88457         * doc/functions/snprintf.texi: Update.
88458         * doc/functions/sprintf.texi: Update.
88459         * doc/functions/vfprintf.texi: Update.
88460         * doc/functions/vprintf.texi: Update.
88461         * doc/functions/vsnprintf.texi: Update.
88462         * doc/functions/vsprintf.texi: Update.
88464 2007-05-06  Bruno Haible  <bruno@clisp.org>
88466         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
88467         pass the ' flag character to sprintf or snprintf.
88468         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
88469         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
88470         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88471         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
88472         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
88473         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88474         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88475         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88476         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88477         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88478         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88479         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88480         * tests/test-snprintf-posix.h (test_function): Also check the grouping
88481         flag.
88482         * tests/test-sprintf-posix.h (test_function): Likewise.
88483         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88484         * tests/test-vasprintf-posix.c (test_function): Likewise.
88485         * doc/functions/fprintf.texi: Update.
88486         * doc/functions/printf.texi: Update.
88487         * doc/functions/snprintf.texi: Update.
88488         * doc/functions/sprintf.texi: Update.
88489         * doc/functions/vfprintf.texi: Update.
88490         * doc/functions/vprintf.texi: Update.
88491         * doc/functions/vsnprintf.texi: Update.
88492         * doc/functions/vsprintf.texi: Update.
88494 2007-05-01  Bruno Haible  <bruno@clisp.org>
88496         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
88498 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
88500         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
88501         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
88503 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
88505         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
88506         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
88507         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
88509 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
88511         * lib/argp-help.c (struct hol_entry): New member `ord'.
88512         (HOL_ENTRY_PTRCMP): Use ord for comparison
88513         (hol_sort): Initialize ord.
88515 2007-05-01  Bruno Haible  <bruno@clisp.org>
88517         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
88518         Reported by Eric Blake.
88519         * doc/gnulib.texi (Function Substitutes): Update.
88521 2007-05-01  Bruno Haible  <bruno@clisp.org>
88523         * doc/functions.texi: Remove file, now redundant through
88524         doc/functions/*.texi.
88526 2007-05-01  Bruno Haible  <bruno@clisp.org>
88528         * modules/argp (Depends-on): Add sleep.
88530 2007-05-01  Bruno Haible  <bruno@clisp.org>
88532         * modules/sleep-tests: New file.
88533         * tests/test-sleep.c: New file.
88535         * modules/sleep: New file.
88536         * lib/sleep.c: New file.
88537         * m4/sleep.m4: New file.
88538         * lib/unistd_.h (sleep): New declaration.
88539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
88540         HAVE_SLEEP.
88541         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
88542         * doc/functions/sleep.texi: Document the sleep module.
88544 2007-05-01  Bruno Haible  <bruno@clisp.org>
88546         * lib/sigprocmask.h: Remove file.
88547         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
88548         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
88549         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
88550         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
88551         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
88552         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
88553         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
88554         HAVE_SIGSET_T as a shell variable.
88555         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
88556         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
88557         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
88558         (Depends-on): Add signal. Remove verify.
88559         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
88560         (Include): Mention <signal.h> instead of sigprocmask.h.
88561         * NEWS: Mention the change.
88562         * lib/fatal-signal.c: Don't include sigprocmask.h.
88564 2007-05-01  Bruno Haible  <bruno@clisp.org>
88566         * modules/signal: New file.
88567         * lib/signal_.h: New file.
88568         * m4/signal_h.m4: New file.
88570 2007-05-01  Bruno Haible  <bruno@clisp.org>
88572         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
88573         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
88574         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
88575         HAVE_WCTYPE_CTMP_BUG into wctype.h.
88577 2007-05-01  Bruno Haible  <bruno@clisp.org>
88579         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
88580         configure time.
88581         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
88582         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
88583         * modules/sys_stat (Makefile.am): Substitute their values into
88584         sys/stat.h.
88586 2007-05-01  Bruno Haible  <bruno@clisp.org>
88588         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
88589         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
88590         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
88592 2007-05-01  Bruno Haible  <bruno@clisp.org>
88594         * doc/header/assert.texi: Undo last change: don't mention the gnulib
88595         'assert' module here.
88597 2007-05-01  Bruno Haible  <bruno@clisp.org>
88599         * doc/functions/*.texi: New files.
88600         * doc/functions/google-ranking.txt: New file.
88601         * doc/gnulib.texi (Function Substitutes): New chapter.
88602         (ctime, inet_ntoa): Remove sections.
88603         * doc/ctime.texi: Remove file.
88604         * doc/inet_ntoa.texi: Remove file.
88605         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
88606         dependencies.
88607         (%.info): New rule, specifying a --reference-limit.
88609 2007-05-01  Bruno Haible  <bruno@clisp.org>
88611         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
88613 2007-05-01  Bruno Haible  <bruno@clisp.org>
88615         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
88616         the portability of 'mkdir' to mingw systems.
88618 2007-05-01  Bruno Haible  <bruno@clisp.org>
88620         * doc/headers/google-ranking.txt: New file.
88622 2007-04-30  Eric Blake  <ebb9@byu.net>
88624         Prefer fseeko to fseek.
88625         * modules/getpass (Depends-on): Add fseeko.
88626         * lib/getpass.c (getpass): Use fseeko, not fseek.
88628 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
88630         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
88631         assumes the sorting is stable, while most qsort implementations
88632         are not.  Use argument addresses to ensure they never compare as
88633         equal.
88635         * tests/test-argp-2.sh (usage-indent test): Fix output
88636         (func_compare): Restore diff options
88637         * tests/test-argp.c: Restore #include "progname.h"
88639 2007-04-29  Bruno Haible  <bruno@clisp.org>
88641         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
88642         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88643         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
88644         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88645         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
88646         (configure.ac): Define CHECK_SNPRINTF_POSIX.
88647         (TESTS, check_PROGRAMS): Add test-snprintf.
88648         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
88649         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
88650         (TESTS, check_PROGRAMS): Add test-vsnprintf.
88651         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
88652         assertions that fail on HP-UX, OSF/1, or IRIX.
88653         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
88655 2007-04-29  Bruno Haible  <bruno@clisp.org>
88657         * MODULES.html.sh (posix_functions): Remove 'contents'.
88659 2007-04-29  Karl Berry  <karl@gnu.org>
88661         * config/srclist.txt (gendocs_template_min): new entry.
88663 2007-04-29  Bruno Haible  <bruno@clisp.org>
88665         Work around fpurge bug on BSD systems.
88666         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
88667         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
88668         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
88669         fpurge to rpl_fpurge if the system already has this function.
88670         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
88671         the case where the system already has this function. Correct invariants
88672         on BSD systems.
88673         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
88674         BSD systems.
88676 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
88678         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
88679         proposed by Sven Verdoolaege.
88681         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
88682         options.
88683         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
88684         (usage and help tests): Update
88686 2007-04-29  Bruno Haible  <bruno@clisp.org>
88688         * tests/test-fflush.c (main): Use a file of size 17, not 10.
88689         Print more information in case of failure. Disable a test on BeOS.
88691 2007-04-29  Bruno Haible  <bruno@clisp.org>
88693         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
88694         This helps debugging on systems on which no gdb is available.
88696 2007-04-29  Bruno Haible  <bruno@clisp.org>
88698         * lib/freading.h: Improve comments.
88699         * lib/fwriting.h: Likewise.
88700         * tests/test-freading.c (main): Don't check freading immediately after
88701         repositioning. Needed for glibc.
88703 2007-04-29  Bruno Haible  <bruno@clisp.org>
88705         * lib/freading.c (freading): Trivial simplification.
88707 2007-04-28  Bruno Haible  <bruno@clisp.org>
88709         * tests/test-fwriting.c (main): Also test the interaction between
88710         fflush and fwriting.
88711         * modules/fwriting-tests (Depends-on): Add fflush.
88713         * tests/test-freading.c (main): Also test the interaction between
88714         fflush and freading.
88715         * modules/freading-tests (Depends-on): Add fflush.
88717 2007-04-28  Bruno Haible  <bruno@clisp.org>
88719         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
88720         fseeko and ftello.
88721         Suggested by Eric Blake.
88723 2007-04-28  Jim Meyering  <jim@meyering.net>
88725         Avoid false-negative in gl_STDINT_H's C99 conformance test.
88726         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
88727         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
88729 2007-04-27  Eric Blake  <ebb9@byu.net>
88731         * doc/headers/assert.texi (assert.h): Document assert module use.
88733 2007-04-27  Bruno Haible  <bruno@clisp.org>
88735         * doc/headers/*.texi: New files.
88736         * doc/gnulib.texi (Header File Substitutes): New chapter.
88737         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
88738         dependencies.
88739         (standards.info ,standards.html, standards.dvi): Update dependencies.
88740         (mostlyclean, clean): New targets.
88742 2007-04-27  Bruno Haible  <bruno@clisp.org>
88744         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
88745         * modules/sysexits (Files, Makefile.am): Update.
88747         * lib/sys_socket_.h: Renamed from lib/socket_.h.
88748         * modules/sys_socket (Files, Makefile.am): Update.
88750         * lib/sys_stat_.h: Renamed from lib/stat_.h.
88751         * modules/sys_stat (Files, Makefile.am): Update.
88753 2007-04-27  Eric Blake  <ebb9@byu.net>
88755         * lib/freading.h: Improve comments.
88756         * lib/fwriting.h: Likewise.
88757         * lib/fflush.c: Likewise.
88759         Fix closein for mingw.
88760         * modules/closein-tests: Add tests for closein.
88761         * tests/test-closein.c: New file.
88762         * tests/test-closein.sh: Likewise.
88763         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
88764         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
88766 2007-04-27  Bruno Haible  <bruno@clisp.org>
88768         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
88769         version is < 6.
88770         * lib/math_.h [__DECC]: Likewise.
88771         * lib/stdio_.h [__DECC]: Likewise.
88772         * lib/stdlib_.h [__DECC]: Likewise.
88773         * lib/string_.h [__DECC]: Likewise.
88774         * lib/time_.h [__DECC]: Likewise.
88775         * lib/wchar_.h [__DECC]: Likewise.
88776         * lib/wctype_.h [__DECC]: Likewise.
88778 2007-04-27  Bruno Haible  <bruno@clisp.org>
88780         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
88782 2007-04-27  Bruno Haible  <bruno@clisp.org>
88784         * lib/fflush.c: Add comments.
88785         * modules/fpurge-tests (Depends-on): Add fflush.
88786         * modules/freadable-tests (Depends-on): Likewise.
88787         * modules/fwritable-tests (Depends-on): Likewise.
88789 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
88791         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
88792         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
88793         Report by Bruno Haible <bruno@clisp.org>.
88795 2007-04-26  Eric Blake  <ebb9@byu.net>
88797         Fix fflush on mingw.
88798         * modules/fflush (Depends-on): Add freading.
88799         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
88800         but unread data.
88802 2007-04-26  Eric Blake  <ebb9@byu.net>
88803         and Bruno Haible  <bruno@clisp.org>
88805         Implement freading and fwriting.
88806         * lib/freading.c: New file.
88807         * lib/freading.h: Likewise.
88808         * m4/freading.m4: Likewise.
88809         * modules/freading: Likewise.
88810         * modules/freading-tests: Likewise.
88811         * tests/test-freading.c: Likewise.
88812         * lib/fwriting.c: New file.
88813         * lib/fwriting.h: Likewise.
88814         * m4/fwriting.m4: Likewise.
88815         * modules/fwriting: Likewise.
88816         * modules/fwriting-tests: Likewise.
88817         * tests/test-fwriting.c: Likewise.
88818         * MODULES.html.sh (File stream based Input/Output): Mention them.
88820 2007-04-26  Bruno Haible  <bruno@clisp.org>
88822         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
88823         'long' when we assume it.
88824         Suggested by Eric Blake.
88826 2007-04-26  Bruno Haible  <bruno@clisp.org>
88828         Ensure fseeko, ftello are declared on glibc systems.
88829         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
88830         * modules/fseeko (configure.ac-early): Likewise.
88831         * modules/ftello (configure.ac-early): Likewise.
88832         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
88833         AC_FUNC_FSEEKO for this.
88834         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
88835         (gl_CHECK_FSEEKO): Remove macro.
88837 2007-04-26  Bruno Haible  <bruno@clisp.org>
88839         * tests/test-fflush.c (main): Also check the ftell result after
88840         fflush and fseek/fseeko.
88841         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
88842         file descriptor position cache in the stream.
88843         * lib/fseeko.c (rpl_fseeko): Likewise.
88845 2007-04-26  Bruno Haible  <bruno@clisp.org>
88847         * modules/fflush-tests (Depends-on): Add fseeko.
88849 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
88850             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88852         * lib/argz_.h: ensure error_t definition is obtained in same
88853         mechanism system argz.h would have.
88854         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
88855         argz facilities are known bad.  Err on the side of caution if
88856         cross-compiling.
88858 2007-04-25  Eric Blake  <ebb9@byu.net>
88860         * lib/fpurge.c (includes): Use stdlib.h for free.
88861         * tests/test-fflush.c (main): Also test fflush-fseeko.
88863 2007-04-25  Bruno Haible  <bruno@clisp.org>
88865         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
88866         * lib/fseeko.c: New file.
88867         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
88868         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
88869         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
88870         gl_FUNC_FSEEKO.
88871         (gl_FUNC_FSEEKO): Invoke it.
88872         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
88873         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
88874         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
88876 2007-04-25  Bruno Haible  <bruno@clisp.org>
88878         * modules/fflush (Depends-on): Add ftello.
88880 2007-04-25  Bruno Haible  <bruno@clisp.org>
88882         * modules/ftello-tests: New file.
88883         * tests/test-ftello.c: New file.
88885         * modules/ftello: New file.
88886         * m4/ftello.m4: New file.
88887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
88888         HAVE_FTELLO.
88889         * lib/stdio_.h (ftello): New declaration.
88890         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
88891         HAVE_FTELLO.
88893 2007-04-25  Bruno Haible  <bruno@clisp.org>
88895         * modules/fseeko-tests: New file.
88896         * tests/test-fseeko.c: New file.
88898         * modules/fseeko: New file.
88899         * m4/fseeko.m4: New file.
88900         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
88901         HAVE_FSEEKO.
88902         * lib/stdio_.h (fseeko): New declaration.
88903         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
88904         HAVE_FSEEKO.
88906 2007-04-25  Bruno Haible  <bruno@clisp.org>
88908         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
88910 2007-04-25  Bruno Haible  <bruno@clisp.org>
88912         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
88913         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
88914         * tests/test-unistd.c: Likewise.
88915         * tests/test-fcntl.c: Likewise.
88917 2007-04-23  Eric Blake  <ebb9@byu.net>
88919         * lib/fflush.c: Fix missing include.
88920         Reported by Bruno Haible.
88922 2007-04-23  Bruno Haible  <bruno@clisp.org>
88924         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
88925         Reported by Eric Blake.
88927 2007-04-23  Bruno Haible  <bruno@clisp.org>
88929         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
88931 2007-04-23  Bruno Haible  <bruno@clisp.org>
88933         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
88935 2007-04-23  Bruno Haible  <bruno@clisp.org>
88937         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
88938         Needed on HP-UX 11.
88940 2007-04-16  Eric Blake  <ebb9@byu.net>
88942         Make fflush rely on fpurge.
88943         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
88944         open coding all variants.
88945         * modules/fflush (Depends-on): Add fpurge and unistd.
88946         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
88947         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
88949         Fix --with-tests compilation on cygwin.
88950         * modules/argmatch-tests (Makefile.am): List gnulib library first
88951         in LDADD.
88952         * modules/argp-tests (Makefile.am): Likewise.
88953         * modules/array-list-tests (Makefile.am): Likewise.
88954         * modules/array-oset-tests (Makefile.am): Likewise.
88955         * modules/avltree-list-tests (Makefile.am): Likewise.
88956         * modules/avltree-oset-tests (Makefile.am): Likewise.
88957         * modules/avltreehash-list-tests (Makefile.am): Likewise.
88958         * modules/carray-list-tests (Makefile.am): Likewise.
88959         * modules/dirname-tests (Makefile.am): Likewise.
88960         * modules/frexp-tests (Makefile.am): Likewise.
88961         * modules/isnanl-tests (Makefile.am): Likewise.
88962         * modules/linked-list-tests (Makefile.am): Likewise.
88963         * modules/linkedhash-list-tests (Makefile.am): Likewise.
88964         * modules/lock-tests (Makefile.am): Likewise.
88965         * modules/rbtree-list-tests (Makefile.am): Likewise.
88966         * modules/rbtree-oset-tests (Makefile.am): Likewise.
88967         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
88968         * modules/tls-tests (Makefile.am): Likewise.
88969         * modules/tsearch-tests (Makefile.am): Likewise.
88970         * modules/xvasprintf-tests (Makefile.am): Likewise.
88972         Fix fpurge for cygwin.
88973         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
88974         value.
88975         * modules/fpurge-tests (Depends-on): Clean up trash.
88977 2007-04-16  Simon Josefsson  <simon@josefsson.org>
88979         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
88981         * m4/autobuild.m4: Re-indent.
88983 2007-04-13  Bruno Haible  <bruno@clisp.org>
88985         * modules/fpurge-tests: New file.
88986         * tests/test-fpurge.c: New file.
88988         * modules/fpurge: New file.
88989         * lib/fpurge.h: New file.
88990         * lib/fpurge.c: New file.
88991         * m4/fpurge.m4: New file.
88993 2007-04-13  Bruno Haible  <bruno@clisp.org>
88995         * modules/fbufmode-tests: New file.
88996         * tests/test-fbufmode.c: New file.
88998         * modules/fbufmode: New file.
88999         * lib/fbufmode.h: New file.
89000         * lib/fbufmode.c: New file.
89001         * m4/fbufmode.m4: New file.
89003 2007-04-13  Bruno Haible  <bruno@clisp.org>
89005         * modules/fwritable-tests: New file.
89006         * tests/test-fwritable.c: New file.
89008         * modules/fwritable: New file.
89009         * lib/fwritable.h: New file.
89010         * lib/fwritable.c: New file.
89011         * m4/fwritable.m4: New file.
89013 2007-04-13  Bruno Haible  <bruno@clisp.org>
89015         * modules/freadable-tests: New file.
89016         * tests/test-freadable.c: New file.
89018         * modules/freadable: New file.
89019         * lib/freadable.h: New file.
89020         * lib/freadable.c: New file.
89021         * m4/freadable.m4: New file.
89023 2007-04-13  Bruno Haible  <bruno@clisp.org>
89025         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
89026         MOSTLYCLEANFILES.
89028 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
89030         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
89031         gzip bootstrap.conf to avoid dragging in i18n machinery.
89032         (gnulib_tool_option): Use it.
89034 2007-04-13  Bruno Haible  <bruno@clisp.org>
89036         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
89037         %F directives.
89038         * tests/test-vasprintf-posix.c (test_function): Likewise.
89039         * tests/test-snprintf-posix.h (test_function): Likewise.
89040         * tests/test-sprintf-posix.h (test_function): Likewise.
89041         * tests/test-fprintf-posix.h (test_function): Likewise.
89042         * tests/test-printf-posix.h (test_function): Likewise.
89043         * tests/test-fprintf-posix.out: Likewise.
89045 2007-04-13  Bruno Haible  <bruno@clisp.org>
89047         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
89048         * modules/tls-tests (configure.ac): Likewise.
89049         Reported by Arto C. Nirkko <anirkko@insel.ch>.
89051 2007-04-13  Bruno Haible  <bruno@clisp.org>
89053         * lib/tls.c (glthread_tls_get): Fix return type.
89054         Patch by Arto C. Nirkko <anirkko@insel.ch>.
89056 2007-04-12  Eric Blake  <ebb9@byu.net>
89058         * modules/gettime (Depends-on): Remove gettime.
89059         Reported by Dmitry V. Levin.
89061 2007-04-12  Bruno Haible  <bruno@clisp.org>
89063         * modules/fflush (Include): Mention <stdio.h>.
89064         * modules/strtoimax (Include): Mention <inttypes.h>.
89065         * modules/strtoumax (Include): Likewise.
89067 2007-04-12  Eric Blake  <ebb9@byu.net>
89069         * .cvsignore: New file.
89070         * .gitignore: Likewise.
89072 2007-04-12  Bruno Haible  <bruno@clisp.org>
89074         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
89075         not before, since $(LDADD) often contains libgnu.a.
89076         * modules/striconv-tests (test_striconv_LDADD): Likewise.
89077         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
89078         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
89079         Needed on Cygwin.
89081 2007-04-12  Eric Blake  <ebb9@byu.net>
89083         Work around glibc's failure to flush stdin on fclose.
89084         * lib/closein.c (close_stdin): Flush stdin before closing.
89086         Work around glibc's failure to reset seekable stdin on exit.
89087         * modules/closein: New module.
89088         * lib/closein.c: New file.
89089         * lib/closein.h: Likewise.
89090         * m4/closein.m4: Likewise.
89091         * MODULES.html.sh (File stream based Input/Output): Document it.
89093 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89095         * gnulib-tool: Rename generated 'autobuild' script to
89096         'do-autobuild' in --create-megatestdir output.
89098         * doc/gnulib.texi (Build robot for gnulib): Fix.
89100 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89102         * modules/sysexits (Depends-on): Add absolute-header.
89104 2007-04-12  Eric Blake  <ebb9@byu.net>
89106         No need to preserve errno on success.
89107         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
89108         Reported by Bruno Haible.
89110 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89112         * MODULES.html.sh (Support for maintaining and releasing
89113         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
89115 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89117         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
89119 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89121         * modules/autobuild: New module.
89123         * m4/autobuild.m4: New file.
89125 2007-04-11  Bruno Haible  <bruno@clisp.org>
89127         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
89128         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
89129         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
89130         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
89131         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
89132         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89133         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89134         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
89135         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89136         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89137         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
89138         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89139         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89140         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
89141         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89142         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89143         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
89144         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89145         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89146         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
89147         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89148         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89149         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
89150         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89151         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89152         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
89153         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89154         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89155         Reported by Eric Blake.
89157 2007-04-11  Bruno Haible  <bruno@clisp.org>
89159         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
89161 2007-04-10  Bruno Haible  <bruno@clisp.org>
89163         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
89164         for NaN and Infinity. Needed on FreeBSD 6.1.
89165         * tests/test-vasnprintf-posix.c (test_function): Undo last change
89166         regarding results for "%010a" of Infinity and NaN.
89167         * tests/test-vasprintf-posix.c (test_function): Likewise.
89168         * tests/test-snprintf-posix.h (test_function): Likewise.
89169         * tests/test-sprintf-posix.h (test_function): Likewise.
89170         * tests/test-fprintf-posix.h (test_function): Likewise.
89171         * tests/test-printf-posix.h (test_function): Likewise.
89172         * tests/test-fprintf-posix.out: Likewise.
89174 2007-04-10  Bruno Haible  <bruno@clisp.org>
89176         * modules/locale-tests: New file.
89177         * tests/test-locale.c: New file.
89179         * modules/locale: New file.
89180         * lib/locale_.h: New file.
89181         * m4/locale_h.m4: New file.
89183 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
89184             Bruno Haible  <bruno@clisp.org>
89186         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
89187         be determined, test for availability of the copysignf, copysign,
89188         copysignl functions.
89189         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
89190         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
89191         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
89193 2007-04-09  Eric Blake  <ebb9@byu.net>
89195         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
89196         * modules/stdio (Makefile.am): Support fflush.
89197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
89198         * modules/fflush: New file.
89199         * lib/fflush.c: Likewise.
89200         * m4/fflush.m4: Likewise.
89201         * modules/fflush-tests: New test.
89202         * tests/test-fflush.c: Likewise.
89203         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
89205 2007-04-06  Bruno Haible  <bruno@clisp.org>
89207         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
89208         (VASNPRINTF): Use signbit for faster determination whether to print a
89209         minus sign.
89210         * modules/vasnprintf (Files): Remove lib/float+.h.
89211         * modules/fprintf-posix (Depends-on): Add signbit.
89212         * modules/snprintf-posix (Depends-on): Likewise.
89213         * modules/sprintf-posix (Depends-on): Likewise.
89214         * modules/vasnprintf-posix (Depends-on): Likewise.
89215         * modules/vasprintf-posix (Depends-on): Likewise.
89216         * modules/vfprintf-posix (Depends-on): Likewise.
89217         * modules/vsnprintf-posix (Depends-on): Likewise.
89218         * modules/vsprintf-posix (Depends-on): Likewise.
89220 2007-04-06  Bruno Haible  <bruno@clisp.org>
89222         * tests/test-frexp.c (main): Test also the sign bit of zero results.
89223         * tests/test-frexpl.c (main): Likewise.
89224         * tests/test-ldexpl.c (main): Likewise.
89225         * modules/frexp-tests (Depends-on): Add signbit.
89226         * modules/frexpl-tests (Depdends-on): Likewise.
89227         * modules/ldexpl-tests (Depdends-on): Likewise.
89229 2007-04-06  Bruno Haible  <bruno@clisp.org>
89231         * modules/signbit-tests: New file.
89232         * tests/test-signbit.c: New file.
89234         * modules/signbit: New file.
89235         * lib/signbitf.c: New file.
89236         * lib/signbitd.c: New file.
89237         * lib/signbitl.c: New file.
89238         * m4/signbit.m4: New file.
89239         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
89240         (signbit): New macro.
89241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
89242         REPLACE_SIGNBIT.
89243         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
89244         REPLACE_FREXPL into math.h.
89246 2007-04-06  Bruno Haible  <bruno@clisp.org>
89248         * modules/isnanf-nolibm-tests: New file.
89249         * tests/test-isnanf.c: New file.
89251         * modules/isnanf-nolibm: New file.
89252         * lib/isnanf.h: New file.
89253         * lib/isnanf.c: New file.
89254         * lib/isnan.c: Consider the USE_FLOAT macro.
89255         * m4/isnanf.m4: New file.
89257 2007-04-06  Bruno Haible  <bruno@clisp.org>
89259         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
89260         (Link): New section.
89262         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
89264 2007-04-06  Bruno Haible  <bruno@clisp.org>
89266         Assume the 'long double' type.
89267         * m4/longdouble.m4: Remove file.
89268         * config/srclist.txt: Don't mention longdouble.m4.
89269         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
89270         * lib/float+.h: Likewise.
89271         * lib/frexp.c: Likewise.
89272         * lib/printf-args.h: Likewise.
89273         * lib/printf-args.c: Likewise.
89274         * lib/printf-frexp.c: Likewise.
89275         * lib/printf-parse.c: Likewise.
89276         * lib/vasnprintf.c: Likewise.
89277         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
89278         * m4/intl.m4: Likewise.
89279         * m4/isnanl.m4: Likewise.
89280         * m4/printf.m4: Likewise.
89281         * m4/printf-frexpl.m4: Likewise.
89282         * m4/vasnprintf.m4: Likewise.
89283         * modules/allocsa (Files): Remove m4/longdouble.m4.
89284         * modules/gettext (Files): Likewise.
89285         * modules/relocatable-prog-wrapper (Files): Likewise.
89286         * modules/vasnprintf (Files): Likewise.
89287         * modules/isnanl (Files): Likewise.
89288         (Include): Simplify.
89289         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
89290         (Include): Simplify.
89291         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
89292         (Include): Simplify.
89293         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
89294         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89295         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
89296         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89297         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89298         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89299         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
89300         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89301         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89302         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89303         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
89304         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89305         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
89306         * tests/test-isnanl.c: Likewise.
89307         * tests/test-snprintf-posix.h: Likewise.
89308         * tests/test-sprintf-posix.h: Likewise.
89309         * tests/test-vasnprintf-posix.c: Likewise.
89310         * tests/test-vasnprintf-posix2.c: Likewise.
89311         * tests/test-vasprintf-posix.c: Likewise.
89313 2007-04-06  Bruno Haible  <bruno@clisp.org>
89315         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
89316         * lib/math_.h [__DECC]: Include the overridden include file through
89317         #include_next, outside the double-inclusion guard.
89318         * lib/stdio_.h [__DECC]: Likewise.
89319         * lib/stdlib_.h [__DECC]: Likewise.
89320         * lib/string_.h [__DECC]: Likewise.
89321         * lib/time_.h [__DECC]: Likewise.
89322         * lib/wchar_.h [__DECC]: Likewise.
89323         * lib/wctype_.h [__DECC]: Likewise.
89324         * lib/inttypes_.h [__DECC]: Likewise.
89325         Reported by Albert Chin <china@thewrittenword.com> in
89326         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
89328 2007-04-04  Eric Blake  <ebb9@byu.net>
89330         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
89331         1.5.x.
89333 2007-04-04  Bruno Haible  <bruno@clisp.org>
89335         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
89336         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
89338 2007-04-04  Bruno Haible  <bruno@clisp.org>
89340         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
89341         results for "%010a" of Infinity and NaN.
89342         * tests/test-vasprintf-posix.c (test_function): Likewise.
89343         * tests/test-snprintf-posix.h (test_function): Likewise.
89344         * tests/test-sprintf-posix.h (test_function): Likewise.
89345         * tests/test-fprintf-posix.h (test_function): Remove these tests.
89346         * tests/test-printf-posix.h (test_function): Likewise.
89347         * tests/test-fprintf-posix.out: Update.
89348         Needed for FreeBSD 6.1.
89350 2007-04-04  Bruno Haible  <bruno@clisp.org>
89352         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
89353         directly used by the gnulib modules nor by gnulib-tool.
89355 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
89357         * DEPENDENCIES: Give overall description of version dependency
89358         desirability.  Use more-typical names for apps.
89359         Add shell, coreutils, diffutils, grep, tar, gzip.
89361 2007-04-04  Simon Josefsson  <simon@josefsson.org>
89363         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
89365 2007-04-04  Karl Berry  <karl@gnu.org>
89367         * MODULES.html.sh (func_module): missing '.
89369 2007-04-03  Bruno Haible  <bruno@clisp.org>
89371         * modules/argmatch-tests (Makefile.am): New variable
89372         test_argmatch_LDADD.
89373         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
89374         * modules/array-list-tests (Makefile.am): New variable
89375         test_array_list_LDADD.
89376         * modules/array-oset-tests (Makefile.am): New variable
89377         test_array_oset_LDADD.
89378         * modules/avltree-list-tests (Makefile.am): New variable
89379         test_avltree_list_LDADD.
89380         * modules/avltree-oset-tests (Makefile.am): New variable
89381         test_avltree_oset_LDADD.
89382         * modules/avltreehash-list-tests (Makefile.am): New variable
89383         test_avltreehash_list_LDADD.
89384         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
89385         test_canonicalize_lgpl_LDADD.
89386         * modules/carray-list-tests (Makefile.am): New variable
89387         test_carray_list_LDADD.
89388         * modules/dirname-tests (Makefile.am): New variable
89389         test_dirname_LDADD.
89390         * modules/linked-list-tests (Makefile.am): New variable
89391         test_linked_list_LDADD.
89392         * modules/linkedhash-list-tests (Makefile.am): New variable
89393         test_linkedhash_list_LDADD.
89394         * modules/rbtree-list-tests (Makefile.am): New variable
89395         test_rbtree_list_LDADD.
89396         * modules/rbtree-oset-tests (Makefile.am): New variable
89397         test_rbtree_oset_LDADD.
89398         * modules/rbtreehash-list-tests (Makefile.am): New variable
89399         test_rbtreehash_list_LDADD.
89400         * modules/xvasprintf-tests (Makefile.am): New variable
89401         test_xvasprintf_LDADD.
89402         Reported by Eric Blake.
89404 2007-04-03  Eric Blake  <ebb9@byu.net>
89406         * DEPENDENCIES: Weaken m4 requirements.
89408 2007-04-03  Bruno Haible  <bruno@clisp.org>
89410         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
89411         * modules/isnanl-tests (configure.ac): Likewise.
89413 2007-04-03  Ben Pfaff  <blp@gnu.org>
89415         * modules/iconv_open: Add $(srcdir)/ to source directory
89416         references in Makefile fragments that call gperf, to fix VPATH
89417         builds.
89419 2007-04-03  Bruno Haible  <bruno@clisp.org>
89421         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
89422         * lib/ldexpl.c: Undo last change.
89424 2007-04-03  Bruno Haible  <bruno@clisp.org>
89426         * modules/printf-frexpl (Depends-on): Undo last change.
89427         (Files): Add m4/ldexpl.m4.
89429 2007-04-03  Bruno Haible  <bruno@clisp.org>
89431         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
89432         * modules/isnanl (Link): New section.
89434         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
89435         * modules/frexp (Link): New section.
89437         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
89438         * modules/frexpl (Link): New section.
89440         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
89441         * modules/ldexpl (Link): New section.
89443 2007-04-03  Bruno Haible  <bruno@clisp.org>
89445         * modules/TEMPLATE-EXTENDED: New file.
89446         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
89448 2007-04-03  Bruno Haible  <bruno@clisp.org>
89450         * DEPENDENCIES: New file.
89451         Suggested by Simon Josefsson.
89453 2007-04-03  Bruno Haible  <bruno@clisp.org>
89455         * doc/gnulib.texi: Escape @.
89457 2007-04-03  James Youngman  <jay@gnu.org>
89458         and Paul Eggert  <eggert@cs.ucla.edu>
89460         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
89461         birthtime on all systems that have birthtime, not just those which
89462         use st_birthtimensec rather than st_birthtim.  Putting zero in
89463         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
89464         that the birth time is not available for files on an NFS mount.
89466 2007-04-03  Simon Josefsson  <simon@josefsson.org>
89468         * modules/memxor: Move back from crypto/, suggested by Bruno.
89469         * modules/crypto/hmac-sha1: Fix memxor dependency.
89471         * modules/crypto/gc: Moved from ../.
89473 2007-04-02  Eric Blake  <ebb9@byu.net>
89475         * lib/ldexpl.c (includes): Avoid libm.
89477         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
89479 2007-04-02  Bruno Haible  <bruno@clisp.org>
89481         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
89482         on IRIX.
89484 2007-04-02  Bruno Haible  <bruno@clisp.org>
89486         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
89487         x86 or x86_64 platforms running MacOS X.
89488         Reported by Ryan Schmidt <@ryandesign.com>.
89490 2007-04-02  Bruno Haible  <bruno@clisp.org>
89492         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
89493         i386.
89495 2007-04-01  Simon Josefsson  <simon@josefsson.org>
89497         * modules/crypto/arcfour: Moved from ../.
89498         * modules/crypto/arcfour-tests: Moved from ../.
89499         * modules/crypto/arctwo: Moved from ../.
89500         * modules/crypto/arctwo-tests: Moved from ../.
89501         * modules/crypto/des: Moved from ../.
89502         * modules/crypto/des-tests: Moved from ../.
89503         * modules/crypto/gc-arcfour: Moved from ../.
89504         * modules/crypto/gc-arcfour-tests: Moved from ../.
89505         * modules/crypto/gc-arctwo: Moved from ../.
89506         * modules/crypto/gc-arctwo-tests: Moved from ../.
89507         * modules/crypto/gc-des: Moved from ../.
89508         * modules/crypto/gc-des-tests: Moved from ../.
89509         * modules/crypto/gc-hmac-md5: Moved from ../.
89510         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
89511         * modules/crypto/gc-hmac-sha1: Moved from ../.
89512         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
89513         * modules/crypto/gc-md2: Moved from ../.
89514         * modules/crypto/gc-md2-tests: Moved from ../.
89515         * modules/crypto/gc-md4: Moved from ../.
89516         * modules/crypto/gc-md4-tests: Moved from ../.
89517         * modules/crypto/gc-md5: Moved from ../.
89518         * modules/crypto/gc-md5-tests: Moved from ../.
89519         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
89520         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
89521         * modules/crypto/gc-random: Moved from ../.
89522         * modules/crypto/gc-rijndael: Moved from ../.
89523         * modules/crypto/gc-rijndael-tests: Moved from ../.
89524         * modules/crypto/gc-sha1: Moved from ../.
89525         * modules/crypto/gc-sha1-tests: Moved from ../.
89526         * modules/crypto/gc-tests: Moved from ../.
89527         * modules/crypto/hmac-md5: Moved from ../.
89528         * modules/crypto/hmac-md5-tests: Moved from ../.
89529         * modules/crypto/hmac-sha1: Moved from ../.
89530         * modules/crypto/hmac-sha1-tests: Moved from ../.
89531         * modules/crypto/md2: Moved from ../.
89532         * modules/crypto/md2-tests: Moved from ../.
89533         * modules/crypto/md4: Moved from ../.
89534         * modules/crypto/md4-tests: Moved from ../.
89535         * modules/crypto/md5: Moved from ../.
89536         * modules/crypto/md5-tests: Moved from ../.
89537         * modules/crypto/memxor: Moved from ../.
89538         * modules/crypto/rijndael: Moved from ../.
89539         * modules/crypto/rijndael-tests: Moved from ../.
89540         * modules/crypto/sha1: Moved from ../.
89542 2007-03-30  James Youngman  <jay@gnu.org>
89544         * tests/test-stat-time.c (prepare_test): use chmod() rather than
89545         rename() to change the ctime of a file (because ctime is unaffected
89546         by rename on jfs2 on AIX 5.1).
89547         (main): Start by doing cleanup, in case a previous run failed leaving
89548         test files behind.
89550 2007-03-31  Bruno Haible  <bruno@clisp.org>
89552         Support old proprietary implementations of iconv.
89553         * modules/iconv_open: New file.
89554         * lib/iconv_.h: New file.
89555         * m4/iconv_h.m4: New file.
89556         * lib/iconv_open.c: New file.
89557         * lib/iconv_open-aix.gperf: New file.
89558         * lib/iconv_open-hpux.gperf: New file.
89559         * lib/iconv_open-irix.gperf: New file.
89560         * lib/iconv_open-osf.gperf: New file.
89561         * m4/iconv_open.m4: New file.
89562         * modules/linebreak (Depends-on): Add iconv_open.
89563         * modules/striconv (Depends-on): Likewise.
89564         * modules/striconveh (Depends-on): Likewise.
89565         * modules/unicodeio (Depends-on): Likewise.
89566         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
89567         (iconv_t)(-1).
89568         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
89569         conversion if cd is (iconv_t)(-1).
89570         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
89571         is not possible.
89573 2007-03-31  Bruno Haible  <bruno@clisp.org>
89575         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
89576         work on Solaris either. Protect also second use of "autodetect_jp".
89578 2007-03-31  Bruno Haible  <bruno@clisp.org>
89580         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
89581         the function is not present.
89583 2007-03-31  Bruno Haible  <bruno@clisp.org>
89585         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
89586         the function is not present.
89588 2007-03-31  Bruno Haible  <bruno@clisp.org>
89590         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
89591         a bug in HP-UX iconv_open().
89593 2007-03-31  Bruno Haible  <bruno@clisp.org>
89595         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
89596         (Mathematics <math.h>): New section, add fpieee.
89597         (Input/output <stdio.h>): Add fseterr.
89598         (Mathematics <math.h>): New section, add printf-frexp.
89599         (Container data structures): Add sublist.
89600         (Core language properties): Add fpucw, inline.
89601         (Functions for greatest-width integer types <inttypes.h>): Add
89602         imaxabs, imaxdiv, inttypes.
89603         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
89604         isnanl-nolibm, ldexp.
89605         (Mathematics <math.h>): New section, add printf-frexpl.
89606         (Support for systems lacking POSIX:2001): Add fprintf-posix,
89607         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
89608         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
89609         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
89610         (Unicode string functions): Add unistr/u*-mbtoucr.
89611         (Java): Add javacomp-script, javaexec-script.
89612         (C#): Add csharpcomp-script, csharpexec-script.
89613         (Support for building libraries and executables): Add havelib,
89614         relocatable-*.
89615         (Support for maintaining and releasing projects): Renamed from
89616         'Support for maintaining and release projects'. Add announce-gen.
89618 2007-03-31  Bruno Haible  <bruno@clisp.org>
89620         * README: Talk primarily about git.
89621         (git and CVS): Renamed from CVS.
89622         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
89623         gnulib is available through git.
89624         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
89626 2007-03-30  Bruno Haible  <bruno@clisp.org>
89628         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
89629         * lib/poll_.h: Likewise.
89630         * lib/stat_.h: Likewise.
89631         * lib/sys_time_.h: Likewise.
89632         * lib/sysexit_.h: Likewise.
89633         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
89634         * lib/stdbool_.h: Likewise.
89635         * lib/byteswap_.h: Add double-inclusion guard.
89637 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
89639         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
89641 2007-03-30  Karl Berry  <karl@gnu.org>
89643         * config/srclist-update: double space after USA in the license
89644         substitution, since that's how it's usually (?) written.
89646 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
89648         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
89649         reported by Bruno Haible.
89651 2007-03-29  Bruno Haible  <bruno@clisp.org>
89653         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
89654         a bug in AIX iconv().
89656 2007-03-29  Bruno Haible  <bruno@clisp.org>
89658         * modules/ldexpl-tests: New file.
89659         * tests/test-ldexpl.c: New file.
89661 2007-03-29  Bruno Haible  <bruno@clisp.org>
89663         * lib/ldexpl.c: Include fpucw.h.
89664         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
89665         multiplication.
89666         * modules/ldexpl (Depends-on): Add fpucw.
89668 2007-03-29  Bruno Haible  <bruno@clisp.org>
89670         * modules/ldexpl: New file.
89671         * m4/ldexpl.m4: New file.
89672         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
89673         set.
89674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
89675         REPLACE_LDEXPL.
89676         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
89677         REPLACE_LDEXPL.
89678         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
89679         gl_FUNC_LDEXPL_WORKS.
89680         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
89681         * modules/mathl (Files): Remove lib/ldexpl.c.
89682         (Depends-on): Add ldexpl.
89684 2007-03-29  Bruno Haible  <bruno@clisp.org>
89686         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
89688 2007-03-29  Bruno Haible  <bruno@clisp.org>
89690         * tests/test-striconveh.c (main): Don't assume that a direct conversion
89691         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
89692         and possibly also HP-UX.
89693         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
89694         work on AIX, IRIX, HP-UX, OSF/1.
89695         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
89696         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
89697         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
89698         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
89699         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
89700         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
89702 2007-03-29  Bruno Haible  <bruno@clisp.org>
89704         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
89706 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
89708         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
89709         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
89711 2007-03-29  Eric Blake  <ebb9@byu.net>
89713         * lib/acl-internal.h: Remove redundant include.
89714         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
89715         Cygwin when a file is locked.
89717 2007-03-29  Bruno Haible  <bruno@clisp.org>
89719         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
89720         file.
89721         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
89723 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
89725         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
89726         try to remove a parent directory if the child couldn't be removed
89727         (except for the first rmdir, which could fail because the child
89728         doesn't exist).  Problem reported by Jeff Blaine in
89729         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
89731 2007-03-28  Bruno Haible  <bruno@clisp.org>
89733         * lib/striconveh.c (utf8conv_carefully): New function.
89734         (mem_cd_iconveh_internal): Invoke it.
89736 2007-03-28  Bruno Haible  <bruno@clisp.org>
89738         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
89739         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
89740         input.
89741         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
89742         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
89743         unistr/u8-uctomb.
89745 2007-03-28  Bruno Haible  <bruno@clisp.org>
89747         * modules/unistr/u8-mbtoucr: New file.
89748         * lib/unistr/u8-mbtoucr.c: New file.
89749         * modules/unistr/u16-mbtoucr: New file.
89750         * lib/unistr/u16-mbtoucr.c: New file.
89751         * modules/unistr/u16-mbtoucr: New file.
89752         * lib/unistr/u16-mbtoucr.c: New file.
89753         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
89755 2007-03-27  Simon Josefsson  <simon@josefsson.org>
89756             Bruno Haible  <bruno@clisp.org>
89758         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
89759         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
89760         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
89762         * m4/stdio_h.m4: Add stubs for vasprintf too.
89764         * modules/stdio: Support vasprintf in sed command.
89766         * modules/vasprintf: Depend on stdio for prototypes.  Remove
89767         vasprintf.h.  Add stdio module indicator.
89769         * lib/stdio_.h: Declare asprintf and vasprintf, based on
89770         vasprintf.h.
89772         * lib/vasprintf.h: File removed.
89774         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
89775         * lib/vasprintf.c: Ditto.
89776         * lib/xvasprintf.c: Ditto.
89777         * tests/test-vasprintf-posix.c: Ditto.
89778         * tests/test-vasprintf.c: Ditto.
89780 2007-03-27  Bruno Haible  <bruno@clisp.org>
89782         Make vasnprintf multithread-safe.
89783         * lib/vasnprintf.c (decimal_point_char): New function.
89784         (VASNPRINTF): Use it.
89785         Suggested by Simon Josefsson.
89787 2007-03-27  Eric Blake  <ebb9@byu.net>
89789         Support sub-second birthtime on cygwin.
89790         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
89791         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
89792         (get_stat_birthtime): Also work with st_birthtim.
89794 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
89796         * lib/stat-time.h (USE_BIRTHTIME): Remove.
89797         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
89798         (get_stat_birthtime_ns): Do not try to use "spare" fields.
89799         (get_stat_birthtime_ns): Simplify compile-time tests.
89800         (get_stat_birthtime): Change the API to look like
89801         get_stat_mtime etc., except return a negative tv_nsec on error.
89802         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
89803         Don't check for "spare" fields.
89804         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
89805         or for struct stat.st_birthtime, as these tests aren't used.
89806         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
89808 2007-03-27  Bruno Haible  <bruno@clisp.org>
89810         * lib/stat-time.h: Include <sys/stat.h>.
89812 2007-03-27  James Youngman  <jay@gnu.org>
89814         * lib/stat-time.h (get_stat_birthtime): New function for
89815           retrieving st_birthtime as provided by UFS2 (hence *BSD).
89816         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
89817           and its variants.
89818         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
89819         * modules/stat-time-test: New file.
89820         * tests/test-stat-time.c: New test, devised by Bruno Haible.
89822 2007-03-26  Bruno Haible  <bruno@clisp.org>
89824         Better support of signalling NaNs.
89825         * lib/atanl.c: Include isnanl.h.
89826         (atanl): Perform test for NaN at the beginning of the function and
89827         through a call to isnanl.
89828         * lib/cosl.c: Include isnanl.h.
89829         (cosl): Perform test for NaN at the beginning of the function and
89830         through a call to isnanl.
89831         * lib/ldexpl.c: Include isnanl.h.
89832         (ldexpl): Perform test for NaN through a call to isnanl.
89833         * lib/logl.c: Include isnanl.h.
89834         (logl): Perform test for NaN at the beginning of the function and
89835         through a call to isnanl.
89836         * lib/sinl.c: Include isnanl.h.
89837         (sinl): Perform test for NaN at the beginning of the function and
89838         through a call to isnanl.
89839         * lib/sqrtl.c: Include isnanl.h.
89840         (sqrtl): Perform test for NaN at the beginning of the function and
89841         through a call to isnanl.
89842         * lib/tanl.c: Include isnanl.h.
89843         (tanl): Perform test for NaN at the beginning of the function and
89844         through a call to isnanl.
89845         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
89846         * modules/mathl (Depends-on): Add isnanl.
89848 2007-03-26  Eric Blake  <ebb9@byu.net>
89850         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
89851         regression in logic sense of previous patch.
89853 2007-03-26  Bruno Haible  <bruno@clisp.org>
89855         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
89856         unportable shell command "if ! ...".
89857         Reported by Ralf Wildenhues.
89859 2007-03-25  Bruno Haible  <bruno@clisp.org>
89861         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
89862         <sysexits.h> file, and only add EX_CONFIG.
89863         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
89864         absolute file name and whether it is sufficient. Substitute also
89865         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
89866         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
89867         ABSOLUTE_SYSEXITS_H into sysexits.h.
89869 2007-03-25  Bruno Haible  <bruno@clisp.org>
89871         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
89872         hints is NULL.
89874 2007-03-25  Bruno Haible  <bruno@clisp.org>
89876         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
89877         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
89879 2007-03-25  Bruno Haible  <bruno@clisp.org>
89881         * lib/vasnprintf.c: Include langinfo.h.
89882         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
89883         multithread-safe.
89884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
89885         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
89886         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
89887         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
89888         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
89889         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
89890         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
89891         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
89892         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
89893         Reported by Simon Josefsson.
89895 2007-03-25  Bruno Haible  <bruno@clisp.org>
89897         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
89898         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
89899         * modules/vasnprintf (Depends-on): Add stdint.
89901 2007-03-25  Bruno Haible  <bruno@clisp.org>
89903         * modules/fpieee: New file.
89904         * m4/fpieee.m4: New file.
89905         * modules/isnan-nolibm (Depends-on): Add fpieee.
89906         * modules/isnanl-nolibm (Depends-on): Add fpieee.
89907         * modules/isnanl (Depends-on): Add fpieee.
89909 2007-03-25  Bruno Haible  <bruno@clisp.org>
89911         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
89913 2007-03-25  Bruno Haible  <bruno@clisp.org>
89915         Avoid test failures on IRIX 6.5.
89916         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
89917         (main): Use it.
89918         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
89919         macros.
89920         (main): Use them.
89922 2007-03-25  Bruno Haible  <bruno@clisp.org>
89924         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
89925         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
89926         exists but doesn't work.
89927         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
89928         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
89929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
89930         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
89931         math.h.
89933 2007-03-25  Bruno Haible  <bruno@clisp.org>
89935         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
89936         returns inf. Needed on IRIX 6.5.
89938 2007-03-25  Bruno Haible  <bruno@clisp.org>
89940         * tests/test-frexpl.c: Include isnanl-nolibm.h.
89941         (main): Use isnanl instead of x != x idiom.
89942         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
89944         * tests/test-frexp.c: Include isnan.h.
89945         (main): Use isnan instead of x != x idiom.
89946         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
89948 2007-03-25  Bruno Haible  <bruno@clisp.org>
89950         * tests/test-frexp.c (NaN): New function/macro.
89951         (main): Use it instead of 0.0 / 0.0.
89952         * tests/test-isnan.c (NaN): New function/macro.
89953         (main): Use it instead of 0.0 / 0.0.
89954         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
89955         (test_function): Use it instead of 0.0 / 0.0.
89956         * tests/test-vasprintf-posix.c (NaN): New function/macro.
89957         (test_function): Use it instead of 0.0 / 0.0.
89958         * tests/test-snprintf-posix.h (NaN): New function/macro.
89959         (test_function): Use it instead of 0.0 / 0.0.
89960         * tests/test-sprintf-posix.h (NaN): New function/macro.
89961         (test_function): Use it instead of 0.0 / 0.0.
89962         * tests/test-fprintf-posix.h (NaN): New function/macro.
89963         (test_function): Use it instead of 0.0 / 0.0.
89964         * tests/test-printf-posix.h (NaN): New function/macro.
89965         (test_function): Use it instead of 0.0 / 0.0.
89967         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
89969 2007-03-25  Bruno Haible  <bruno@clisp.org>
89971         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
89973 2007-03-25  Bruno Haible  <bruno@clisp.org>
89975         * lib/regexec.c (merge_state_with_log): Make static.
89977 2007-03-25  Bruno Haible  <bruno@clisp.org>
89979         * lib/trigl.c (kernel_rem_pio2): Make static.
89981 2007-03-25  Bruno Haible  <bruno@clisp.org>
89983         * lib/sincosl.c (sincosl_table): Make static.
89985 2007-03-25  Bruno Haible  <bruno@clisp.org>
89987         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
89988         if the compiler does not support C99.
89990 2007-03-25  Bruno Haible  <bruno@clisp.org>
89992         * modules/time (Makefile.am): Ensure all rule action lines start with a
89993         tab.
89995 2007-03-24  Bruno Haible  <bruno@clisp.org>
89997         * modules/tsearch-tests: New file.
89998         * tests/test-tsearch.sh: New file.
89999         * tests/test-tsearch.c: New file, mostly copied from glibc.
90001         * modules/search-tests: New file.
90002         * tests/test-search.c: New file.
90004         * modules/search: New file.
90005         * lib/search_.h: New file, incorporating lib/tsearch.h.
90006         * m4/search_h.m4: New file.
90007         * lib/tsearch.h: Remove file.
90008         * lib/tsearch.c: Include search.h instead of tsearch.h.
90009         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
90010         HAVE_TSEARCH.
90011         * modules/tsearch (Files): Remove lib/tsearch.h.
90012         (Depends-on): Add search.
90013         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
90014         (Include): Change tsearch.h into search.h.
90016 2007-03-24  Bruno Haible  <bruno@clisp.org>
90018         * modules/fpucw: New file.
90019         * lib/fpucw.h: New file.
90020         * lib/frexp.c: Include fpucw.h.
90021         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
90022         (FUNC): Use them.
90023         * lib/printf-frexp.c: Include fpucw.h.
90024         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
90025         (FUNC): Use them.
90026         * lib/vasnprintf.c: Include fpucw.h.
90027         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
90028         'long double' calculations.
90029         * tests/test-frexpl.c: Include fpucw.h.
90030         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
90031         * tests/test-printf-frexpl.c: Include fpucw.h.
90032         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
90033         * modules/frexpl (Depends-on): Add fpucw.
90034         * modules/printf-frexpl (Depends-on): Likewise.
90035         * modules/fprintf-posix (Depends-on): Likewise.
90036         * modules/snprintf-posix (Depends-on): Likewise.
90037         * modules/sprintf-posix (Depends-on): Likewise.
90038         * modules/vasnprintf-posix (Depends-on): Likewise.
90039         * modules/vasprintf-posix (Depends-on): Likewise.
90040         * modules/vfprintf-posix (Depends-on): Likewise.
90041         * modules/vsnprintf-posix (Depends-on): Likewise.
90042         * modules/vsprintf-posix (Depends-on): Likewise.
90043         * modules/frexpl-tests (Depends-on): Likewise.
90044         * modules/printf-frexpl-tests (Depends-on): Likewise.
90046 2007-03-24  Bruno Haible  <bruno@clisp.org>
90048         * lib/float+.h: New file.
90049         * lib/isnan.c: Include float+.h.
90050         (SIZE): New macro.
90051         (FUNC): Compare only SIZE bytes of the value.
90052         * lib/vasnprintf.c: Include float+.h.
90053         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
90054         SIZEOF_LDBL or SIZEOF_DBL bytes.
90055         * modules/isnan-nolibm (Files): Add lib/float+.h.
90056         * modules/isnanl-nolibm (Files): Add lib/float+.h.
90057         * modules/isnanl (Files): Add lib/float+.h.
90058         * modules/vasnprintf (Files): Add lib/float+.h.
90060 2007-03-24  Bruno Haible  <bruno@clisp.org>
90062         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
90063         include isnanl-nolibm.h.
90065 2007-03-24  Bruno Haible  <bruno@clisp.org>
90067         * tests/test-read-file.c (main): Don't produce spurious output for
90068         expected situations. Make the test fail if it encountered unexpected
90069         results.
90071 2007-03-24  Bruno Haible  <bruno@clisp.org>
90073         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
90074         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
90076 2007-03-24  Bruno Haible  <bruno@clisp.org>
90078         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
90080 2007-03-24  Bruno Haible  <bruno@clisp.org>
90082         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
90083         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
90085         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
90086         * modules/utf8-ucs4: Turn into a symbolic link to module
90087         unistr/u8-mbtouc.
90089         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
90090         utf8-ucs4-unsafe.
90091         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
90092         unistr/u8-mbtouc-unsafe.
90094         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
90095         * modules/utf16-ucs4: Turn into a symbolic link to module
90096         unistr/u16-mbtouc.
90098         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
90099         utf16-ucs4-unsafe.
90100         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
90101         unistr/u16-mbtouc-unsafe.
90103         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
90104         * modules/ucs4-utf8: Turn into a symbolic link to module
90105         unistr/u8-ubtomb.
90107         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
90108         * modules/ucs4-utf16: Turn into a symbolic link to module
90109         unistr/u16-ubtomb.
90111 2007-03-24  Bruno Haible  <bruno@clisp.org>
90113         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
90114         Enable the function only if HAVE_INLINE.
90115         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
90116         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
90117         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
90118         Enable the function only if HAVE_INLINE.
90119         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
90120         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
90121         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
90122         Enable the function only if HAVE_INLINE.
90123         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
90124         Enable the function only if HAVE_INLINE.
90125         * modules/utf8-ucs4: Update.
90126         * modules/utf8-ucs4-unsafe: Update.
90127         * modules/utf16-ucs4: Update.
90128         * modules/utf16-ucs4-unsafe: Update.
90129         * modules/ucs4-utf8: Update.
90130         * modules/ucs4-utf16: Update.
90132 2007-03-24  Bruno Haible  <bruno@clisp.org>
90134         * lib/utf8-ucs4.h: Remove file.
90135         * lib/utf8-ucs4-unsafe.h: Remove file.
90136         * lib/utf16-ucs4.h: Remove file.
90137         * lib/utf16-ucs4-unsafe.h: Remove file.
90138         * lib/ucs4-utf8.h: Remove file.
90139         * lib/ucs4-utf16.h: Remove file.
90140         * lib/unistr.h: Include their previous contents.
90141         * m4/utf-ucs4.m4: Remove file.
90142         * m4/ucs4-utf.m4: Remove file.
90143         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
90144         (Depends-on): Add unistr/base.
90145         (configure.ac): Remove gl_UTF_UCS4.
90146         (Makefile.am): Update.
90147         (Include): Change to unistr.h.
90148         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
90149         (Depends-on): Add unistr/base.
90150         (configure.ac): Remove gl_UTF_UCS4.
90151         (Makefile.am): Update.
90152         (Include): Change to unistr.h.
90153         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
90154         (Depends-on): Add unistr/base.
90155         (configure.ac): Remove gl_UTF_UCS4.
90156         (Makefile.am): Update.
90157         (Include): Change to unistr.h.
90158         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
90159         (Depends-on): Add unistr/base.
90160         (configure.ac): Remove gl_UTF_UCS4.
90161         (Makefile.am): Update.
90162         (Include): Change to unistr.h.
90163         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
90164         (Depends-on): Add unistr/base.
90165         (configure.ac): Remove gl_UCS4_UTF.
90166         (Makefile.am): Update.
90167         (Include): Change to unistr.h.
90168         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
90169         (Depends-on): Add unistr/base.
90170         (configure.ac): Remove gl_UCS4_UTF.
90171         (Makefile.am): Update.
90172         (Include): Change to unistr.h.
90173         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
90174         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
90175         utf8-ucs4-unsafe.h.
90176         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
90177         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
90178         utf16-ucs4-unsafe.h.
90179         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
90180         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
90181         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
90182         * lib/unistr/u8-strchr.c: Likewise.
90183         * lib/unistr/u8-strrchr.c: Likewise.
90184         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
90185         * lib/unistr/u16-strchr.c: Likewise.
90186         * lib/unistr/u16-strrchr.c: Likewise.
90187         * lib/striconveh.c: Update.
90188         * lib/linebreak.c: Update.
90190 2007-03-24  Bruno Haible  <bruno@clisp.org>
90192         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
90193         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
90195 2007-03-22  Bruno Haible  <bruno@clisp.org>
90197         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
90199 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
90201         * MODULES.html.sh (File system functions): New module write-any-file.
90202         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
90203         * m4/write-any-file.m4: New files.
90205 2007-03-23  Eric Blake  <ebb9@byu.net>
90207         * gnulib-tool: Rearrange space-tab sequences, since some editors
90208         like to eat them.
90210 2007-03-23  Eric Blake  <ebb9@byu.net>
90212         * lib/version-etc.c (version_etc_va): Update license wording to
90213         be more concise.  Recommended by Richard Stallman.
90215 2007-03-22  Bruno Haible  <bruno@clisp.org>
90217         * lib/poll.c (MSG_PEEK): New fallback definition.
90219 2007-03-22  Bruno Haible  <bruno@clisp.org>
90221         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
90222         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
90223         (main): Update.
90224         Fixes a compilation error on BeOS.
90226 2007-03-22  Bruno Haible  <bruno@clisp.org>
90228         * modules/frexpl-tests: New file.
90229         * tests/test-frexpl.c: New file.
90231         * modules/frexpl: New file.
90232         * m4/frexpl.m4: New file.
90233         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
90234         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
90235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
90236         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
90237         (Depends-on): Add frexpl. Remove isnanl-nolibm.
90238         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
90240 2007-03-22  Bruno Haible  <bruno@clisp.org>
90242         * lib/frexpl.c: Share code with lib/frexp.c.
90243         * modules/mathl (Files): Add lib/frexp.c.
90244         (Depends-on): Add isnanl-nolibm.
90246 2007-03-22  Bruno Haible  <bruno@clisp.org>
90248         * modules/printf-frexp (Files): Add m4/frexp.m4.
90249         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
90250         only if the found frexp function actually works.
90252 2007-03-22  Bruno Haible  <bruno@clisp.org>
90254         * lib/frexp.c: Remove older implementation that uses divisions.
90256 2007-03-21  Bruno Haible  <bruno@clisp.org>
90258         * modules/frexp-tests: New file.
90259         * tests/test-frexp.c: New file.
90261         * modules/frexp: New file.
90262         * lib/frexp.c: New file.
90263         * m4/frexp.m4: New file.
90264         * lib/math_.h (frexp): New declaration.
90265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
90266         REPLACE_FREXP.
90267         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
90269 2007-03-21  Bruno Haible  <bruno@clisp.org>
90271         * modules/isnanl-tests: New file.
90272         * tests/test-isnanl.c: New file.
90274         * modules/isnanl: New file.
90275         * lib/isnanl.h: New file.
90276         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
90277         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
90278         gl_FUNC_ISNANL_WORKS.
90279         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
90280         New macros.
90282 2007-03-21  Bruno Haible  <bruno@clisp.org>
90284         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
90285         lib/isnanl.h.
90286         (Include): Update.
90287         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
90288         * lib/vasnprintf.c: Update.
90289         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
90290         tests/test-isnanl.h, remove tests/test-isnanl.c.
90291         (Makefile.am): Update.
90292         * tests/test-isnanl-nolibm.c: New file.
90293         * tests/test-isnanl.h: New file.
90294         * tests/test-isnanl.c: Remove file.
90296 2007-03-21  Jim Meyering  <jim@meyering.net>
90298         When trying to open ".", treat ESTALE like EACCES.
90299         * lib/savewd.c (savewd_save): Resort to forking not just upon
90300         failure with EACCES, but also when errno is ESTALE.
90302 2007-03-20  Bruno Haible  <bruno@clisp.org>
90304         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
90305         Needed on AIX 5.1. Reported by Matthew Woehlke.
90307 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90309         Suggestions by Bruno Haible:
90310         * lib/acl-internal.h: Include "gettext.h" rather than rolling
90311         our own.
90312         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
90313         * modules/acl (Depends-on): Add gettext.
90315 2007-03-19  Bruno Haible  <bruno@clisp.org>
90317         * modules/iconvme: Remove file.
90318         * lib/iconvme.h: Remove file.
90319         * lib/iconvme.c: Remove file.
90320         * m4/iconvme.m4: Remove file.
90322 2007-03-19  Bruno Haible  <bruno@clisp.org>
90324         * doc/relocatable-maint.texi: Break long shell script line.
90325         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90327 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90329         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
90330         handle file_has_acl.
90331         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
90332         * lib/acl.c: Move header inclusions and related macro defns into
90333         lib/acl-internal.h.
90334         (S_ISLNK): Remove defn, since that's now done for us.
90335         (file_has_acl): Move to lib/file-has-acl.c.
90336         Call acl_trivial if available.  This is the crucial part of the fix.
90337         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
90338         shared within the library.  Rewrite a bit, partly to make it compatible
90339         with the GNU coding style.
90340         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
90341         Remove unnecessary double-quotes.
90342         Don't test for acl_to_text; the build will catch that.
90343         Replace acl_entries if it doesn't exist and it is needed.
90344         Check for -lsec and acl_trivial (as used on Solaris 10).
90345         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
90346         lib/file-has-acl.c.
90347         (Depends-on): Add sys_stat, for S_ISLNK.
90349 2007-03-19  Ben Pfaff  <blp@gnu.org>
90351         * doc/gnulib.texi: Fix typos.
90352         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90354 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90356         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
90357         If size is zero here, buf must be zero.
90359 2007-03-19  Simon Josefsson  <simon@josefsson.org>
90361         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
90362         <bruno@clisp.org>.
90364 2007-03-18  Bruno Haible  <bruno@clisp.org>
90366         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
90367         Suggested by Eric Blake.
90369 2007-03-18  Ben Pfaff  <blp@gnu.org>
90371         * doc/relocatable.texi: Recommend using as prefix a directory
90372         that does not exist and will never be created.  Based on
90373         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
90374         and others.
90376 2007-03-17  Bruno Haible  <bruno@clisp.org>
90378         * lib/fchownat.c: Include lchown.h.
90380 2007-03-17  Bruno Haible  <bruno@clisp.org>
90382         Fix endless loop when the given allocated size was > INT_MAX.
90383         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
90384         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
90385         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
90386         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
90387         * lib/sprintf.c (sprintf): Likewise.
90389 2007-03-17  Bruno Haible  <bruno@clisp.org>
90391         * tests/test-argp-2.sh (func_compare): Output a context diff.
90393 2007-03-17  Bruno Haible  <bruno@clisp.org>
90395         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
90396         locale's decimal-point character.
90398 2007-03-17  Bruno Haible  <bruno@clisp.org>
90400         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
90401         before comparing it. Needed because on some platforms (e.g. x86) a
90402         'long double' occupies less bytes than sizeof (long double).
90404 2007-03-17  Bruno Haible  <bruno@clisp.org>
90406         * tests/test-crc.c (main): Make printf statements 64-bit clean.
90407         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
90408         * tests/test-getaddrinfo.c (simple): Likewise.
90409         * tests/test-read-file.c (main): Likewise.
90411 2007-03-17  Bruno Haible  <bruno@clisp.org>
90413         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
90415 2007-03-17  Bruno Haible  <bruno@clisp.org>
90417         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
90418         unused variable.
90420 2007-03-17  Bruno Haible  <bruno@clisp.org>
90422         * tests/test-c-strcasecmp.c: Include c-strcase.h.
90423         * tests/test-c-strncasecmp.c: Likewise.
90425 2007-03-17  Bruno Haible  <bruno@clisp.org>
90427         * modules/stdlib (Depends-on): Add unistd.
90428         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
90429         Needed for MacOS X 10.3.
90431 2007-03-17  Bruno Haible  <bruno@clisp.org>
90433         * lib/unistr/u-strdup.h: Include <stdlib.h>.
90435 2007-03-17  Bruno Haible  <bruno@clisp.org>
90437         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
90439 2007-03-17  Bruno Haible  <bruno@clisp.org>
90441         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
90442         to reflect files copied from gnulib (with or without modifications).
90443         Suggested by Jim Meyering.
90445 2007-03-17  Eric Blake  <ebb9@byu.net>
90447         * NEWS: Document stdlib change from 2007-02-18.
90449 2007-03-17  Jim Meyering  <jim@meyering.net>
90451         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
90452         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
90453         someone uses a name containing shell meta-characters.
90454         Reported by Alfred M. Szmidt.
90456         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
90458 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90460         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
90461         and copy gettext configuration files only if configure.ac contains
90462         a use of AM_GNU_GETTEXT_VERSION.
90464 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90466         * build-aux/bootstrap (gnulib_name): New variable.
90467         (gnulib_tool_options): Use it.
90469 2007-03-13  Simon Josefsson  <simon@josefsson.org>
90471         * tests/test-des.c: Use new namespace.
90473 2007-03-15  Bruno Haible  <bruno@clisp.org>
90475         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
90476         Reported by James Youngman <jay@gnu.org>.
90478 2007-03-15  Bruno Haible  <bruno@clisp.org>
90480         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
90481         declared prototype. Needed with cc on OSF/1 5.1.
90483 2007-03-15  Bruno Haible  <bruno@clisp.org>
90485         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
90486         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
90487         (struct gl_list_implementation): Add dispose_fn argument to the
90488         'create_empty', 'create' methods.
90489         (struct gl_list_impl_base): Add field 'dispose_fn'.
90490         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
90491         argument.
90492         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
90493         dispose_fn argument.
90494         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
90495         dispose_fn on the dropped values.
90496         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
90497         dispose_fn argument.
90498         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
90499         dropped values.
90500         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
90501         (gl_tree_remove_node): Call dispose_fn on the dropped value.
90502         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
90503         (gl_tree_remove_node): Call dispose_fn on the dropped value.
90504         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
90505         argument.
90506         (gl_tree_list_free): Call dispose_fn on the dropped values.
90507         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
90508         the dropped values.
90509         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
90510         Add dispose_fn argument.
90511         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
90512         Call dispose_fn on the dropped values.
90513         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
90514         Add dispose_fn argument.
90515         (gl_sublist_create): Initialize the 'dispose_fn' field.
90516         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
90517         * tests/test-array_list.c (main): Update.
90518         * tests/test-carray_list.c (main): Update.
90519         * tests/test-avltree_list.c (main): Update.
90520         * tests/test-rbtree_list.c (main): Update.
90521         * tests/test-avltreehash_list.c (main): Update.
90522         * tests/test-rbtreehash_list.c (main): Update.
90523         * tests/test-linked_list.c (main): Update.
90524         * tests/test-linkedhash_list.c (main): Update.
90525         * tests/test-array_oset.c (main): Update.
90527 2007-03-15  Bruno Haible  <bruno@clisp.org>
90529         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
90530         (gl_oset_create_empty): Add dispose_fn argument.
90531         (struct gl_oset_implementation): Add dispose_fn argument to
90532         'create_empty' method.
90533         (struct gl_oset_impl_base): Add dispose_fn field.
90534         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
90535         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
90536         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
90537         values.
90538         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
90539         (gl_tree_oset_free): Call dispose_fn on the dropped values.
90540         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
90541         dropped value.
90542         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
90543         dropped value.
90544         * tests/test-array_oset.c (main): Update.
90545         * tests/test-avltree_oset.c (main): Update.
90546         * tests/test-rbtree_oset.c (main): Update.
90547         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
90549 2007-03-13  Bruno Haible  <bruno@clisp.org>
90551         * tests/test-stdbool.c (i): Update after last patch.
90553 2007-03-12  Bruno Haible  <bruno@clisp.org>
90555         * lib/quotearg.c: Include <wctype.h> early, before the definition of
90556         the iswprint macro. Needed on Solaris 2.5.1.
90558 2007-03-12  Bruno Haible  <bruno@clisp.org>
90560         * tests/test-printf-frexp.c (main): Declare x as volatile.
90562 2007-03-12  Simon Josefsson  <simon@josefsson.org>
90564         * doc/gnulib.texi (Build robot for gnulib): New section.
90566 2007-03-12  Jim Meyering  <jim@meyering.net>
90568         * build-aux/bootstrap: New file.
90569         * build-aux/bootstrap.conf: New file, from coreutils.
90571 2007-03-11  Bruno Haible  <bruno@clisp.org>
90573         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
90575 2007-03-12  Simon Josefsson  <simon@josefsson.org>
90577         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
90578         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
90579         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
90581 2007-03-11  Bruno Haible  <bruno@clisp.org>
90583         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
90584         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
90586 2007-03-11  Bruno Haible  <bruno@clisp.org>
90588         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
90589         formula. Needed for SunPRO C 5.0.
90591 2007-03-11  Bruno Haible  <bruno@clisp.org>
90593         * modules/long-options (Depends-on): Add getopt.
90595 2007-03-11  Bruno Haible  <bruno@clisp.org>
90597         * modules/modechange (Depends-on): Add stdbool.
90599 2007-03-11  Bruno Haible  <bruno@clisp.org>
90601         * modules/i-ring (Depends-on): Add stdbool.
90603 2007-03-11  Bruno Haible  <bruno@clisp.org>
90605         * modules/gc-des (Depends-on): Add stdbool.
90607 2007-03-11  Bruno Haible  <bruno@clisp.org>
90609         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
90611 2007-03-11  Bruno Haible  <bruno@clisp.org>
90613         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
90615 2007-03-11  Bruno Haible  <bruno@clisp.org>
90617         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
90619 2007-03-11  Bruno Haible  <bruno@clisp.org>
90621         * lib/vasnprintf.c (sprintf): Undefine.
90623 2007-03-11  Bruno Haible  <bruno@clisp.org>
90625         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
90626         initializers in SunPRO C and Compaq C compilers.
90628 2007-03-11  Bruno Haible  <bruno@clisp.org>
90630         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
90631         decrementing code ANSI C compliant.
90633 2007-03-11  Bruno Haible  <bruno@clisp.org>
90635         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
90636         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
90638 2007-03-11  Bruno Haible  <bruno@clisp.org>
90640         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
90641         <stdbool.h> substitute doesn't pass.
90643 2007-03-11  Bruno Haible  <bruno@clisp.org>
90645         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
90647 2007-03-11  Bruno Haible  <bruno@clisp.org>
90649         * gnulib-tool (func_create_megatestdir): Create also an autobuild
90650         script, for submission to autobuild.josefsson.org.
90652 2007-03-10  Bruno Haible  <bruno@clisp.org>
90654         * modules/canonicalize-lgpl-tests: New file.
90655         * tests/test-canonicalize-lgpl.sh: New file.
90656         * tests/test-canonicalize-lgpl.c: New file.
90658         * modules/c-strcase-tests: New file.
90659         * tests/test-c-strcase.sh: New file.
90660         * tests/test-c-strcasecmp.c: New file.
90661         * tests/test-c-strncasecmp.c: New file.
90663         * modules/atexit-tests: New file.
90664         * tests/test-atexit.sh: New file.
90665         * tests/test-atexit.c: New file.
90667 2007-03-10  Bruno Haible  <bruno@clisp.org>
90669         * tests/test-binary-io.sh: Use temporary filenames that are not so
90670         likely to clash with those of other tests (in a parallel make).
90671         * tests/test-binary-io.c: Likewise.
90673 2007-03-10  Bruno Haible  <bruno@clisp.org>
90675         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
90676         fallback; use #error instead.
90677         Suggested by Simon Josefsson.
90679 2007-03-10  Bruno Haible  <bruno@clisp.org>
90681         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
90682         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
90683         first and the last.
90685 2007-03-10  Bruno Haible  <bruno@clisp.org>
90687         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
90689 2007-03-10  Bruno Haible  <bruno@clisp.org>
90691         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
90692         "make distcheck".
90693         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
90694         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
90695         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
90697 2007-03-10  Bruno Haible  <bruno@clisp.org>
90699         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
90700         variable.
90701         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
90702         variable.
90704 2007-03-09  Eric Blake  <ebb9@byu.net>
90705         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
90707         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
90708         types are not being provided by gnulib.
90709         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
90710         types are supported.
90712 2007-03-10  Bruno Haible  <bruno@clisp.org>
90714         * lib/stdio_.h (__attribute__): New macro.
90715         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
90716         vsprintf): Specify __attribute__ __format__ for GCC.
90717         Suggested by Eric Blake.
90719 2007-03-09  Bruno Haible  <bruno@clisp.org>
90721         * modules/printf-posix-tests: New file.
90722         * tests/test-printf-posix.sh: New file.
90723         * tests/test-printf-posix.c: New file.
90725         * modules/printf-posix: New file.
90726         * lib/printf.c: New file.
90727         * m4/printf-posix-rpl.m4: New file.
90728         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
90729         REPLACE_PRINTF.
90730         * lib/stdio_.h (printf): New declaration.
90731         (format, __format__, ____printf____, ____scanf____, ____strftime____,
90732         ____strfmon____): New macros.
90733         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
90734         REPLACE_PRINTF.
90736 2007-03-09  Bruno Haible  <bruno@clisp.org>
90738         * tests/test-vasnprintf-posix2.sh: New file.
90739         * tests/test-vasnprintf-posix2.c: New file.
90740         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
90741         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
90742         (Makefile.am): Activate test-vasnprintf-posix2.sh.
90744         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
90745         a locale dependent decimal point, rather than always '.'.
90747 2007-03-09  Eric Blake  <ebb9@byu.net>
90749         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
90750         spite of platforms like Tandem/NSK that define it to -1.
90752 2007-03-08  Bruno Haible  <bruno@clisp.org>
90754         * modules/vprintf-posix-tests: New file.
90755         * tests/test-vprintf-posix.sh: New file.
90756         * tests/test-vprintf-posix.c: New file.
90757         * tests/test-printf-posix.h: New file.
90759         * modules/vprintf-posix: New file.
90760         * lib/vprintf.c: New file.
90761         * m4/vprintf-posix.m4: New file.
90762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
90763         REPLACE_VPRINTF.
90764         * lib/stdio_.h (vprintf): New declaration.
90765         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
90766         REPLACE_VPRINTF.
90768 2007-03-08  Bruno Haible  <bruno@clisp.org>
90770         * modules/fprintf-posix-tests: New file.
90771         * tests/test-fprintf-posix.sh: New file.
90772         * tests/test-fprintf-posix.c: New file.
90774         * modules/fprintf-posix: New file.
90775         * lib/fprintf.c: New file.
90776         * m4/fprintf-posix.m4: New file.
90777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
90778         REPLACE_FPRINTF.
90779         * lib/stdio_.h (fprintf): New declaration.
90780         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
90781         REPLACE_FPRINTF.
90783 2007-03-08  Bruno Haible  <bruno@clisp.org>
90785         * modules/vfprintf-posix-tests: New file.
90786         * tests/test-vfprintf-posix.sh: New file.
90787         * tests/test-vfprintf-posix.c: New file.
90788         * tests/test-fprintf-posix.h: New file.
90789         * tests/test-fprintf-posix.out: New file.
90791         * modules/vfprintf-posix: New file.
90792         * lib/vfprintf.c: New file.
90793         * m4/vfprintf-posix.m4: New file.
90794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
90795         REPLACE_VFPRINTF.
90796         * lib/stdio_.h (vfprintf): New declaration.
90797         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
90798         REPLACE_VFPRINTF.
90800 2007-03-08  Bruno Haible  <bruno@clisp.org>
90802         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
90804 2007-03-08  Bruno Haible  <bruno@clisp.org>
90806         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
90807         instead of 'expr' invocations.
90808         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
90809         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
90810         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
90811         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
90812         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
90813         Suggested by Paul Eggert.
90815 2007-03-08  Bruno Haible  <bruno@clisp.org>
90817         * modules/fseterr-tests: New file.
90818         * tests/test-fseterr.c: New file.
90820         * modules/fseterr: New file.
90821         * lib/fseterr.h: New file.
90822         * lib/fseterr.c: New file.
90824 2007-03-08  Bruno Haible  <bruno@clisp.org>
90826         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
90827         * lib/getopt_.h: Likewise.
90828         * lib/mbswidth.h: Likewise.
90829         * lib/setenv.h: Likewise.
90830         * lib/vasnprintf.h: Likewise.
90831         * lib/vasprintf.h: Likewise.
90832         * lib/verror.h: Likewise.
90833         * lib/xsetenv.h: Likewise.
90834         * lib/xvasprintf.h: Likewise.
90836 2007-03-08  Jim Meyering  <jim@meyering.net>
90838         * users.txt: Add parted.
90840         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
90842 2007-03-07  Bruno Haible  <bruno@clisp.org>
90844         * m4/printf.m4: Make the shell script snippets copy&pastable.
90846 2007-03-02  Bruno Haible  <bruno@clisp.org>
90848         * lib/netinet_in_.h: New file.
90849         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
90850         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
90851         * modules/netinet_in (Files): Add lib/netinet_in_.h.
90852         (Depends-on): Add absolute-header.
90853         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
90854         into netinet/in.h.
90856 2007-03-03  Bruno Haible  <bruno@clisp.org>
90858         * lib/sys_select_.h: New file.
90859         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
90860         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
90861         * modules/sys_select (Files): Add lib/sys_select_.h.
90862         (Depends-on): Add absolute-header.
90863         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
90864         into sys/select.h.
90866 2007-03-02  Bruno Haible  <bruno@clisp.org>
90868         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
90869         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
90870         values.
90871         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
90872         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
90873         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
90874         * modules/sys_socket (Depends-on): Add absolute-header.
90875         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
90876         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
90877         (Include): Remove requirement of inclusion of <sys/types.h>.
90879 2007-03-02  Bruno Haible  <bruno@clisp.org>
90881         * lib/byteswap_.h (bswap_32): Fix formula.
90883 2007-03-06  Bruno Haible  <bruno@clisp.org>
90885         * modules/sprintf-posix-tests: New file.
90886         * tests/test-sprintf-posix.c: New file.
90888         * modules/sprintf-posix: New file.
90889         * lib/sprintf.c: New file.
90890         * m4/sprintf-posix.m4: New file.
90891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
90892         REPLACE_SPRINTF.
90893         * lib/stdio_.h (sprintf): New declaration.
90894         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
90895         REPLACE_SPRINTF.
90897 2007-03-06  Bruno Haible  <bruno@clisp.org>
90899         * modules/vsprintf-posix-tests: New file.
90900         * tests/test-vsprintf-posix.c: New file.
90901         * tests/test-sprintf-posix.h: New file.
90903         * modules/vsprintf-posix: New file.
90904         * lib/vsprintf.c: New file.
90905         * m4/vsprintf-posix.m4: New file.
90906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
90907         REPLACE_VSPRINTF.
90908         * lib/stdio_.h (vsprintf): New declaration.
90909         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
90910         REPLACE_VSPRINTF.
90912 2007-03-06  Bruno Haible  <bruno@clisp.org>
90914         * modules/vsnprintf (Depend-on): Remove minmax.
90916 2007-03-06  Bruno Haible  <bruno@clisp.org>
90918         * modules/snprintf-posix-tests: New file.
90919         * tests/test-snprintf-posix.c: New file.
90921         * modules/snprintf-posix: New file.
90922         * m4/snprintf-posix.m4: New file.
90923         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
90924         gl_FUNC_SNPRINTF.
90925         (gl_FUNC_SNPRINTF): Invoke it.
90926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
90927         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
90928         is set.
90929         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
90931 2007-03-06  Bruno Haible  <bruno@clisp.org>
90933         * modules/vsnprintf-posix-tests: New file.
90934         * tests/test-vsnprintf-posix.c: New file.
90935         * tests/test-snprintf-posix.h: New file.
90937         * modules/vsnprintf-posix: New file.
90938         * m4/vsnprintf-posix.m4: New file.
90939         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
90940         gl_FUNC_VSNPRINTF.
90941         (gl_FUNC_VSNPRINTF): Invoke it.
90942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
90943         * lib/stdio_.h (vsnprintf): Define as a replacement if
90944         REPLACE_VSNPRINTF is set.
90945         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
90947 2007-03-06  Bruno Haible  <bruno@clisp.org>
90949         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
90950         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
90952 2007-03-06  Bruno Haible  <bruno@clisp.org>
90954         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
90955         (asinl): Declare also if HAVE_DECL_ASINL is set.
90956         (atanl): Declare also if HAVE_DECL_ATANL is set.
90957         (ceill): Declare also if HAVE_DECL_CEILL is set.
90958         (cosl): Declare also if HAVE_DECL_COSL is set.
90959         (expl): Declare also if HAVE_DECL_EXPL is set.
90960         (floorl): Declare also if HAVE_DECL_FLOORL is set.
90961         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
90962         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
90963         (logl): Declare also if HAVE_DECL_LOGL is set.
90964         (sinl): Declare also if HAVE_DECL_SINL is set.
90965         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
90966         (tanl): Declare also if HAVE_DECL_TANL is set.
90967         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
90968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
90969         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
90970         declaration of frexpl, ldexpl.
90971         * modules/printf-frexpl (Depends-on): Add math.
90972         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
90974 2007-03-05  Bruno Haible  <bruno@clisp.org>
90976         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
90977         frexpl and ldexpl are declared.
90978         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
90980 2007-03-05  Bruno Haible  <bruno@clisp.org>
90982         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
90983         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
90985 2007-03-05  Bruno Haible  <bruno@clisp.org>
90987         * lib/stdio_.h: Include <stddef.h>.
90989 2007-03-05  Bruno Haible  <bruno@clisp.org>
90991         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
90993 2007-03-05  Bruno Haible  <bruno@clisp.org>
90995         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
90996         NetBSD 4, from Ralf Wildenhues.
90998 2007-03-04  Bruno Haible  <bruno@clisp.org>
91000         * lib/vasprintf.h: Update #if logic for the case when the functions
91001         exist but are overridden.
91003 2007-03-04  Bruno Haible  <bruno@clisp.org>
91005         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
91006         implementations: glibc-2.4 and MacOS X 10.3.
91007         * tests/test-vasnprintf-posix.c (test_function): Test also the case
91008         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
91009         * tests/test-vasprintf-posix.c (test_function): Likewise.
91011 2007-03-04  Bruno Haible  <bruno@clisp.org>
91013         * modules/vasprintf-posix-tests: New file.
91014         * tests/test-vasprintf-posix.c: New file.
91016         * modules/vasprintf-posix: New file.
91017         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
91018         defined.
91019         * m4/vasprintf-posix.m4: New file.
91020         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
91021         gl_FUNC_VASPRINTF.
91022         (gl_FUNC_VASPRINTF): Invoke it.
91023         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
91024         here.
91025         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
91027 2007-03-04  Bruno Haible  <bruno@clisp.org>
91029         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
91030         REPLACE_GETTIMEOFDAY.
91031         * modules/sys_time (Makefile.am): Likewise.
91032         * m4/sys_time_h.m4: Likewise.
91033         * m4/gettimeofday.m4: Likewise.
91035 2007-03-04  Bruno Haible  <bruno@clisp.org>
91037         * modules/vasnprintf-posix-tests: New file.
91038         * tests/test-vasnprintf-posix.c: New file.
91040         * modules/vasnprintf-posix: New file.
91041         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
91042         printf-frexpl.h.
91043         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
91044         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
91045         REPLACE_VASNPRINTF is defined.
91046         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
91047         gl_FUNC_VASNPRINTF.
91048         (gl_FUNC_VASNPRINTF): Invoke it.
91049         * m4/vasnprintf-posix.m4: New file.
91050         * m4/printf.m4: New file.
91052 2007-03-04  Bruno Haible  <bruno@clisp.org>
91054         Compile progreloc.c only if --enable-relocatable is specified.
91055         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
91056         if --enable-relocatable was specified.
91057         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
91058         lib_SOURCES.
91060 2007-03-04  Jim Meyering  <jim@meyering.net>
91062         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
91063         Use it consistently, rather than enumerating errno constants.
91065 2007-03-04  Bruno Haible  <bruno@clisp.org>
91067         * modules/xvasprintf-tests: New file.
91068         * tests/test-xvasprintf.c: New file.
91070         * modules/vasprintf-tests: New file.
91071         * tests/test-vasprintf.c: New file.
91073         * modules/vasnprintf-tests: New file.
91074         * tests/test-vasnprintf.c: New file.
91076         * modules/vsnprintf-tests: New file.
91077         * tests/test-vsnprintf.c: New file.
91079         * modules/snprintf-tests: New file.
91080         * tests/test-snprintf.c: New file.
91082 2007-03-04  Bruno Haible  <bruno@clisp.org>
91084         Compile relocatable.c only if --enable-relocatable is specified.
91085         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
91086         gl_RELOCATABLE_LIBRARY.
91087         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
91088         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
91089         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
91090         gl_RELOCATABLE_LIBRARY.
91091         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
91092         (Makefile.am): Remove lib_SOURCES.
91093         * modules/relocatable-lib-lgpl (configure.ac): Invoke
91094         gl_RELOCATABLE_LIBRARY.
91095         (Makefile.am): Remove lib_SOURCES.
91096         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
91097         always.
91098         * modules/relocatable-prog-wrapper (configure.ac): Invoke
91099         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
91101 2007-03-04  Bruno Haible  <bruno@clisp.org>
91103         * modules/argmatch-tests: New file.
91104         * tests/test-argmatch.c: New file.
91106         * tests/test-allocsa.c (main): Halve the number of loop runs.
91108         * modules/alloca-opt-tests: New file.
91109         * tests/test-alloca-opt.c: New file.
91111 2007-03-04  Jim Meyering  <jim@meyering.net>
91113         Work around difference between Linux ACLs and Solaris 10 ZFS.
91114         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
91115         for EINVAL.
91117 2007-03-03  Bruno Haible  <bruno@clisp.org>
91119         * modules/relocatable-prog (Depends-on): Add back progreloc's
91120         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
91122 2007-03-03  Bruno Haible  <bruno@clisp.org>
91124         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
91125         * modules/relocatable-lib: New file.
91127 2007-03-03  Bruno Haible  <bruno@clisp.org>
91129         * modules/relocatable-prog: Renamed from modules/relocatable.
91130         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
91132 2007-03-03  Bruno Haible  <bruno@clisp.org>
91134         * modules/relocatable-script (Files): Add doc/relocatable.texi,
91135         m4/relocatable-lib.m4.
91136         (Depends-on): Remove 'relocatable'.
91137         (configure.ac): Add gl_RELOCATABLE_NOP.
91139 2007-03-03  Bruno Haible  <bruno@clisp.org>
91141         * modules/relocatable-prog-wrapper: New file.
91142         * modules/relocatable (Depends-on): Add it. Remove all other
91143         dependencies except progname.
91144         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
91146         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
91147         (gl_FUNC_STRERROR): Nop.
91148         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
91150         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
91151         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
91153         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
91154         (gl_FUNC_READLINK): Update.
91156         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
91158 2007-03-03  Bruno Haible  <bruno@clisp.org>
91160         * lib/xreadlink.c: Include <unistd.h> unconditionally.
91161         * modules/xreadlink (Depends-on): Add unistd.
91162         * modules/xreadlink-with-size (Depends-on): Likewise.
91164 2007-03-03  Bruno Haible  <bruno@clisp.org>
91166         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
91167         extracted from gt_FUNC_SETENV.
91168         (gt_FUNC_SETENV): Remove macro.
91169         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
91170         remove gt_FUNC_SETENV.
91172 2007-03-03  Bruno Haible  <bruno@clisp.org>
91174         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
91175         ENABLE_RELOCATABLE here.
91176         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
91178 2007-03-03  Bruno Haible  <bruno@clisp.org>
91180         * modules/rbtreehash-list-tests (Depends-on): Add progname.
91181         * tests/test-rbtreehash_list.c: Include progname.h.
91182         (main): Call set_program_name.
91184         * modules/rbtree-oset-tests (Depends-on): Add progname.
91185         * tests/test-rbtree_oset.c: Include progname.h.
91186         (main): Call set_program_name.
91188         * modules/rbtree-list-tests (Depends-on): Add progname.
91189         * tests/test-rbtree_list.c: Include progname.h.
91190         (main): Call set_program_name.
91192         * modules/linked-list-tests (Depends-on): Add progname.
91193         * tests/test-linked_list.c: Include progname.h.
91194         (main): Call set_program_name.
91196 2007-03-03  Bruno Haible  <bruno@clisp.org>
91198         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
91199         All uses of __restrict changed to _Restrict_.
91200         * lib/glob_.h (__restrict): Remove macro.
91202 2007-03-02  Bruno Haible  <bruno@clisp.org>
91204         * modules/gettext (configure.ac): Require gettext infrastructure
91205         from version 0.16.1.
91207 2007-03-02  Bruno Haible  <bruno@clisp.org>
91209         * modules/linkedhash-list-tests (Depends-on): Add progname.
91210         * tests/test-linkedhash_list.c: Include progname.h.
91211         (main): Call set_program_name.
91213         * modules/carray-list-tests (Depends-on): Add progname.
91214         * tests/test-carray_list.c: Include progname.h.
91215         (main): Call set_program_name.
91217         * modules/avltreehash-list-tests (Depends-on): Add progname.
91218         * tests/test-avltreehash_list.c: Include progname.h.
91219         (main): Call set_program_name.
91221         * modules/avltree-oset-tests (Depends-on): Add progname.
91222         * tests/test-avltree_oset.c: Include progname.h.
91223         (main): Call set_program_name.
91225         * modules/avltree-list-tests (Depends-on): Add progname.
91226         * tests/test-avltree_list.c: Include progname.h.
91227         (main): Call set_program_name.
91229         * modules/array-oset-tests (Depends-on): Add progname.
91230         * tests/test-array_oset.c: Include progname.h.
91231         (main): Call set_program_name.
91233         * modules/array-list-tests (Depends-on): Add progname.
91234         * tests/test-array_list.c: Include progname.h.
91235         (main): Call set_program_name.
91237         * modules/argp-tests (Depends-on): Add progname.
91238         * tests/test-argp.c: Include argp.h first. Include progname.h.
91239         (main): Call set_program_name.
91241 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
91243         * doc/gnulib-tool.texi (Initial import): Reword description of
91244         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
91245         limited effect even if defined after the first system include.
91247 2007-03-01  Bruno Haible  <bruno@clisp.org>
91249         * build-aux/config.libpath: Update to libtool-1.5.22.
91250         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91252 2007-03-01  Bruno Haible  <bruno@clisp.org>
91254         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
91255         foo_CFLAGS.
91256         Reported by Ralf Wildenhues.
91258 2007-03-01  Bruno Haible  <bruno@clisp.org>
91260         * build-aux/install-reloc: Remove object files left over by some
91261         compilers.
91262         Reported by Ralf Wildenhues.
91264 2007-03-01  Bruno Haible  <bruno@clisp.org>
91266         * build-aux/install-reloc: Break long lines.
91268 2007-03-01  Bruno Haible  <bruno@clisp.org>
91270         * doc/relocatable.texi: Document that it may not work on OpenBSD.
91271         Reported by Ralf Wildenhues.
91273 2007-03-01  Bruno Haible  <bruno@clisp.org>
91275         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
91276         include ordering constraints.
91278 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
91280         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
91281         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
91282         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
91283         as another example.
91284         * lib/time_.h: Fix misspelling.
91285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
91286         Require gl_HEADER_TIME_H_DEFAULTS.
91287         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
91288         * m4/time_r.m4 (gl_TIME_R): Likewise.
91289         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
91291 2007-03-01  Bruno Haible  <bruno@clisp.org>
91293         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
91294         * m4/utimens.m4 (gl_UTIMENS): Likewise.
91296 2007-03-01  Jim Meyering  <jim@meyering.net>
91298         * modules/xreadlink (Maintainer): Add my name.
91299         * modules/xreadlink-with-size (Depends-on): Alphabetize.
91301 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
91302             Bruno Haible  <bruno@clisp.org>
91304         * build-aux/install-reloc: Compile also c-ctype.c.
91305         * build-aux/relocatable.sh.in: New file.
91306         * doc/relocatable.texi: New file.
91307         * doc/relocatable-maint.texi: New file.
91308         * doc/gnulib.texi: Include relocatable-maint.texi.
91309         * lib/progreloc.c: Include unistd.h unconditionally.
91310         * lib/relocwrapper.c: Include unistd.h unconditionally.
91311         Include c-ctype.h.
91312         (add_dotbin): Use c_tolower.
91313         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
91314         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
91315         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
91316         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
91317         to m4/relocatable-lib.m4.
91318         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
91319         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
91320         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
91321         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
91322         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
91323         * modules/relocatable: New file.
91324         * modules/relocatable-lib: New file.
91325         * modules/relocatable-script: New file.
91327 2007-02-28  Bruno Haible  <bruno@clisp.org>
91329         Import --enable-relocatable infrastructure.
91330         * build-aux/config.libpath: New file, from GNU gettext.
91331         * build-aux/install-reloc: New file, from GNU gettext.
91332         * build-aux/reloc-ldflags: New file, from GNU gettext.
91333         * lib/relocatable.h: New file, from GNU gettext.
91334         * lib/relocatable.c: New file, from GNU gettext.
91335         * lib/relocwrapper.c: New file, from GNU gettext.
91336         * m4/relocatable.m4: New file, from GNU gettext.
91338 2007-02-28  Bruno Haible  <bruno@clisp.org>
91340         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
91342         * modules/xreadlink: New file, from GNU gettext with modifications.
91343         * lib/xreadlink.c: New file, from GNU gettext.
91344         * lib/xreadlink.h: Add comments.
91345         (xreadlink): New declaration.
91347         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
91348         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
91349         lib/xreadlink-with-size.c.
91350         (configure.ac): Remove gl_XREADLINK invocation.
91351         (Makefile.am): Augment lib_SOURCES.
91352         * m4/xreadlink.m4: Remove file.
91353         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
91354         (xreadlink_with_size): Renamed from xreadink.
91355         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
91356         * modules/canonicalize (Depends-on): Replace xreadlink with
91357         xreadlink-with-size.
91358         * lib/canonicalize.c (canonicalize_filename_mode): Update.
91360 2007-02-25  Jim Meyering  <jim@meyering.net>
91362         * build-aux/announce-gen: When complaining about excess arguments,
91363         list them.
91365 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
91367         * README: Document signed integer overflow situation more
91368         accurately.
91370 2007-02-25  Bruno Haible  <bruno@clisp.org>
91372         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
91373         'a' or 'A' conversion.
91375 2007-02-25  Bruno Haible  <bruno@clisp.org>
91377         * modules/filename: Renamed from modules/pathname.
91378         (Files): Replace lib/pathname.h with lib/filename.h. Replace
91379         lib/concatpath.c with lib/concat-filename.c.
91380         (Makefile.am): Update.
91381         (Include): Replace pathname.h with filename.h.
91382         * lib/filename.h: Renamed from lib/pathname.h.
91383         (concatenated_filename): Renamed from concatenated_pathname.
91384         * lib/concat-filename.c: Renamed from lib/concatpath.c.
91385         (concatenated_filename): Renamed from concatenated_pathname.
91386         * lib/findprog.c: Include filename.h instead of pathname.h.
91387         (find_in_path): Update.
91388         * lib/javacomp.c: Include filename.h instead of pathname.h.
91389         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91390         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91391         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91392         is_oldgcj_14_13_usable, is_javac_usable): Update.
91393         * lib/javaexec.c: Include filename.h instead of pathname.h.
91394         (execute_java_class): Update.
91395         * modules/findprog: Update.
91396         * modules/javacomp: Update.
91397         * modules/javaexec: Update.
91398         * MODULES.html.sh (File system functions): Add 'filename', remove
91399         'pathname'.
91401 2007-02-25  Bruno Haible  <bruno@clisp.org>
91403         * modules/printf-frexpl-tests: New file.
91404         * tests/test-printf-frexpl.c: New file.
91406         * modules/printf-frexpl: New file.
91407         * lib/printf-frexpl.h: New file.
91408         * lib/printf-frexpl.c: New file.
91409         * m4/printf-frexpl.m4: New file.
91411 2007-02-25  Bruno Haible  <bruno@clisp.org>
91413         * modules/printf-frexp-tests: New file.
91414         * tests/test-printf-frexp.c: New file.
91416         * modules/printf-frexp: New file.
91417         * lib/printf-frexp.h: New file.
91418         * lib/printf-frexp.c: New file.
91419         * m4/printf-frexp.m4: New file.
91421 2007-02-25  Bruno Haible  <bruno@clisp.org>
91423         Assume automake >= 1.10 for the tests.
91424         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
91425         * modules/arctwo-tests: Likewise.
91426         * modules/argp-tests: Likewise.
91427         * modules/avltree-list-tests: Likewise.
91428         * modules/avltree-oset-tests: Likewise.
91429         * modules/avltreehash-list-tests: Likewise.
91430         * modules/carray-list-tests: Likewise.
91431         * modules/crc-tests: Likewise.
91432         * modules/des-tests: Likewise.
91433         * modules/gc-arcfour-tests: Likewise.
91434         * modules/gc-arctwo-tests: Likewise.
91435         * modules/gc-des-tests: Likewise.
91436         * modules/gc-hmac-md5-tests: Likewise.
91437         * modules/gc-hmac-sha1-tests: Likewise.
91438         * modules/gc-md2-tests: Likewise.
91439         * modules/gc-md4-tests: Likewise.
91440         * modules/gc-md5-tests: Likewise.
91441         * modules/gc-pbkdf2-sha1-tests: Likewise.
91442         * modules/gc-rijndael-tests: Likewise.
91443         * modules/gc-sha1-tests: Likewise.
91444         * modules/gc-tests: Likewise.
91445         * modules/getaddrinfo-tests: Likewise.
91446         * modules/hmac-md5-tests: Likewise.
91447         * modules/hmac-sha1-tests: Likewise.
91448         * modules/linked-list-tests: Likewise.
91449         * modules/linkedhash-list-tests: Likewise.
91450         * modules/lock-tests: Likewise.
91451         * modules/md2-tests: Likewise.
91452         * modules/md4-tests: Likewise.
91453         * modules/md5-tests: Likewise.
91454         * modules/rbtree-list-tests: Likewise.
91455         * modules/rbtree-oset-tests: Likewise.
91456         * modules/rbtreehash-list-tests: Likewise.
91457         * modules/read-file-tests: Likewise.
91458         * modules/rijndael-tests: Likewise.
91459         * modules/stdint-tests: Likewise.
91460         * modules/tls-tests: Likewise.
91462 2007-02-24  Bruno Haible  <bruno@clisp.org>
91464         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
91465         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
91466         function; instead check whether isnan with a double argument links.
91467         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
91468         function; instead check whether isnan with a 'long double' argument
91469         links.
91470         Reported by Eric Blake <ebb9@byu.net>.
91472 2007-02-24  Bruno Haible  <bruno@clisp.org>
91474         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
91475         defined.
91476         * lib/isnanl.c: Remove all code. Just include isnan.c.
91477         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
91479 2007-02-25  Jim Meyering  <jim@meyering.net>
91481         Avoid conflicting types for 'unsetenv' on FreeBSD.
91482         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
91483         conflicting with FreeBSD's (5.0 and 6.1) function declaration
91484         in stdlib.h.
91486 2007-02-24  Bruno Haible  <bruno@clisp.org>
91488         * modules/isnanl-nolibm-tests: New file.
91489         * tests/test-isnanl.c: New file.
91491         * modules/isnanl-nolibm: New file.
91492         * lib/isnanl.h: New file.
91493         * lib/isnanl.c: New file.
91494         * m4/isnanl.m4: New file.
91496 2007-02-24  Bruno Haible  <bruno@clisp.org>
91498         * modules/isnan-nolibm-tests: New file.
91499         * tests/test-isnan.c: New file.
91501         * modules/isnan-nolibm: New file.
91502         * lib/isnan.h: New file.
91503         * lib/isnan.c: New file.
91504         * m4/isnan.m4: New file.
91506 2007-02-24  Bruno Haible  <bruno@clisp.org>
91508         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
91509         assume that an exponent fits in 20 bits.
91511 2007-02-24  Jim Meyering  <jim@meyering.net>
91513         * m4/regex.m4: Update the description of the configure-time option,
91514         --without-included-regex, to state accurately what the defaults are,
91515         and perhaps to give people an idea why using this option is risky.
91517 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
91519         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
91520         loops on small arguments.  This attempts to avoid the problem
91521         Bruno Haible reported for AIX 4.3.2 in
91522         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
91524 2007-02-23  Bruno Haible  <bruno@clisp.org>
91526         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
91527         Needed for help2man.
91529 2007-02-23  Karl Berry  <karl@gnu.org>
91531         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
91532         exists, foo.h should be cvs-ignored, not committed.
91534 2007-02-23  Eric Blake  <ebb9@byu.net>
91536         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
91537         * lib/stat-time.h (includes): Likewise.
91538         * lib/utimecmp.c (includes): Likewise.
91539         * lib/utimens.h (includes): Likewise.
91540         * lib/getdate.y (includes): Also include "timespec.h" for use
91541         internal to the module.
91542         * modules/utimens (Depends-on): Revert yesterday's patch.
91543         * modules/nanosleep (Depends-on): Add missing dependency.
91545 2007-02-22  Bruno Haible  <bruno@clisp.org>
91547         * lib/glob.c: Don't include getlogin_r.h.
91549 2007-02-22  Jim Meyering  <jim@meyering.net>
91551         * modules/utimens (Depends-on): Add timespec, required for
91552         utimens.h's inclusion of timespec.h.
91554 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
91556         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
91557         long unreadable paths in GNU/Linux.  Problem reported by Andreas
91558         Schwab in
91559         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
91560         I'll try to think of a better way to fix the Solaris problem.
91562         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
91563         like glibc; on Solaris 10, it fails with errno == EINVAL.
91564         POSIX says the behavior is unspecified if the first argument is NULL,
91565         so play it safe and never pass NULL to the system getcwd.
91567 2007-02-21  Jim Meyering  <jim@meyering.net>
91569         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
91570         of gettimeofday.  It would conflict with the one now always
91571         provided via sys_time_.h.  Reported by Matthew Woehlke, as
91572         an IRIX 6.5 build failure.
91574 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
91576         Minor fixups to port to Solaris 10 with Sun C 5.8.
91577         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
91578         * modules/getcwd (Depends-on): Add dirfd.
91579         * lib/putenv.c (putenv): #undef it.
91580         (rpl_putenv): New decl.
91581         (malloc, free): Include <stdlib.h> rather than prototyping separately.
91583 2007-02-20  Bruno Haible  <bruno@clisp.org>
91585         * modules/stdio-tests: New file.
91586         * tests/test-stdio.c: New file.
91588         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
91589         (Depends-on): Add stdio.
91590         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
91591         (Include): Use <stdio.h> instead of vsnprintf.h.
91592         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
91593         HAVE_DECL_VSNPRINTF.
91594         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
91596         * modules/snprintf (Files): Remove lib/snprintf.h.
91597         (Depends-on): Add stdio.
91598         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
91599         (Include): Use <stdio.h> instead of snprintf.h.
91600         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
91601         HAVE_DECL_SNPRINTF.
91602         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
91603         * lib/getaddrinfo.c: Likewise.
91605         * modules/stdio: New file.
91606         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
91607         * lib/snprintf.h: Remove file.
91608         * lib/vsnprintf.h: Remove file.
91609         * lib/.cppi-disable: Remove snprintf.h.
91610         * m4/stdio_h.m4: New file.
91611         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
91613 2007-02-20  Jim Meyering  <jim@meyering.net>
91615         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
91616         used by e.g., mingw.  From Bruno Haible.
91618 2007-02-19  Bruno Haible  <bruno@clisp.org>
91620         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
91621         warnings.
91622         Reported by Ben Pfaff <blp@cs.stanford.edu>.
91624 2007-02-19  Bruno Haible  <bruno@clisp.org>
91626         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
91627         from mingw users.
91629 2007-02-19  Bruno Haible  <bruno@clisp.org>
91631         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
91632         warnings.
91633         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
91635 2007-02-19  Jim Meyering  <jim@meyering.net>
91637         Don't use FD after a successful "fdopendir (fd)".
91638         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
91639         Reset it by calling dirfd on the just-obtained DIR*.
91641         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
91642         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
91644 2007-02-18  Bruno Haible  <bruno@clisp.org>
91646         * lib/readlink.c: Include <unistd.h>.
91647         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
91648         HAVE_READLINK.
91649         * modules/readlink (Depends-on): Add unistd.
91650         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91651         (Include): Add <unistd.h>.
91653         * lib/getlogin_r.h: Remove file.
91654         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
91655         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
91656         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
91657         HAVE_DECL_GETLOGIN_R.
91658         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
91659         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91660         (Include): Use <unistd.h> instead of getlogin_r.h.
91662         * lib/getcwd.h: Remove file.
91663         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
91664         * lib/xgetcwd.c: Likewise.
91665         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
91666         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
91667         * modules/getcwd (Files): Remove lib/getcwd.h.
91668         (Depends-on): Add unistd.
91669         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91670         (Include): Use <unistd.h> instad of getcwd.h.
91672         * lib/ftruncate.c: Include <unistd.h> first.
91673         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
91674         Set HAVE_FTRUNCATE.
91675         * modules/ftruncate (Depends-on): Add unistd.
91676         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91678         * lib/fchdir.c: Include <unistd.h> first.
91679         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
91680         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
91681         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
91682         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91683         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
91685         * lib/dup2.c: Include <unistd.h> first.
91686         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
91687         HAVE_DUP2.
91688         * modules/dup2 (Depends-on): Add unistd.
91689         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91691         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
91692         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
91693         REPLACE_CHOWN. Don't define chown as a macro here.
91694         * modules/chown (Depends-on): Add unistd.
91695         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91697         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
91698         Add definition for GL_LINK_WARNING.
91699         (chown, dup2): New declarations.
91700         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
91701         link warning.
91702         (ftruncate): New declaration.
91703         (getcwd): New declaration, taken from old getcwd.h.
91704         (getlogin_r): New declaration, taken from old getlogin_r.h.
91705         (readlink): New declaration.
91706         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
91707         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
91708         (gl_PREREQ_UNISTD): Remove macro.
91709         (gl_UNISTD_MODULE_INDICATOR): New macro.
91710         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
91711         many new variables. Don't set UNISTD_H.
91712         * modules/unistd (Description): Change.
91713         (Depends-on): Add link-warning.
91714         (configure.ac): Update.
91715         (Makefile.am): Create unistd.h always. Substitute many new variables
91716         into it.
91718 2007-02-18  Bruno Haible  <bruno@clisp.org>
91720         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
91721         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
91722         HAVE_GETSUBOPT.
91723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
91724         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
91725         * lib/getsubopt.h: Remove file.
91726         * modules/getsubopt (Files): Remove lib/getsubopt.h.
91727         (Depends-on): Add stdlib.
91728         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91729         (Includes): Use <stdlib.h> instead of getsubopt.h.
91730         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
91731         Set HAVE_GETSUBOPT.
91732         * lib/getsubopt.c: Don't include getsubopt.h.
91734 2007-02-18  Bruno Haible  <bruno@clisp.org>
91736         * modules/fchdir (Depends-on): Add dup2.
91738 2007-02-18  Bruno Haible  <bruno@clisp.org>
91740         * lib/stdlib_.h: Handle glibc's special invocation convention
91741         specially.
91743 2007-02-18  Bruno Haible  <bruno@clisp.org>
91745         * modules/stdlib-tests: New file.
91746         * tests/test-stdlib.c: New file.
91748         * modules/mkstemp (Files): Remove lib/mkstemp.h.
91749         (Depends-on): Add stdlib.
91750         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91751         (Includes): Use <stdlib.h> instead of mkstemp.h.
91752         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
91753         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
91754         * lib/mkstemp.c: Don't include mkstemp.h.
91755         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
91756         * lib/stdlib--.h: Don't include mkstemp.h.
91758         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
91759         (Depends-on): Add stdlib.
91760         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91761         (Includes): Use <stdlib.h> instead of mkdtemp.h.
91762         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
91763         HAVE_MKDTEMP.
91764         * lib/mkdtemp.c: Don't include mkdtemp.h.
91765         * lib/clean-temp.c: Don't include mkdtemp.h.
91767         * modules/exit (Files): Remove lib/exit.h.
91768         (Depends-on): Add stdlib.
91769         (Makefile.am): Remove lib_SOURCES.
91770         (Include): Use <stdlib.h> instead of exit.h.
91771         * lib/argmatch.c: Don't include exit.h.
91772         * lib/execute.c: Likewise.
91773         * lib/pagealign_alloc.c: Likewise.
91774         * lib/pipe.c: Likewise.
91775         * lib/wait-process.c: Likewise.
91776         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
91777         * lib/exitfail.c: Likewise.
91778         * lib/savewd.c: Likewise.
91779         * lib/xsetenv.c: Likewise.
91781         * modules/stdlib: New file.
91782         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
91783         and extra comments about mkstemp().
91784         * lib/exit.h: Remove file.
91785         * lib/mkdtemp.h: Remove file.
91786         * lib/mkstemp.h: Remove file.
91787         * m4/stdlib_h.m4: New file.
91788         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
91790 2007-02-18  Bruno Haible  <bruno@clisp.org>
91792         * modules/math-tests: New file.
91793         * tests/test-math.c: New file.
91795         * modules/math: New file.
91796         * modules/mathl (Files): Remove lib/mathl.h.
91797         (Depends-on): Add math.
91798         (Makefile.am): Don't mention mathl.h.
91799         (Include): Use <math.h> instead of mathl.h.
91800         * lib/math_.h: New file.
91801         * lib/mathl.h: Remove file.
91802         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
91803         mathl.h.
91804         * lib/asinl.c: Likewise.
91805         * lib/atanl.c: Likewise.
91806         * lib/ceill.c: Likewise.
91807         * lib/cosl.c: Likewise.
91808         * lib/expl.c: Likewise.
91809         * lib/floorl.c: Likewise.
91810         * lib/frexpl.c: Likewise.
91811         * lib/ldexpl.c: Likewise.
91812         * lib/logl.c: Likewise.
91813         * lib/sincosl.c: Likewise.
91814         * lib/sinl.c: Likewise.
91815         * lib/sqrtl.c: Likewise.
91816         * lib/tanl.c: Likewise.
91817         * lib/trigl.c: Likewise.
91818         * m4/math_h.m4: New file.
91819         * MODULES.html.sh (Mathematics): Add math.
91821 2007-02-17  Bruno Haible  <bruno@clisp.org>
91823         * modules/wctype-tests: New file.
91824         * tests/test-wctype.c: New file.
91826         * modules/wchar-tests: New file.
91827         * tests/test-wchar.c: New file.
91829         * modules/unistd-tests: New file.
91830         * tests/test-unistd.c: New file.
91832         * modules/time-tests: New file.
91833         * tests/test-time.c: New file.
91835         * modules/sysexits-tests: New file.
91836         * tests/test-sysexits.c: New file.
91838         * modules/sys_time-tests: New file.
91839         * tests/test-sys_time.c: New file.
91841         * modules/sys_stat-tests: New file.
91842         * tests/test-sys_stat.c: New file.
91844         * modules/sys_socket-tests: New file.
91845         * tests/test-sys_socket.c: New file.
91847         * modules/sys_select-tests: New file.
91848         * tests/test-sys_select.c: New file.
91850         * modules/string-tests: New file.
91851         * tests/test-string.c: New file.
91853         * modules/stdbool-tests: New file.
91854         * tests/test-stdbool.c: New file.
91856         * modules/netinet_in-tests: New file.
91857         * tests/test-netinet_in.c: New file.
91859         * modules/inttypes-tests: New file.
91860         * tests/test-inttypes.c: New file.
91862         * modules/fcntl-tests: New file.
91863         * tests/test-fcntl.c: New file.
91865         * modules/byteswap-tests: New file.
91866         * tests/test-byteswap.c: New file.
91868         * modules/arpa_inet-tests: New file.
91869         * tests/test-arpa_inet.c: New file.
91871 2007-02-17  Bruno Haible  <bruno@clisp.org>
91873         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
91874         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
91875         if the corresponding module is not enabled. Emit link warnings if
91876         the function is used nevertheless.
91877         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
91878         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
91879         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
91880         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
91881         * modules/inttypes (Depends-on): Add link-warning.
91882         (Makefile.am): Copy the contents of build-aux/link-warning.h into
91883         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
91884         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
91885         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
91886         * modules/imaxdiv (configure.ac): Likewise.
91887         * modules/strtoimax (configure.ac): Likewise.
91888         * modules/strtoumax (configure.ac): Likewise.
91890 2007-02-17  Bruno Haible  <bruno@clisp.org>
91892         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
91893         gl_STRING_MODULE_INDICATOR_DEFAULTS.
91894         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
91895         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
91897 2007-02-17  Bruno Haible  <bruno@clisp.org>
91899         * modules/link-warning: New file.
91900         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
91901         * lib/string_.h (GL_LINK_WARNING): Remove definition.
91902         * modules/string (Depends-on): Add link-warning.
91903         (Makefile.am): Copy the contents of build-aux/link-warning.h into
91904         string.h.
91905         * MODULES.html.sh (Support for building libraries and executables): Add
91906         link-warning.
91908 2007-02-17  Bruno Haible  <bruno@clisp.org>
91910         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
91911         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
91912         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
91913         long lines.
91915 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
91916             Bruno Haible  <bruno@clisp.org>
91918         * modules/tmpfile: New file.
91919         * lib/tmpfile.c: New file.
91920         * m4/tmpfile.m4: New file.
91921         * MODULES.html.sh (func_all_modules): New section "Input/output".
91923 2007-02-15  Bruno Haible  <bruno@clisp.org>
91925         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
91926         (supports_delete_on_close): New function.
91927         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
91929 2007-02-14  Bruno Haible  <bruno@clisp.org>
91931         * modules/mbspcasecmp-tests: New file.
91932         * tests/test-mbspcasecmp.sh: New file.
91933         * tests/test-mbspcasecmp.c: New file.
91935         New module mbspcasecmp.
91936         * modules/mbspcasecmp: New file.
91937         * lib/mbspcasecmp.c: New file.
91938         * lib/string_.h (strncasecmp): Change warning message.
91939         (mbspcasecmp): New declaration.
91940         * m4/mbspcasecmp.m4: New file.
91941         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
91942         GNULIB_MBSPCASECMP.
91943         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
91944         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
91946 2007-02-14  Bruno Haible  <bruno@clisp.org>
91948         * modules/mbsncasecmp-tests: New file.
91949         * tests/test-mbsncasecmp.sh: New file.
91950         * tests/test-mbsncasecmp.c: New file.
91952         New module mbsncasecmp.
91953         * modules/mbsncasecmp: New file.
91954         * lib/mbsncasecmp.c: New file.
91955         * lib/string_.h (mbsncasecmp): New declaration.
91956         * m4/mbsncasecmp.m4: New file.
91957         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
91958         GNULIB_MBSNCASECMP.
91959         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
91960         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
91962 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
91964         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
91965         Verify that it doesn't overlap with our flags.
91966         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
91967         do not have the desired effect in multibyte locales; instead, use
91968         mbscasecmp.
91969         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
91970         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
91971         we don't require GNU fnmatch ourselves (if our users require it, they
91972         should do so explicitly).
91974         Fix regex code so it doesn't rely on strcasecmp.
91975         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
91976         Otherwise, include gnulib's langinfo.h.
91977         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
91978         undesirable behavior in non-C locales.  Instead, rely on localecharset.
91979         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
91980         * modules/regex (FILES): Remove m4/codeset.m4.
91981         (Depends-on): Add localcharset.  Remove strcase.
91983 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91985         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
91986         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
91988 2007-02-13  Bruno Haible  <bruno@clisp.org>
91990         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
91991         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91993 2007-02-12  Bruno Haible  <bruno@clisp.org>
91995         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
91996         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
91997         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
91998         time warning rather than a link error.
92000 2007-02-12  Bruno Haible  <bruno@clisp.org>
92002         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
92003         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
92004         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92006 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
92008         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
92009         args, not 2.
92011 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
92013         New module 'time', so that apps can include <time.h> as per
92014         POSIX and GNU instead of separate include files like time_r.h
92015         and timegm.h.  This implementation tries out a simpler approach
92016         for replacing decls in standard include files (as compared to
92017         the string module), somewhat as an experiment.
92019         * config/srclist.txt: Comment out mktime.c for now.
92020         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
92021         since it doesn't apply any more.  Use generic wording instead.
92022         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
92023         'time'.
92024         * lib/time_.h, m4/time_h.m4, modules/time: New files.
92025         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
92026         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
92027         Don't include <sys/types.h>; no longer needed since we assume C89.
92028         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
92029         * lib/strftime.c: Likewise.
92030         * lib/time_r.c: Likewise.
92031         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
92032         * lib/nanosleep.c: Include <time.h> first, to check interface.
92033         * lib/strptime.c: Likewise.
92034         * lib/time_r.c: Likewise.
92035         * lib/timegm.c: Likewise.
92036         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
92037         needed.
92038         * lib/timegm.c: Don't include timegm.h; no longer needed.
92039         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
92040         time.h now handles any problems in that area.
92041         (struct timespec, nanosleep): Remove; time.h now arranges for these.
92042         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
92043         that time.h defines struct timespec.
92044         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
92045         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
92046         handles that.
92047         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
92048         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
92049         needed.  Set REPLACE_LOCALTIME.
92050         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
92051         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
92052         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
92053         nanosleep; time_h.m4 now does that.  Don't require
92054         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
92055         module handles this now.
92056         * modules/getdate (Depends-on): Remove timespec.  Add time.
92057         * modules/nanosleep (Depends-on): Likewise.
92058         * modules/stat-time (Depends-on): Likewise.
92059         * modules/nanosleep (Include): Include time.h, not timespec.h.
92060         * modules/strptime (Files): Remove lib/strptime.h.
92061         (Depends-on): Add extensions, time.
92062         (Include): Include time.h, not strptime.h.
92063         * modules/time_r (Files): Remove lib/time_r.h.
92064         (Depends-on): Add time.
92065         (Include): Include time.h, not time_r.h.
92066         * modules/timegm: Likewise.
92067         * modules/timespec (Description): Now does timespec-related decls
92068         of our own, instead of struct timespec itself.
92069         (Depends-on): Add time; remove extensions.
92070         (Maintainer): Add self.
92071         * modules/utimecmp (Depends-on): Add time; remove timespec.
92072         * modules/utimens (Depends-on): Likewise.
92073         * modules/xnanosleep (Depends-on): Likewise.
92075 2007-02-11  Bruno Haible  <bruno@clisp.org>
92077         * lib/c-strstr.c: Include allocsa.h.
92078         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92079         * lib/c-strcasestr.c: Include allocsa.h.
92080         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92081         * lib/strcasestr.c: Include allocsa.h.
92082         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92083         * lib/mbsstr.c: Include allocsa.h.
92084         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
92085         allocsa/freesa instead of malloc/free.
92086         * lib/mbscasestr.c: Include allocsa.h.
92087         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
92088         allocsa/freesa instead of malloc/free.
92089         * modules/c-strstr (Depends-on): Add allocsa.
92090         * modules/c-strcasestr (Depends-on): Likewise.
92091         * modules/strcasestr (Depends-on): Likewise.
92092         * modules/mbsstr (Depends-on): Likewise.
92093         * modules/mbscasestr (Depends-on): Likewise.
92095 2007-02-11  Bruno Haible  <bruno@clisp.org>
92097         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
92099         * modules/mbsspn-tests: New file.
92100         * tests/test-mbsspn.sh: New file.
92101         * tests/test-mbsspn.c: New file.
92103 2007-02-11  Bruno Haible  <bruno@clisp.org>
92105         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
92107         * modules/mbspbrk-tests: New file.
92108         * tests/test-mbspbrk.sh: New file.
92109         * tests/test-mbspbrk.c: New file.
92111 2007-02-11  Bruno Haible  <bruno@clisp.org>
92113         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
92114         unneeded cast.
92116         * modules/mbscspn-tests: New file.
92117         * tests/test-mbscspn.sh: New file.
92118         * tests/test-mbscspn.c: New file.
92120 2007-02-11  Bruno Haible  <bruno@clisp.org>
92122         * modules/mbscasecmp-tests: New file.
92123         * tests/test-mbscasecmp.sh: New file.
92124         * tests/test-mbscasecmp.c: New file.
92126 2007-02-11  Bruno Haible  <bruno@clisp.org>
92128         Ensure O(n) worst-case complexity of mbscasestr.
92129         * lib/mbscasestr.c: Include stdbool.h.
92130         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
92131         functions.
92132         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
92133         the bookkeeping indicates that it's worth it.
92134         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
92136         * modules/mbscasestr-tests: New file.
92137         * tests/test-mbscasestr1.c: New file.
92138         * tests/test-mbscasestr2.sh: New file.
92139         * tests/test-mbscasestr2.c: New file.
92140         * tests/test-mbscasestr3.sh: New file.
92141         * tests/test-mbscasestr3.c: New file.
92142         * tests/test-mbscasestr4.sh: New file.
92143         * tests/test-mbscasestr4.c: New file.
92144         * m4/locale-tr.m4: New file.
92146 2007-02-11  Bruno Haible  <bruno@clisp.org>
92148         Ensure O(n) worst-case complexity of mbsstr.
92149         * lib/mbsstr.c: Include stdbool.h.
92150         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
92151         functions.
92152         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
92153         bookkeeping indicates that it's worth it.
92154         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
92156         * modules/mbsstr-tests: New file.
92157         * tests/test-mbsstr1.c: New file.
92158         * tests/test-mbsstr2.sh: New file.
92159         * tests/test-mbsstr2.c: New file.
92160         * tests/test-mbsstr3.sh: New file.
92161         * tests/test-mbsstr3.c: New file.
92162         * m4/locale-fr.m4: New file.
92164 2007-02-11  Bruno Haible  <bruno@clisp.org>
92166         * lib/mbsrchr.c (mbsrchr): Fix bug.
92168         * modules/mbsrchr-tests: New file.
92169         * tests/test-mbsrchr.sh: New file.
92170         * tests/test-mbsrchr.c: New file.
92172 2007-02-11  Bruno Haible  <bruno@clisp.org>
92174         * lib/mbschr.c (mbschr): Fix bug.
92176         * modules/mbschr-tests: New file.
92177         * tests/test-mbschr.sh: New file.
92178         * tests/test-mbschr.c: New file.
92179         * m4/locale-zh.m4: New file.
92181 2007-02-11  Bruno Haible  <bruno@clisp.org>
92183         Support for copying multibyte string iterators.
92184         * lib/mbiter.h: Include <string.h>.
92185         (mbiter_multi_copy): New function.
92186         (mbi_copy): New macro.
92187         * lib/mbuiter.h: Include <string.h>.
92188         (mbuiter_multi_copy): New function.
92189         (mbui_copy): New macro.
92191 2007-02-11  Bruno Haible  <bruno@clisp.org>
92193         New module mbslen.
92194         * modules/mbslen: New file.
92195         * lib/mbslen.c: New file.
92196         * lib/string_.h (mbslen): New declaration.
92197         * m4/mbslen.m4: New file.
92198         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92199         GNULIB_MBSLEN.
92200         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
92201         * MODULES.html.sh (Internationalization functions): Add mbslen.
92203 2007-02-11  Bruno Haible  <bruno@clisp.org>
92205         Ensure O(n) worst-case complexity of strcasestr substitute.
92206         * lib/strcasestr.c: Include stdbool.h.
92207         (knuth_morris_pratt): New function.
92208         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92209         bookkeeping indicates that it's worth it.
92210         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
92212         * modules/strcasestr-tests: New file.
92213         * tests/test-strcasestr.c: New file.
92215 2007-02-11  Bruno Haible  <bruno@clisp.org>
92217         Ensure O(n) worst-case complexity of c_strcasestr.
92218         * lib/c-strcasestr.c: Include stdbool.h, string.h.
92219         (knuth_morris_pratt): New function.
92220         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
92221         the bookkeeping indicates that it's worth it.
92222         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
92224         * modules/c-strcasestr-tests: New file.
92225         * tests/test-c-strcasestr.c: New file.
92227 2007-02-11  Bruno Haible  <bruno@clisp.org>
92229         Ensure O(n) worst-case complexity of c_strstr.
92230         * lib/c-strstr.c: Include stdbool.h, string.h.
92231         (knuth_morris_pratt): New function.
92232         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92233         bookkeeping indicates that it's worth it.
92234         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
92236         * lib/c-strstr.c: Complete rewrite for maintainability.
92238         * modules/c-strstr-tests: New file.
92239         * tests/test-c-strstr.c: New file.
92241 2007-02-11  Bruno Haible  <bruno@clisp.org>
92243         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
92244         5.2.1 and earlier, whereby \055 was treated just like the range
92245         delimiter '-'.
92246         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92248 2007-02-08  Bruno Haible  <bruno@clisp.org>
92250         * modules/regex (Depends-on): Add stdbool.
92251         Reported by Dalibor Topic <robilad@kaffe.org>.
92253 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
92255         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
92256         Prefer returning from main to exiting from it.
92257         Remove unnecessary parens after sizeof.
92259 2007-02-05  Bruno Haible  <bruno@clisp.org>
92261         New module mbssep.
92262         * modules/mbssep: New file.
92263         * lib/mbssep.c: New file.
92264         * lib/string_.h (strsep): Add a conditional link warning.
92265         (mbssep): New declaration.
92266         * m4/mbssep.m4: New file.
92267         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92268         GNULIB_MBSSEP.
92269         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
92270         * MODULES.html.sh (Internationalization functions): Add mbssep.
92272 2007-02-05  Bruno Haible  <bruno@clisp.org>
92274         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
92275         Optimize search in case of 1 delimiter.
92277 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92279         * lib/acl.h: Include sys/types.h before sys/acl.h.
92281 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92283         Merge upstream fix for glibc bugzilla #3957:
92285         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
92287         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
92288         bit for RE_HAT_LISTS_NOT_NEWLINE.
92289         (build_charclass_op): Remove bogus comment.
92291 2007-02-05  Simon Josefsson  <simon@josefsson.org>
92293         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
92295 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92297         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
92298         * lib/memmem.c [!defined _LIBC]: Include config.h.
92300 2007-02-04  Bruno Haible  <bruno@clisp.org>
92302         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
92303         warning message.
92305 2007-02-04  Bruno Haible  <bruno@clisp.org>
92307         New module mbstok_r.
92308         * modules/mbstok_r: New file.
92309         * lib/mbstok_r.c: New file.
92310         * lib/string_.h (strtok_r): Change argument names to match the
92311         comments. Add a conditional link warning.
92312         (mbstok_r): New declaration.
92313         * m4/mbstok_r.m4: New file.
92314         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92315         GNULIB_MBSTOK_R.
92316         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
92317         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
92319 2007-02-04  Bruno Haible  <bruno@clisp.org>
92321         New module mbsspn.
92322         * modules/mbsspn: New file.
92323         * lib/mbsspn.c: New file.
92324         * lib/string_.h (strspn): Add a conditional link warning.
92325         (mbsspn): New declaration.
92326         * m4/mbsspn.m4: New file.
92327         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92328         GNULIB_MBSSPN.
92329         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
92330         * MODULES.html.sh (Internationalization functions): Add mbsspn.
92332 2007-02-04  Bruno Haible  <bruno@clisp.org>
92334         New module mbspbrk.
92335         * modules/mbspbrk: New file.
92336         * lib/mbspbrk.c: New file.
92337         * lib/string_.h (strpbrk): Add a conditional link warning.
92338         (mbspbrk): New declaration.
92339         * m4/mbspbrk.m4: New file.
92340         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92341         GNULIB_MBSPBRK.
92342         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
92343         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
92345 2007-02-04  Bruno Haible  <bruno@clisp.org>
92347         New module mbscspn.
92348         * modules/mbscspn: New file.
92349         * lib/mbscspn.c: New file.
92350         * lib/string_.h (strcspn): Add a conditional link warning.
92351         (mbscspn): New declaration.
92352         * m4/mbscspn.m4: New file.
92353         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92354         GNULIB_MBSCSPN.
92355         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
92356         * MODULES.html.sh (Internationalization functions): Add mbscspn.
92358 2007-02-04  Bruno Haible  <bruno@clisp.org>
92360         New module mbscasestr, reduced goal of strcasestr.
92361         * modules/mbscasestr: New file.
92362         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
92363         (mbscasestr): Renamed from strcasestr.
92364         * lib/strcasestr.c: Don't include mbuiter.h.
92365         (strcasestr): Remove support for multibyte locales.
92366         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
92367         Change the conditional link warning.
92368         (mbscasestr): New declaration.
92369         * m4/mbscasestr.m4: New file.
92370         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
92371         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
92372         REPLACE_STRCASESTR.
92373         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
92374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92375         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92376         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
92377         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
92378         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92379         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
92380         (Depends-on): Remove mbuiter.
92381         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
92383 2007-02-04  Bruno Haible  <bruno@clisp.org>
92385         Simplify handling of strncasecmp.
92386         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
92387         the conditional link warning.
92388         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92389         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
92390         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
92391         * modules/strcase (configure.ac): Don't invoke
92392         gl_STRING_MODULE_INDICATOR.
92393         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
92395 2007-02-04  Bruno Haible  <bruno@clisp.org>
92397         New module mbscasecmp, reduced goal of strcasecmp.
92398         * modules/mbscasecmp: New file.
92399         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
92400         (mbscasecmp): Renamed from strcasecmp.
92401         * lib/strcasecmp.c: Don't include mbuiter.h.
92402         (strcasecmp): Remove support for multibyte locales.
92403         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
92404         Change the conditional link warning.
92405         (mbscasecmp): New declaration.
92406         * m4/mbscasecmp.m4: New file.
92407         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
92408         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
92409         REPLACE_STRCASECMP.
92410         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
92411         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92412         GNULIB_MBSCASECMP.
92413         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
92414         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
92415         * modules/strcase (Files): Remove m4/mbrtowc.m4.
92416         (Depends-on): Remove mbuiter.
92417         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
92419 2007-02-04  Bruno Haible  <bruno@clisp.org>
92421         New module mbsstr. Remove module strstr.
92422         * modules/mbsstr: New file.
92423         * modules/strstr: Remove file.
92424         * lib/mbsstr.c: Renamed from lib/strstr.c.
92425         (mbsstr): Renamed from strstr.
92426         * lib/string_.h (strstr): Remove declaration. Change the conditional
92427         link warning.
92428         (mbsstr): New declaration.
92429         * m4/mbsstr.m4: New file.
92430         * m4/strstr.m4: Remove file.
92431         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
92432         REPLACE_STRSTR.
92433         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
92434         Don't initialize GNULIB_STRSTR.
92435         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
92436         substitute GNULIB_STRSTR and REPLACE_STRSTR.
92437         * MODULES.html.sh (Internationalization functions): Add mbsstr.
92438         (Support for systems lacking ANSI C 89): Remove strstr.
92440 2007-02-04  Bruno Haible  <bruno@clisp.org>
92442         New module mbsrchr.
92443         * modules/mbsrchr: New file.
92444         * lib/mbsrchr.c: New file.
92445         * lib/string_.h (strrchr): Add a conditional link warning.
92446         (mbsrchr): New declaration.
92447         * m4/mbsrchr.m4: New file.
92448         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92449         GNULIB_MBSRCHR.
92450         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
92451         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
92453 2007-02-04  Bruno Haible  <bruno@clisp.org>
92455         New module mbschr.
92456         * modules/mbschr: New file.
92457         * lib/mbschr.c: New file.
92458         * lib/string_.h (strchr): Add a conditional link warning.
92459         (mbschr): New declaration.
92460         * m4/mbschr.m4: New file.
92461         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92462         GNULIB_MBSCHR.
92463         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
92464         * MODULES.html.sh (Internationalization functions): Add mbschr.
92466 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92468         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
92470         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
92472 2007-02-04  Bruno Haible  <bruno@clisp.org>
92474         New module description section 'configure.ac-early'.
92475         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
92476         (func_get_autoconf_early_snippet): New function.
92477         (func_import, func_create_testdir): Use it. Remove special cases for
92478         modules 'extensions' and 'lock'.
92479         * modules/extensions (configure.ac-early): Require
92480         gl_USE_SYSTEM_EXTENSIONS.
92481         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
92483 2007-02-04  Bruno Haible  <bruno@clisp.org>
92485         Make use of gcj-4.3's -fsource and -ftarget option.
92486         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
92487         and if so try the options -fsource and -ftarget.
92488         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
92489         source_version, ftarget_option, target_version arguments.
92490         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
92491         (is_envjavac_oldgcj_14_14_usable): Renamed from
92492         is_envjavac_gcj_14_14_usable.
92493         (is_envjavac_oldgcj_14_13_usable): Renamed from
92494         is_envjavac_gcj_14_13_usable.
92495         (is_gcj_present): Update.
92496         (is_gcj_43, is_gcj43_usable): New functions.
92497         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
92498         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
92499         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
92500         try the options -fsource and -ftarget.
92502 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
92504         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
92505         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
92506         larger value.
92508 2007-02-03  Jim Meyering  <jim@meyering.net>
92510         Give tools a better chance to allocate space for very large buffers.
92511         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
92513         Make pwd and readlink work also when run with an unreadable parent dir
92514         on systems with openat support.
92515         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
92516         provided getcwd function, even when we have openat support.
92517         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
92519 2007-02-02  Bruno Haible  <bruno@clisp.org>
92521         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
92522         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
92523         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
92524         portability problems if one of these functions is only used on specific
92525         platforms.
92526         Reported by Paul Eggert.
92528 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
92530         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
92531         is causing more trouble than it's curing.
92532         * lib/regex_internal.h (__mempcpy): Remove.
92533         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
92534         (and make the code a tad smaller to boot).
92535         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
92537 2007-02-02  Jim Meyering  <jim@meyering.net>
92539         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
92540         section, not in the Makefile.am: one.
92542 2007-02-02  Eric Blake  <ebb9@byu.net>
92544         * lib/strchrnul.c: Always include config.h first.
92546         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
92547         gnulib strstr is not necessary here.
92549 2007-02-02  Simon Josefsson  <simon@josefsson.org>
92551         * m4/socklen.m4: Fix typo.
92553 2007-02-02  Eric Blake  <ebb9@byu.net>
92555         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
92556         * modules/netinet_in (Makefile.am): Likewise.
92558 2007-02-01  Bruno Haible  <bruno@clisp.org>
92560         * lib/string_.h (GL_LINK_WARNING): New macro.
92561         (strcasecmp, strstr, strcasestr): If provided by the system,
92562         conditionally define as a macro that leads to a warning instead of to
92563         an error.
92564         (strncasecmp): Conditionally define as a macro that leads to a warning.
92566 2007-02-01  Karl Berry  <karl@gnu.org>
92568         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
92570 2007-02-01  Bruno Haible  <bruno@clisp.org>
92572         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
92573         renamings.
92575 2007-02-01  Eric Blake  <ebb9@byu.net>
92577         * modules/regex (Depends-on): Revert dependence on mempcpy.
92578         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
92579         module's definition of mempcpy.
92580         Reported by Paul Eggert.
92582 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
92584         * lib/string_.h: If the gnulib module XYZ is not present, undefine
92585         the symbol XYZ before redefining it.  This fixes a problem with
92586         programs that don't use XYZ, when compiled on systems that define
92587         XYZ to something else.
92589 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
92591         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
92592         occurs when "mkdir -m foo" creates a setgid directory that is (1)
92593         writeable to group or other and (2) is intended to have a special
92594         mode bit that is set or cleared.  In such a case, the directory
92595         should be neither group- nor other-writeable until the special
92596         mode bits are right.
92598 2007-01-31  Eric Blake  <ebb9@byu.net>
92600         * modules/mountlist (Depends-on): Add strstr.
92602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
92603         bug.
92604         * modules/string (Makefile.am): Remove redundant replacement.
92605         * modules/regex (Depends-on): Add mempcpy.
92607 2007-01-31  Bruno Haible  <bruno@clisp.org>
92609         New module description field 'Link'.
92610         * gnulib-tool (func_usage): Document --extract-link-directive.
92611         (sed_extract_prog): Recognize 'Link' directive.
92612         (func_get_link_directive): New function.
92613         (func_import): Show summary of link directives.
92614         Handle --extract-link-directive option.
92615         * modules/acl (Link): New section.
92616         * modules/clock-time (Link): New section.
92617         * modules/euidaccess (Link): New section.
92618         * modules/gettext (Link): New section.
92619         * modules/iconv (Link): New section.
92620         * modules/lock (Link): New section.
92621         * modules/nanosleep (Link): New section.
92622         * modules/readline (Link): New section.
92624 2007-01-27  Bruno Haible  <bruno@clisp.org>
92626         Enforce the use of gnulib modules for unportable <string.h> functions.
92627         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
92628         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
92629         (gl_HEADER_STRING_H_BODY): Require it.
92630         * lib/string_.h: If the gnulib module XYZ is not present, redefine
92631         the symbol XYZ to one that gives a link error.
92632         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
92633         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
92634         * modules/mempcpy (configure.ac): Likewise.
92635         * modules/memrchr (configure.ac): Likewise.
92636         * modules/stpcpy (configure.ac): Likewise.
92637         * modules/stpncpy (configure.ac): Likewise.
92638         * modules/strcase (configure.ac): Likewise.
92639         * modules/strcasestr (configure.ac): Likewise.
92640         * modules/strchrnul (configure.ac): Likewise.
92641         * modules/strdup (configure.ac): Likewise.
92642         * modules/strndup (configure.ac): Likewise.
92643         * modules/strnlen (configure.ac): Likewise.
92644         * modules/strpbrk (configure.ac): Likewise.
92645         * modules/strsep (configure.ac): Likewise.
92646         * modules/strstr (configure.ac): Likewise.
92647         * modules/strtok_r (configure.ac): Likewise.
92649 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
92651         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
92653 2007-01-30  Jim Meyering  <jim@meyering.net>
92655         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
92657 2007-01-29  Bruno Haible  <bruno@clisp.org>
92659         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
92660         * lib/execute.c: Likewise.
92661         * lib/pipe.c: Likewise.
92662         * lib/printf-args.h: Likewise.
92663         * lib/printf-args.c: Likewise.
92664         * lib/printf-parse.c: Likewise.
92665         * lib/vasnprintf.c: Likewise.
92667 2007-01-29  Eric Blake  <ebb9@byu.net>
92669         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
92670         declaration.
92672 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
92674         * lib/strptime.h (strptime): Use 'restrict' for args where
92675         POSIX requires this.
92676         * lib/strptime.c (strptime): Likewise.
92677         Change license notice from LGPL to GPL, since gnulib-tool will
92678         change this as needed.
92679         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
92680         defined.
92681         Include "strptime.h" first, to check interface.
92682         Do not #undef _LIBC and _NL_CURRENT.
92683         Do not include <stdlib.h>; no longer needed.
92684         Include "time_r.h" and declare ptime_locale_status
92685         only if _LIBC is not defined.
92686         (__P): Remove unused macro.
92687         (match_string): Bring back glibc version, but use it only if _LIBC
92688         is defined.
92689         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
92690         Remove unnecessary assertion and abort() call.
92691         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
92692         * m4/strptime.m4: Fix serial number comment.
92693         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
92694         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
92695         (Depends-on): Add time_r.
92697 2007-01-29  Bruno Haible  <bruno@clisp.org>
92699         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92700         strptime.
92701         * modules/strptime (Depends-on): Add stdbool.
92702         * lib/strptime.h: Include <time.h> always. Add comments.
92704 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
92706         * modules/strptime: New file.
92707         * lib/strptime.h: New file.
92708         * lib/strptime.c: New file.
92709         * m4/strptime.m4: New file.
92711 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
92713         * MODULES.html.sh: New module mpsort.
92714         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
92716         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
92717         a circularity problem with HP-UX ia64 reported by Bob Proulx in
92718         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
92719         All uses changed.
92720         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
92721         All uses changed.
92722         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
92723         to _Restrict_.
92724         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
92725         the parameter matches the prototype.
92727 2007-01-28  Jim Meyering  <jim@meyering.net>
92729         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
92730         sys/time.h here, reverting that part of the previous patch:
92731         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
92733 2007-01-28  Bruno Haible  <bruno@clisp.org>
92735         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
92736         value of $(SYS_TIME_H).
92737         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
92738         remove it conditionally, too. [added by Jim Meyering]
92739         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
92740         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
92741         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
92742         GETTIMEOFDAY_REPLACEMENT to 1.
92744 2007-01-28  Bruno Haible  <bruno@clisp.org>
92746         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
92747         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
92748         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
92749         Set UNISTD_H instead of UNISTD_H2.
92750         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
92752 2007-01-28  Bruno Haible  <bruno@clisp.org>
92754         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
92755         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
92757 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92759         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
92760         (func_create_testdir): Ensure C locale for `grep' and `tr'
92761         character ranges.
92762         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
92763         ACLOCAL_AMFLAGS parsing state machine.
92765 2007-01-27  Bruno Haible  <bruno@clisp.org>
92767         * modules/unistr/base: Update.
92769 2007-01-27  Bruno Haible  <bruno@clisp.org>
92771         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
92772         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
92773         * modules/unistr/u32-mbtouc-unsafe: Renamed from
92774         modules/unistr/u32-mbtouc.
92775         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
92776         * lib/unistr.h: Update.
92777         * lib/linebreak.c: Update.
92778         * modules/unistr/u32-mbtouc: Renamed from
92779         modules/unistr/u32-mbtouc-safe.
92780         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
92781         * lib/unistr.h: Update.
92782         * lib/unistr/u32-to-u8.c: Update.
92783         * lib/unistr/u32-to-u16.c: Update.
92785 2007-01-27  Bruno Haible  <bruno@clisp.org>
92787         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
92788         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
92789         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
92790         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
92791         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
92792         * modules/unistr/u16-mbtouc-unsafe: Renamed from
92793         modules/unistr/u16-mbtouc.
92794         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
92795         * lib/unistr.h: Update.
92796         * lib/linebreak.c: Update.
92797         * modules/linebreak: Update.
92798         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
92799         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
92800         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
92801         * modules/unistr/u16-mbtouc: Renamed from
92802         modules/unistr/u16-mbtouc-safe.
92803         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
92804         * lib/unistr.h: Update.
92805         * lib/unistr/u16-to-u8.c: Update.
92806         * modules/unistr/u16-to-u8: Update.
92807         * lib/unistr/u16-to-u32.c: Update.
92808         * modules/unistr/u16-to-u32: Update.
92810 2007-01-27  Bruno Haible  <bruno@clisp.org>
92812         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
92813         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
92814         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
92815         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
92816         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
92817         * modules/unistr/u8-mbtouc-unsafe: Renamed from
92818         modules/unistr/u8-mbtouc.
92819         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
92820         * lib/unistr.h: Update.
92821         * lib/striconveh.c: Update.
92822         * modules/striconveh: Update.
92823         * lib/linebreak.c: Update.
92824         * modules/linebreak: Update.
92825         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
92826         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
92827         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
92828         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
92829         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
92830         * lib/unistr.h: Update.
92831         * lib/striconveh.c: Update.
92832         * modules/striconveh: Update.
92833         * lib/unistr/u8-to-u16.c: Update.
92834         * modules/unistr/u8-to-u16: Update.
92835         * lib/unistr/u8-to-u32.c: Update.
92836         * modules/unistr/u8-to-u32: Update.
92838 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92840         Sync from Libtool.
92841         * lib/argz.c: Do not include strings.h nor memory.h, include
92842         string.h unconditionally.  Patch by Simon Josefsson.
92844 2007-01-27  Bruno Haible  <bruno@clisp.org>
92846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
92847         from gl_HEADER_STRING_H_BODY.
92848         (gl_HEADER_STRING_H_BODY): Require it.
92849         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
92850         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
92851         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
92852         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
92853         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
92854         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
92855         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92856         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
92857         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
92858         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
92859         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
92860         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
92861         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
92862         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
92863         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
92865 2007-01-27  Bruno Haible  <bruno@clisp.org>
92867         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
92868         check_PROGRAMS into noinst_PROGRAMS.
92869         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
92870         check_PROGRAMS in this case.
92871         (func_import): Set for_test to false.
92872         (func_create_testdir): Set for_test to true.
92874 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92875             Bruno Haible  <bruno@clisp.org>
92877         * modules/strcasestr (Files): Remove lib/strcasestr.h.
92878         (Depends-on): Add string.
92879         (Includes): Use <string.h> instead of strcasestr.h.
92880         * modules/string (Makefile.am): Also substitute the value of
92881         REPLACE_STRCASESTR.
92882         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
92883         assume strcasestr is declared in <string.h> not <strings.h>. Also
92884         set REPLACE_STRCASESTR.
92885         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
92886         REPLACE_STRCASESTR.
92887         * lib/strcasestr.h: Remove file.
92888         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
92889         * lib/string_.h (strcasestr): New declaration.
92891 2007-01-27  Bruno Haible  <bruno@clisp.org>
92893         * lib/string_.h: Use 'extern'.
92895 2007-01-27  Jim Meyering  <jim@meyering.net>
92897         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
92898         of set-but-not-used local, "q".
92900         * lib/mempcpy.c: Include <config.h> before <string.h>.
92901         This fixes a compilation error on HP-UX, due to the system's
92902         "restrict"-using mempcpy prototype.
92904 2007-01-26  Bruno Haible  <bruno@clisp.org>
92906         Small optimization.
92907         * lib/javacomp.c: Include c-strstr.h.
92908          (is_envjavac_gcj): Use c_strstr instead of strstr.
92909         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
92911 2007-01-26  Bruno Haible  <bruno@clisp.org>
92913         * MODULES.html.sh (Unicode string functions): Add the new modules.
92915         * modules/uniconv/u32-strconv-to-locale: New file.
92916         * lib/uniconv/u32-strconv-to-locale.c: New file.
92918         * modules/uniconv/u16-strconv-to-locale: New file.
92919         * lib/uniconv/u16-strconv-to-locale.c: New file.
92921         * modules/uniconv/u8-strconv-to-locale: New file.
92922         * lib/uniconv/u8-strconv-to-locale.c: New file.
92924         * modules/uniconv/u32-strconv-from-locale: New file.
92925         * lib/uniconv/u32-strconv-from-locale.c: New file.
92927         * modules/uniconv/u16-strconv-from-locale: New file.
92928         * lib/uniconv/u16-strconv-from-locale.c: New file.
92930         * modules/uniconv/u8-strconv-from-locale: New file.
92931         * lib/uniconv/u8-strconv-from-locale.c: New file.
92933         * modules/uniconv/u32-strconv-to-enc: New file.
92934         * lib/uniconv/u32-strconv-to-enc.c: New file.
92935         * modules/uniconv/u32-strconv-to-enc-tests: New file.
92936         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
92938         * modules/uniconv/u16-strconv-to-enc: New file.
92939         * lib/uniconv/u16-strconv-to-enc.c: New file.
92940         * lib/uniconv/u-strconv-to-enc.h: New file.
92941         * modules/uniconv/u16-strconv-to-enc-tests: New file.
92942         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
92944         * modules/uniconv/u8-strconv-to-enc: New file.
92945         * lib/uniconv/u8-strconv-to-enc.c: New file.
92946         * modules/uniconv/u8-strconv-to-enc-tests: New file.
92947         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
92949         * modules/uniconv/u32-strconv-from-enc: New file.
92950         * lib/uniconv/u32-strconv-from-enc.c: New file.
92951         * modules/uniconv/u32-strconv-from-enc-tests: New file.
92952         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
92954         * modules/uniconv/u16-strconv-from-enc: New file.
92955         * lib/uniconv/u16-strconv-from-enc.c: New file.
92956         * modules/uniconv/u16-strconv-from-enc-tests: New file.
92957         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
92959         * modules/uniconv/u8-strconv-from-enc: New file.
92960         * lib/uniconv/u8-strconv-from-enc.c: New file.
92961         * lib/uniconv/u-strconv-from-enc.h: New file.
92962         * modules/uniconv/u8-strconv-from-enc-tests: New file.
92963         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
92965         * modules/uniconv/u32-conv-from-enc: New file.
92966         * lib/uniconv/u32-conv-from-enc.c: New file.
92967         * modules/uniconv/u32-conv-from-enc-tests: New file.
92968         * tests/uniconv/test-u32-conv-from-enc.c: New file.
92970         * modules/uniconv/u16-conv-from-enc: New file.
92971         * lib/uniconv/u16-conv-from-enc.c: New file.
92972         * lib/uniconv/u-conv-from-enc.h: New file.
92973         * modules/uniconv/u16-conv-from-enc-tests: New file.
92974         * tests/uniconv/test-u16-conv-from-enc.c: New file.
92976         * modules/uniconv/u8-conv-from-enc: New file.
92977         * lib/uniconv/u8-conv-from-enc.c: New file.
92978         * modules/uniconv/u8-conv-from-enc-tests: New file.
92979         * tests/uniconv/test-u8-conv-from-enc.c: New file.
92981         * modules/uniconv/base: New file.
92982         * lib/uniconv.h: New file.
92984 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
92986         * doc/gnulib-tool.texi (Initial import): Update to match current
92987         behavior with strdup module.
92988         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
92989         * lib/memmem.h: Remove; all uses removed.  This is now done
92990         by <string.h>.
92991         * lib/mempcpy.h: Likewise.
92992         * lib/memrchr.h: Likewise.
92993         * lib/stpcpy.h: Likewise.
92994         * lib/stpncpy.h: Likewise.
92995         * lib/strcase.h: Likewise.
92996         * lib/strchrnul.h: Likewise.
92997         * lib/strdup.h: Likewise.
92998         * lib/strndup.h: Likewise.
92999         * lib/strnlen.h: Likewise.
93000         * lib/strpbrk.h: Likewise.
93001         * lib/strsep.h: Likewise.
93002         * lib/strstr.h: Likewise.
93003         * lib/strtok_r.h: Likewise.
93004         * lib/string_.h: New file.
93005         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
93006         Rely on <string.h> instead.
93007         * lib/canon-host.c: Likewise.
93008         * lib/chdir-long.c: Likewise.
93009         * lib/concatpath.c: Likewise.
93010         * lib/exclude.c: Likewise.
93011         * lib/fchdir.c: Likewise.
93012         * lib/getaddrinfo.c: Likewise.
93013         * lib/getcwd.c: Likewise.
93014         * lib/getsubopt.c: Likewise.
93015         * lib/glob.c: Likewise.
93016         * lib/hard-locale.c: Likewise.
93017         * lib/iconvme.c: Likewise.
93018         * lib/javacomp.c: Likewise.
93019         * lib/mempcpy.c: Likewise.
93020         * lib/memrchr.c: Likewise.
93021         * lib/regex_internal.h: Likewise.
93022         * lib/stpncpy.c: Likewise.
93023         * lib/strcasecmp.c: Likewise.
93024         * lib/strchrnul.c: Likewise.
93025         * lib/strdup.c: Likewise.
93026         * lib/striconv.c: Likewise.
93027         * lib/striconveh.c: Likewise.
93028         * lib/striconveha.c: Likewise.
93029         * lib/strncasecmp.c: Likewise.
93030         * lib/strndup.c: Likewise.
93031         * lib/strnlen.c: Likewise.
93032         * lib/strsep.c: Likewise.
93033         * lib/strstr.c: Likewise.
93034         * lib/strtok_r.c: Likewise.
93035         * lib/userspec.c: Likewise.
93036         * lib/w32spawn.h: Likewise.
93037         * lib/xstrndup.c: Likewise.
93038         * lib/mountlist.c (strstr): Remove decl.
93039         * m4/string_h.m4: New file.
93040         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
93041         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
93042         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
93043         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
93044         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
93045         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
93046         Set REPLACE_STRCASECMP if necessary.
93047         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
93048         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
93049         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
93050         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
93051         HAVE_DECL_STRDUP if necessary.
93052         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
93053         since gl_FUNC_STRNDUP does that now.
93054         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
93055         Check for decl here...
93056         (gl_PREREQ_STRNLEN): ... not here.
93057         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
93058         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
93059         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
93060         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
93061         necessary.
93062         * modules/string: New file.
93063         * modules/memmem (Files): Remove special-purpose include file.
93064         (Depends-on): Add string.
93065         (Include): Include <string.h>, not the removed file.
93066         * modules/mempcpy: Likewise.
93067         * modules/memrchr: Likewise.
93068         * modules/stpcpy: Likewise.
93069         * modules/stpncpy: Likewise.
93070         * modules/strcase: Likewise.
93071         * modules/strchrnul: Likewise.
93072         * modules/strdup: Likewise.
93073         * modules/strndup: Likewise.
93074         * modules/strnlen: Likewise.
93075         * modules/strpbrk: Likewise.
93076         * modules/strsep: Likewise.
93077         * modules/strstr: Likewise.
93078         * modules/strtok_r: Likewise.
93079         * tests/test-dirname.c: Don't include "strdup.h", since
93080         <string.h> now suffices.
93081         * tests/test-memmem.c: Don't include "memmem.h", since
93082         <string.h> now suffices.
93084 2007-01-25  Bruno Haible  <bruno@clisp.org>
93086         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
93087         *resultp is 0.
93089         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
93090         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
93091         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
93092         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
93094         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
93095         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
93096         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
93097         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
93098         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
93099         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
93101 2007-01-24  Bruno Haible  <bruno@clisp.org>
93103         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
93104         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
93105         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
93106         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
93107         gl_FUNC_FTS_CORE.
93108         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
93109         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
93110         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93111         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
93112         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
93113         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
93114         gl_FUNC_FCHOWNAT.
93115         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
93116         gl_FUNC_STRFTIME.
93117         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
93118         Reported by Ralf Wildenhues.
93120 2007-01-24  Bruno Haible  <bruno@clisp.org>
93122         Drop AC_REQUIRE calls that are redundant with the module dependencies.
93123         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
93124         gl_GETADDRINFO.
93125         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
93126         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
93127         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
93129 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
93131         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
93132         Don't use 'exit'; just return from 'main'.
93133         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
93135         * lib/fnmatch_.h: Readjust white space and comments to match
93136         glibc, to avoid spurious diffs.
93138 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93140         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
93141         2004-12-01 change by Jakub Jelinek, since this code won't compile
93142         if !LIBC.  Problem reported by Bob Proulx.
93144 2007-01-23  Bruno Haible  <bruno@clisp.org>
93146         * lib/striconveh.c: Include c-strcaseeq.h.
93147         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
93148         * modules/striconveh (Depends-on): Add c-strcaseeq.
93150 2007-01-23  Bruno Haible  <bruno@clisp.org>
93152         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
93154         * modules/c-strcaseeq: New file.
93155         * lib/c-strcaseeq.h: New file.
93157         * modules/streq: New file.
93158         * lib/streq.h: New file.
93160 2007-01-23  Bruno Haible  <bruno@clisp.org>
93162         * modules/striconveha-tests: New file.
93163         * tests/test-striconveha.c: New file.
93165         * lib/striconveha.h: Include <stdbool.h>.
93166         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
93167         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
93168         (mem_iconveha_notranslit): Renamed from mem_iconveha.
93169         (mem_iconveha): New function.
93170         (str_iconveha_notranslit): Renamed from str_iconveha.
93171         (str_iconveha): New function.
93172         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
93173         c-strcase.
93175 2007-01-23  Bruno Haible  <bruno@clisp.org>
93177         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
93178         encodings without forgiving before trying any encoding with handler.
93179         (str_iconveha): Try all encodings without forgiving before trying any
93180         encoding with handler.
93182 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93184         Import the following changes from libc.
93186         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
93188         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
93190         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
93192         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
93193         normal_bracket label.
93195         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
93197         [BZ #361]
93198         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
93199         to normal_bracket after fetching the next character.
93201 2007-01-22  Bruno Haible  <bruno@clisp.org>
93203         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
93204         argument.
93205         * lib/striconveh.c (iconv_carefully_1): New function.
93206         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
93207         argument.
93208         (str_cd_iconveh): Update.
93209         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
93210         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
93211         * tests/test-striconveh.c (MAGIC): New macro.
93212         (new_offsets): New function.
93213         (main): Test call with and without offsets.
93215 2007-01-22  Bruno Haible  <bruno@clisp.org>
93217         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
93218         * modules/sys_select (Makefile.am): Likewise.
93219         * modules/sys_socket (Makefile.am): Likewise.
93220         * modules/sys_time (Makefile.am): Likewise.
93222 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
93224         * modules/gettimeofday (License): Change from GPL to LGPL, since
93225         gettimeofday is a library function.
93227 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93229         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
93231 2007-01-21  Bruno Haible  <bruno@clisp.org>
93233         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
93235 2007-01-21  Bruno Haible  <bruno@clisp.org>
93237         * modules/striconveha: New file.
93238         * lib/striconveha.h: New file.
93239         * lib/striconveha.c: New file.
93240         * MODULES.html.sh (Internationalization functions): Add striconveha.
93241         * lib/striconv.c (str_iconv): Optimize the case of an empty input
93242         string.
93243         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
93245 2007-01-21  Bruno Haible  <bruno@clisp.org>
93247         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
93248         * lib/striconveh.c (str_iconveh): Likewise.
93250 2007-01-21  Bruno Haible  <bruno@clisp.org>
93252         * lib/striconveh.h (mem_iconveh): New declaration.
93253         * lib/striconveh.c (mem_iconveh): New function.
93254         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
93256 2007-01-21  Bruno Haible  <bruno@clisp.org>
93258         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
93260         * lib/striconveh.h (mem_cd_iconveh): Change specification.
93261         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
93262         original result buffer.
93263         (str_cd_iconveh): Update.
93264         * tests/test-striconveh.c (main): Update.
93266         * lib/striconv.h (mem_cd_iconv): Change specification.
93267         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
93268         result buffer.
93269         (str_cd_iconv): Update.
93270         * tests/test-striconv.c (main): Update.
93272 2007-01-21  Bruno Haible  <bruno@clisp.org>
93274         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
93276 2007-01-20  Jim Meyering  <jim@meyering.net>
93278         * lib/userspec.c (parse_with_separator): If a user or group string
93279         starts with "+", skip the corresponding name-to-ID look-up, since
93280         such a look-up must fail: user and group names may not include "+".
93282 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
93284         * lib/poll.c: Include sys/time.h and time.h unconditionally,
93285         since we now assume the sys_time module.
93286         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
93287         check for sys/time.h; no longer needed.
93288         * modules/poll (Depends-on): Depend on sys_time.
93290 2007-01-18  Bruno Haible  <bruno@clisp.org>
93292         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
93293         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93295         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
93296         gettimeofday.
93298         * tests/test-gettimeofday.c: Include <time.h>.
93299         (dummy): Remove variable.
93301         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
93302         gl_HEADER_SYS_TIME_H.
93303         (gl_HEADER_SYS_TIME_H): New macro.
93305         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
93306         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93307         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
93308         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
93309         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93310         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
93311         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
93312         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93313         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
93314         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
93315         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93317         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
93318         last change; it caused a compilation error when cross-compiling to
93319         Cygwin.
93321 2007-01-18  Jim Meyering  <jim@meyering.net>
93323         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
93324         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
93325         than the race-prone "test -d sys || mkdir sys".
93326         (configure.ac): Use AC_PROG_MKDIR_P.
93327         * modules/sys_select: Likewise.
93328         * modules/sys_socket: Likewise.
93329         * modules/sys_time: Likewise.
93331 2007-01-18  Eric Blake  <ebb9@byu.net>
93333         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
93334         replace gettimeofday.
93335         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
93336         name, to avoid infinite recursion.
93338 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
93340         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
93341         module sys_time.
93342         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
93343         assume timespec.h defines struct timeval.
93344         * lib/settime.c: Likewise.
93345         * lib/utimens.c: Likewise.
93346         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
93347         since we now assume the gettimeofday module.
93348         * lib/tempname.c (__gen_tempname): Likewise.
93349         * lib/gettimeofday.h: Remove.
93350         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
93351         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
93352         Include <time.h>, for 'time()'.
93353         (localtime_buffer_addr): Also use this workaround if
93354         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
93355         to simplify the uses.  All uses changed.
93356         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
93357         that #undef is inside {}, and 'const' follows type name consistently.
93358         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
93359         (gettimeofday): Do not use the maximum possible value for
93360         tv->tv_usec, since that might break usages other than ls.c.
93361         Instead, we'll leave ls.c alone.  This undoes today's patch
93362         by Bruno.  Add a compile-time warning for 1s-clock resolution;
93363         we've never observed the problem but might as well keep the
93364         canary.
93365         * lib/nanosleep.c: Include timespec.h first, for interface check.
93366         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
93367         now assume the sys_time module.
93368         * lib/tempname.c: Likewise.
93369         * lib/timespec.h: Likewise.
93370         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
93371         needed.
93372         * lib/strftime.c: Likewise.
93373         * lib/timespec.h: Likewise.
93374         * lib/posixtm.c: Include posixtm.h first, for interface check.
93375         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
93376         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
93377         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
93378         * lib/sys_time_.h: New file.
93379         * lib/timespec.h (struct timespec): Use long int, not long.
93380         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
93381         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
93382         Remove obsolescent call to AC_HEADER_TIME.
93383         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
93384         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
93385         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93386         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
93387         Likewise.
93388         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
93389         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
93390         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
93391         into the sys_time module.  Check for gettimeofday just once.
93392         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
93393         for gettimeofday signature to just check the signature.  Merely
93394         compile it, since linking doesn't test signature.  Improve test for
93395         whether gettimeofday.o is actually needed.
93396         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
93397         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
93398         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
93399         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93400         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
93401         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
93402         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
93403         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
93404         than worrying about sys/time.h.
93405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
93406         Don't bother worrying about TIME_WITH_SYS_TIME.
93407         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
93408         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
93409         * m4/sys_time_h.m4: New file.
93410         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
93411         Don't include sys/time.h.  Return from main rather than exiting.
93412         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
93413         all uses changed.
93414         * modules/gethrxtime (Depends-on): Add sys_time.
93415         * modules/gettime (Depends-on): Likewise.
93416         * modules/gettimeofday (Depends-on): Likewise.
93417         * modules/nanosleep (Depends-on): Likewise.
93418         * modules/settime (Depends-on): Likewise.
93419         * modules/tempname (Depends-on): Likewise.
93420         * modules/utimens (Depends-on): Likewise.
93421         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
93422         (Include): Change back to <sys/time.h>.
93423         (Maintainer): Add self.
93424         * modules/sys_time: New file.
93425         * modules/tempname (Depends-on): Add gettimeofday.
93426         * tests/test-gettimeofday.c: Include <sys/time.h>
93427         rather than gettimeofday.h.
93429 2007-01-17  Bruno Haible  <bruno@clisp.org>
93431         * gnulib-tool (func_get_license): Revert last patch. Instead, let
93432         the license default to GPL.
93433         (func_create_testdir): Don't complain if a module is LGPL and its
93434         tests module depends on GPLed modules.
93436 2007-01-17  Bruno Haible  <bruno@clisp.org>
93438         * lib/gettimeofday.c (gettimeofday): Add code for the case
93439         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
93440         maximum possible value for tv->tv_usec, rather than the minimum one.
93442 2005-10-08  Martin Lambers  <marlam@marlam.de>
93443 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
93444 2007-01-16  Bruno Haible  <bruno@clisp.org>
93446         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
93447         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
93448         gl_FUNC_GETTIMEOFDAY.
93449         (Include): Add gettimeofday.h.
93450         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
93451         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
93452         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
93453         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
93454         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
93455         * lib/gettimeofday.h: New file.
93456         * lib/gettimeofday.c: Include <sys/timeb.h>.
93457         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
93458         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93459         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
93460         fall back on time().
93462         * tests/test-gettimeofday.c: New file.
93463         * modules/gettimeofday-tests: New file.
93465 2007-01-16  Eric Blake  <ebb9@byu.net>
93467         * modules/fnmatch (Depends-on): Depend on wchar.
93468         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
93469         * m4/fnmatch.m4: Likewise.
93470         * modules/mbchar (Makefile.am): Assume <wchar.h>.
93471         * m4/mbchar.m4: Likewise.
93472         * modules/mbswidth (Depends-on): Depend on wchar.
93473         * lib/mbswidth.c: Assume <wchar.h>.
93474         * m4/mbswidth.m4: Likewise.
93475         * modules/quotearg (Depends-on): Depend on wchar.
93476         * lib/quotearg.c: Assume <wchar.h>.
93477         * m4/quotearg.m4: Likewise.
93478         * modules/regex (Depends-on): Depend on wchar.
93479         * lib/regex_internal.h: Assume <wchar.h>.
93480         * m4/regex.m4: Likewise.
93481         * modules/stdint (Depends-on): Depend on wchar.
93482         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
93483         * m4/stdint.m4: Likewise.
93484         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
93485         * modules/strftime (Depends-on): Depend on wchar.
93486         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
93487         * modules/strtol (Depends-on): Depend on wchar.
93488         * lib/strtol.c: Assume <wchar.h>.
93489         * modules/wcwidth (Depends-on): Depend on wchar.
93490         * lib/wcwidth.h: Assume <wchar.h>.
93491         * m4/wcwidth.m4: Likewise.
93493 2007-01-16  Bruno Haible  <bruno@clisp.org>
93495         * modules/csharpexec-script: New, created from...
93496         * modules/csharpexec: ... this.
93498 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
93500         * modules/javaexec-script: New, created from...
93501         * modules/javaexec: ... this.
93503 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93505         * modules/poll (Dependencies): Add sys_select.
93507 2007-01-15  Jim Meyering  <jim@meyering.net>
93509         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
93510         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
93511         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
93512         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
93514 2007-01-15  Bruno Haible  <bruno@clisp.org>
93516         * modules/striconveh: New file.
93517         * lib/striconveh.h: New file.
93518         * lib/striconveh.c: New file.
93519         * MODULES.html.sh (Internationalization functions): Add striconveh.
93521         * modules/striconveh-tests: New file.
93522         * tests/test-striconveh.c: New file.
93524 2007-01-15  Bruno Haible  <bruno@clisp.org>
93526         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
93527         not from GNU libiconv or GNU libc.
93529 2007-01-15  Bruno Haible  <bruno@clisp.org>
93531         * doc/gnulib-intro.texi (Copyright): Explain the different license
93532         terms for module descriptions, autoconf macros, tests, documentation.
93534 2007-01-14  Bruno Haible  <bruno@clisp.org>
93536         * modules/striconv-tests: New file.
93537         * tests/test-striconv.c: New file.
93539 2007-01-14  Bruno Haible  <bruno@clisp.org>
93541         * modules/iconv-tests: New file.
93542         * tests/test-iconv.c: New file.
93544 2007-01-14  Bruno Haible  <bruno@clisp.org>
93546         * gnulib-tool (func_get_license): For test modules, use the license of
93547         the main module.
93549 2007-01-14  Bruno Haible  <bruno@clisp.org>
93551         * modules/iconv (Include): Clarify that <iconv.h> can only be included
93552         if iconv is found to exist.
93554 2007-01-14  Bruno Haible  <bruno@clisp.org>
93556         * modules/c-ctype-tests: New file.
93557         * tests/test-c-ctype.c: New file.
93559 2007-01-14  Bruno Haible  <bruno@clisp.org>
93561         * modules/binary-io-tests: New file.
93562         * tests/test-binary-io.sh: New file.
93563         * tests/test-binary-io.c: New file.
93565 2007-01-14  Bruno Haible  <bruno@clisp.org>
93567         * modules/array-oset-tests: New file.
93568         * tests/test-array_oset.c: New file.
93570 2007-01-14  Bruno Haible  <bruno@clisp.org>
93572         * modules/array-list-tests: New file.
93573         * tests/test-array_list.c: New file.
93575 2007-01-14  Bruno Haible  <bruno@clisp.org>
93577         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
93578         and make.
93579         Reported by Simon Josefsson in
93580         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
93582 2007-01-14  Bruno Haible  <bruno@clisp.org>
93584         * modules/allocsa-tests: New file.
93585         * tests/test-allocsa.c: New file.
93587 2007-01-14  Bruno Haible  <bruno@clisp.org>
93589         * modules/fchdir (Depends-on): Add absolute-header.
93590         * modules/unistd (Depends-on): Likewise.
93592 2006-12-30  Bruno Haible  <bruno@clisp.org>
93594         * modules/fchdir: New file.
93595         * modules/unistd (Files): Add lib/unistd_.h.
93596         (Makefile.am): Generate unistd.h from unistd_.h.
93597         * lib/fchdir.c: New file.
93598         * lib/dirent_.h: New file.
93599         * lib/unistd_.h: New file.
93600         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
93601         * m4/fchdir.m4: New file.
93602         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
93603         (gl_HEADER_UNISTD): Invoke it.
93604         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
93605         function.
93606         * lib/backupfile.c (opendir, closedir): Undefine.
93607         * lib/chown.c (open, close): Undefine.
93608         * lib/clean-temp.c (open, close): Undefine.
93609         * lib/copy-file.c (open, close): Undefine.
93610         * lib/execute.c (open, close): Undefine.
93611         * lib/fsusage.c (open, close): Undefine.
93612         * lib/gc-gnulib.c (open, close): Undefine.
93613         * lib/getcwd.c (opendir, closedir): Undefine.
93614         * lib/glob.c (opendir, closedir): Undefine.
93615         * lib/javacomp.c (open, close): Undefine.
93616         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
93617         * lib/openat-proc.c (open, close): Undefine.
93618         * lib/pagealign_alloc.c (open, close): Undefine.
93619         * lib/pipe.c (open, close): Undefine.
93620         * lib/progreloc.c (open, close): Undefine.
93621         * lib/savedir.c (opendir, closedir): Undefine.
93622         * lib/utime.c (open, close): Undefine.
93623         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
93625 2007-01-10  Bruno Haible  <bruno@clisp.org>
93627         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
93629 2007-01-12  Eric Blake  <ebb9@byu.net>
93631         Provide a robust <wchar.h>.  Further simplifications are now
93632         possible in other modules, but not included here.
93633         * modules/wchar: New module.
93634         * m4/wchar.m4: New file.
93635         * lib/wchar_.h: Likewise.
93636         * modules/mbchar (Depends-on): Depend on wchar, as the first use
93637         of the new module.
93638         * MODULES.html.sh (Extended multibyte and wide character utilities):
93639         New section.
93641 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
93643         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
93644         to a reasonable default for memory allocation.
93645         (xreadlink): Don't allocate a huge buffer, to work around a buggy
93646         file system that reports garbage st_size values for symlinks.
93647         Problem reported by Liyang Hu.
93649 2007-01-11  Simon Josefsson  <simon@josefsson.org>
93651         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
93652         Emacs .#* auto-save files).
93654 2007-01-11  Bruno Haible  <bruno@clisp.org>
93656         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
93657         directory.
93659 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
93661         Use @...@ consistently in lib/wctype_.h.
93662         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
93663         on it being set to 1 or 0.
93664         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
93665         go back to AC_SUBSTing it.
93666         * modules/wctype (Makefile.am): Undo previous change.
93668 2007-01-10  Eric Blake  <ebb9@byu.net>
93670         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
93671         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
93672         * modules/wctype (Makefile.am): Likewise.
93673         Reported by Chris McGuire.
93675 2007-01-10  Jim Meyering  <jim@meyering.net>
93677         fts.c: a small readability/maintainability improvement
93678         * lib/fts.c (fts_read): Make this code slightly more readable and
93679         maintainable by hoisting the "sp->fts_cur = p" assignments to
93680         immediately follow the statements that set P.  Derived from
93681         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
93683 2007-01-10  Eric Blake  <ebb9@byu.net>
93685         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
93686         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
93687         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
93688         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
93689         Reported by Chris McGuire.
93691 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93693         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
93694         in sed script.
93696 2007-01-09  Bruno Haible  <bruno@clisp.org>
93698         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
93699         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
93700         variables.
93701         (func_module): Use them.
93703 2007-01-09  Bruno Haible  <bruno@clisp.org>
93705         * modules/unistr/base: New file.
93706         * lib/unistr.h: New file.
93708         * modules/unistr/u8-to-u16: New file.
93709         * lib/unistr/u8-to-u16.c: New file.
93711         * modules/unistr/u8-to-u32: New file.
93712         * lib/unistr/u8-to-u32.c: New file.
93714         * modules/unistr/u16-to-u8: New file.
93715         * lib/unistr/u16-to-u8.c: New file.
93717         * modules/unistr/u16-to-u32: New file.
93718         * lib/unistr/u16-to-u32.c: New file.
93720         * modules/unistr/u32-to-u8: New file.
93721         * lib/unistr/u32-to-u8.c: New file.
93723         * modules/unistr/u32-to-u16: New file.
93724         * lib/unistr/u32-to-u16.c: New file.
93726         * modules/unistr/u8-check: New file.
93727         * modules/unistr/u16-check: New file.
93728         * modules/unistr/u32-check: New file.
93729         * lib/unistr/u8-check.c: New file.
93730         * lib/unistr/u16-check.c: New file.
93731         * lib/unistr/u32-check.c: New file.
93733         * modules/unistr/u8-chr: New file.
93734         * modules/unistr/u16-chr: New file.
93735         * modules/unistr/u32-chr: New file.
93736         * lib/unistr/u8-chr.c: New file.
93737         * lib/unistr/u16-chr.c: New file.
93738         * lib/unistr/u32-chr.c: New file.
93740         * modules/unistr/u8-cmp: New file.
93741         * modules/unistr/u16-cmp: New file.
93742         * modules/unistr/u32-cmp: New file.
93743         * lib/unistr/u8-cmp.c: New file.
93744         * lib/unistr/u16-cmp.c: New file.
93745         * lib/unistr/u32-cmp.c: New file.
93747         * modules/unistr/u8-cpy: New file.
93748         * modules/unistr/u16-cpy: New file.
93749         * modules/unistr/u32-cpy: New file.
93750         * lib/unistr/u8-cpy.c: New file.
93751         * lib/unistr/u16-cpy.c: New file.
93752         * lib/unistr/u32-cpy.c: New file.
93753         * lib/unistr/u-cpy.h: New file.
93755         * modules/unistr/u8-cpy-alloc: New file.
93756         * modules/unistr/u16-cpy-alloc: New file.
93757         * modules/unistr/u32-cpy-alloc: New file.
93758         * lib/unistr/u8-cpy-alloc.c: New file.
93759         * lib/unistr/u16-cpy-alloc.c: New file.
93760         * lib/unistr/u32-cpy-alloc.c: New file.
93761         * lib/unistr/u-cpy-alloc.h: New file.
93763         * modules/unistr/u8-endswith: New file.
93764         * modules/unistr/u16-endswith: New file.
93765         * modules/unistr/u32-endswith: New file.
93766         * lib/unistr/u8-endswith.c: New file.
93767         * lib/unistr/u16-endswith.c: New file.
93768         * lib/unistr/u32-endswith.c: New file.
93769         * lib/unistr/u-endswith.h: New file.
93771         * modules/unistr/u8-mblen: New file.
93772         * modules/unistr/u16-mblen: New file.
93773         * modules/unistr/u32-mblen: New file.
93774         * lib/unistr/u8-mblen.c: New file.
93775         * lib/unistr/u16-mblen.c: New file.
93776         * lib/unistr/u32-mblen.c: New file.
93778         * modules/unistr/u8-mbtouc: New file.
93779         * modules/unistr/u16-mbtouc: New file.
93780         * modules/unistr/u32-mbtouc: New file.
93781         * lib/unistr/u8-mbtouc.c: New file.
93782         * lib/unistr/u16-mbtouc.c: New file.
93783         * lib/unistr/u32-mbtouc.c: New file.
93785         * modules/unistr/u8-mbtouc-safe: New file.
93786         * modules/unistr/u16-mbtouc-safe: New file.
93787         * modules/unistr/u32-mbtouc-safe: New file.
93788         * lib/unistr/u8-mbtouc-safe.c: New file.
93789         * lib/unistr/u16-mbtouc-safe.c: New file.
93790         * lib/unistr/u32-mbtouc-safe.c: New file.
93792         * modules/unistr/u8-move: New file.
93793         * modules/unistr/u16-move: New file.
93794         * modules/unistr/u32-move: New file.
93795         * lib/unistr/u8-move.c: New file.
93796         * lib/unistr/u16-move.c: New file.
93797         * lib/unistr/u32-move.c: New file.
93798         * lib/unistr/u-move.h: New file.
93800         * modules/unistr/u8-next: New file.
93801         * modules/unistr/u16-next: New file.
93802         * modules/unistr/u32-next: New file.
93803         * lib/unistr/u8-next.c: New file.
93804         * lib/unistr/u16-next.c: New file.
93805         * lib/unistr/u32-next.c: New file.
93807         * modules/unistr/u8-prev: New file.
93808         * modules/unistr/u16-prev: New file.
93809         * modules/unistr/u32-prev: New file.
93810         * lib/unistr/u8-prev.c: New file.
93811         * lib/unistr/u16-prev.c: New file.
93812         * lib/unistr/u32-prev.c: New file.
93814         * modules/unistr/u8-set: New file.
93815         * modules/unistr/u16-set: New file.
93816         * modules/unistr/u32-set: New file.
93817         * lib/unistr/u8-set.c: New file.
93818         * lib/unistr/u16-set.c: New file.
93819         * lib/unistr/u32-set.c: New file.
93820         * lib/unistr/u-set.h: New file.
93822         * modules/unistr/u8-startswith: New file.
93823         * modules/unistr/u16-startswith: New file.
93824         * modules/unistr/u32-startswith: New file.
93825         * lib/unistr/u8-startswith.c: New file.
93826         * lib/unistr/u16-startswith.c: New file.
93827         * lib/unistr/u32-startswith.c: New file.
93828         * lib/unistr/u-startswith.h: New file.
93830         * modules/unistr/u8-stpcpy: New file.
93831         * modules/unistr/u16-stpcpy: New file.
93832         * modules/unistr/u32-stpcpy: New file.
93833         * lib/unistr/u8-stpcpy.c: New file.
93834         * lib/unistr/u16-stpcpy.c: New file.
93835         * lib/unistr/u32-stpcpy.c: New file.
93836         * lib/unistr/u-stpcpy.h: New file.
93838         * modules/unistr/u8-stpncpy: New file.
93839         * modules/unistr/u16-stpncpy: New file.
93840         * modules/unistr/u32-stpncpy: New file.
93841         * lib/unistr/u8-stpncpy.c: New file.
93842         * lib/unistr/u16-stpncpy.c: New file.
93843         * lib/unistr/u32-stpncpy.c: New file.
93844         * lib/unistr/u-stpncpy.h: New file.
93846         * modules/unistr/u8-strcat: New file.
93847         * modules/unistr/u16-strcat: New file.
93848         * modules/unistr/u32-strcat: New file.
93849         * lib/unistr/u8-strcat.c: New file.
93850         * lib/unistr/u16-strcat.c: New file.
93851         * lib/unistr/u32-strcat.c: New file.
93852         * lib/unistr/u-strcat.h: New file.
93854         * modules/unistr/u8-strchr: New file.
93855         * modules/unistr/u16-strchr: New file.
93856         * modules/unistr/u32-strchr: New file.
93857         * lib/unistr/u8-strchr.c: New file.
93858         * lib/unistr/u16-strchr.c: New file.
93859         * lib/unistr/u32-strchr.c: New file.
93861         * modules/unistr/u8-strcmp: New file.
93862         * modules/unistr/u16-strcmp: New file.
93863         * modules/unistr/u32-strcmp: New file.
93864         * lib/unistr/u8-strcmp.c: New file.
93865         * lib/unistr/u16-strcmp.c: New file.
93866         * lib/unistr/u32-strcmp.c: New file.
93868         * modules/unistr/u8-strcpy: New file.
93869         * modules/unistr/u16-strcpy: New file.
93870         * modules/unistr/u32-strcpy: New file.
93871         * lib/unistr/u8-strcpy.c: New file.
93872         * lib/unistr/u16-strcpy.c: New file.
93873         * lib/unistr/u32-strcpy.c: New file.
93874         * lib/unistr/u-strcpy.h: New file.
93876         * modules/unistr/u8-strcspn: New file.
93877         * modules/unistr/u16-strcspn: New file.
93878         * modules/unistr/u32-strcspn: New file.
93879         * lib/unistr/u8-strcspn.c: New file.
93880         * lib/unistr/u16-strcspn.c: New file.
93881         * lib/unistr/u32-strcspn.c: New file.
93882         * lib/unistr/u-strcspn.h: New file.
93884         * modules/unistr/u8-strdup: New file.
93885         * modules/unistr/u16-strdup: New file.
93886         * modules/unistr/u32-strdup: New file.
93887         * lib/unistr/u8-strdup.c: New file.
93888         * lib/unistr/u16-strdup.c: New file.
93889         * lib/unistr/u32-strdup.c: New file.
93890         * lib/unistr/u-strdup.h: New file.
93892         * modules/unistr/u8-strlen: New file.
93893         * modules/unistr/u16-strlen: New file.
93894         * modules/unistr/u32-strlen: New file.
93895         * lib/unistr/u8-strlen.c: New file.
93896         * lib/unistr/u16-strlen.c: New file.
93897         * lib/unistr/u32-strlen.c: New file.
93898         * lib/unistr/u-strlen.h: New file.
93900         * modules/unistr/u8-strmblen: New file.
93901         * modules/unistr/u16-strmblen: New file.
93902         * modules/unistr/u32-strmblen: New file.
93903         * lib/unistr/u8-strmblen.c: New file.
93904         * lib/unistr/u16-strmblen.c: New file.
93905         * lib/unistr/u32-strmblen.c: New file.
93907         * modules/unistr/u8-strmbtouc: New file.
93908         * modules/unistr/u16-strmbtouc: New file.
93909         * modules/unistr/u32-strmbtouc: New file.
93910         * lib/unistr/u8-strmbtouc.c: New file.
93911         * lib/unistr/u16-strmbtouc.c: New file.
93912         * lib/unistr/u32-strmbtouc.c: New file.
93914         * modules/unistr/u8-strncat: New file.
93915         * modules/unistr/u16-strncat: New file.
93916         * modules/unistr/u32-strncat: New file.
93917         * lib/unistr/u8-strncat.c: New file.
93918         * lib/unistr/u16-strncat.c: New file.
93919         * lib/unistr/u32-strncat.c: New file.
93920         * lib/unistr/u-strncat.h: New file.
93922         * modules/unistr/u8-strncmp: New file.
93923         * modules/unistr/u16-strncmp: New file.
93924         * modules/unistr/u32-strncmp: New file.
93925         * lib/unistr/u8-strncmp.c: New file.
93926         * lib/unistr/u16-strncmp.c: New file.
93927         * lib/unistr/u32-strncmp.c: New file.
93929         * modules/unistr/u8-strncpy: New file.
93930         * modules/unistr/u16-strncpy: New file.
93931         * modules/unistr/u32-strncpy: New file.
93932         * lib/unistr/u8-strncpy.c: New file.
93933         * lib/unistr/u16-strncpy.c: New file.
93934         * lib/unistr/u32-strncpy.c: New file.
93935         * lib/unistr/u-strncpy.h: New file.
93937         * modules/unistr/u8-strnlen: New file.
93938         * modules/unistr/u16-strnlen: New file.
93939         * modules/unistr/u32-strnlen: New file.
93940         * lib/unistr/u8-strnlen.c: New file.
93941         * lib/unistr/u16-strnlen.c: New file.
93942         * lib/unistr/u32-strnlen.c: New file.
93943         * lib/unistr/u-strnlen.h: New file.
93945         * modules/unistr/u8-strpbrk: New file.
93946         * modules/unistr/u16-strpbrk: New file.
93947         * modules/unistr/u32-strpbrk: New file.
93948         * lib/unistr/u8-strpbrk.c: New file.
93949         * lib/unistr/u16-strpbrk.c: New file.
93950         * lib/unistr/u32-strpbrk.c: New file.
93951         * lib/unistr/u-strpbrk.h: New file.
93953         * modules/unistr/u8-strrchr: New file.
93954         * modules/unistr/u16-strrchr: New file.
93955         * modules/unistr/u32-strrchr: New file.
93956         * lib/unistr/u8-strrchr.c: New file.
93957         * lib/unistr/u16-strrchr.c: New file.
93958         * lib/unistr/u32-strrchr.c: New file.
93960         * modules/unistr/u8-strspn: New file.
93961         * modules/unistr/u16-strspn: New file.
93962         * modules/unistr/u32-strspn: New file.
93963         * lib/unistr/u8-strspn.c: New file.
93964         * lib/unistr/u16-strspn.c: New file.
93965         * lib/unistr/u32-strspn.c: New file.
93966         * lib/unistr/u-strspn.h: New file.
93968         * modules/unistr/u8-strstr: New file.
93969         * modules/unistr/u16-strstr: New file.
93970         * modules/unistr/u32-strstr: New file.
93971         * lib/unistr/u8-strstr.c: New file.
93972         * lib/unistr/u16-strstr.c: New file.
93973         * lib/unistr/u32-strstr.c: New file.
93974         * lib/unistr/u-strstr.h: New file.
93976         * modules/unistr/u8-strtok: New file.
93977         * modules/unistr/u16-strtok: New file.
93978         * modules/unistr/u32-strtok: New file.
93979         * lib/unistr/u8-strtok.c: New file.
93980         * lib/unistr/u16-strtok.c: New file.
93981         * lib/unistr/u32-strtok.c: New file.
93982         * lib/unistr/u-strtok.h: New file.
93984         * modules/unistr/u8-uctomb: New file.
93985         * modules/unistr/u16-uctomb: New file.
93986         * modules/unistr/u32-uctomb: New file.
93987         * lib/unistr/u8-uctomb.c: New file.
93988         * lib/unistr/u16-uctomb.c: New file.
93989         * lib/unistr/u32-uctomb.c: New file.
93991         * MODULES.html.sh (Unicode string functions): Add the new modules.
93993 2007-01-08  Bruno Haible  <bruno@clisp.org>
93995         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
93996         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
93997         subdirectories.
93999 2007-01-08  Karl Berry  <karl@gnu.org>
94001         * doc/error.texi: mention that main() fns must set program_name
94002         when progname is used.
94004 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
94006         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
94007         WCTYPE_H is empty, for the benefit of builds from non-distclean
94008         directories.  Problem reported by Eric Blake in
94009         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
94011 2007-01-08  Bruno Haible  <bruno@clisp.org>
94013         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
94014         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
94015         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
94016         PROVIDE_CANONICALIZE_FILENAME_MODE.
94017         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
94019 2007-01-08  Bruno Haible  <bruno@clisp.org>
94021         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
94022         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
94023         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
94024         * lib/fts.c: Likewise.
94025         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
94027 2006-12-25  Bruno Haible  <bruno@clisp.org>
94029         * modules/utf8-ucs4-safe: New file.
94030         * lib/utf8-ucs4-safe.h: New file.
94031         * lib/unistr/utf8-ucs4-safe.c: New file.
94033         * modules/utf16-ucs4-safe: New file.
94034         * lib/utf16-ucs4-safe.h: New file.
94035         * lib/unistr/utf16-ucs4-safe.c: New file.
94037         * MODULES.html.sh (Unicode string functions): Add the new modules.
94039 2007-01-08  Bruno Haible  <bruno@clisp.org>
94041         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
94042         (Depends-on): Add unitypes.
94043         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
94044         (u8_mbtouc_aux): Move out to separate file.
94045         (u8_mbtouc): Use ucs4_t, uint8_t types.
94046         * lib/unistr/utf8-ucs4.c: New file.
94048         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
94049         (Depends-on): Add unitypes.
94050         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
94051         (u16_mbtouc_aux): Move out to separate file.
94052         (u16_mbtouc): Use ucs4_t, uint16_t types.
94053         * lib/unistr/utf16-ucs4.c: New file.
94055         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
94056         (Depends-on): Add unitypes.
94057         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
94058         (u8_uctomb_aux): Move out to separate file.
94059         (u8_uctomb): Use ucs4_t, uint8_t types.
94060         * lib/unistr/ucs4-utf8.c: New file.
94062         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
94063         (Depends-on): Add unitypes.
94064         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
94065         (u16_uctomb_aux): Move out to separate file.
94066         (u16_uctomb): Use ucs4_t, uint16_t types.
94067         * lib/unistr/ucs4-utf16.c: New file.
94069 2006-12-25  Bruno Haible  <bruno@clisp.org>
94071         * modules/unitypes: New file.
94072         * lib/unitypes.h: New file.
94073         * MODULES.html.sh (func_all_modules): New section "Unicode string
94074         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
94075         this section. Add unitypes.
94077 2007-01-08  Bruno Haible  <bruno@clisp.org>
94079         Avoid variable names that conflict with those from libtool.
94080         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
94081         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
94082         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
94083         library_names_spec to acl_library_names_spec, hardcode_* to
94084         acl_hardcode_*.
94085         Reported by Ralf Wildenhues.
94087 2007-01-08  Bruno Haible  <bruno@clisp.org>
94089         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
94090         definition.
94091         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
94092         definition.
94093         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
94094         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
94095         definition.
94096         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
94097         definition.
94098         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
94099         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
94100         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
94101         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
94102         definition.
94103         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
94104         definition.
94105         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
94106         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
94107         GC_USE_<algorithm>.
94108         * lib/gc-libgcrypt.c: Likewise.
94109         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
94110         * modules/gc-arctwo (configure.ac): Likewise.
94111         * modules/gc-des (configure.ac): Likewise.
94112         * modules/gc-hmac-md5 (configure.ac): Likewise.
94113         * modules/gc-hmac-sha1 (configure.ac): Likewise.
94114         * modules/gc-md2 (configure.ac): Likewise.
94115         * modules/gc-md4 (configure.ac): Likewise.
94116         * modules/gc-md5 (configure.ac): Likewise.
94117         * modules/gc-random (configure.ac): Likewise.
94118         * modules/gc-rijndael (configure.ac): Likewise.
94119         * modules/gc-sha1 (configure.ac): Likewise.
94121 2007-01-08  Bruno Haible  <bruno@clisp.org>
94123         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
94124         macro definition.
94125         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
94126         definition.
94127         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
94128         definition.
94129         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
94130         * modules/fcntl-safer (configure.ac): Likewise.
94131         * modules/fopen-safer (configure.ac): Likewise.
94132         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
94133         GNULIB_FWRITEERROR macro definition.
94135 2007-01-08  Bruno Haible  <bruno@clisp.org>
94137         * m4/gnulib-common.m4: New file.
94138         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
94139         (func_get_filelist): Add m4/gnulib-common.m4.
94141 2007-01-08  Bruno Haible  <bruno@clisp.org>
94143         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
94144         command.
94146 2007-01-08  Jim Meyering  <jim@meyering.net>
94148         Use a more robust test for a "can't happen" condition.
94149         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
94150         narrowed the st_size value.  Presuming the "can't happen" condition
94151         is true, that narrowing could conceivably convert an invalid st_size
94152         value into a valid one.  Instead, use a change based on Matthew
94153         Woehlke's original patch.
94155         Slight readability improvement: use an assert-like macro
94156         in place of literal "abort ()" uses.
94157         * lib/fts.c (fts_assert): Define.
94158         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
94159         Use this macro instead of a bare 'abort'.
94161 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
94163         Don't worry about using IRIX 5.3's wctype.h broken definitions;
94164         simply work around them.
94165         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
94166         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
94167         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
94168         declaring.
94169         Don't bother to define as macros, since the standard doesn't require it.
94170         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
94171         longer worry about IRIX 5.3.
94172         (HAVE_WCTYPE_CTMP_BUG): Remove.
94174 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
94176         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
94177         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
94178         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
94179         Problems reported by Georg Schwarz for IRIX 5.3.
94181         * gnulib-tool (autoconf_minversion): Take the maximum version number
94182         found, not the minimum.  Problem reported by James Youngman.
94184 2007-01-03  Karl Berry  <karl@gnu.org>
94186         * doc/error.texi: new file, explaining interaction with progname.
94187         * doc/gnulib.texi: include it.  Update copyright.
94189 2007-01-03  Simon Josefsson  <simon@josefsson.org>
94191         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
94192         AC_CANONICAL_HOST, to improve autobuild outputs.
94194 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
94195             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
94197         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
94198         sockets, server sockets, and other file descriptors.  Count errors
94199         to compute the return value.  Reorder the code a bit to be easier
94200         to follow.  Don't set event bits that were not requested (except
94201         POLLERR and POLLHUP).
94203 2007-01-01  Bruno Haible  <bruno@clisp.org>
94205         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
94207 2007-01-03  Jim Meyering  <jim@meyering.net>
94209         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
94211 2007-01-02  Bruno Haible  <bruno@clisp.org>
94213         * modules/settime (Include): Require timespec.h.
94214         * modules/nanosleep (Include): Likewise.
94216 2007-01-01  Bruno Haible  <bruno@clisp.org>
94218         * gnulib-tool (func_emit_copyright_notice): Bump year.
94219         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
94221 2007-01-01  Bruno Haible  <bruno@clisp.org>
94223         Improve support for OpenBSD.
94224         * build-aux/config.rpath (libname_spec): Export.
94225         (library_names_spec): New variable. Export.
94226         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
94227         library_names_spec from the config.rpath output. Locate shared library
94228         through the name pattern in library_names_spec.
94230 2007-01-01  Eric Blake  <ebb9@byu.net>
94232         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
94234 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
94236         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
94237         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
94238         assume the C locale, and avoid an "eval" that could cause trouble.
94239         Problem with SORT reported by Bob Proulx.
94241         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
94242         Define.  Trivial patch from Henning Nielsen Lund, originally
94243         sent to bug-grep@gnu.org today.
94245 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
94247         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
94248         struct stat.  Problem reported by Henning Nielsen Lund.
94249         * lib/acl.c: Include acl.h first, to check interface.  Don't
94250         bother to include sys/types.h and sys/stat.h again.
94252 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
94254         Import the following change from libc; problem reported by
94255         Sven Verdoolaege.
94257         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
94259         [BZ #1373]
94260         * lib/argp.h: Remove __NTH for __argp_usage inline function.
94262 2006-12-28  Jim Meyering  <jim@meyering.net>
94264         * build-aux/announce-gen: Do not assume that the package
94265         builds any of tar.gz, tar.bz2, and .xdelta files.
94266         Suggestion from Simon Josefsson.
94268 2006-12-28  Simon Josefsson  <simon@josefsson.org>
94270         * modules/announce-gen: New file.
94272 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
94274         * lib/mbchar.h: Just include <wctype.h>; the wctype module
94275         handles its gotchas now.
94276         * lib/mbswidth.c: Likewise.
94277         * lib/wcwidth.h: Likewise.
94278         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
94279         and iswcntrl; the wctype module does this stuff now.
94280         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
94281         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
94282         * modules/mbchar (Depends-on): Add wctype.
94283         * modules/mbswidth (Depends-on): Likewise.
94284         * modules/wcwidth (Depends-on): Likewise.
94286 2006-12-27  Eric Blake  <ebb9@byu.net>
94288         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
94289         module uses more than what <wctype.h> is required to provide.
94291 2006-12-26  Eric Blake  <ebb9@byu.net>
94293         * gnulib-tool (sed_extract_prog): Avoid space-tab.
94295 2006-12-26  Eric Blake  <ebb9@byu.net>
94297         * modules/absolute-header: New module.
94298         * modules/fcntl (Depends-on): Depend on it.
94299         * modules/inttypes (Depends-on): Likewise.
94300         * modules/stdint (Depends-on): Likewise.
94301         * modules/sys_stat (Depends-on): Likewise.
94302         * modules/wctype (Depends-on): Likewise.
94303         * MODULES.html.sh (Support for building libraries and
94304         executables): Document it.
94306 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
94308         * gnulib-tool (SED): Remove, undoing previous change.
94309         The problem was that it broke coreutils on Solaris, because
94310         "sed --posix" leaked into a makefile.
94311         (sed): New alias, if 'alias' and GNU sed.
94313 2006-12-24  Jim Meyering  <jim@meyering.net>
94315         Work around an fchownat bug in glibc-2.4:
94316         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
94317         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
94318         in spite of the -P option.
94319         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
94320         New macros.
94321         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
94322         * modules/openat (Files): Add lib/fchownat.c.
94323         * lib/openat.c (fchownat): Don't define here.  Move to...
94324         * lib/fchownat.c: ...this new file.
94326 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
94328         Fix bug reported by Bruno Haible in
94329         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
94330         where quotearg.c didn't compile on Mac OS X 10.2 because it
94331         lacks <wchar.h> and wint_t.
94332         * lib/wctype_.h (__wctype_wint_t): New type.
94333         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
94334         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
94335         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
94336         Arg is now of type __wctype_wint_t, not wint_t.
94337         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
94338         substitute HAVE_WINT_T.
94339         * modules/wctype (Files): Add m4/wint_t.m4.
94340         (wctype.h): Substitute HAVE_WINT_T.
94342 2006-12-23  Bruno Haible  <bruno@clisp.org>
94344         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
94346 2006-12-23  Bruno Haible  <bruno@clisp.org>
94348         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
94349         S_ISLNK.
94350         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
94351         mingw.
94353 2006-12-22  Bruno Haible  <bruno@clisp.org>
94355         * lib/copy-file.c: Include acl.h.
94356         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
94357         Close the file descriptors only after being done with copy_acl.
94358         * modules/copy-file (Depends-on): Add acl.
94360 2006-12-22  Bruno Haible  <bruno@clisp.org>
94362         * gnulib-tool (SED): New variable.
94363         Use $SED instead of sed everywhere.
94365 2006-12-22  Bruno Haible  <bruno@clisp.org>
94367         * modules/no-c++: New file.
94368         * m4/no-c++.m4: New file.
94369         * MODULES.html.sh (Support for building libraries and executables):
94370         Add no-c++.
94372 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
94374         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
94375         Include <limits.h>, and use its INT_MAX to rewrite the
94376         j loop so that it does not overflow 'int'.  Problem reported by
94377         Ralf Wildenhues in
94378         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
94379         Play it safe by shifting left by 1 rather than multiplying by 2,
94380         as GCC is less likely to optimize this away when the value
94381         is signed (when it assumes overflow leads to undefined behavior).
94382         Also, don't assume time_t uses two's complement.
94384 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
94386         * MODULES.html.sh: New module wctype.
94387         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
94388         * lib/fnmatch.c: Don't bother to include <wchar.h> before
94389         <wctype.h>, since the new wctype module should fix this.
94390         * lib/quotearg.c: Include <wctype.h> unconditionally, since
94391         the wctype module should arrange for it.
94392         * lib/regex_internal.h: Likewise.
94393         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
94394         since the wctype module should handle this now.
94395         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
94396         * modules/fnmatch (Depends-on): Add wctype.
94397         * modules/quotearg (Depends-on): Likewise.
94398         * modules/regex (Depends-on): Likewise.
94400 2006-12-19  Bruno Haible  <bruno@clisp.org>
94402         * lib/strdup.h [C++]: Wrap definitions in extern "C".
94403         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
94405 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94407         * modules/savewd (Depends-on): Fix dependency on fcntl.
94409 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94411         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
94412         conforms to C99, rather than relying on the user's environment
94413         setting of STDINT_H.
94415 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94416         and Eric Blake  <ebb9@byu.net>
94418         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
94419         This is more consistent with the other defines here.
94420         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
94421         Port to z/OS.  Problem reported by Paul Gilmartin.
94422         Change local vars to use gl_ prefix rather than ac_.
94423         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
94424         with other defines.
94425         * modules/double-slash-root: New module.
94426         * modules/dirname (Files): Remove m4/double-slash-root.m4.
94427         (Depends-on): Add double-slash-root.
94428         * MODULES.html.sh (File system functions): Mention new module.
94430 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
94432         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
94433         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
94434         This is for the benefit of gzip, which doesn't do i18n.
94436 2006-12-12  Jim Meyering  <jim@meyering.net>
94438         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
94439         Reported by Andreas Schwab <schwab@suse.de>.
94441 2006-12-12  Bruno Haible  <bruno@clisp.org>
94443         Merge these changes.
94444         2006-09-05  Bruno Haible  <bruno@clisp.org>
94445         * lib/iconvme.c (iconv_string): No need to save and restore errno when
94446         iconv_alloc succeeded.
94447         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
94448         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
94449         test for " && dest " at the end - dest is always != NULL there. Call
94450         iconv with 4xNULL arguments initially, to reset the state. Call iconv
94451         with 2xNULL arguments, also to flush the state storage. Handle the
94452         IRIX iconv behaviour. Realloc the final result, to throw away unused
94453         memory.
94455 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
94457         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
94458         and fchmodat unconditionally, since glibc 2.4 has them.
94459         Problem reported by Arkadiusz Miskiewicz.
94461 2006-12-10  Bruno Haible  <bruno@clisp.org>
94463         * gnulib-tool (func_import): Show the include files only for those
94464         modules that are copied and specified.
94465         Reported by Karl Berry.
94467 2006-12-08  Jim Meyering  <jim@meyering.net>
94469         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
94470         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
94472         * build-aux/announce-gen: Add two new options, both optional:
94473         --bootstrap-tools=TOOL_LIST
94474               a comma-separated list of tools, e.g.,
94475               autoconf,automake,bison,gnulib
94476         --gnulib-snapshot-date=DATE
94477               if gnulib is in the bootstrap tool list,
94478               then report this as the snapshot date.
94479               If not specified, use the current date/time.
94480               If you specify a date here, be sure it's UTC.
94482 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94484         * tests/test-argp-2.sh: Fix test to match actual output.
94485         (func_compare): Fix sed script to be portable.
94487 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
94489         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
94490         workaround for this case.  It is not autoconfigured now; offhand
94491         it's hard to see how to autoconfigure it.
94493 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
94495         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
94496         a directory that is about to be chowned.  Such a directory's
94497         initial file permissions should permit the owner only and this
94498         should not be changed until after the chown, since the group and
94499         other bits would be incorrect if they granted permission before
94500         the chown.
94502         Fix porting problem for iswctype reported by Georg Schwarz in:
94503         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
94504         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
94505         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
94506         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
94507         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
94509 2006-12-03  Jim Meyering  <jim@meyering.net>
94511         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
94512         p->fts_statp may not yet be defined.
94513         (fts_read): Instead, set it in the caller, once p->fts_statp is
94514         sure to be defined, and corresponds to a top-level directory.
94515         This bug made du -x fail.  Here's the coreutils test case:
94516         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
94517         Reported by Mike Frysinger.
94519 2006-12-01  Jim Meyering  <jim@meyering.net>
94521         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
94522         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
94523         Reported by Simon Josefsson.
94525 2006-11-30  Jim Meyering  <jim@meyering.net>
94527         * m4/warning.m4: Use the all-permissive copyright notice
94528         recommended by RMS (rather than LGPL).
94529         * m4/vararrays.m4: Likewise.
94530         * m4/flexmember.m4: Likewise.
94532 2006-11-29  Bruno Haible  <bruno@clisp.org>
94534         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94535         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
94536         using +=.
94537         Reported by Simon Josefsson <simon@josefsson.org>.
94539 2006-11-28  James Youngman  <jay@gnu.org>
94541         * README: Advise users that they might find the bug-gnulib@gnu.org
94542         and autotools-announce@gnu.org mailing lists useful.
94544 2006-11-28  Bruno Haible  <bruno@clisp.org>
94546         * m4/ptrdiff_max.m4: Remove file.
94548 2006-11-21  Bruno Haible  <bruno@clisp.org>
94550         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
94551         _AC_COMPUTE_INT.
94552         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94553         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
94554         _AC_COMPUTE_INT.
94555         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94556         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
94557         _AC_COMPUTE_INT.
94558         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94560 2006-11-28  Jim Meyering  <jim@meyering.net>
94562         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
94563         warning from "gcc -Wshadow" about shadowing the builtin.
94565 2006-11-27  Bruno Haible  <bruno@clisp.org>
94567         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
94568         _AC_COMPUTE_INT.
94569         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94571 2006-11-27  Bruno Haible  <bruno@clisp.org>
94572             Paul Eggert  <eggert@cs.ucla.edu>
94574         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
94576 2006-11-26  Bruno Haible  <bruno@clisp.org>
94578         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94579         noinst_LTLIBRARIES.
94581 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
94582             Bruno Haible  <bruno@clisp.org>
94584         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
94585         if compiling with "gcc -ansi".
94587 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
94589         Fix some incompatibilities with gcc -ansi -pedantic.
94590         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
94591         if compiling pedantically with GCC, unless it's C99 or later.
94592         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
94593         it mishandles gcc -ansi -pedantic as well.
94594         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
94595         if gcc -pedantic.
94596         * lib/regexec.c (check_node_accept_bytes): Don't use auto
94597         initializers for struct if -pedantic, unless it's C99 or later.
94599 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
94601         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
94602         Don't close an fd more than once. Identical atimes indicate
94603         success, not failure.
94605 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
94607         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
94609 2006-11-23  Jim Meyering  <jim@meyering.net>
94611         * build-aux/announce-gen: New file.  From coreutils.
94613 2006-11-22  Jim Meyering  <jim@meyering.net>
94615         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
94616         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
94617         (fts_read): Use a temporary to narrow the overused st_size member
94618         before using it in a switch statement.  Reported by Matthew Woehlke.
94620         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
94621         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
94623 2006-11-20  Bruno Haible  <bruno@clisp.org>
94625         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
94626         changequote instead of pairs of brackets.
94627         Reported by Andreas Schwab <schwab@suse.de>.
94629 2006-11-21  Jim Meyering  <jim@meyering.net>
94631         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
94632         so as to remain compatible with older compilers.
94633         Patch from Michael Deutschmann.
94635 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
94637         * MODULES.html.sh (File system functions): Add openat.
94639         * lib/openat.h (rpl_fstatat): New macro, if
94640         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
94641         (fstatat): Define to rpl_fstatat under the same conditions,
94642         unless COMPILING_FSTATAT.
94643         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
94644         seems to have the bug.
94645         * lib/fstatat.c: New file.
94646         * modules/openat (Files): Add it.
94648 2006-11-20  Bruno Haible  <bruno@clisp.org>
94650         * Makefile: New file.
94652 2006-11-20  Jim Meyering  <jim@meyering.net>
94654         The beginnings of syntax-related checks for gnulib.
94655         * lib/Makefile: New file.
94656         * lib/t-idcache: New script.  Ensure that the two halves of
94657         idcache.c stay in sync.
94659         * lib/idcache.c: Adjust comments in user- and group- portions to
94660         be more accurate, and to be consistent with one another.
94662 2006-11-20  Jim Meyering  <jim@meyering.net>
94664         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
94665         continue using the flexible array member (thus, this module performs
94666         half as many malloc calls), with the addition that...
94667         (getgroup, getuser): Consistently record a non-match via an empty
94668         "name" string, and map an empty string match to a NULL return value.
94669         * modules/idcache (Depends-on): Re-add flexmember.
94671         * lib/idcache.c (getuser): Remove all uses of the register keyword.
94672         (getuidbyname, getgroup, getgidbyname): Likewise.
94674         Use cleaner syntax: NULL rather than 0.
94675         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
94677 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
94679         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
94680         It mishandled the case where the group was missing.
94681         Problem reported by Greg Schafer.
94682         * modules/idcache: Likewise.
94684 2006-11-18  Jim Meyering  <jim@meyering.net>
94686         * check-module (%exempt_header): Add exception for some
94687         conditionally-included headers.
94689         * modules/i-ring (Depends-on): Add verify.
94690         (License): Change to LGPL.
94692 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
94694         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
94695         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
94696         and inttostr.h.  Use snprintf rather than uinttostr, so that
94697         LGPLed code doesn't depend on GPLed.
94699 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
94701         * modules/inline (License): Change from GPL to LGPL.
94703 2006-11-17  Jim Meyering  <jim@meyering.net>
94705         * modules/d-type (License): Switch to LGPL.
94707 2006-11-15  Bruno Haible  <bruno@clisp.org>
94709         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
94711 2006-11-15  Eric Blake  <ebb9@byu.net>
94713         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
94714         the module dependency.
94716 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94717             Bruno Haible  <bruno@clisp.org>
94719         * gnulib-tool (func_create_testdir): Add license consistency check.
94721 2006-11-15  Eric Blake  <ebb9@byu.net>
94723         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
94724         random "(cached)" in configure output.
94726 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94728         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
94729         test for conforming inttypes.h is both announced and cached.
94731         * MODULES.html.sh (seen_modules, seen_files): New variables.
94732         (func_module): Rewrite to use a few less gnulib-tool and sed
94733         invocations.  Avoid a couple of quadratic algorithms for ...
94734         (missed_modules, missed_files): ... these, with ...
94735         (func_append, func_tmpdir): ... these new functions, from
94736         gnulib-tool.  Analogously, install traps for cleanup.
94738         * tests/test-gc.c (main): Remove unused variables.
94739         * tests/test-read-file.c: Include stdlib.h, for 'free'.
94741 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
94743         * modules/inttostr (License): Change to LGPL.
94745 2006-11-14  Eric Blake  <ebb9@byu.net>
94747         * modules/tempname (License): Change to LGPL.
94749 2006-11-14  Eric Blake  <ebb9@byu.net>
94751         * doc/functions.texi (Function Portability): *printf functions on
94752         Cygwin now understand all POSIX size specifiers.
94754 2006-11-14  Bruno Haible  <bruno@clisp.org>
94756         * modules/c-ctype (License): Change to LGPL.
94758 2006-11-12  Bruno Haible  <bruno@clisp.org>
94760         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
94761         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
94762         for GNOME libraries, for which the include files are installed in
94763         subdirectories of $prefix/include.
94765 2006-11-12  Bruno Haible  <bruno@clisp.org>
94767         * m4/lib-link.m4: Require at least autoconf-2.54.
94768         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
94769         name to underscores for the --with option.
94771 2006-11-13  Bruno Haible  <bruno@clisp.org>
94773         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
94774         the tests directory.
94775         Reported by Ralf Wildenhues.
94777 2006-11-13  Bruno Haible  <bruno@clisp.org>
94779         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
94780         (func_emit_initmacro_end): Undo the override here.
94781         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
94782         Works around the famous automake error in coreutils.
94784 2006-11-13  Eric Blake  <ebb9@byu.net>
94786         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
94787         element, not its node.
94789 2006-11-12  Bruno Haible  <bruno@clisp.org>
94791         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
94792         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
94794 2006-11-12  Bruno Haible  <bruno@clisp.org>
94796         * gnulib-tool: New option --local-symlink.
94797         (func_usage): Document it.
94798         (lsymbolic): New variable.
94799         (func_import, func_create_testdir): If --symlink was not specified,
94800         test whether --local-symlink was specified and the file comes from
94801         the local_gnulib_dir.
94803 2006-11-12  Bruno Haible  <bruno@clisp.org>
94805         * gnulib-tool (func_ln): New function.
94806         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
94808 2006-11-12  Bruno Haible  <bruno@clisp.org>
94810         Finish support for source files in subdirectories.
94811         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
94812         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
94813         AUTOMAKE_OPTIONS.
94814         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
94816 2006-11-12  Bruno Haible  <bruno@clisp.org>
94818         * gnulib-tool (func_get_automake_snippet): Synthesize also an
94819         EXTRA_lib_SOURCES augmentation.
94820         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
94822 2006-11-12  Jim Meyering  <jim@meyering.net>
94824         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
94825         file descriptors.  This also averts a failure on systems with
94826         native openat support when a traversed directory lacks "x" access.
94827         * lib/fts_.h: Include "i-ring.h"
94828         (struct FTS) [fts_fd_ring]: New member.
94829         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
94830         (FCHDIR): Add parentheses.
94831         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
94832         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
94833         When descending, rather than simply closing the previous
94834         fts_cwd_fd value, push that file descriptor onto the ring.
94835         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
94836         (fts_open): Initialize the new fd_ring member.
94837         (fts_close): Clear the ring.
94838         (fts_safe_changedir): When possible, use our new fd_ring to skip
94839         the diropen and fstat and dev/ino comparison that would normally
94840         accompany a virtual `chdir ("..")'.
94842         * modules/fts (Depends-on): Add i-ring.
94843         * modules/i-ring: New module.
94844         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
94845         * m4/i-ring.m4: New file.
94847 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94849         * gnulib-tool (func_create_testdir): Fix replacement of
94850         `build-aux' in configure.ac.  Run autotools in gltests
94851         subdirectory.
94852         (func_create_testdir, func_create_megatestdir, test): There is
94853         no need for '--force' in most autotool invocations in a new
94854         tree.  Actually fail the whole test if any of the tools, or the
94855         configure or make stages fail.
94857         Sync from Automake.
94858         * build-aux/gnupload: Revert last change.  Add pointer to upload
94859         instructions of the GNU Maintenance Instructions.
94860         Suggestion by Karl Berry.
94862 2006-11-10  Jim Meyering  <jim@meyering.net>
94864         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
94866 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
94868         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
94869         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
94870         (bind_textdomain_codeset) [! ENABLE_NLS]:
94871         Evaluate all the arguments.  That way, callers get compatible behavior
94872         if the arguments have side effects.  Also, it avoids some GCC
94873         diagnostics in some cases; Joel E. Denny reported problems when Bison
94874         was configured with --enable-gcc-warnigs.
94876 2006-11-10  Jim Meyering  <jim@meyering.net>
94878         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
94879         relevant options in CFLAGS (like -O, -fno-inline) are taken into
94880         account.
94882 2006-11-10  Jim Meyering  <jim@meyering.net>
94884         * modules/inline: New file/module.
94885         * modules/xalloc (Files): Remove m4/inline.m4.
94886         (Depends-on): Add inline, instead.
94887         * modules/oset: Likewise.
94888         * modules/list: Likewise.
94890 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
94892         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
94893         Problem reported by Matthew Woehlke.
94895 2006-11-09  Bruno Haible  <bruno@clisp.org>
94897         * lib/tempname.c (gen_tempname): Remove variant that invokes
94898         __gen_tempname.
94899         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
94900         __gen_tempname.
94902 2006-11-08  Bruno Haible  <bruno@clisp.org>
94904         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
94905         to 'yes' instead of 'cross-compiling'.
94907 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
94909         * lib/quotearg.h (quotearg_free): New decl.
94910         * lib/quotearg.c (quotearg_free): New function.
94911         (slot0, nslots, slotvec0, slotvec):
94912         Now file-scope so that quotearg_free can get at them.
94914 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94916         Sync from Automake.
94917         * build-aux/gnupload: Add missing 'gnu' to example URL.
94918         Report by Karl Berry.
94920 2006-11-08  Bruno Haible  <bruno@clisp.org>
94922         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
94923         Suggested by Paul Eggert.
94925 2006-11-08  Jim Meyering  <jim@meyering.net>
94927         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
94928         It's already included if !_LIBC.
94929         (fts_safe_changedir): Add a comment.
94931 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
94933         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
94934         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
94935         Matthew Woehlke.
94937         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
94938         definitions up, to avoid colliding with change below.
94939         (static_inline) [HAVE_INLINE]: New macro.
94940         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
94941         Provide extern decls when !HAVE_INLINE.  Do not define unless
94942         static_inline is defined, either by us or by xmalloc.c.  Use
94943         static_inline rather than static inline.
94944         (XCALLOC): Optimize sizeof(T) = 1 case.
94945         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
94947 2006-11-07  Bruno Haible  <bruno@clisp.org>
94949         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
94950         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
94951         AC_C_INLINE.
94952         * modules/xalloc (Files): Add m4/inline.m4.
94954 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94956         * README: Fix typo.
94957         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
94958         (Miscellanous Notes): ...from this.
94960 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
94962         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
94963         Mention that offsetof should be used instead of sizeof.
94964         From Bruno Haible.
94966 2006-11-07  Bruno Haible  <bruno@clisp.org>
94968         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
94970 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
94972         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
94973         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
94974         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
94975         (gl_tree_add_before, gl_tree_add_after):
94976         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
94977         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
94978         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
94979         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
94980         (gl_linked_add_after, gl_linked_add_at): Likewise.
94981         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
94982         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
94983         (gl_tree_add_before, gl_tree_add_after): Likewise.
94984         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
94985         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
94986         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
94988 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94990         * lib/gl_oset.h: Use C comment style, not C++ comment style.
94992 2006-11-06  Bruno Haible  <bruno@clisp.org>
94994         * m4/inline.m4: New file.
94995         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
94996         * modules/list (Files): Add m4/inline.m4.
94997         * modules/oset (Files): Likewise.
94999 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
95001         * lib/idcache.c: Include <stddef.h>, for offsetof.
95002         (struct userid.name): Change from char * to a flexible array member.
95003         All uses changed.
95004         * modules/idcache (Depends-on): Add flexmember.
95006         * MODULES.html.sh (Core language properties): New module flexmember.
95007         * modules/flexmember, m4/flexmember.m4: New files.
95009         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
95010         inline functions that are identical with the old xnmalloc_inline,
95011         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
95012         that we can avoid some unnecessary integer multiplications and
95013         divisions in the common case where the element size is known at
95014         compile time.
95015         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
95016         needed.
95017         (xnboundedmalloc): Remove.
95018         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
95019         arguments, for consistency with rest of this header.
95020         (xcharalloc): Rewrite using XNMALLOC.
95021         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
95022         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
95023         versions have been moved to lib/xalloc.h and renamed to be the
95024         non-*_inline versions.
95025         (xmalloc, xrealloc): Implement without reference to the xnmalloc
95026         and xnrealloc functions, since those functions are now inline and
95027         now call us.
95028         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
95029         renaming described above.
95030         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
95031         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
95032         captures the dependency in AC_C_INLINE.
95034         New module canonicalize-lgpl, proposed by Charles Wilson in
95035         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
95036         with a few small changes afterwards.
95037         * MODULES.html.sh (File system functions): New module
95038         canonicalize-lgpl.
95039         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
95040         and canonicalize_file_name.
95041         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
95042         * modules/canonicalize-lgpl: New files.
95044 2006-11-05  Bruno Haible  <bruno@clisp.org>
95046         * gnulib-tool (func_import, func_create_testdir): Create directories
95047         also for files in subdirectories of lib/.
95049 2006-11-05  Bruno Haible  <bruno@clisp.org>
95051         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
95052         ANSI C compliant.
95054 2006-11-03  Bruno Haible  <bruno@clisp.org>
95056         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
95057         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
95058         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
95059         (xnboundedmalloc): New inline function.
95060         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
95061         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
95062         xmalloc.
95063         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
95064         xmalloc.
95065         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
95066         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
95067         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
95068         xmalloc.
95069         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
95070         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
95071         xmalloc.
95072         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
95073         gl_tree_add_after): Use XMALLOC instead of xmalloc.
95074         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
95075         xmalloc.
95076         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
95077         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
95078         gl_tree_add_after): Use XMALLOC instead of xmalloc.
95079         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
95080         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
95081         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
95082         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
95084 2006-11-03  Bruno Haible  <bruno@clisp.org>
95086         * lib/c-ctype.h [C++]: Define functions without name mangling.
95087         * lib/fwriteerror.h [C++]: Likewise.
95088         * lib/gcd.h [C++]: Likewise.
95089         * lib/linebreak.h [C++]: Likewise.
95091 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
95093         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
95094         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
95095         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
95096         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
95097         Check for functions and headers just once.
95098         Check for declaration of canonicalize_file_name.
95099         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
95101 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95103         * gnulib-tool (func_import): Fix typo in actioncmd.
95105 2006-11-02  Bruno Haible  <bruno@clisp.org>
95107         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
95108         newline sequence in the Makefile.am snippet as a space, like "make"
95109         does.
95110         Reported by Roger Persson <perrog@gmail.com>.
95112 2006-11-01  Bruno Haible  <bruno@clisp.org>
95114         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
95115         already declared in <string.h>.
95116         * lib/strcase.h (strncasecmp): Don't declare it if yes.
95118 2006-11-01  Bruno Haible  <bruno@clisp.org>
95120         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
95121         * lib/strcase.h: Include <string.h>.
95122         (strcasecmp): Define to rpl_strcasecmp here.
95124 2006-11-01  Bruno Haible  <bruno@clisp.org>
95126         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
95128 2006-11-01  Eric Blake  <ebb9@byu.net>
95130         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
95132         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
95134 2006-10-29  Bruno Haible  <bruno@clisp.org>
95136         Make it compile in C++ mode.
95137         * lib/full-write.c (full_rw): Add a cast.
95139 2006-11-01  Bruno Haible  <bruno@clisp.org>
95141         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
95142         be POSIX compliant.
95143         Reported by Roger Persson <perrog@gmail.com>.
95145 2006-11-01  Eric Blake  <ebb9@byu.net>
95147         * lib/getopt_.h: Fix comments.
95149 2006-10-31  Eric Blake  <ebb9@byu.net>
95151         * modules/tmpdir (Depends-on): Add sys_stat.
95152         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
95153         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
95154         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
95155         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
95156         tempname.
95158 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
95160         Avoid some C++ diagnostics reported by Bruno Haible.
95161         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
95162         xmalloc.
95163         (quotearg_alloc): Use xcharalloc rather than xmalloc.
95164         (struct slotvec): Move to top level.
95165         (quotearg_n_options): Rewrite to avoid xmalloc.
95166         * lib/xalloc.h (xcharalloc): New function.
95167         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
95168         [defined __cplusplus]: Add function template that provides result
95169         type propagation.  This part of the change is from Bruno Haible.
95171 2006-10-29  Bruno Haible  <bruno@clisp.org>
95173         Make it compile in C++ mode.
95174         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
95175         * lib/strnlen1.c (strnlen1): Cast memchr result.
95176         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
95177         * lib/clean-temp.c (string_equals, string_hash): Add casts.
95178         (create_temp_dir): Rename local variable 'template'.
95179         (compile_csharp_using_sscli): Add cast.
95180         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
95181         * lib/findprog.c (find_in_path): Likewise.
95182         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
95183         * lib/wait-process.c (register_slave_subprocess): Likewise.
95185 2006-10-22  Bruno Haible  <bruno@clisp.org>
95187         * modules/tsearch: New file.
95188         * lib/tsearch.h: New file.
95189         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
95190         * m4/tsearch.m4: New file.
95191         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
95193 2006-10-29  Eric Blake  <ebb9@byu.net>
95195         * lib/arcfour.c: Assume config.h.
95196         * lib/arctwo.c: Likewise.
95197         * lib/base64.c: Likewise.
95198         * lib/check-version.c: Likewise.
95199         * lib/crc.c: Likewise.
95200         * lib/des.c: Likewise.
95201         * lib/gc-gnulib.c: Likewise.
95202         * lib/gc-libgcrypt.c: Likewise.
95203         * lib/gc-pbkdf2-sha1.c: Likewise.
95204         * lib/getaddrinfo.c: Likewise.
95205         * lib/getdelim.c: Likewise.
95206         * lib/getline.c: Likewise.
95207         * lib/hmac-md5.c: Likewise.
95208         * lib/hmac-sha1.c: Likewise.
95209         * lib/iconvme.c: Likewise.
95210         * lib/md2.c: Likewise.
95211         * lib/md4.c: Likewise.
95212         * lib/memxor.c: Likewise.
95213         * lib/read-file.c: Likewise.
95214         * lib/readline.c: Likewise.
95215         * lib/rijndael-alg-fst.c: Likewise.
95216         * lib/rijndael-api-fst.c: Likewise.
95217         * lib/xgetdomainname.c: Likewise.
95219 2006-10-28  Eric Blake  <ebb9@byu.net>
95221         * lib/xstrndup.c: Assume config.h.
95223 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
95225         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
95226         stat-macros.h is now for our own macros, whereas stat_h is for
95227         macros in the <sys/stat.h> name space.
95228         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
95229         (STAT_MACROS_H): Remove.
95230         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
95231         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
95232         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
95233         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
95234         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
95235         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
95236         Move these macros to ...
95237         * lib/stat_.h: here.  Don't include stat-macros.h.
95238         * lib/canonicalize.c: Don't include stat-macros.h.
95239         * lib/chown.c: Likewise.
95240         * lib/euidaccess.c: Likewise.
95241         * lib/file-type.c: Likewise.
95242         * lib/filemode.c: Likewise.
95243         * lib/glob.c: Likewise.
95244         * lib/isapipe.c: Likewise.
95245         * lib/lchown.c: Likewise.
95246         * lib/lstat.c: Likewise.
95247         * lib/mkdir-p.c: Likewise.
95248         * lib/rmdir.c: Likewise.
95249         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
95250         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
95251         unless mkdir isn't declared, to speed up 'configure'.
95252         Always create sys/stat.h, since it's unlikely any real sys/stat.h
95253         would define all the S_* symbols.
95254         * modules/canonicalize (Depends-on):
95255         Depend on sys_stat, not stat-macros.
95256         * modules/chown: Likewise.
95257         * modules/euidaccess: Likewise.
95258         * modules/filemode: Likewise.
95259         * modules/file-type: Likewise.
95260         * modules/glob: Likewise.
95261         * modules/isapipe: Likewise.
95262         * modules/lchown: Likewise.
95263         * modules/lstat: Likewise.
95264         * modules/mkancesdirs: Likewise.
95265         * modules/rmdir: Likewise.
95266         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
95267         * modules/modechange: Likewise.
95268         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
95269         (configure.ac): Remove gl_STAT_MACROS.
95270         * modules/sys_stat (Depends-on): Remove stat-macros.
95272 2006-10-27  Bruno Haible  <bruno@clisp.org>
95274         * m4/signed.m4: Remove file.
95275         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
95276         invocation.
95277         * modules/vasnprintf (Files): Remove m4/signed.m4.
95279 2006-10-27  Bruno Haible  <bruno@clisp.org>
95281         Update to GNU gettext 0.16.
95282         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
95283         m4/inttypes-h.m4, m4/signed.m4.
95284         * m4/gettext.m4: Update to GNU gettext 0.16.
95285         * m4/intl.m4: New file, from GNU gettext.
95286         * m4/intldir.m4: New file, from GNU gettext.
95287         * config/srclist.txt: Update
95289 2006-10-27  Eric Blake  <ebb9@byu.net>
95291         * MODULES.html.sh: Document tempname.
95292         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
95293         dependencies.
95294         (Files): Move lib/tempname.c...
95295         * modules/tempname: ...to this new module.
95296         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
95297         (gl_PREREQ_TEMPNAME): Move...
95298         * m4/tempname.m4: ...to this new file.
95299         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
95300         * modules/sys_stat (Depends-on): Add stat-macros.
95301         * lib/stat_.h (includes): Pick up stat macros.
95302         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
95303         if stat macros are broken.
95304         * lib/tempname.c (includes): No need to include "stat-macros.h".
95305         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
95306         (direxists, __path_search) [!_LIBC]: Don't compile these in
95307         gnulib; the tmpdir module covers that.
95308         * lib/tempname.h: New file.
95310 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
95312         * COPYING: Explain how gnulib-tool converts licence headers.
95313         Almost all wording by Eric Blake.
95315 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
95317         * lib/mbchar.h (is_basic_table): Make read-only.
95318         * lib/mbchar.c (is_basic_table): Likewise.
95319         Reported by John Darrington.
95321 2006-10-25  Bruno Haible  <bruno@clisp.org>
95323         * lib/progname.h (set_program_name): Undefine before defining.
95325 2006-10-25  Bruno Haible  <bruno@clisp.org>
95327         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
95328         false for non-gcc C++ compilers.
95329         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
95331 2006-10-24  Bruno Haible  <bruno@clisp.org>
95333         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
95334         iconv implementations like Irix iconv.
95336 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95338         * modules/vararrays: New file.
95339         * m4/vararrays.m4: New file, taken from diffutils.
95340         * MODULES.html.sh: New module vararrays.
95342 2006-10-24  Karl Berry  <karl@gnu.org>
95344         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
95345         Don't call GNU Unix.
95347 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95349         * users.txt: Add Libtool.
95351         Sync from Libtool:
95353         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95355         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
95356         to gnulib's policy of including config.h unconditionally.
95358 2006-10-24  Bruno Haible  <bruno@clisp.org>
95360         * modules/wcwidth (Files): Add m4/wint_t.m4.
95361         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
95362         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
95364 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95366         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
95367         to pacify GCC with some -W flags enabled.  Problem reported by
95368         Bruno Haible.
95370 2006-10-24  Jim Meyering  <jim@meyering.net>
95372         * MODULES.html.sh: Remove uinttostr.  It's not a module.
95373         Reported by Karl Berry.
95375 2006-10-23  Bruno Haible  <bruno@clisp.org>
95377         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
95379 2006-10-24  Bruno Haible  <bruno@clisp.org>
95381         * lib/gl_list.h: Use C comment style, not C++ comment style.
95383 2006-10-23  Eric Blake  <ebb9@byu.net>
95385         * lib/getaddrinfo.c (includes): Add missing include.
95387 2006-10-23  Bruno Haible  <bruno@clisp.org>
95388             Paul Eggert  <eggert@cs.ucla.edu>
95390         Ability to rename obstack_free.
95391         * lib/obstack.h (__obstack_free): New macro. Declare instead of
95392         obstack_free.
95393         (obstack_free): Invoke the __obstack_free macro.
95394         * lib/obstack.c (obstack_free): Use __obstack_free macro.
95396 2006-10-23  Bruno Haible  <bruno@clisp.org>
95397             Paul Eggert  <eggert@cs.ucla.edu>
95399         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
95400         __argc, __argv from the declaration. (They are defined as macros on
95401         mingw.)
95403 2006-10-22  Bruno Haible  <bruno@clisp.org>
95405         * doc/gnulib-intro.texi: New file.
95406         * doc/gnulib.texi: Include it.
95408 2006-10-21  Bruno Haible  <bruno@clisp.org>
95410         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
95411         "Introduction", "Miscellanous Notes", "Particular Modules".
95413 2006-10-21  Bruno Haible  <bruno@clisp.org>
95415         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95416         Change mostlyclean-local rule to avoid sh syntax error from bash
95417         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
95419 2006-10-23  Jim Meyering  <jim@meyering.net>
95421         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
95422         in place of snprintf.
95424         * modules/inttostr (Files): Add lib/uinttostr.c.
95425         * lib/uinttostr.c (inttostr): New file/function.
95426         * lib/inttostr.h (uinttostr): Declare.
95427         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
95428         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
95429         Add uinttostr.
95430         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
95432 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95434         * lib/canonicalize.c (ELOOP): Define if not already defined.
95435         Problem reported by Bruno Haible in
95436         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
95438 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95440         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
95441         Problem reported by Perry Smith and Ville Laurikari.
95443         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
95444         uses.
95446 2006-10-19  Bruno Haible  <bruno@clisp.org>
95448         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
95449         for mingw.
95451 2006-10-19  Bruno Haible  <bruno@clisp.org>
95453         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
95454         Needed for mingw.
95456 2006-10-19  Bruno Haible  <bruno@clisp.org>
95458         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
95460 2006-10-19  Bruno Haible  <bruno@clisp.org>
95462         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
95463         it.
95465 2006-10-19  Bruno Haible  <bruno@clisp.org>
95467         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
95468         invocation.
95470 2006-10-19  Bruno Haible  <bruno@clisp.org>
95472         * gnulib-tool (func_create_testdir): Don't include ftruncate and
95473         mountlist by default.
95475 2006-10-16  Bruno Haible  <bruno@clisp.org>
95477         * lib/c-strstr.c: Include c-strstr.h.
95479 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95481         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
95482         in a slash.
95484 2006-10-18  Bruno Haible  <bruno@clisp.org>
95486         * lib/lock.h [C++]: Wrap definitions in extern "C".
95488 2006-10-18  Bruno Haible  <bruno@clisp.org>
95490         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
95491         gl_LIBOBJS list.
95493 2006-10-18  Bruno Haible  <bruno@clisp.org>
95495         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
95497 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
95499         * lib/xstrtol.h: Include gettext.h.
95500         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
95501         Problem reported by Eric Blake.
95502         * modules/xstrtol (Depends-on): Add gettext-h.
95504 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
95506         * lib/strftime.c (advance): New macro.
95507         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
95508         incomplete type, so you can't add 0 to it.  Problem and patch
95509         reported by Eelco Dolstra for dietlibc.
95511 2006-10-18  Jim Meyering  <jim@meyering.net>
95513         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
95514         type for a local, and rename it: s/up/user_proc/.
95516 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
95518         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
95519         READ_UTMP_USER_PROCESS.
95520         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
95522 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
95524         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
95525         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
95527 2006-10-17  Eric Blake  <ebb9@byu.net>
95529         * lib/sigprocmask.c (sigprocmask): Fix typo.
95531         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
95533         * modules/clean-temp (Makefile.am): Don't add to make output...
95534         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
95535         config.h.
95537 2006-10-17  Bruno Haible  <bruno@clisp.org>
95539         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
95540         differently if DEFAULT_TEXT_DOMAIN is set.
95542 2006-10-16  Bruno Haible  <bruno@clisp.org>
95544         * lib/clean-temp.c: Include fwriteerror.h.
95546 2006-10-16  Bruno Haible  <bruno@clisp.org>
95548         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
95550 2006-10-16  Bruno Haible  <bruno@clisp.org>
95552         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
95553         * lib/sigprocmask.h: Include <sys/types.h>.
95554         (sigset_t): Use the system's definition if present.
95556 2006-10-17  Eric Blake  <ebb9@byu.net>
95558         * lib/xvasprintf.c (includes): Assume config.h.
95559         * lib/xasprintf.c (includes): Likewise.
95561 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
95563         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
95564         at least as wide as intmax_t.
95566 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
95568         (Imported from Automake.)
95569         * build-aux/gnupload: Update to version 1.1 of directive file.
95571 2006-10-16  Eric Blake  <ebb9@byu.net>
95573         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
95574         match Automake 1.10a.
95576 2006-10-14  Bruno Haible  <bruno@clisp.org>
95578         * modules/sigprocmask: New file.
95579         * lib/sigprocmask.h: New file.
95580         * lib/sigprocmask.c: New file.
95581         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
95582         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
95583         request sigprocmask.o.
95584         (gl_PREREQ_SIGPROCMASK): New macro.
95585         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
95586         (Depends-on): Add sigprocmask.
95587         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
95588         gt_SIGNALBLOCKING. Test for 'raise' only once.
95589         * lib/fatal-signal.c: Include sigprocmask.h.
95590         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
95591         unblock_fatal_signals): Define always.
95592         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
95593         sigprocmask.
95595 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
95597         Sync from Automake.
95598         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
95599         which incorrectly sets the mode of an existing destination
95600         directory.  In some cases the unpatched install-sh could do the
95601         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
95602         system.  We hope this is rare in practice, but it's clearly worth
95603         fixing.  Problem reported by Alex Unleashed in
95604         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
95605         Also, don't bother to check for -m bugs unless we're using -m;
95606         suggested by Stepan Kasal.
95608 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95610         Sync from Automake.
95611         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
95612         `-c' flag, so they appear at the same position as in %FASTDEP%
95613         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
95614         which ignores unknown options only after the first non-option.
95615         Bug report against M4 by Nelson H. F. Beebe.
95617 2006-10-13  Jim Meyering  <jim@meyering.net>
95619         Fix a bug in yesterday's change.
95620         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
95621         p->fts_statp->st_dev would be used uninitialized.
95622         Ensures that we always call fts_stat on the very first entry.
95623         Miklos Szeredi reported that find -xdev stopped working.
95625 2006-10-12  Bruno Haible  <bruno@clisp.org>
95627         * gnulib-tool (func_get_automake_snippet): Append an automatically
95628         computed EXTRA_DIST augmentation.
95629         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
95630         * modules/alloca-opt (Makefile.am): Likewise.
95631         * modules/allocsa (Makefile.am): Likewise.
95632         * modules/arcfour (Makefile.am): Likewise.
95633         * modules/arctwo (Makefile.am): Likewise.
95634         * modules/argmatch (Makefile.am): Likewise.
95635         * modules/argz (Makefile.am): Likewise.
95636         * modules/atexit (Makefile.am): Likewise.
95637         * modules/backupfile (Makefile.am): Likewise.
95638         * modules/byteswap (Makefile.am): Likewise.
95639         * modules/c-strtod (Makefile.am): Likewise.
95640         * modules/c-strtold (Makefile.am): Likewise.
95641         * modules/calloc (Makefile.am): Likewise.
95642         * modules/canon-host (Makefile.am): Likewise.
95643         * modules/canonicalize (Makefile.am): Likewise.
95644         * modules/chdir-long (Makefile.am): Likewise.
95645         * modules/chdir-safer (Makefile.am): Likewise.
95646         * modules/check-version (Makefile.am): Likewise.
95647         * modules/chown (Makefile.am): Likewise.
95648         * modules/cloexec (Makefile.am): Likewise.
95649         * modules/close-stream (Makefile.am): Likewise.
95650         * modules/closeout (Makefile.am): Likewise.
95651         * modules/crc (Makefile.am): Likewise.
95652         * modules/csharpexec (Makefile.am): Likewise.
95653         * modules/cycle-check (Makefile.am): Likewise.
95654         * modules/des (Makefile.am): Likewise.
95655         * modules/dev-ino (Makefile.am): Likewise.
95656         * modules/dirfd (Makefile.am): Likewise.
95657         * modules/dirname (Makefile.am): Likewise.
95658         * modules/dup2 (Makefile.am): Likewise.
95659         * modules/eealloc (Makefile.am): Likewise.
95660         * modules/error (Makefile.am): Likewise.
95661         * modules/euidaccess (Makefile.am): Likewise.
95662         * modules/exclude (Makefile.am): Likewise.
95663         * modules/exitfail (Makefile.am): Likewise.
95664         * modules/fcntl-safer (Makefile.am): Likewise.
95665         * modules/fcntl (Makefile.am): Likewise.
95666         * modules/file-type (Makefile.am): Likewise.
95667         * modules/fileblocks (Makefile.am): Likewise.
95668         * modules/filemode (Makefile.am): Likewise.
95669         * modules/filenamecat (Makefile.am): Likewise.
95670         * modules/fnmatch (Makefile.am): Likewise.
95671         * modules/fopen-safer (Makefile.am): Likewise.
95672         * modules/fpending (Makefile.am): Likewise.
95673         * modules/fprintftime (Makefile.am): Likewise.
95674         * modules/free (Makefile.am): Likewise.
95675         * modules/fsusage (Makefile.am): Likewise.
95676         * modules/ftruncate (Makefile.am): Likewise.
95677         * modules/fts (Makefile.am): Likewise.
95678         * modules/gc-arcfour (Makefile.am): Likewise.
95679         * modules/gc-des (Makefile.am): Likewise.
95680         * modules/gc-hmac-md5 (Makefile.am): Likewise.
95681         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
95682         * modules/gc-md4 (Makefile.am): Likewise.
95683         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
95684         * modules/gc-sha1 (Makefile.am): Likewise.
95685         * modules/gc (Makefile.am): Likewise.
95686         * modules/getaddrinfo (Makefile.am): Likewise.
95687         * modules/getcwd (Makefile.am): Likewise.
95688         * modules/getdelim (Makefile.am): Likewise.
95689         * modules/getdomainname (Makefile.am): Likewise.
95690         * modules/getgroups (Makefile.am): Likewise.
95691         * modules/gethostname (Makefile.am): Likewise.
95692         * modules/gethrxtime (Makefile.am): Likewise.
95693         * modules/getline (Makefile.am): Likewise.
95694         * modules/getloadavg (Makefile.am): Likewise.
95695         * modules/getlogin_r (Makefile.am): Likewise.
95696         * modules/getndelim2 (Makefile.am): Likewise.
95697         * modules/getopt (Makefile.am): Likewise.
95698         * modules/getpagesize (Makefile.am): Likewise.
95699         * modules/getpass-gnu (Makefile.am): Likewise.
95700         * modules/getpass (Makefile.am): Likewise.
95701         * modules/getsubopt (Makefile.am): Likewise.
95702         * modules/gettime (Makefile.am): Likewise.
95703         * modules/gettimeofday (Makefile.am): Likewise.
95704         * modules/getugroups (Makefile.am): Likewise.
95705         * modules/getusershell (Makefile.am): Likewise.
95706         * modules/glob (Makefile.am): Likewise.
95707         * modules/group-member (Makefile.am): Likewise.
95708         * modules/hard-locale (Makefile.am): Likewise.
95709         * modules/hash (Makefile.am): Likewise.
95710         * modules/hmac-md5 (Makefile.am): Likewise.
95711         * modules/hmac-sha1 (Makefile.am): Likewise.
95712         * modules/human (Makefile.am): Likewise.
95713         * modules/idcache (Makefile.am): Likewise.
95714         * modules/imaxabs (Makefile.am): Likewise.
95715         * modules/imaxdiv (Makefile.am): Likewise.
95716         * modules/inet_ntop (Makefile.am): Likewise.
95717         * modules/inet_pton (Makefile.am): Likewise.
95718         * modules/intprops (Makefile.am): Likewise.
95719         * modules/inttostr (Makefile.am): Likewise.
95720         * modules/inttypes (Makefile.am): Likewise.
95721         * modules/isapipe (Makefile.am): Likewise.
95722         * modules/javaversion (Makefile.am): Likewise.
95723         * modules/lchmod (Makefile.am): Likewise.
95724         * modules/lchown (Makefile.am): Likewise.
95725         * modules/localcharset (Makefile.am): Likewise.
95726         * modules/long-options (Makefile.am): Likewise.
95727         * modules/lstat (Makefile.am): Likewise.
95728         * modules/malloc (Makefile.am): Likewise.
95729         * modules/mathl (Makefile.am): Likewise.
95730         * modules/mbchar (Makefile.am): Likewise.
95731         * modules/md2 (Makefile.am): Likewise.
95732         * modules/md4 (Makefile.am): Likewise.
95733         * modules/md5 (Makefile.am): Likewise.
95734         * modules/memcasecmp (Makefile.am): Likewise.
95735         * modules/memchr (Makefile.am): Likewise.
95736         * modules/memcmp (Makefile.am): Likewise.
95737         * modules/memcoll (Makefile.am): Likewise.
95738         * modules/memcpy (Makefile.am): Likewise.
95739         * modules/memmem (Makefile.am): Likewise.
95740         * modules/memmove (Makefile.am): Likewise.
95741         * modules/mempcpy (Makefile.am): Likewise.
95742         * modules/memrchr (Makefile.am): Likewise.
95743         * modules/memset (Makefile.am): Likewise.
95744         * modules/memxor (Makefile.am): Likewise.
95745         * modules/mkancesdirs (Makefile.am): Likewise.
95746         * modules/mkdir-p (Makefile.am): Likewise.
95747         * modules/mkdir (Makefile.am): Likewise.
95748         * modules/mkdtemp (Makefile.am): Likewise.
95749         * modules/mkstemp (Makefile.am): Likewise.
95750         * modules/mktime (Makefile.am): Likewise.
95751         * modules/modechange (Makefile.am): Likewise.
95752         * modules/mountlist (Makefile.am): Likewise.
95753         * modules/nanosleep (Makefile.am): Likewise.
95754         * modules/obstack (Makefile.am): Likewise.
95755         * modules/openat (Makefile.am): Likewise.
95756         * modules/pagealign_alloc (Makefile.am): Likewise.
95757         * modules/pathmax (Makefile.am): Likewise.
95758         * modules/physmem (Makefile.am): Likewise.
95759         * modules/poll (Makefile.am): Likewise.
95760         * modules/posixtm (Makefile.am): Likewise.
95761         * modules/posixver (Makefile.am): Likewise.
95762         * modules/putenv (Makefile.am): Likewise.
95763         * modules/quote (Makefile.am): Likewise.
95764         * modules/quotearg (Makefile.am): Likewise.
95765         * modules/raise (Makefile.am): Likewise.
95766         * modules/read-file (Makefile.am): Likewise.
95767         * modules/readline (Makefile.am): Likewise.
95768         * modules/readlink (Makefile.am): Likewise.
95769         * modules/readtokens (Makefile.am): Likewise.
95770         * modules/readutmp (Makefile.am): Likewise.
95771         * modules/realloc (Makefile.am): Likewise.
95772         * modules/regex (Makefile.am): Likewise.
95773         * modules/rename-dest-slash (Makefile.am): Likewise.
95774         * modules/rename (Makefile.am): Likewise.
95775         * modules/rijndael (Makefile.am): Likewise.
95776         * modules/rmdir (Makefile.am): Likewise.
95777         * modules/rpmatch (Makefile.am): Likewise.
95778         * modules/safe-read (Makefile.am): Likewise.
95779         * modules/safe-write (Makefile.am): Likewise.
95780         * modules/same-inode (Makefile.am): Likewise.
95781         * modules/same (Makefile.am): Likewise.
95782         * modules/save-cwd (Makefile.am): Likewise.
95783         * modules/savedir (Makefile.am): Likewise.
95784         * modules/setenv (Makefile.am): Likewise.
95785         * modules/settime (Makefile.am): Likewise.
95786         * modules/sha1 (Makefile.am): Likewise.
95787         * modules/sig2str (Makefile.am): Likewise.
95788         * modules/snprintf (Makefile.am): Likewise.
95789         * modules/stat-macros (Makefile.am): Likewise.
95790         * modules/stat-time (Makefile.am): Likewise.
95791         * modules/stdbool (Makefile.am): Likewise.
95792         * modules/stdint (Makefile.am): Likewise.
95793         * modules/stdlib-safer (Makefile.am): Likewise.
95794         * modules/stpcpy (Makefile.am): Likewise.
95795         * modules/stpncpy (Makefile.am): Likewise.
95796         * modules/strcase (Makefile.am): Likewise.
95797         * modules/strcasestr (Makefile.am): Likewise.
95798         * modules/strchrnul (Makefile.am): Likewise.
95799         * modules/strcspn (Makefile.am): Likewise.
95800         * modules/strdup (Makefile.am): Likewise.
95801         * modules/strerror (Makefile.am): Likewise.
95802         * modules/strftime (Makefile.am): Likewise.
95803         * modules/strndup (Makefile.am): Likewise.
95804         * modules/strnlen (Makefile.am): Likewise.
95805         * modules/strpbrk (Makefile.am): Likewise.
95806         * modules/strsep (Makefile.am): Likewise.
95807         * modules/strstr (Makefile.am): Likewise.
95808         * modules/strtod (Makefile.am): Likewise.
95809         * modules/strtoimax (Makefile.am): Likewise.
95810         * modules/strtok_r (Makefile.am): Likewise.
95811         * modules/strtol (Makefile.am): Likewise.
95812         * modules/strtoll (Makefile.am): Likewise.
95813         * modules/strtoul (Makefile.am): Likewise.
95814         * modules/strtoull (Makefile.am): Likewise.
95815         * modules/strtoumax (Makefile.am): Likewise.
95816         * modules/strverscmp (Makefile.am): Likewise.
95817         * modules/sys_socket (Makefile.am): Likewise.
95818         * modules/sys_stat (Makefile.am): Likewise.
95819         * modules/sysexits (Makefile.am): Likewise.
95820         * modules/time_r (Makefile.am): Likewise.
95821         * modules/timegm (Makefile.am): Likewise.
95822         * modules/timespec (Makefile.am): Likewise.
95823         * modules/tmpfile-safer (Makefile.am): Likewise.
95824         * modules/trim (Makefile.am): Likewise.
95825         * modules/unistd-safer (Makefile.am): Likewise.
95826         * modules/unlinkdir (Makefile.am): Likewise.
95827         * modules/unlocked-io (Makefile.am): Likewise.
95828         * modules/userspec (Makefile.am): Likewise.
95829         * modules/utime (Makefile.am): Likewise.
95830         * modules/utimecmp (Makefile.am): Likewise.
95831         * modules/utimens (Makefile.am): Likewise.
95832         * modules/vasnprintf (Makefile.am): Likewise.
95833         * modules/vasprintf (Makefile.am): Likewise.
95834         * modules/vsnprintf (Makefile.am): Likewise.
95835         * modules/xalloc (Makefile.am): Likewise.
95836         * modules/xgetcwd (Makefile.am): Likewise.
95837         * modules/xnanosleep (Makefile.am): Likewise.
95838         * modules/xreadlink (Makefile.am): Likewise.
95839         * modules/xstrtod (Makefile.am): Likewise.
95840         * modules/xstrtol (Makefile.am): Likewise.
95841         * modules/xstrtold (Makefile.am): Likewise.
95842         * modules/yesno (Makefile.am): Likewise.
95843         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
95845 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
95847         * modules/error (Makefile.am): Distribute files through
95848         EXTRA_DIST, not lib_SOURCES.
95850 2006-10-12  Eric Blake  <ebb9@byu.net>
95852         * modules/error (Makefile.am): Distribute files in /lib.
95853         * modules/obstack (Makefile.am): Likewise.
95855 2006-10-12  Bruno Haible  <bruno@clisp.org>
95857         * modules/acl (Makefile.am): Distribute all files in lib/ through
95858         EXTRA_DIST.
95859         * modules/arcfour (Makefile.am): Likewise.
95860         * modules/arctwo (Makefile.am): Likewise.
95861         * modules/argmatch (Makefile.am): Likewise.
95862         * modules/argz (Makefile.am): Likewise.
95863         * modules/atexit (Makefile.am): Likewise.
95864         * modules/backupfile (Makefile.am): Likewise.
95865         * modules/c-strtod (Makefile.am): Likewise.
95866         * modules/c-strtold (Makefile.am): Likewise.
95867         * modules/calloc (Makefile.am): Likewise.
95868         * modules/canon-host (Makefile.am): Likewise.
95869         * modules/canonicalize (Makefile.am): Likewise.
95870         * modules/chdir-long (Makefile.am): Likewise.
95871         * modules/chdir-safer (Makefile.am): Likewise.
95872         * modules/check-version (Makefile.am): Likewise.
95873         * modules/chown (Makefile.am): Likewise.
95874         * modules/cloexec (Makefile.am): Likewise.
95875         * modules/close-stream (Makefile.am): Likewise.
95876         * modules/closeout (Makefile.am): Likewise.
95877         * modules/crc (Makefile.am): Likewise.
95878         * modules/cycle-check (Makefile.am): Likewise.
95879         * modules/des (Makefile.am): Likewise.
95880         * modules/dirfd (Makefile.am): Likewise.
95881         * modules/dirname (Makefile.am): Likewise.
95882         * modules/dup2 (Makefile.am): Likewise.
95883         * modules/euidaccess (Makefile.am): Likewise.
95884         * modules/exclude (Makefile.am): Likewise.
95885         * modules/exitfail (Makefile.am): Likewise.
95886         * modules/fcntl-safer (Makefile.am): Likewise.
95887         * modules/file-type (Makefile.am): Likewise.
95888         * modules/fileblocks (Makefile.am): Likewise.
95889         * modules/filemode (Makefile.am): Likewise.
95890         * modules/filenamecat (Makefile.am): Likewise.
95891         * modules/fnmatch (Makefile.am): Likewise.
95892         * modules/fopen-safer (Makefile.am): Likewise.
95893         * modules/fpending (Makefile.am): Likewise.
95894         * modules/fprintftime (Makefile.am): Likewise.
95895         * modules/free (Makefile.am): Likewise.
95896         * modules/fsusage (Makefile.am): Likewise.
95897         * modules/ftruncate (Makefile.am): Likewise.
95898         * modules/fts (Makefile.am): Likewise.
95899         * modules/gc (Makefile.am): Likewise.
95900         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
95901         * modules/getaddrinfo (Makefile.am): Likewise.
95902         * modules/getcwd (Makefile.am): Likewise.
95903         * modules/getdelim (Makefile.am): Likewise.
95904         * modules/getdomainname (Makefile.am): Likewise.
95905         * modules/getgroups (Makefile.am): Likewise.
95906         * modules/gethostname (Makefile.am): Likewise.
95907         * modules/gethrxtime (Makefile.am): Likewise.
95908         * modules/getline (Makefile.am): Likewise.
95909         * modules/getloadavg (Makefile.am): Likewise.
95910         * modules/getlogin_r (Makefile.am): Likewise.
95911         * modules/getopt (Makefile.am): Likewise.
95912         * modules/getpass (Makefile.am): Likewise.
95913         * modules/getpass-gnu (Makefile.am): Likewise.
95914         * modules/getsubopt (Makefile.am): Likewise.
95915         * modules/gettime (Makefile.am): Likewise.
95916         * modules/gettimeofday (Makefile.am): Likewise.
95917         * modules/getugroups (Makefile.am): Likewise.
95918         * modules/getusershell (Makefile.am): Likewise.
95919         * modules/glob (Makefile.am): Likewise.
95920         * modules/group-member (Makefile.am): Likewise.
95921         * modules/hard-locale (Makefile.am): Likewise.
95922         * modules/hash (Makefile.am): Likewise.
95923         * modules/hmac-md5 (Makefile.am): Likewise.
95924         * modules/hmac-sha1 (Makefile.am): Likewise.
95925         * modules/human (Makefile.am): Likewise.
95926         * modules/idcache (Makefile.am): Likewise.
95927         * modules/imaxabs (Makefile.am): Likewise.
95928         * modules/imaxdiv (Makefile.am): Likewise.
95929         * modules/inet_ntop (Makefile.am): Likewise.
95930         * modules/inet_pton (Makefile.am): Likewise.
95931         * modules/inttostr (Makefile.am): Likewise.
95932         * modules/isapipe (Makefile.am): Likewise.
95933         * modules/lchown (Makefile.am): Likewise.
95934         * modules/long-options (Makefile.am): Likewise.
95935         * modules/lstat (Makefile.am): Likewise.
95936         * modules/malloc (Makefile.am): Likewise.
95937         * modules/mathl (Makefile.am): Likewise.
95938         * modules/mbchar (Makefile.am): Likewise.
95939         * modules/md2 (Makefile.am): Likewise.
95940         * modules/md4 (Makefile.am): Likewise.
95941         * modules/md5 (Makefile.am): Likewise.
95942         * modules/memcasecmp (Makefile.am): Likewise.
95943         * modules/memchr (Makefile.am): Likewise.
95944         * modules/memcmp (Makefile.am): Likewise.
95945         * modules/memcoll (Makefile.am): Likewise.
95946         * modules/memcpy (Makefile.am): Likewise.
95947         * modules/memmem (Makefile.am): Likewise.
95948         * modules/memmove (Makefile.am): Likewise.
95949         * modules/mempcpy (Makefile.am): Likewise.
95950         * modules/memrchr (Makefile.am): Likewise.
95951         * modules/memset (Makefile.am): Likewise.
95952         * modules/memxor (Makefile.am): Likewise.
95953         * modules/mkancesdirs (Makefile.am): Likewise.
95954         * modules/mkdir (Makefile.am): Likewise.
95955         * modules/mkdir-p (Makefile.am): Likewise.
95956         * modules/mkdtemp (Makefile.am): Likewise.
95957         * modules/mkstemp (Makefile.am): Likewise.
95958         * modules/mktime (Makefile.am): Likewise.
95959         * modules/modechange (Makefile.am): Likewise.
95960         * modules/mountlist (Makefile.am): Likewise.
95961         * modules/nanosleep (Makefile.am): Likewise.
95962         * modules/openat (Makefile.am): Likewise.
95963         * modules/pagealign_alloc (Makefile.am): Likewise.
95964         * modules/physmem (Makefile.am): Likewise.
95965         * modules/poll (Makefile.am): Likewise.
95966         * modules/posixtm (Makefile.am): Likewise.
95967         * modules/posixver (Makefile.am): Likewise.
95968         * modules/putenv (Makefile.am): Likewise.
95969         * modules/quote (Makefile.am): Likewise.
95970         * modules/quotearg (Makefile.am): Likewise.
95971         * modules/raise (Makefile.am): Likewise.
95972         * modules/read-file (Makefile.am): Likewise.
95973         * modules/readline (Makefile.am): Likewise.
95974         * modules/readlink (Makefile.am): Likewise.
95975         * modules/readtokens (Makefile.am): Likewise.
95976         * modules/readutmp (Makefile.am): Likewise.
95977         * modules/realloc (Makefile.am): Likewise.
95978         * modules/regex (Makefile.am): Likewise.
95979         * modules/rename (Makefile.am): Likewise.
95980         * modules/rename-dest-slash (Makefile.am): Likewise.
95981         * modules/rijndael (Makefile.am): Likewise.
95982         * modules/rmdir (Makefile.am): Likewise.
95983         * modules/rpmatch (Makefile.am): Likewise.
95984         * modules/safe-read (Makefile.am): Likewise.
95985         * modules/safe-write (Makefile.am): Likewise.
95986         * modules/same (Makefile.am): Likewise.
95987         * modules/save-cwd (Makefile.am): Likewise.
95988         * modules/savedir (Makefile.am): Likewise.
95989         * modules/setenv (Makefile.am): Likewise.
95990         * modules/settime (Makefile.am): Likewise.
95991         * modules/sha1 (Makefile.am): Likewise.
95992         * modules/sig2str (Makefile.am): Likewise.
95993         * modules/snprintf (Makefile.am): Likewise.
95994         * modules/stdlib-safer (Makefile.am): Likewise.
95995         * modules/stpcpy (Makefile.am): Likewise.
95996         * modules/stpncpy (Makefile.am): Likewise.
95997         * modules/strcase (Makefile.am): Likewise.
95998         * modules/strcasestr (Makefile.am): Likewise.
95999         * modules/strchrnul (Makefile.am): Likewise.
96000         * modules/strcspn (Makefile.am): Likewise.
96001         * modules/strdup (Makefile.am): Likewise.
96002         * modules/strerror (Makefile.am): Likewise.
96003         * modules/strftime (Makefile.am): Likewise.
96004         * modules/strndup (Makefile.am): Likewise.
96005         * modules/strnlen (Makefile.am): Likewise.
96006         * modules/strpbrk (Makefile.am): Likewise.
96007         * modules/strsep (Makefile.am): Likewise.
96008         * modules/strstr (Makefile.am): Likewise.
96009         * modules/strtod (Makefile.am): Likewise.
96010         * modules/strtoimax (Makefile.am): Likewise.
96011         * modules/strtok_r (Makefile.am): Likewise.
96012         * modules/strtol (Makefile.am): Likewise.
96013         * modules/strtoll (Makefile.am): Likewise.
96014         * modules/strtoul (Makefile.am): Likewise.
96015         * modules/strtoull (Makefile.am): Likewise.
96016         * modules/strtoumax (Makefile.am): Likewise.
96017         * modules/strverscmp (Makefile.am): Likewise.
96018         * modules/time_r (Makefile.am): Likewise.
96019         * modules/timegm (Makefile.am): Likewise.
96020         * modules/tmpfile-safer (Makefile.am): Likewise.
96021         * modules/unistd-safer (Makefile.am): Likewise.
96022         * modules/unlinkdir (Makefile.am): Likewise.
96023         * modules/userspec (Makefile.am): Likewise.
96024         * modules/utime (Makefile.am): Likewise.
96025         * modules/utimecmp (Makefile.am): Likewise.
96026         * modules/utimens (Makefile.am): Likewise.
96027         * modules/vasnprintf (Makefile.am): Likewise.
96028         * modules/vasprintf (Makefile.am): Likewise.
96029         * modules/vsnprintf (Makefile.am): Likewise.
96030         * modules/xalloc (Makefile.am): Likewise.
96031         * modules/xgetcwd (Makefile.am): Likewise.
96032         * modules/xnanosleep (Makefile.am): Likewise.
96033         * modules/xreadlink (Makefile.am): Likewise.
96034         * modules/xstrtod (Makefile.am): Likewise.
96035         * modules/xstrtol (Makefile.am): Likewise.
96036         * modules/xstrtold (Makefile.am): Likewise.
96037         * modules/yesno (Makefile.am): Likewise.
96039 2006-10-12  Jim Meyering  <jim@meyering.net>
96041         * m4/getloadavg.m4: Revert the change below.
96043         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
96044         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
96045         fail with a symlink, which is what coreutils' ./bootstrap now
96046         creates by default.
96048 2006-10-12  Bruno Haible  <bruno@clisp.org>
96050         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
96051         mingw.
96052         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
96053         MSVC and mingw explicitly.
96055 2006-10-11  Simon Josefsson  <jas@extundo.com>
96056             Bruno Haible  <bruno@clisp.org>
96058         Add support for multiple gnulib-tool invocations in the scope of a
96059         single configure.ac file.
96060         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
96061         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
96062         with the same contents as the _LIBADD variable.
96063         (func_emit_initmacro_start, func_emit_initmacro_end,
96064         func_emit_initmacro_done): New functions.
96065         (func_import, func_create_testdir): Invoke them. Allow the identifiers
96066         gl_LIBOBJS and gl_LTLIBOBJS.
96068 2006-10-11  Bruno Haible  <bruno@clisp.org>
96070         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
96071         (func_create_testdir): Don't create po/Makefile.am, don't invoke
96072         autoreconf. Instead, invoke autopoint explicitly but move back the
96073         *.m4 files from gnulib.
96075 2006-10-11  Bruno Haible  <bruno@clisp.org>
96077         * gnulib-tool (func_usage): Make module names after --create-testdir
96078         optional.
96079         (func_create_testdir): If no module was specified, use nearly all
96080         modules.
96082 2006-10-12  Jim Meyering  <jim@meyering.net>
96084         Big performance improvement for fts-based tools that use FTS_NOSTAT.
96085         Avoid spurious inode-mismatch problems on non-POSIX file systems.
96086         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
96087         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
96088         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
96089         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
96090         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
96091         (fts_set_stat_required): New function.
96092         (fts_open): Defer the calls to fts_stat, if possible or requested.
96093         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
96094         into fts_stat itself.
96095         (fts_read): Perform any required (deferred) fts_stat call.
96096         (fts_build): Likewise, for the directory we're about to open and read.
96097         In the readdir loop, carefully decide whether each entry will require
96098         an eventual call to fts_stat, using dirent.d_type info if available.
96099         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
96100         a command line argument into this function.  Update all callers.
96101         Map a return value of FTS_DOT to FTS_D for a command line argument.
96102         * modules/fts (Depends-on): Add d-type.  Alphabetize.
96103         Thanks to Miklos Szeredi for his tenacity and for the initial
96104         bug report about "find" failing on a FUSE-based file system.
96106         * lib/fts.c (fts_open): Use consistent indentation.
96108 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96110         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
96111         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
96112         reported by Jim Meyering.  All uses of cache variables renamed
96113         to match Autoconf's.
96114         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
96115         the other one.
96117         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
96118         Fix misspelling in diagnostic.
96120 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96122         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
96123         defined.  Problem reported by Matthew Woehlke.
96125         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
96126         Add support for Tandem NonStop R series.
96127         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
96128         Use new macro.
96130         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
96131         (has_trailing_slash): Omit size arg; all callers changed.
96132         Omit 'inline', since it doesn't help performance and we'd
96133         need to configure it.
96134         Don't count //, ///, etc. as having a trailing slash.
96135         As a side effect, this removes a C99ism reported by Matthew Woehlke.
96136         (rpl_rename_dest_slash): On failure, use rename's errno rather
96137         than (in some cases) an incorrect or junk errno.
96138         Simplify code by removing need to compute length; this does
96139         cause it to make two passes instead of one over the file name,
96140         but it's worth it.
96142         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
96143         change, since Autoconf's version may no longer be appropriate now
96144         that we are using CVS Autoconf's version.  Add support for Tandem.
96146 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96147             Bruno Haible  <bruno@clisp.org>
96149         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
96150         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
96151         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
96152         gl_AC_TYPE_LONG_LONG.
96154         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
96155         instead of HAVE_LONG_LONG.
96156         * lib/printf-args.c (printf_fetchargs): Likewise.
96157         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
96158         * lib/vasnprintf.c (VASNPRINTF): Likewise.
96159         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
96160         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
96161         gl_AC_TYPE_LONG_LONG.
96163 2006-10-11  Bruno Haible  <bruno@clisp.org>
96165         * m4/longlong.m4: Add comments.
96166         * m4/ulonglong.m4: Likewise.
96168 2006-10-10  Bruno Haible  <bruno@clisp.org>
96170         Make it possible to #define stpcpy, strdup to aliases.
96171         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
96172         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
96174 2006-10-10  Bruno Haible  <bruno@clisp.org>
96176         Make it possible to #define gcd to an alias.
96177         * lib/gcd.c: Include config.h.
96179 2006-10-10  Bruno Haible  <bruno@clisp.org>
96181         Make it possible to #define c_isascii to an alias.
96182         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
96183         defined. Undefine the macros before defining them, to avoid gcc
96184         warnings.
96185         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
96186         define NO_C_CTYPE_MACROS early.
96188 2006-10-10  Bruno Haible  <bruno@clisp.org>
96190         Make it possible to #define set_program_name to an alias.
96191         * lib/progname.c: Don't undefine set_program_name; instead, undefine
96192         ENABLE_RELOCATABLE early.
96194 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
96196         Port to Tandem NSK OSS, which has 64-bit signed int but at most
96197         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
96198         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
96199         More generally, don't assume that 64-bit signed int is available
96200         if unsigned int is, and vice versa.
96201         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
96202         unsigned symbols, not on their signed counterparts.
96203         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
96204         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
96205         (UINT64_C, UINTMAX_C):
96206         Likewise.
96207         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
96208         unsigned counterparts.
96209         (Have_long_long, Unsigned): New macros.
96210         (Int): Renamed from INT.
96211         (strtoimax): Use the new macros.
96212         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
96213         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
96214         * modules/inttypes (inttypes.h): Substitute
96215         HAVE_UNSIGNED_LONG_LONG_INT.
96216         * modules/stdint (stdint.h): Likewise.
96217         (Files): Add m4/ulonglong.m4.
96219 2006-10-10  Bruno Haible  <bruno@clisp.org>
96221         Fix a gcc -Wshadow warning.
96222         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
96223         to 'bucket'.
96224         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
96225         gl_linked_indexof_from_to): Likewise.
96226         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
96227         Likewise.
96228         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
96229         Likewise.
96230         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
96231         Reported by Eric Blake.
96233 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
96235         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
96236         for NetBSD.  Problem reported by Bruno Haible.
96238 2006-10-09  Jim Meyering  <jim@meyering.net>
96240         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
96241         Patch from Bruno Haible.
96243 2006-10-09  Jim Meyering  <jim@meyering.net>
96245         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
96246         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
96247         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
96249 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
96251         Don't include <config.h> twice; this doesn't work in some cases,
96252         e.g., when config.h has "#define intmax_t long long int" and
96253         we include <config.h>, <inttypes.h>, <config.h> in that order.
96254         Problem reported by Matthew Woehlke in:
96255         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
96256         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
96257         * lib/fts-cycle.c: Don't include config.h.
96258         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
96259         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
96260         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
96261         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
96262         inttypes.h.
96263         * lib/xstrtoumax.c: Likewise.
96264         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
96265         __strtol and the like, so that this module is more like its siblings.
96266         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
96267         Remove; no longer needed now that we assume gnulib inttypes.h.
96269 2006-10-08  Bruno Haible  <bruno@clisp.org>
96271         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
96272         option.
96274 2006-10-07  Jim Meyering  <jim@meyering.net>
96276         * modules/inttypes (inttypes.h): Revert what seems to have been
96277         an inadvertent part of today's change: use "|", not "/" in the
96278         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
96280 2006-10-07  Bruno Haible  <bruno@clisp.org>
96282         * modules/sublist: New file.
96284 2006-10-07  Bruno Haible  <bruno@clisp.org>
96286         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
96287         * modules/argz (argz.h): Likewise.
96288         * modules/arpa_inet (arpa/inet.h): Likewise.
96289         * modules/byteswap (byteswap.h): Likewise.
96290         * modules/configmake (configmake.h): Likewise.
96291         * modules/fcntl (fcntl.h): Likewise.
96292         * modules/fnmatch (fnmatch.h): Likewise.
96293         * modules/getopt (getopt.h): Likewise.
96294         * modules/glob (glob.h): Likewise.
96295         * modules/inttypes (inttypes.h): Likewise.
96296         * modules/netinet_in (netinet/in.h): Likewise.
96297         * modules/poll (poll.h): Likewise.
96298         * modules/stdbool (stdbool.h): Likewise.
96299         * modules/stdint (stdint.h): Likewise.
96300         * modules/sys_select (sys/select.h): Likewise.
96301         * modules/sys_socket (sys/socket.h): Likewise.
96302         * modules/sys_stat (sys/stat.h): Likewise.
96303         * modules/sysexits (sysexits.h): Likewise.
96304         * modules/unistd (unistd.h): Likewise.
96305         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96306         Add a "DO NOT EDIT" comment to the generated file.
96307         (func_import): Likewise for gnulib-comp.m4.
96309 2006-10-07  Bruno Haible  <bruno@clisp.org>
96311         * lib/gl_sublist.h: New file.
96312         * lib/gl_sublist.c: New file.
96314 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
96316         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
96317         name (relative to the original working directory) and the file
96318         name component (relative to the temporary working directory).  All
96319         callers changed.
96320         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
96321         * lib/mkdir-p.c (make_dir_parents): Likewise.
96322         * lib/mkdir-p.h (make_dir_parents): Likewise.
96324 2006-10-06  Eric Blake  <ebb9@byu.net>
96326         Define several macros for use by the clean-temp module.
96327         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
96328         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
96329         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
96331         * lib/clean-temp.h (close_stream_temp): New declaration.
96332         * lib/clean-temp.c (includes): Pull in headers according to what
96333         other modules are in use.
96334         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
96336 2006-10-06  Bruno Haible  <bruno@clisp.org>
96338         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
96339         instead of fopen, fwriteerror.
96341 2006-10-06  Bruno Haible  <bruno@clisp.org>
96343         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
96344         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
96345         int.
96346         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
96347         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
96348         Return an error indicator.
96349         Suggested by Eric Blake.
96351 2006-10-06  Bruno Haible  <bruno@clisp.org>
96353         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
96354         Reported by Eric Blake.
96356 2006-10-06  Bruno Haible  <bruno@clisp.org>
96358         * modules/closeout (Description): Mention stderr too.
96360 2006-10-06  Bruno Haible  <bruno@clisp.org>
96361         and Paul Eggert  <eggert@cs.ucla.edu>
96363         * lib/closeout.c (close_stdout): Also close stderr.
96364         * lib/closeout.h: Update comment.
96366 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
96368         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
96369         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
96370         * lib/dirchownmod.c: Include lchown.h.
96371         * lib/lchown.c: Don't include files that lchown.h now includes.
96372         Don't declare chown, since lchown.h now does that.
96373         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
96374         (lchown): Define to rpl_chown if lchown is declared but
96375         does not exist.  Declare using a prototype if lchown is not
96376         declared.  Add a copyright notice.
96377         * lib/mkstemp.h: Include <unistd.h>.
96378         * lib/openat.c: Include lchown.h.
96380         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
96381         we now test for that separately.
96382         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
96383         rather than O_NOFOLLOW, when testing whether it's possible to
96384         avoid a race condition reliably.
96385         * lib/savewd.c (savewd_chdir): Likewise.
96387         Remove macros that are no longer needed now that stdint.h is
96388         reliable.
96389         * lib/fsusage.c (UINTMAX_MAX): Remove.
96390         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
96391         * lib/utimecmp.c (SIZE_MAX): Remove.
96393         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
96395         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
96396         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
96397         O_NOATIME works.
96399 2006-10-05  Bruno Haible  <bruno@clisp.org>
96401         * lib/gl_list.h (gl_sortedlist_search_from_to,
96402         gl_sortedlist_indexof_from_to): New declarations.
96403         (gl_list_implementation): New fields sortedlist_search_from_to,
96404         sortedlist_indexof_from_to.
96405         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
96406         inline functions.
96407         * lib/gl_list.c (gl_sortedlist_search_from_to,
96408         gl_sortedlist_indexof_from_to): New functions.
96409         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
96410         function.
96411         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
96412         (gl_array_sortedlist_search_from_to): New function.
96413         (gl_array_list_implementation): Update.
96414         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
96415         function.
96416         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
96417         (gl_carray_sortedlist_search_from_to): New function.
96418         (gl_carray_list_implementation): Update.
96419         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
96420         gl_linked_sortedlist_indexof_from_to): New functions.
96421         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96422         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96423         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
96424         gl_tree_sortedlist_indexof_from_to): New functions.
96425         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96426         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96427         Update.
96428         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96429         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
96430         Update.
96432 2006-10-05  Bruno Haible  <bruno@clisp.org>
96434         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
96435         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
96436         (struct gl_list_implementation): Add fields search_from_to,
96437         indexof_from_to. Remove fields search, indexof.
96438         (gl_list_search): Use the search_from_to method.
96439         (gl_list_search_from, gl_list_search_from_to): New functions.
96440         (gl_list_indexof): Use the indexof_from_to method.
96441         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96442         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
96443         (gl_list_search_from, gl_list_search_from_to): New functions.
96444         (gl_list_indexof): Use the indexof_from_to method.
96445         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96446         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
96447         gl_array_indexof. Add start_index, end_index arguments.
96448         (gl_array_search_from_to): Renamed from gl_array_search. Add
96449         start_index, end_index arguments.
96450         (gl_array_remove, gl_array_list_implementation): Update.
96451         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
96452         gl_carray_indexof. Add start_index, end_index arguments.
96453         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
96454         start_index, end_index arguments.
96455         (gl_carray_remove, gl_carray_list_implementation): Update.
96456         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
96457         gl_linked_search. Add start_index, end_index arguments.
96458         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
96459         start_index, end_index arguments.
96460         (gl_linked_remove): Update.
96461         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96462         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96463         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
96464         field to 'size_t'.
96465         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
96466         gl_tree_search. Add start_index, end_index arguments.
96467         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
96468         start_index, end_index arguments.
96469         (gl_tree_remove): Update.
96470         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96471         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96472         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
96473         function.
96474         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
96475         gl_tree_search. Add start_index, end_index arguments.
96476         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
96477         start_index, end_index arguments.
96478         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96479         Update.
96480         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
96482 2006-10-05  Bruno Haible  <bruno@clisp.org>
96484         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
96486         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
96487         fwriteerror_temp): New declarations.
96488         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
96489         (descriptors): New variable.
96490         (cleanup): First, close the descriptors.
96491         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
96492         fclose_temp, fwriteerror_temp): New functions.
96494 2006-10-04  Jim Meyering  <jim@meyering.net>
96496         * lib/fts.c (fts_open): Tiny comment change.
96498 2006-10-04  Bruno Haible  <bruno@clisp.org>
96500         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
96501         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
96502         gl_LOCK_BODY.
96503         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
96504         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
96505         gl_LOCK_EARLY_BODY.
96506         (gl_LOCK): Require gl_LOCK_BODY.
96508 2006-10-04  Bruno Haible  <bruno@clisp.org>
96510         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
96511         (gl_oset_search_atleast): New declaration.
96512         (struct gl_oset_implementation): Add field 'search_atleast'.
96513         (gl_oset_search_atleast): New inline function.
96514         * lib/gl_oset.c (gl_oset_search_atleast): New function.
96515         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
96516         (gl_array_oset_implementation): Update.
96517         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
96518         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
96519         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
96521 2006-10-04  Bruno Haible  <bruno@clisp.org>
96523         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
96525 2006-10-03  Bruno Haible  <bruno@clisp.org>
96527         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
96528         from gl_avltreehash_list_implementation.
96530 2006-10-03  Bruno Haible  <bruno@clisp.org>
96532         * lib/gl_oset.c (gl_oset_add): Fix return type.
96534 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
96536         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
96538 2006-10-02  Eric Blake  <ebb9@byu.net>
96540         * modules/strnlen (Depends-on): Add extensions.
96542 2006-10-02  Eric Blake  <ebb9@byu.net>
96544         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
96545         definition in 2.60+.
96547 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
96549         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
96550         checks.
96552 2006-10-02  Bruno Haible  <bruno@clisp.org>
96554         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
96555         to the AUTOMAKE_OPTIONS.
96556         Reported by Jim Meyering.
96558 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
96560         Work around bug in Solaris 10 /proc file system:
96561         /proc/self/fd/NNN/.. isn't the parent directory of
96562         the directory whose file descriptor is NNN.  This needs to
96563         be worked around at run time, not compile time, since a
96564         program might be built on Solaris 8, where things work, and
96565         run on Solaris 10.
96566         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
96567         to use the following interface instead:
96568         (OPENAT_BUFFER_SIZE): New macro.
96569         (openat_proc_name): New function.
96570         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
96571         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
96572         Likewise.
96573         * lib/openat-proc.c: New file.
96574         * modules/openat (Files): Add lib/openat-proc.c.
96575         (Depends-on): Add same-inode, stdbool.
96576         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
96578 2006-09-29  Bruno Haible  <bruno@clisp.org>
96580         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
96581         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
96582         argument. Set stdout_closed before testing for ferror, not after.
96583         (fwriteerror, fwriteerror_no_ebadf): New functions.
96585 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96587         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
96589 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
96591         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
96592         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
96594 2006-09-28  Jim Meyering  <jim@meyering.net>
96596         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
96597         Include <unistd.h>.
96599 2006-09-28  Bruno Haible  <bruno@clisp.org>
96601         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
96602         * modules/linkedhash-list (Depends-on): Likewise.
96603         * modules/rbtreehash-list (Depends-on): Likewise.
96605 2006-09-28  Bruno Haible  <bruno@clisp.org>
96607         * lib/strndup.h: Simplify the redefinition of strndup.
96608         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
96609         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
96611 2006-09-28  Bruno Haible  <bruno@clisp.org>
96613         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
96614         * lib/gl_linkedhash_list.c: Likewise.
96615         * lib/gl_rbtreehash_list.c: Likewise.
96617 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
96619         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
96620         getaddrinfo.
96622         * lib/__fpending.h: Don't include <stdio_ext.h> unless
96623         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
96624         it causes <stdio_ext.h> to cause a compile-time error.
96625         Problem reported by Nelson H. F. Beebe.
96626         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
96627         of HAVE_DECL___PENDING.
96629         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
96630         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
96631         declaration.
96633 2006-09-27  Jim Meyering  <jim@meyering.net>
96635         This file could end up with a definition for a function
96636         named __strndup, rather than rpl_strndup on a system with
96637         incomplete weak_alias support.
96638         * lib/strndup.c (strndup): Rename from __strndup.
96639         Remove #defines that used to map __strndup to strndup.
96640         Don't use K&R prototypes.
96641         Remove LIBC-related code, since this file is not sync'd with glibc.
96642         * lib/strndup.h: Revamp, accordingly.
96643         * m4/strndup.m4: Modernize.
96645 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
96647         * modules/savewd (Depends-on): Add 'raise'.
96648         * lib/savewd.c: Include <signal.h>, for 'raise'.
96650 2006-09-26  Jim Meyering  <jim@meyering.net>
96652         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
96653         when we detect Darwin 8.7.0's acl_get_file bug.
96654         Rearrange to perform the new (below) run-test while $LIBS
96655         contains any acl-related library.  Set USE_ACL at the end.
96656         (gl_ACL_GET_FILE): New function.
96658 2006-09-26  Eric Blake  <ebb9@byu.net>
96660         * lib/verror.c: Include <config.h> unconditionally.
96662 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
96664         * modules/clock-time (Maintainer): Add self.
96665         * modules/getlogin_r (Depends-on): Add extensions.
96667 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96669         * modules/clock-time: New module.
96670         * modules/nanosleep (Depends-on): Add clock-time.
96671         * modules/gethrxtime (Depends-on): Likewise.
96672         * modules/gettime (Depends-on): Likewise.
96673         * modules/settime (Depends-on): Likewise.
96675         * modules/fts-lgpl: Depend on openat.
96676         * modules/mkancesdirs: Depend on savewd.
96677         * modules/mkdir-p: Likewise.
96679 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96681         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
96683         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
96684         `gl_have_arbitrary_file_name_length_limit' to
96685         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
96686         actually works between configure runs.
96688 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96689             Bruno Haible  <bruno@clisp.org>
96691         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
96693 2006-09-25  Jim Meyering  <jim@meyering.net>
96695         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
96696         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
96698 2006-09-25  Eric Blake  <ebb9@byu.net>
96700         * gnulib-tool (func_import, func_create_testdir): Fix typos in
96701         exec's in 2006-09-18 patch when shuffling fds.
96703 2006-09-25  Bruno Haible  <bruno@clisp.org>
96705         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
96706         Reported by Jim Meyering.
96708 2006-09-24  Jim Meyering  <jim@meyering.net>
96710         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
96711         compare a pointer against a literal "0".  That caused failures with
96712         at least HP-UX's hpcc.
96714 2006-09-22  Simon Josefsson  <jas@extundo.com>
96716         * modules/gc-sha1:
96717         * modules/gc-md4:
96718         * modules/gc-hmac-sha1:
96719         * modules/gc-hmac-md5:
96720         * modules/gc-des:
96721         * modules/gc-arcfour: Distribute more files.
96723 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96725         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
96726         (gl_linked_iterator_from_to): Initialize struct completely.
96727         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
96728         (gl_tree_iterator_from_to): Likewise
96729         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
96730         * lib/gl_array_list.c [lint] (gl_array_iterator)
96731         (gl_array_iterator_from_to): Likewise.
96732         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
96733         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
96734         (gl_carray_iterator_from_to): Likewise.
96736         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
96737         * lib/md4.c (md4_process_block): Remove unused variable.
96738         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
96739         parentheses for clarity.
96741 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96743         * modules/bison-i18n (Depends-on): Add gettext.
96745 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96747         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
96748         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
96749         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
96750         also add missing comma that caused broken test.
96751         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
96752         stdlib.h, for `abort'.
96753         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
96754         variables.
96755         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
96756         include unistd.h if present, for `rmdir'.
96757         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
96758         variables.
96759         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
96760         in the process include standard headers for prototypes.
96761         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
96762         gets declared on GNU/Linux.
96763         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
96764         unistd.h, for `rmdir'.
96765         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
96767         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
96768         always true.
96769         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
96771         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
96773 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96775         * gnulib-tool (func_version): Create output all at once.  This
96776         may help avoid triggering unnecessary SIGPIPEs, and at any
96777         rate it doesn't hurt.
96779 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96780             Bruno Haible  <bruno@clisp.org>
96782         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
96783         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
96784         * m4/signed.m4 (bh_C_SIGNED): Likewise.
96786         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
96787         (gl_FUNC_VASPRINTF): Invoke it.
96789 2006-09-22  Bruno Haible  <bruno@clisp.org>
96791         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
96792         getloadavg.c as first argument.
96794 2006-09-22  Bruno Haible  <bruno@clisp.org>
96796         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
96797         at the beginning of the gl_INIT macro.
96798         * modules/getloadavg (configure.ac): Pass $gl_source_base to
96799         gl_GETLOADAVG.
96801 2006-09-22  Bruno Haible  <bruno@clisp.org>
96803         * gnulib-tool (func_create_megatestdir): Don't include the config-h
96804         module.
96805         Suggested by Ralf Wildenhues.
96807 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
96809         Import this patch from libc:
96811         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
96813         * lib/regex_internal.c (re_string_reconstruct): Handle
96814         offset < pstr->valid_raw_len && pstr->offsets_needed case.
96815         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
96816         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
96817         re_string_context_at.
96819         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
96820         now requires it.
96821         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
96822         gl_REGEX now does it for us.
96823         (gl_REGEX): Add test taken from
96824         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
96826         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
96827         Check that large offsets work.  Modernize Autoconf usages.
96828         Prefer "yes" to mean a good thing rather than a bad.
96829         Don't put "#define mkstemp" in config.h, as this might interfere
96830         with standard system headers that "#define mkstemp mkstemp64".
96832         * modules/mkstemp (Depends-on): Add extensions, so that
96833         mkstemp is visible on some platforms.
96834         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
96835         (Include): Change to "mkstemp.h" from <stdlib.h>.
96836         (Files): Add mkstemp.h.
96838         * lib/mkstemp.h: New file, since some standard headers
96839         #define mkstemp.
96840         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
96841         Include "mkstemp.h".
96842         Make the _LIBC code resemble glibc original more,
96843         e.g., use K&R style.
96844         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
96845         (mkstemp): Remove, since mkstemp.h does this for us.
96846         * lib/stdlib--.h: Include mkstemp.h.
96848         Import this patch from libc:
96850         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
96852         * lib/tempname.c (__gen_tempname): Change attempts_min
96853         into a macro.  Use preprocessor to decide how to initialize
96854         attempts [Coverity CID 67].
96856 2006-09-20  Bruno Haible  <bruno@clisp.org>
96858         * lib/mkdtemp.c: Import from libc.
96859         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
96860                 * sysdeps/posix/tempname.c (__gen_tempname): Change
96861                 attempts_min into a macro.  Use preprocessor to decide how to
96862                 initialize attempts [Coverity CID 67].
96863         2001-11-27  Paul Eggert  <eggert@twinsun.com>
96864                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
96865                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
96867 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96869         * gnulib-tool (func_exit): New function, to allow to pass the
96870         exit status portably through the trap.  Use everywhere.
96871         (--help, --version): Signal a write error.
96872         (trap): catch SIGPIPE, for write errors.
96873         Exit at the end of the trap, with the correct exit status.
96875 2006-09-19  Karl Berry  <karl@gnu.org>
96877         * doc/gnulib.texi: note about the license texinfo files.
96879 2006-09-19  Eric Blake  <ebb9@byu.net>
96881         * gnulib-tool: Avoid space-tab.
96883 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
96885         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
96886         that prevented coreutils 6.1 from building.  Problem reported
96887         by Petter Reinholdtsen.
96889 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
96891         * gnulib-tool (avoidlist): Fix typo that broke options like
96892         --avoid=lock that are used by coreutils bootstrap.
96894 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
96896         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
96897         more systematically.
96899 2006-09-18  Jim Meyering  <jim@meyering.net>
96901         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
96903 2006-09-18  Bruno Haible  <bruno@clisp.org>
96905         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
96907 2006-09-18  Bruno Haible  <bruno@clisp.org>
96909         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
96910         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
96911         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
96912         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
96913         * m4/gettext.m4: Require autoconf >= 2.52.
96914         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
96915         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
96916         of gl_cv_header_inttypes_h.
96918 2006-09-18  Bruno Haible  <bruno@clisp.org>
96920         * lib/javaversion.c: Include configmake.h.
96922 2006-09-18  Bruno Haible  <bruno@clisp.org>
96924         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
96925         avoid that the while loops be executed in a subshell.
96927 2006-09-18  Bruno Haible  <bruno@clisp.org>
96929         * MODULES.html.sh (func_module): Break long lines.
96930         Suggested by Bruce Korb <bkorb@gnu.org>.
96932 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96934         Speed up by a factor of 1.12.
96935         * gnulib-tool (nl): New variable.
96936         (func_import): Rewrite include directive extraction to only read each
96937         directive once.
96939 2006-09-17  Bruno Haible  <bruno@clisp.org>
96941         * modules/javaversion (Makefile.am): Remove DEFS setting.
96942         (Depends-on): Add configmake, for PKGDATADIR definition.
96944 2006-09-17  Bruno Haible  <bruno@clisp.org>
96946         * gnulib-tool (func_create_testdir): Rewrite all files at once.
96948 2006-09-17  Bruno Haible  <bruno@clisp.org>
96950         * gnulib-tool (func_append): New function, stolen from libtool.m4.
96951         (func_modules_transitive_closure, func_modules_add_dummy,
96952         func_modules_to_filelist, func_import, func_create_testdir,
96953         func_create_megatestdir, ...): Use it wherever possible.
96954         Suggested by Ralf Wildenhues.
96956 2006-09-16  Karl Berry  <karl@gnu.org>
96958         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
96959         to avoid sectioning errors.
96960         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
96961         [ifinfo]: blank line after @center-ed titles.
96962         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
96963         Spell FSF address consistently with others.
96964         (These changes approved by rms.)
96966 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96968         Speed up by a factor of 1.61.
96969         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
96970         already checked module names again.
96972 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96974         Speed up by a factor of 1.13.
96975         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
96976         for new_files, and the input to func_add_or_update.
96978 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96980         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
96981         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
96983 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
96985         * modules/mkancesdirs (Depends-on): Add fcntl.
96986         * modules/savewd: New file.
96987         * MODULES.html.sh (File system functions): Add savewd.
96989         * modules/configmake (Makefile.am): Add support for the
96990         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
96992 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
96994         * m4/savewd.m4: New file.
96996 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
96998         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
96999         (dirchownmod): New arg FD.  All callers changed.
97000         Use FD rather than opening the directory ourself, as opening is
97001         now the caller's responsibility.
97002         * lib/dirchownmod.h: Likewise.
97003         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
97004         hosts that require <sys/types.h> before <sys/stat.h>.  Include
97005         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
97006         (test_dir): Remove.
97007         (mkancesdirs): Return length of prefix of FILE that has already
97008         been made, or -2 if there is a child doing the work.  Redo
97009         algorithm so that it is O(N) rather than O(N**2).  Optimize away
97010         ".", and treat ".." specially since it might stray back into
97011         already-created areas.  Use a subprocess if necessary.  New arg
97012         WD; all users changed.  MAKE_DIR function should now return 1
97013         if it creates a directory that is not readable.  Return -2 if
97014         a child process is spun off.
97015         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
97016         Adjust signature to match code.
97017         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
97018         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
97019         all users changed.
97020         * lib/savewd.c, lib/savewd.h: New files.
97022 2006-09-15  Jim Meyering  <jim@meyering.net>
97024         * modules/rename-dest-slash: New module.
97025         * MODULES.html.sh (posix_compat): Add it here.
97027         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
97029 2006-09-15  Jim Meyering  <jim@meyering.net>
97031         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
97032         file.
97034         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
97036 2006-09-15  Jim Meyering  <jim@meyering.net>
97038         * lib/rename-dest-slash.c (has_trailing_slash): Use
97039         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
97040         (rpl_rename_dest_slash): Perform the cheaper trailing slash
97041         test before testing whether SRC is a directory.
97042         Suggestions from Bruno Haible.
97044         Avoid a warning about an unused variable.
97045         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
97046         into the #ifdef block where it's used.
97048         * lib/rename-dest-slash.c: New file.
97050 2006-09-14  Bruno Haible  <bruno@clisp.org>
97052         * lib/allocsa.c: Include <config.h> unconditionally.
97053         * lib/asnprintf.c: Likewise.
97054         * lib/asprintf.c: Likewise.
97055         * lib/c-strcasecmp.c: Likewise.
97056         * lib/c-strcasestr.c: Likewise.
97057         * lib/c-strncasecmp.c: Likewise.
97058         * lib/c-strstr.c: Likewise.
97059         * lib/classpath.c: Likewise.
97060         * lib/clean-temp.c: Likewise.
97061         * lib/concatpath.c: Likewise.
97062         * lib/copy-file.c: Likewise.
97063         * lib/csharpcomp.c: Likewise.
97064         * lib/csharpexec.c: Likewise.
97065         * lib/execute.c: Likewise.
97066         * lib/fatal-signal.c: Likewise.
97067         * lib/findprog.c: Likewise.
97068         * lib/fwriteerror.c: Likewise.
97069         * lib/gl_array_list.c: Likewise.
97070         * lib/gl_array_oset.c: Likewise.
97071         * lib/gl_avltree_list.c: Likewise.
97072         * lib/gl_avltree_oset.c: Likewise.
97073         * lib/gl_avltreehash_list.c: Likewise.
97074         * lib/gl_carray_list.c: Likewise.
97075         * lib/gl_linked_list.c: Likewise.
97076         * lib/gl_linkedhash_list.c: Likewise.
97077         * lib/gl_list.c: Likewise.
97078         * lib/gl_oset.c: Likewise.
97079         * lib/gl_rbtree_list.c: Likewise.
97080         * lib/gl_rbtree_oset.c: Likewise.
97081         * lib/gl_rbtreehash_list.c: Likewise.
97082         * lib/imaxabs.c: Likewise.
97083         * lib/imaxdiv.c: Likewise.
97084         * lib/javacomp.c: Likewise.
97085         * lib/javaexec.c: Likewise.
97086         * lib/javaversion.c: Likewise.
97087         * lib/linebreak.c: Likewise.
97088         * lib/localcharset.c: Likewise.
97089         * lib/lock.c: Likewise.
97090         * lib/mbchar.c: Likewise.
97091         * lib/mbswidth.c: Likewise.
97092         * lib/mkdtemp.c: Likewise.
97093         * lib/pipe.c: Likewise.
97094         * lib/printf-args.c: Likewise.
97095         * lib/printf-parse.c: Likewise.
97096         * lib/progname.c: Likewise.
97097         * lib/progreloc.c: Likewise.
97098         * lib/readlink.c: Likewise.
97099         * lib/sh-quote.c: Likewise.
97100         * lib/stpcpy.c: Likewise.
97101         * lib/stpncpy.c: Likewise.
97102         * lib/strcasecmp.c: Likewise.
97103         * lib/strcasestr.c: Likewise.
97104         * lib/strcspn.c: Likewise.
97105         * lib/striconv.c: Likewise.
97106         * lib/strncasecmp.c: Likewise.
97107         * lib/strnlen1.c: Likewise.
97108         * lib/strstr.c: Likewise.
97109         * lib/strtok_r.c: Likewise.
97110         * lib/tls.c: Likewise.
97111         * lib/tmpdir.c: Likewise.
97112         * lib/unicodeio.c: Likewise.
97113         * lib/unsetenv.c: Likewise.
97114         * lib/vasnprintf.c: Likewise.
97115         * lib/vasprintf.c: Likewise.
97116         * lib/wait-process.c: Likewise.
97117         * lib/xallocsa.c: Likewise.
97118         * lib/xsetenv.c: Likewise.
97119         * lib/xstriconv.c: Likewise.
97121 2006-09-13  Simon Josefsson  <jas@extundo.com>
97123         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
97124         that internally, suggested by Ralf Wildenhues
97125         <Ralf.Wildenhues@gmx.de>.
97127 2006-09-13  Simon Josefsson  <jas@extundo.com>
97129         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
97130         @LIBOBJS@.
97131         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97133 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
97135         * lib/_fpending.c: Include <config.h> unconditionally, since we no
97136         longer worry about uses that don't define HAVE_CONFIG_H.
97137         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
97138         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
97139         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
97140         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
97141         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
97142         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
97143         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
97144         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
97145         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
97146         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
97147         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
97148         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
97149         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
97150         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
97151         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
97152         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
97153         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
97154         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
97155         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
97156         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
97157         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
97158         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
97159         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
97160         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
97161         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
97162         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
97163         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
97164         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
97165         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
97166         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
97167         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
97168         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
97169         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
97170         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
97171         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
97172         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
97173         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
97174         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
97175         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
97176         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
97177         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
97178         Likewise.
97180 2006-09-13  Eric Blake  <ebb9@byu.net>
97182         * lib/getopt.c: Fix typo in last commit.
97184 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
97186         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
97187         dgettext.
97189 2006-09-12  Jim Meyering  <jim@meyering.net>
97191         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
97192         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
97193         Reported by Nelson H. F. Beebe.
97195 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
97197         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
97198         program_invocation_name and program_invocation_short_name are
97199         initialized.
97200         * lib/argp-namefrob.h: Move declarations of program_invocation_name
97201         and program_invocation_short_name to argp.h, so they are visible
97202         to user programs.
97203         * lib/argp.h: Likewise
97205 2006-09-10  Bruno Haible  <bruno@clisp.org>
97207         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
97208         m4/inttypes_h.m4, m4/uintmax_t.m4.
97210 2006-09-10  Bruno Haible  <bruno@clisp.org>
97212         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
97213         gl_AC_TYPE_UINTMAX_T.
97215 2006-09-10  Bruno Haible  <bruno@clisp.org>
97217         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
97219 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
97221         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
97222         convention.  Text proposed by Bruno Haible.
97223         (struct argp_option): Document the use of N_() wrappers.
97225         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
97226         '\v', and translate the two parts separately, instead of feeding
97227         the whole string to gettext.  This allows to exclude
97228         '\v' from the strings visible to the translator by writing doc
97229         strings as N_("..") "\v" N_("..").
97231 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
97233         * config/srclist.txt: Undo latest change; the bug was fixed.
97235 2006-09-09  Bruno Haible  <bruno@clisp.org>
97237         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
97238         assignments if building a library without libtool.
97239         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
97240         in func_emit_lib_Makefile_am.
97241         (func_import): When building a static library libfoo.a, arrange to
97242         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
97243         (func_create_testdir): Likewise.
97244         * modules/gc (configure.ac, Makefile.am): If building statically,
97245         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
97246         * modules/iconvme (configure.ac, Makefile.am): Likewise.
97247         * modules/striconv (configure.ac, Makefile.am): Likewise.
97248         Based on a suggestion by Ralf Wildenhues.
97250 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97252         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
97253         Check for unistd.h too, since Autoconf doesn't assume POSIX.
97254         Also:
97256         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97257         Add year_2050_test to catch glibc bug 2821
97258         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97260         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
97261         Prefer #ifdef to #if.
97263         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
97264         Return from 'main' instead of calling 'exit'.
97266 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97268         * lib/mktime.c (guess_time_tm): Fix bug where mktime
97269         returned the maximum time_t value rather than (time_t) -1.
97270         Problem originally reported by William Bardwell
97271         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97273         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97274         Moved to here ...
97275         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97276         ... from here.
97278 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97280         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
97281         2821 is fixed.
97283 2006-09-08  Jim Meyering  <jim@meyering.net>
97285         Don't make generated files read-only.  That would bother too many
97286         people.  However, do retain the ability to work when targets are
97287         read-only: remove the destination and temporary files before writing
97288         them (when generated via sed or echo), or by using the -f option for
97289         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
97290         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97291         * modules/byteswap, modules/configmake, modules/fcntl:
97292         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97293         * modules/localcharset, modules/netinet_in, modules/poll:
97294         * modules/stdbool, modules/stdint, modules/sys_select:
97295         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97297 2006-09-08  Jim Meyering  <jim@meyering.net>
97299         Avoid new build failure on FreeBSD 6.0.
97300         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
97301         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
97302         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
97304 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97306         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
97308 2006-09-07  Jim Meyering  <jim@meyering.net>
97310         Fix global typo in last change: use chmod u-w, not chmod u-x.
97311         Spotted by Paul Eggert and Bruce Korb.
97312         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97313         * modules/byteswap, modules/configmake, modules/fcntl:
97314         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97315         * modules/localcharset, modules/netinet_in, modules/poll:
97316         * modules/stdbool, modules/stdint, modules/sys_select:
97317         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97319 2006-09-06  Jim Meyering  <jim@meyering.net>
97321         Make generated files be read-only.
97322         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
97323         Ensure that each generated file is now read-only.
97324         * modules/argz: Likewise.
97325         * modules/arpa_inet: Likewise.
97326         * modules/byteswap: Likewise.
97327         * modules/configmake: Likewise.
97328         * modules/fcntl: Likewise.
97329         * modules/fnmatch: Likewise.
97330         * modules/getopt: Likewise.
97331         * modules/glob: Likewise.
97332         * modules/inttypes: Likewise.
97333         * modules/netinet_in: Likewise.
97334         * modules/poll: Likewise.
97335         * modules/stdbool: Likewise.
97336         * modules/stdint: Likewise.
97337         * modules/sys_select: Likewise.
97338         * modules/sys_socket: Likewise.
97339         * modules/sys_stat: Likewise.
97340         * modules/sysexits: Likewise.
97341         * modules/localcharset: Same as above, but continue using temporary
97342         file named "t-$@" (why different?) rather than the "$@-t" used
97343         everywhere else.
97345         * modules/sysexits (Makefile.am): Replace literal occurrences
97346         of "sysexit.h" more readable, and more consistent, "$@".
97348 2006-09-06  Bruno Haible  <bruno@clisp.org>
97350         * modules/striconv: New file.
97351         * modules/xstriconv: New file.
97352         * MODULES.html.sh (Internationalization functions): Add striconv,
97353         xstriconv.
97355 2006-09-06  Bruno Haible  <bruno@clisp.org>
97357         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
97358         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
97359         not using libtool correctly.
97361 2006-09-06  Bruno Haible  <bruno@clisp.org>
97363         * lib/striconv.h: New file.
97364         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
97365         iconvstring.c.
97366         * lib/xstriconv.h: New file.
97367         * lib/xstriconv.c: New file.
97369 2006-09-06  Bruno Haible  <bruno@clisp.org>
97371         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
97372         lib_..._LDFLAGS.
97374 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97376         * lib/argz_.h: Sync from Libtool.
97378         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
97379                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
97381         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
97383 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97385         * modules/trim: New file.
97387 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97389         * lib/trim.h: New file.
97390         * lib/trim.c: New file.
97392 2006-09-05  Bruno Haible  <bruno@clisp.org>
97394         * MODULES.html.sh (String handling): Add trim.
97396 2006-09-04  Karl Berry  <karl@gnu.org>
97398         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
97399         until next release.
97401 2006-09-03  Bruno Haible  <bruno@clisp.org>
97403         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
97404         correctly.
97406 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97408         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
97409         not gl_GETLOADAVG.  Omit unneeded semicolons.
97410         Problems reported by Ralf Wildenhues in
97411         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97412         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
97413         at the end, which is the usual gnulib style.
97415         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
97416         of doing all the work ourselves.
97417         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
97418         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
97420 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97422         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
97423         Problem reported by Ralf Wildenhues in
97424         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97426         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
97427         HAVE_STRUCT_STATFS_F_FSTYPENAME.
97429 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97431         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
97432         yesterday's patch by changing test -n to test -z.
97434 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97436         * modules/getloadavg (Files): Add m4/getloadavg.m4.
97437         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
97438         the former is now obsolescent.
97440         * modules/chdir-long (Depends-on): Add fcntl.
97442 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97444         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
97445         obsolescent, and programs should use gnulib instead.
97446         * m4/getloadavg.m4: New file, with contents taken from Autoconf
97447         but with prefixes changed.
97449 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97451         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
97452         or stdbool.h, because they might not exist while configuring.
97454         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
97455         Don't include unistd.h or limits.h; not needed, since chdir-long.h
97456         does that for us.
97457         (O_DIRECTORY): Remove.
97459 2006-08-31  Eric Blake  <ebb9@byu.net>
97461         * gnulib-tool: Don't let emacs change spaces to TAB.
97463 2006-08-31  Bruno Haible  <bruno@clisp.org>
97465         * gnulib-tool: When calling func_import more than once, do it in a
97466         subshell.
97467         Reported by Eric Blake <ebb9@byu.net>.
97469 2006-08-31  Bruno Haible  <bruno@clisp.org>
97471         * gnulib-tool (nl): Remove variable.
97472         (sed_transform_lib_file): Use more robust test for config-h module.
97473         (func_import): Fix typo in 2006-08-25 patch.
97475 2006-08-31  Bruno Haible  <bruno@clisp.org>
97477         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
97478         specified, augment Makefile.am variables instead of assigning them.
97480 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97482         Work around a bug in both the Linux and SunOS 64-bit kernels:
97483         nanosleep mishandles sleeps for longer than 2**31 seconds.
97484         Problem reported by Frank v Waveren in
97485         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
97486         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
97487         Check for nanosleep bug.
97488         (LIB_NANOSLEEP): Append clock_gettime library if needed.
97490 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97492         Work around a bug in both the Linux and SunOS 64-bit kernels:
97493         nanosleep mishandles sleeps for longer than 2**31 seconds.
97494         Problem reported by Frank v Waveren in
97495         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
97496         * lib/nanosleep.c (BILLION): New constant.
97497         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
97498         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
97499         implementation.
97501 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97503         * modules/nanosleep (Depends-on): Add gettime.
97505 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97506         and Simon Josefsson  <jas@extundo.com>
97507         and Oskar Liljeblad  <oskar@osk.mine.nu>
97509         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
97510         * gnulib-tool (func_import): New license type 'unmodifiable license
97511         text'.
97512         * modules/fdl: Use it.  Longer description.
97513         * module/gpl, module/lgpl: New files.
97515 2006-08-30  Jim Meyering  <jim@meyering.net>
97517         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
97518         shadowing the parameter.
97520 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97522         Sync from Libtool:
97524         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97526         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
97527         sharing with gnulib.  Report by Eric Blake.
97529 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97531         * modules/isapipe: New file.
97532         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
97534 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97536         * modules/configmake (Makefile.am): Add a comment, and omit
97537         the CONFIGMAKE_ prefix from generated macro names.  Suggested
97538         by Bruno Haible.
97540 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97542         * m4/isapipe.m4: New file.
97544 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97546         * lib/isapipe.c, lib/isapipe.h: New files.
97548 2006-08-29  Jim Meyering  <jim@meyering.net>
97550         * modules/configmake (Makefile.am): Make configmake.h depend on
97551         Makefile.  Otherwise, a stale configmake.h could hang around.
97553 2006-08-29  Eric Blake  <ebb9@byu.net>
97555         * lib/error.c (error_at_line, print_errno_message): Match libc, after
97556         resolution of upstream bug 3044.
97558 2006-08-29  Bruno Haible  <bruno@clisp.org>
97560         * modules/localcharset (Depends-on): Add configmake.
97561         (Makefile.am): Remove setting of LIBDIR through DEFS.
97563 2006-08-29  Bruno Haible  <bruno@clisp.org>
97565         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
97566         defined.
97568 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97570         * modules/fcntl: New file.
97571         * modules/chdir-safer (Depends-on): Add fcntl.
97572         * modules/fts: Likewise.
97573         * modules/mkdir-p: Likewise.
97575         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
97576         This undoes the most recent change, since we're now addressing the
97577         problem in a different way.
97579         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
97580         into output, since the output might be called Makefile.am even
97581         if $makefile_name is something different.
97582         (func_import): Use $makefile_am rather than
97583         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
97584         empty.
97586         * modules/inttypes (Files): Add m4/inttypes-h.m4.
97588 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97590         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
97591         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
97592         recent change to stdint.m4, since we're now addressing the problem in a
97593         different way.
97595 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97597         * m4/fcntl_h.m4: New file.
97599 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97601         * lib/fcntl_.h: New file.
97602         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
97603         the fcntl module.
97604         * lib/dirchownmod.c: Likewise.
97605         * lib/fts.c: Likewise.
97607         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
97608         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
97609         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
97610         just before including <inttypes.h>, to avoid circular inclusion.
97612 2006-08-28  Jim Meyering  <jim@meyering.net>
97614         * doc/visibility.texi: Actually read and correct the grammar of the
97615         sentence affected by yesterday's change.
97617 2006-08-28  Eric Blake  <ebb9@byu.net>
97619         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
97620         needs wrapper.
97622 2006-08-28  Eric Blake  <ebb9@byu.net>
97624         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
97626 2006-08-28  Eric Blake  <ebb9@byu.net>
97628         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
97630 2006-08-28  Bruno Haible  <bruno@clisp.org>
97632         * modules/c-strstr: New file, from GNU gettext.
97633         * MODULES.html.sh (String handling): Add c-strstr.
97635 2006-08-28  Bruno Haible  <bruno@clisp.org>
97637         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
97638         macros.
97639         Reported by Eric Blake.
97641 2006-08-28  Bruno Haible  <bruno@clisp.org>
97643         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
97644         (VASNPRINTF): Return a string of length > INT_MAX without failing.
97645         * lib/vasprintf.c: Include errno.h, limits.h.
97646         (EOVERFLOW): New fallback definition.
97647         (vasprintf): Test here whether the string length is > INT_MAX.
97648         * lib/vsnprintf.c: Include errno.h, limits.h.
97649         (EOVERFLOW): New fallback definition.
97650         (vsnprintf): Fix bug when generated string was too long for the buffer.
97651         Test here whether the string length is > INT_MAX.
97653 2006-08-28  Bruno Haible  <bruno@clisp.org>
97655         * lib/inttypes_.h (SCNX*): Remove definitions.
97656         Reported by Eric Blake.
97658 2006-08-28  Bruno Haible  <bruno@clisp.org>
97660         * lib/c-strstr.h: New file, from GNU gettext.
97661         * lib/c-strstr.c: New file, from GNU gettext.
97663 2006-08-28  Bruno Haible  <bruno@clisp.org>
97665         * gnulib-tool: Reorder some statements.
97667 2006-08-28  Bruno Haible  <bruno@clisp.org>
97669         * gnulib-tool: New option --makefile-name.
97670         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
97671         $makefile_name.
97672         (func_import): Write $makefile_name to the cache file, and read it from
97673         there unless explicitly specified. Use $makefile_name as file name
97674         instead of Makefile.am. Adjust the recommendations accordingly.
97676 2006-08-28  Bruno Haible  <bruno@clisp.org>
97678         * gnulib-tool (func_verify_module): Check against misapplying patch.
97680 2006-08-28  Bruno Haible  <bruno@clisp.org>
97682         * gnulib-tool (func_relativize, func_relconcat): New functions.
97683         Give an error if --local-dir is given with --update.
97684         Remove trailing slashes from $local_gnulib_dir.
97685         (func_import): Store the relativized $local_gnulib_dir in
97686         gnulib-cache.m4, and read it from there if not specified explicitly.
97688 2006-08-28  Bruno Haible  <bruno@clisp.org>
97690         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
97691         is the current directory. Respect also $local_gnulib_dir.
97693 2006-08-28  Bruno Haible  <bruno@clisp.org>
97694             Simon Josefsson  <jas@extundo.com>
97696         BeOS portability.
97697         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
97699 2006-08-27  Jim Meyering  <jim@meyering.net>
97701         * doc/visibility.texi: Remove duplicate word: "pointer".
97703 2006-08-26  Bruno Haible  <bruno@clisp.org>
97705         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
97706         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
97707         (Makefile.am): Create inttypes.h from inttypes_.h.
97708         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
97710         * modules/imaxabs: New file.
97712         * modules/imaxdiv: New file.
97714 2006-08-26  Bruno Haible  <bruno@clisp.org>
97716         * m4/inttypes.m4: New file.
97717         * m4/_inttypes_h.m4: Remove file.
97718         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
97719         PRI_MACROS_BROKEN.
97720         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
97722         * m4/imaxabs.m4: New file.
97724         * m4/imaxdiv.m4: New file.
97726 2006-08-26  Bruno Haible  <bruno@clisp.org>
97728         * lib/inttypes_.h: New file.
97729         * lib/inttypes.h: Remove file.
97730         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
97732         * lib/imaxabs.c: New file.
97734         * lib/imaxdiv.c: New file.
97736 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97738         New config-h module, so that "make" output needn't be cluttered
97739         by -DHAVE_CONFIG_H.
97740         * MODULES.html.sh (Support for building libraries and executables):
97741         Add config-h.
97742         * modules/config-h: New file.
97743         * gnulib-tool (nl, sed_transform_lib_file): New vars.
97744         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
97745         the config-h module is used.
97747         New configmake module, so that "make" output needn't be cluttered
97748         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
97749         * MODULES.html.sh (Support for building libraries and executables):
97750         Add configmake.
97751         * modules/configmake: New file.
97753 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97755         * m4/config-h.m4: New file.
97757 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97759         * config/srclist.txt: Add elisp-comp.
97761 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97763         * MODULES.html.sh (Support for building libraries and executables):
97764         Add elisp-comp.
97765         * build-aux/elisp-comp: New file.
97766         * modules/elisp-comp: New file.
97768 2006-08-24  Bruno Haible  <bruno@clisp.org>
97770         * gnulib-tool (func_create_testdir): Use non-default values of
97771         sourcebase and m4base.
97773 2006-08-24  Bruno Haible  <bruno@clisp.org>
97775         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
97776         HTML structure.
97778 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
97780         * modules/openat (Depends-on): Add lchown.
97782 2006-08-23  Bruno Haible  <bruno@clisp.org>
97784         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
97785         of gl_LOCK_EARLY instead of gl_LOCK.
97787 2006-08-23  Bruno Haible  <bruno@clisp.org>
97789         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
97790         on OSF/1 to no.
97791         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
97793 2006-08-23  Bruno Haible  <bruno@clisp.org>
97795         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
97796         as unusable.
97798         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
97799         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
97800         (gl_LOCK): New macro.
97802 2006-08-22  Simon Josefsson  <jas@extundo.com>
97804         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
97805         to md5 module.
97807 2006-08-22  Simon Josefsson  <jas@extundo.com>
97809         * MODULES.html.sh: Add "Support for maintaining and release
97810         projects".
97812         * build-aux/gnupload: New file, from coreutils.
97814 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
97816         Avoid the need for AC_LIBSOURCES in m4 macros.
97817         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
97818         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
97819         * modules/check-version (EXTRA_DIST): Add check-version.h.
97820         * modules/crc (EXTRA_DIST): Add crc.h.
97821         * modules/des (EXTRA_DIST): Add des.h.
97822         * modules/gc (EXTRA_DIST): Add gc.h.
97823         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
97824         * modules/getline (EXTRA_DIST): Add getline.h.
97825         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
97826         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
97827         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
97828         * modules/md2 (EXTRA_DIST): Add md2.h.
97829         * modules/md4 (EXTRA_DIST): Add md4.h.
97830         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
97831         * modules/read-file (EXTRA_DIST): Add read-file.h.
97832         * modules/readline (EXTRA_DIST): Add readline.h.
97833         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
97834         rijndael-api-fst.h.
97836 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
97838         * m4/rijndael.m4 (gl_ARCFOUR):
97839         * m4/arctwo.m4 (gl_ARCTWO):
97840         * m4/check-version.m4 (gl_CHECK_VERSION):
97841         * m4/crc.m4 (gl_CRC):
97842         * m4/des.m4 (gl_DES):
97843         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
97844         * m4/gc.m4 (gl_GC):
97845         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
97846         * m4/getline.m4 (gl_FUNC_GETLINE):
97847         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
97848         * m4/hmac-md5.m4 (gl_HMAC_MD5):
97849         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
97850         * m4/md2.m4 (gl_MD2):
97851         * m4/md4.m4 (gl_MD4):
97852         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
97853         * m4/read-file.m4 (gl_FUNC_READ_FILE):
97854         * m4/readline.m4 (gl_FUNC_READLINE):
97855         * m4/rijndael.m4 (gl_RIJNDAEL):
97856         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
97857         to get the necessary .h files and whatnot.
97859 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
97861         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
97862         gnulib rather than the other way around.
97863         * config/srclistvars.sh (COREUTILS): Remove.
97865 2006-08-22  Jim Meyering  <jim@meyering.net>
97867         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
97869         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
97871 2006-08-22  Eric Blake  <ebb9@byu.net>
97873         * modules/regexprops-generic: New file.
97874         * MODULES.html.sh (Support for building documentation): List it.
97876 2006-08-22  Eric Blake  <ebb9@byu.net>
97878         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
97879         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
97880         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
97881         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
97883 2006-08-22  Bruno Haible  <bruno@clisp.org>
97885         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
97886         and lib_LTLIBRARIES like the other lib_* variables.
97888 2006-08-22  Bruno Haible  <bruno@clisp.org>
97890         * build-aux/x-to-1.in: New file, from GNU gettext.
97892 2006-08-22  Bruno Haible  <bruno@clisp.org>
97894         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
97895         <utmpx.h> exists.
97897 2006-08-22  Bruno Haible  <bruno@clisp.org>
97899         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
97900         <utmpx.h> exists.
97902 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
97904         BeOS portability.
97905         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
97906         exist.
97907         Problem reported by Bruno Haible.
97909 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
97911         Avoid the need for AC_LIBSOURCES in m4 macros.
97912         * modules/acl (EXTRA_DIST): Add acl.h.
97913         * modules/argmatch (Files): Add m4/argmatch.m4.
97914         (configure.ac): Add gl_ARGMATCH.
97915         (EXTRA_DIST): Renamed from lib_SOURCES, for
97916         consistency with the other modules.  Remove argmatch.c.
97917         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
97918         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
97919         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
97920         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
97921         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
97922         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
97923         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
97924         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
97925         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
97926         * modules/closeout (EXTRA_DIST): Add closeout.h.
97927         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
97928         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
97929         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
97930         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
97931         dirname.h; remove basename.c and stripslash.c.
97932         * modules/exclude (EXTRA_DIST): Add exclude.h.
97933         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
97934         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
97935         * modules/file-type (EXTRA_DIST): Add file-type.h.
97936         * modules/filemode (EXTRA_DIST): Add filemode.h.
97937         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
97938         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
97939         * modules/fpending (EXTRA_DIST): Add __fpending.h.
97940         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
97941         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
97942         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
97943         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
97944         * modules/getdate (EXTRA_DIST): Add getdate.c.
97945         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
97946         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
97947         * modules/getpass (EXTRA_DIST): Add getpass.h.
97948         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
97949         * modules/group-member (EXTRA_DIST): Add group-member.h.
97950         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
97951         * modules/hash (EXTRA_DIST): Add hash.h.
97952         * modules/human (EXTRA_DIST): Add human.h.
97953         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
97954         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
97955         * modules/lchown (EXTRA_DIST): Add lchown.h.
97956         * modules/long-options (EXTRA_DIST): Add long-options.h.
97957         * modules/lstat (EXTRA_DIST): Add lstat.h.
97958         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
97959         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
97960         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
97961         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
97962         * modules/memxor (EXTRA_DIST): Add memxor.h.
97963         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
97964         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
97965         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
97966         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
97967         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
97968         * modules/physmem (EXTRA_DIST): Add physmem.h.
97969         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
97970         * modules/posixver (EXTRA_DIST): Add posixver.h.
97971         * modules/quote (EXTRA_DIST): Add quote.h.
97972         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
97973         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
97974         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
97975         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
97976         regex_internal.h regexec.c.
97977         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
97978         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
97979         * modules/same (EXTRA_DIST): Add same.h.
97980         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
97981         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
97982         * modules/savedir (EXTRA_DIST): Add savedir.h.
97983         * modules/sha1 (EXTRA_DIST): Add sha1.h.
97984         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
97985         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
97986         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
97987         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
97988         * modules/strdup (EXTRA_DIST): Add strdup.h.
97989         * modules/strftime (EXTRA_DIST): Add strftime.h.
97990         * modules/strndup (EXTRA_DIST): Add strndup.h.
97991         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
97992         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
97993         * modules/time_r (EXTRA_DIST): Add time_r.h.
97994         * modules/timespec (EXTRA_DIST): Add timespec.h.
97995         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
97996         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
97997         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
97998         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
97999         * modules/userspec (EXTRA_DIST): Add userspec.h.
98000         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
98001         * modules/utimens (EXTRA_DIST): Add utimens.h.
98002         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
98003         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
98004         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
98005         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
98006         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
98007         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
98008         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
98009         * modules/yesno (EXTRA_DIST): Add yesno.h.
98011 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98013         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
98015         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
98016         * m4/dev-ino.m4, same-inode.m4: Remove.
98018         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
98019         * m4/acl.m4 (AC_FUNC_ACL):
98020         * m4/backupfile.m4 (gl_BACKUPFILE):
98021         * m4/c-strtod.m4 (gl_C99_STRTOLD):
98022         * m4/canon-host.m4 (gl_CANON_HOST):
98023         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
98024         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
98025         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
98026         * m4/cloexec.m4 (gl_CLOEXEC):
98027         * m4/close-stream.m4 (gl_CLOSE_STREAM):
98028         * m4/closeout.m4 (gl_CLOSEOUT):
98029         * m4/dirfd.m4 (gl_FUNC_DIRFD):
98030         * m4/dirname.m4 (gl_DIRNAME):
98031         * m4/exclude.m4 (gl_EXCLUDE):
98032         * m4/exitfail.m4 (gl_EXITFAIL):
98033         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
98034         * m4/file-type.m4 (gl_FILE_TYPE):
98035         * m4/filemode.m4 (gl_FILEMODE):
98036         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
98037         * m4/fpending.m4 (gl_FUNC_FPENDING):
98038         * m4/fprintftime.m4 (gl_FPRINTFTIME):
98039         * m4/fts.m4 (gl_FUNC_FTS):
98040         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
98041         * m4/getdate.m4 (gl_GETDATE):
98042         * m4/gethrxtime.m4 (gl_GETHRXTIME):
98043         * m4/getpagesize.m4 (gl_GETPAGESIZE):
98044         * m4/getpass.m4 (gl_FUNC_GETPASS):
98045         * m4/gettime.m4 (gl_GETTIME):
98046         * m4/getugroups.m4 (gl_GETUGROUPS):
98047         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
98048         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
98049         * m4/hard-locale.m4 (gl_HARD_LOCALE):
98050         * m4/hash.m4 (gl_HASH):
98051         * m4/idcache.m4 (gl_IDCACHE):
98052         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
98053         * m4/lchown.m4 (gl_FUNC_LCHOWN):
98054         * m4/long-options.m4 (gl_LONG_OPTIONS):
98055         * m4/lstat.m4 (gl_FUNC_LSTAT):
98056         * m4/md5.m4 (gl_MD5):
98057         * m4/memcasecmp.m4 (gl_MEMCASECMP):
98058         * m4/memcoll.m4 (gl_MEMCOLL):
98059         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
98060         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
98061         * m4/memxor.m4 (gl_MEMXOR):
98062         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
98063         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
98064         * m4/modechange.m4 (gl_MODECHANGE):
98065         * m4/mountlist.m4 (gl_MOUNTLIST):
98066         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
98067         * m4/openat.m4 (gl_FUNC_OPENAT):
98068         * m4/pathmax.m4 (gl_PATHMAX):
98069         * m4/physmem.m4 (gl_PHYSMEM):
98070         * m4/posixtm.m4 (gl_POSIXTM):
98071         * m4/posixver.m4 (gl_POSIXVER):
98072         * m4/quote.m4 (gl_QUOTE):
98073         * m4/quotearg.m4 (gl_QUOTEARG):
98074         * m4/readtokens.m4 (gl_READTOKENS):
98075         * m4/readutmp.m4 (gl_READUTMP):
98076         * m4/regex.m4 (gl_REGEX):
98077         * m4/safe-read.m4 (gl_SAFE_READ):
98078         * m4/safe-write.m4 (gl_SAFE_WRITE):
98079         * m4/same.m4 (gl_SAME):
98080         * m4/save-cwd.m4 (gl_SAVE_CWD):
98081         * m4/savedir.m4 (gl_SAVEDIR):
98082         * m4/settime.m4 (gl_SETTIME):
98083         * m4/sha1.m4 (gl_SHA1):
98084         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
98085         * m4/stat-macros.m4 (gl_STAT_MACROS):
98086         * m4/stat-time.m4 (gl_STAT_TIME):
98087         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
98088         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
98089         * m4/strdup.m4 (gl_FUNC_STRDUP):
98090         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
98091         * m4/strndup.m4 (gl_FUNC_STRNDUP):
98092         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
98093         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
98094         * m4/time_r.m4 (gl_TIME_R):
98095         * m4/timespec.m4 (gl_TIMESPEC):
98096         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
98097         * m4/unlinkdir.m4 (gl_UNLINKDIR):
98098         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
98099         * m4/userspec.m4 (gl_USERSPEC):
98100         * m4/utimecmp.m4 (gl_UTIMECMP):
98101         * m4/utimens.m4 (gl_UTIMENS):
98102         * m4/xalloc.m4 (gl_XALLOC):
98103         * m4/xgetcwd.m4 (gl_XGETCWD):
98104         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
98105         * m4/xreadlink.m4 (gl_XREADLINK):
98106         * m4/xstrtod.m4 (gl_XSTRTOD):
98107         * m4/yesno.m4 (gl_YESNO):
98108         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
98109         to get the necessary .h files and whatnot.
98111 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
98112             Bruno Haible  <bruno@clisp.org>
98114         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
98115         /bin/sh understanding of '!' conditional negation.
98117 2006-08-21  Jim Meyering  <jim@meyering.net>
98119         * modules/openat (Depends-on): Really alphabetize.
98121         * modules/acl (Depends-on): Add error and quote.
98123         * check-module (find_included_lib_files): Add at-func.c to the
98124         ok-to-include-more-than-once white list.
98126         * modules/openat (Depends-on): Add lstat.  Alphabetize.
98128 2006-08-21  Bruno Haible  <bruno@clisp.org>
98130         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98131         Emit a pkgdata_DATA variable only if some snippets add contents to it.
98132         Reported by Martin Lambers <marlam@marlam.de>.
98134 2006-08-21  Bruno Haible  <bruno@clisp.org>
98136         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
98137         specify an installation location, don't emit a noinst_LIBRARIES or
98138         noinst_LTLIBRARIES assignment.
98140 2006-08-21  Bruno Haible  <bruno@clisp.org>
98142         BeOS portability.
98143         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
98144         BeOS has mbrtowc() but no <wctype.h>.
98146 2006-08-21  Bruno Haible  <bruno@clisp.org>
98148         BeOS portability.
98149         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
98150         exist.
98152 2006-08-21  Bruno Haible  <bruno@clisp.org>
98154         BeOS portability.
98155         * lib/mbchar.h: Include <wctype.h> only if it exists.
98157 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98159         Remove files that are no longer needed by their respective modules.
98160         * m4/obstack.m4: Remove.
98161         * m4/strerror_r.m4: Remove.
98162         * m4/uint32_t.m4: Remove.
98163         * m4/uintptr_t.m4: Remove.
98164         * m4/ullong_max.m4: Remove.
98165         * m4/xstrtoimax.m4: Remove.
98166         * m4/xstrtoumax.m4: Remove.
98168         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
98169         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
98170         dependencies now capture this.
98172         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
98173         Do not use AC_LIBSOURCES, since gnulib modules now do this.
98174         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
98175         * m4/human.m4 (gl_HUMAN): Likewise.
98176         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
98177         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
98179         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
98181         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
98182         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
98183         stdint.
98184         * m4/human.m4 (gl_HUMAN): Likewise.
98185         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
98186         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
98187         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
98188         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
98189         * m4/xstrtol (gl_XSTRTOL): Likewise.
98191         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
98192         AC_TYPE_LONG_LONG_INT.
98193         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
98194         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
98195         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
98196         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
98198         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
98199         on stdbool.
98201         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
98202         (gl_PREREQ_XSTRTOUL): Remove.
98204         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
98206         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
98207         mode.
98209 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98211         Add and change modules to make it easier for coreutils to use
98212         gnulib-tool.
98213         * modules/backupfile (Files): Remove m4/d-ino.m4.
98214         (Depends-on): Add d-ino.
98215         * modules/cycle-check (Depends-on): Add stdint.
98216         (lib_SOURCES): Add cycle-check.h.
98217         * modules/d-ino: New module.
98218         * modules/d-type: New module.
98219         * modules/error (Files): Remove m4/strerror_r.m4.
98220         * modules/filemode (Files): Add m4/st_dm_mode.m4.
98221         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
98222         m4/inttypes_h.m4, m4/uintmax_t.m4.
98223         (Depends-on): Add stdint.
98224         (lib_SOURCES): Add fsusage.h.
98225         * modules/getcwd (Files): Remove d-ino.m4.
98226         (Depends-on): Add d-ino.
98227         * modules/getndelim2 (Depends-on): Add stdint.
98228         * modules/glob (Files): Remove m4/d-type.m4.
98229         (Depends-on): Add d-type.
98230         * modules/host-os: New module.
98231         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
98232         m4/inttypes_h.m4, m4/uintmax_t.m4.
98233         * Depends-on: Add stdint.
98234         (lib_SOURCES): Add human.h.
98235         * modules/inttostr (Files): Remove m4/intmax_t.m4,
98236         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
98237         m4/uintmax_t.m4, m4/ulonglong.m4.
98238         (Depends-on): Add stdint.
98239         (EXTRA_DIST): Add inttostr.h.
98240         * modules/lchmod: New module.
98241         * modules/link-follow: New module.
98242         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
98243         (Depends-on): Add lchmod.
98244         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
98245         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
98246         (Depends-on): Add stdint.
98247         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
98248         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
98249         (Depends-on): Add stdint.
98250         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
98251         * modules/perl: New module.
98252         * modules/regex (Depends-on): Add stdint.
98253         * modules/rmdir-errno: New module.
98254         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98255         m4/intmax_t.m4.
98256         (Depends-on): Add stdint.
98257         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98258         m4/uintmax_t.m4.
98259         (Depends-on): Add stdint.
98260         * modules/unlink-busy: New module.
98261         * modules/utimecmp (Depends-on): Add stdint.
98262         * modules/uptime: New module.
98263         * modules/winsz-ioctl: New module.
98264         * modules/winsz-termios: New module.
98265         * modules/xnanosleep (Depends-on): Add nanosleep.
98266         * modules/ullong_max: Remove.
98267         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
98268         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
98269         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
98270         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
98271         (Depends-on): Add inttypes.
98272         (lib_SOURCES): Add xstrtol.h.
98273         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
98274         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
98275         * MODULES.html.sh: Move 'assert' into the assert section.
98276         Move 'dummy' into the linking section.
98277         Remove ullong_max.
98278         Add section for compatibility checks for POSIX:2001 functions,
98279         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
98280         winsz-ioctl, and winsz-termios into it.
98281         Add lchmod.
98282         Add top-level Misc section and put host-os, perl, and uptime
98283         into it.
98285 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98287         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
98288         now assume the stdint module.  Do not include inttypes.h.
98289         * lib/fsusage.h: Likewise.
98290         * lib/getndelim2.c: Likewise.
98291         * lib/human.h: Likewise.
98292         * lib/inttostr.h: Likewise.
98293         * lib/obstack.c: Likewise.
98294         * lib/regex_internal.h: Likewise.
98295         * lib/tempname.c: Likewise.
98296         * lib/utimecmp.c: Likewise.
98297         * lib/xstrtol.h: Likewise.
98299         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
98301         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
98302         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
98303         * lib/xtime.h: Likewise.
98305 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98307         * modules/openat (Files): Add lib/fchmodat.c.
98308         Fixes problem reported by Jay Youngman.
98310 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98312         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
98313         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
98315 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
98316             Bruno Haible  <bruno@clisp.org>
98318         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
98319         and is a script that invokes bison. Tighten the code. Add comments.
98321 2006-08-18  Jim Meyering  <jim@meyering.net>
98323         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
98324         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
98325         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
98326         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
98328 2006-08-18  Bruno Haible  <bruno@clisp.org>
98330         * modules/bison-i18n: New file.
98331         * MODULES.html.sh (Internationalization functions): Add it.
98333 2006-08-18  Bruno Haible  <bruno@clisp.org>
98335         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
98336         sys/statvfs.h. When getmntinfo was found, check its declaration and
98337         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
98339 2006-08-18  Bruno Haible  <bruno@clisp.org>
98341         * m4/bison-i18n.m4: New file, from bison.
98343 2006-08-18  Bruno Haible  <bruno@clisp.org>
98345         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
98346         (ME_DUMMY): Treat "kernfs" as a dummy.
98347         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
98349 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98351         Update from coreutils.
98353         2006-08-15  Jim Meyering  <jim@meyering.net>
98355         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
98357         2006-01-17  Jim Meyering  <jim@meyering.net>
98359         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
98361         2006-01-11  Jim Meyering  <jim@meyering.net>
98363         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
98364         Check for the lchmod function.
98366 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98368         Update from coreutils.
98370         * lib/__fpending.h: Add copyright notice.
98371         * lib/fprintftime.h: Likewise.
98372         * lib/savedir.c: Use (C) in copyright notice.
98373         * lib/savedir.h: Likewise.
98375         2006-08-15  Jim Meyering  <jim@meyering.net>
98377         * lib/at-func.c: New file, with the logic of all emulated at-functions.
98378         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
98379         in support of the EXPECTED_ERRNO macro.
98380         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
98381         definitions.  Instead, define the appropriate symbols and include
98382         "at-func.c".
98383         * lib/mkdirat.c (mkdirat): Likewise.
98384         * lib/fchmodat.c (fchmodat): Likewise.
98385         (ENOSYS): Remove definition.
98386         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
98387         it.  Don't include "unistd--.h" -- it wasn't ever used.
98389         2006-01-17  Jim Meyering  <jim@meyering.net>
98391         Rewrite fts.c not to change the current working directory,
98392         by using openat, fstatat, fdopendir, etc..
98394         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
98395         (HAVE_OPENAT_SUPPORT): Define.
98396         [_LIBC] (fchdir): Don't undef or define; no longer used.
98397         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
98398         Now, this `function' always succeeds, and consumes its file descriptor
98399         parameter -- so callers must not close such FDs.  Update callers.
98400         (diropen_fd, opendirat, cwd_advance_fd): New functions.
98401         (diropen): Add parameter, SP.  Adjust all callers.
98402         Implement using diropen_fd, rather than open.
98403         (fts_open): Initialize new member, fts_cwd_fd.
98404         Remove fts_rft-setting code.
98405         (fts_close): Close fts_cwd_fd, if necessary.
98406         (__opendir2): Define in terms of opendir or opendirat,
98407         depending on whether the FST_NOCHDIR flag is set.
98408         (fts_build): Since fts_safe_changedir consumes its FD, and since
98409         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
98410         and close the dup'd file descriptor upon failure.
98411         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
98412         (fts_safe_changedir): Tweak semantics to reflect that this function
98413         now calls cwd_advance_fd and hence consumes its FD argument.
98414         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
98415         [struct FTS] (fts_rft): Remove now-unused member.
98416         [struct FTS] (fts_cycle.state): Improve comment.
98418         * lib/openat.c (openat_needs_fchdir): New function.
98419         * lib/openat.h (openat_needs_fchdir): Declare it.
98421 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
98423         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
98424         Problem and fix reported by Pádraig Brady in
98425         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
98427 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98429         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
98431 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98433         * lib/memcoll.c (memcoll): Optimize for the common case where the
98434         arguments are bytewise equal.
98436 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98438         * doc/regexprops-generic.texi: Add a copyright notice.
98440 2006-08-15  Bruno Haible  <bruno@clisp.org>
98442         * modules/tmpdir (License): Change to LGPL.
98444 2006-08-15  Bruno Haible  <bruno@clisp.org>
98446         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
98447         module.
98449 2006-08-14  Simon Josefsson  <jas@extundo.com>
98451         * config/srclist.txt: Add gnupload.
98453 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98455         Change copyright notice from LGPL 2 to GPL 2, since that's the
98456         standard form used in the gnulib repository.
98457         * tests/test-lock.c: Likewise.
98458         * tests/test-stdint.c: Likewise.
98459         * tests/test-tls.c: Likewise.
98461         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
98462         prelude-manager.  User shorter URLs for GNU projects, without '?'.
98463         Add copyright notice.
98465         * check-module: Add copyright notice.  Output a copyright
98466         notice if "--version" is specified.
98467         * modules/COPYING: New file.
98468         * tests/test-getaddrinfo.c: Add copyright notice.
98469         * tests/test-verify.c: Likewise.
98471 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98473         Change copyright notice from LGPL 2 to GPL 2, since that's the
98474         standard form used in the gnulib repository.
98475         * lib/lock.c: LGPL -> GPL.
98476         * lib/lock.h: Likewise.
98477         * lib/strnlen1.c: Likewise.
98478         * lib/strnlen1.h: Likewise.
98479         * lib/tls.c: Likewise.
98480         * lib/tls.h: Likewise.
98481         * lib/tmpdir.c: Likewise.
98483         * lib/TODO: Remove; this belongs only in coreutils.
98485 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98487         Add copyright notices to long-enough files that lack them, since
98488         otherwise the files aren't clearly free.  Use the same notice that
98489         getdate.texi already uses.
98490         * doc/alloca-opt.texi: Add copyright notice.
98491         * doc/alloca.texi: Likewise.
98492         * doc/ctime.texi: Likewise.
98493         * doc/functions.texi: Likewise.
98494         * doc/gcd.texi: Likewise.
98495         * doc/gnulib-tool.texi: Likewise.
98496         * doc/inet_ntoa.texi: Likewise.
98497         * doc/visibility.texi: Likewise.
98499         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
98500         * doc/quote.texi: Add copyright notice.
98502         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
98503         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
98504         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
98505         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
98506         is now obsolete, and give a pointer to the Sun list.
98507         Add copyright notice.
98509 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98511         * config/srclistvars.sh: Add copyright notice.
98513 2006-08-14  Eric Blake  <ebb9@byu.net>
98515         Import the following change from libc:
98517         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
98519         Upstream bug 2997.
98520         * lib/misc/error.c: Add space between program name and message if file
98521         name is missing.
98523 2006-08-12  Karl Berry  <karl@gnu.org>
98525         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
98526         remove, these originate in gnulib now.
98528 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98530         * doc/Makefile (standards.info standards.html standards.dvi):
98531         Also depend on make-stds.texi.
98533 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
98535         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
98536         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
98538         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
98539         in wchar_t.  Problem reported by Eric Blake.
98541         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
98542         LEN is smaller than SIZE.  Suggested by Bruno Haible.
98543         Also, help the compiler to keep LEN in a register.
98545 2006-08-11  Eric Blake  <ebb9@byu.net>
98547         * users.txt: Sort.  Add tar.
98549 2006-08-11  Bruno Haible  <bruno@clisp.org>
98551         * users.txt: New file.
98553 2006-08-11  Bruno Haible  <bruno@clisp.org>
98555         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
98556         before <wchar.h>. Needed for OSF/1 and BSD/OS.
98558 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98560         * modules/snprintf (Depends-on): Remove minmax.
98561         (Maintainer): Add self and Bruno.
98563 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98565         * lib/.cppi-disable: Add snprintf.h, socket_.h.
98566         * lib/snprintf.c: Include <errno.h> and <limits.h>.
98567         (EOVERFLOW): Define if the system does not.
98568         Do not include "minmax.h"; it wasn't used.
98569         (snprintf): Don't assume size_t promotes to an unsigned type.
98570         Fix bug when generated string was too long for the buffer: the
98571         buffer's contents are supposed to be the initial prefix of the
98572         output.  Don't assume vasnprintf returns EOVERFLOW if the size
98573         exceeds INT_MAX; do the check ourselves.
98575         Import the following changes from libc:
98577         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
98579         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
98580         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
98581         set wc to the byte which couldn't be converted.
98582         (re_string_reconstruct): Don't clear valid_raw_len before calling
98583         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
98584         tip_context using re_string_context_at.
98586         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
98588         * lib/posix/regex.h: g++ still cannot handled [restrict].
98590         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
98592         * lib/posix/regex.h: Remove special handling for VMS.
98594 2006-08-10  Jim Meyering  <jim@meyering.net>
98596         * modules/same-inode: New module.
98597         * modules/dev-ino: New module.
98598         * modules/cycle-check: Depend on these modules, rather than simply
98599         including their .h files.
98600         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
98601         required via m4/cycle-check.m4.
98602         * modules/same: Depend on new same-inode module, rather than
98603         including same-inode.h.
98604         * modules/chdir-safer: New file.
98606         * modules/chown (Depends-on): Add stat-macros.
98608 2006-08-10  Jim Meyering  <jim@meyering.net>
98610         * m4/cycle-check.m4: New file.
98611         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
98612         * m4/dev-ino.m4, m4/same-inode.m4: New files.
98614 2006-08-10  Eric Blake  <ebb9@byu.net>
98616         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
98617         in from original proposal.
98619 2006-08-10  Eric Blake  <ebb9@byu.net>
98620         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
98622         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
98623         namespace.
98625 2006-08-10  Bruno Haible  <bruno@clisp.org>
98627         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
98628         as well.
98630 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98632         Sync from coreutils.
98634         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
98636         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
98637         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
98639 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98641         * modules/restrict: Remove; no longer needed now that we assume
98642         Autoconf 2.59 or later.
98643         * MODULES.html.sh: Remove 'restrict'.
98644         * modules/argp (Depends-on): Remove 'restrict'.
98645         * modules/base64 (Depends-on): Likewise.
98646         * modules/gc (Depends-on): Likewise.
98647         * modules/getaddrinfo (Depends-on): Likewise.
98648         * modules/glob (Depends-on): Likewise.
98649         * modules/inet_ntop (Depends-on): Likewise.
98650         * modules/inet_pton (Depends-on): Likewise.
98651         * modules/memxor (Depends-on): Likewise.
98652         * modules/regex (Depends-on): Likewise.
98653         * modules/strtok_r (Depends-on): Likewise.
98654         * modules/time_r (Depends-on): Likewise.
98656 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98658         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
98659         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
98660         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
98661         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
98662         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
98663         * m4/memxor.m4 (gl_MEMXOR): Likewise.
98664         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
98665         gl_C_RESTRICT replaced by AC_C_RESTRICT.
98667         Merge from coreutils.
98668         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
98669         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
98670         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
98671         * m4/time_r.m4 (gl_TIME_R): Likewise.
98673 2006-08-09  Karl Berry  <karl@gnu.org>
98675         * config/srclist.txt: no more gettext-tools, per Bruno.
98677 2006-08-08  Eric Blake  <ebb9@byu.net>
98679         * modules/verror: New module.
98680         * MODULES.html.sh: Document it.
98682 2006-08-08  Eric Blake  <ebb9@byu.net>
98684         * lib/verror.h, lib/verror.c: New files.
98686 2006-08-08  Eric Blake  <ebb9@byu.net>
98688         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
98689         verror_at_line output complies with GNU Coding Standards even when
98690         file is NULL.
98692 2006-08-07  Bruno Haible  <bruno@clisp.org>
98694         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
98695         versions of AIX.
98696         Reported by Ralf Wildenhues.
98698 2006-08-07  Bruno Haible  <bruno@clisp.org>
98700         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
98701         in an AC_DEFUN. Needed so that the autoconf snippets can use
98702         AC_REQUIRE.
98704 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98706         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98707         Initialize pkgdata_DATA.
98708         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
98709         overriding it.
98711 2006-08-06  Eric Blake  <ebb9@byu.net>
98713         * lib/error.h: Fold in some upstream changes from glibc.
98714         * lib/error.c: Likewise.
98716 2006-08-04  Bruno Haible  <bruno@clisp.org>
98718         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98719         Make the mostlyclean-local rule depend on mostlyclean-generic.
98720         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
98722 2006-07-31  Bruno Haible  <bruno@clisp.org>
98724         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
98725         <stdlib.h>, <string.h>.
98727 2006-07-30  Bruno Haible  <bruno@clisp.org>
98729         * modules/readlink (License): Change to LGPL.
98731 2006-07-30  Bruno Haible  <bruno@clisp.org>
98733         * modules/javaversion (Makefile.am): Distribute javaversion.java and
98734         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
98735         set PKGDATADIR to point to it.
98737 2006-07-30  Bruno Haible  <bruno@clisp.org>
98739         * modules/csharpexec (configure.ac): Comment out macro invocation.
98740         * modules/javaexec (configure.ac): Likewise.
98741         * modules/javacomp-script (configure.ac): Likewise.
98743         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
98745 2006-07-30  Bruno Haible  <bruno@clisp.org>
98747         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
98748         linked-list.
98750 2006-07-30  Bruno Haible  <bruno@clisp.org>
98752         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
98754 2006-07-30  Bruno Haible  <bruno@clisp.org>
98756         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98757         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
98758         get removed.
98760 2006-07-29  Bruno Haible  <bruno@clisp.org>
98762         Make it possible for gnulib-tool to work with locally modified or
98763         augmented gnulib repositories.
98764         * gnulib-tool (func_usage): Document --local-dir option.
98765         (local_gnulib_dir): New variable.
98766         Handle --local-dir option.
98767         (func_lookup_file): New function.
98768         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
98769         (func_get_description, func_get_filelist, func_get_description,
98770         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
98771         func_get_automake_snippet, func_get_include_directive,
98772         func_get_license, func_get_maintainer): Use func_lookup_file.
98773         (func_import, func_create_testdir): Use func_lookup_file.
98775 2006-07-29  Bruno Haible  <bruno@clisp.org>
98777         * modules/setenv (Depends-on): Add unistd.
98779 2006-07-29  Bruno Haible  <bruno@clisp.org>
98781         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
98783 2006-07-29  Bruno Haible  <bruno@clisp.org>
98785         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
98787 2006-07-29  Bruno Haible  <bruno@clisp.org>
98789         * gnulib-tool (import, update): If there is no Makefile.am, look at
98790         aclocal.m4, instead of bailing out.
98792 2006-07-29  Bruno Haible  <bruno@clisp.org>
98794         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
98795         Categorize the options by when they are useful.
98797 2006-07-29  Bruno Haible  <bruno@clisp.org>
98799         * gnulib-tool (func_usage): Document option --no-libtool.
98800         Handle option --no-libtool.
98801         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
98802         for changed semantics of $libtool variable.
98803         (func_import): Likewise. If libtool is not used, show this through
98804         an option --no-libtool.
98805         (func_create_testdir): Update.
98807 2006-07-29  Bruno Haible  <bruno@clisp.org>
98809         * gnulib-tool (func_import): Extend error message about missing
98810         --doc-base.
98812 2006-07-29  Bruno Haible  <bruno@clisp.org>
98814         * gnulib-tool (func_import): Don't create the $docbase directory if
98815         there is no file to store there.
98817 2006-07-29  Bruno Haible  <bruno@clisp.org>
98819         * gnulib-tool (autoconf_minversion): If a --dir option is given and
98820         relevant, look for configure.ac there, not in the current directory.
98821         Also use a simple search for AC_PREREQ, not "autoconf --trace".
98823 2006-07-29  Bruno Haible  <bruno@clisp.org>
98825         * gnulib-tool (SORT): New variable.
98826         (func_usage): Undocument --assume-autoconf option.
98827         Remove --assume-autoconf option handling.
98828         (autoconf_minversion): Determine from the contents of configure.ac.
98829         (func_import): Remove autoconf_minversion handling.
98830         Suggested by Eric Blake.
98832 2006-07-29  Bruno Haible  <bruno@clisp.org>
98834         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
98836 2006-07-29  Bruno Haible  <bruno@clisp.org>
98838         * config/srclist.txt (*setenv.[ch]): Remove rules.
98840 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98842         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
98844 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98846         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
98847         arpa/inet.h.
98849 2006-07-28  Simon Josefsson  <jas@extundo.com>
98851         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
98852         * modules/inet_pton (Depends-on): Likewise.
98854 2006-07-28  Simon Josefsson  <jas@extundo.com>
98856         * m4/netinet_in_h.m4: New file.
98858 2006-07-28  Simon Josefsson  <jas@extundo.com>
98860         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
98861         #include's.
98863 2006-07-28  Simon Josefsson  <jas@extundo.com>
98865         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
98866         #include's.
98868 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
98870         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
98871         setgid on directories only if they set these bits.
98872         * lib/modechange.h: Remove obsolete comment about masks.
98874 2006-07-28  Eric Blake  <ebb9@byu.net>
98876         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
98877         macro expansion.
98879 2006-07-28  Bruno Haible  <bruno@clisp.org>
98881         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
98883 2006-07-28  Bruno Haible  <bruno@clisp.org>
98885         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
98887 2006-07-28  Bruno Haible  <bruno@clisp.org>
98889         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
98890         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
98891         Define fallbacks.
98892         Avoids link error on FreeBSD 4.x.
98893         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
98895         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
98896         encoding.
98897         * lib/mbswidth.c (iswcntrl): Likewise.
98899 2006-07-27  Bruno Haible  <bruno@clisp.org>
98901         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
98902         test.
98904 2006-07-27  Bruno Haible  <bruno@clisp.org>
98906         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
98907         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
98908         defined.
98910 2006-07-26  Eric Blake  <ebb9@byu.net>
98912         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
98914 2006-07-26  Eric Blake  <ebb9@byu.net>
98916         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
98917         like mingw that lack mkstemp.
98918         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
98919         avoid compilation warning on mingw.
98921 2006-07-26  Bruno Haible  <bruno@clisp.org>
98923         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
98924         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
98925         INT_FAST*_MIN, INTPTR_MIN.
98927 2006-07-25  Bruno Haible  <bruno@clisp.org>
98929         * modules/version-etc (Depends-on): Add stdarg.
98931 2006-07-25  Bruno Haible  <bruno@clisp.org>
98933         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
98934         complex commands.
98936 2006-07-25  Bruno Haible  <bruno@clisp.org>
98938         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
98939         defined in <stdarg.h> or config.h.
98941 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
98943         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
98944         (gl_STDIO_SAFER): Remove.
98946 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
98948         * MODULES.html.sh (File stream based Input/Output):
98949         Add fopen-safer, tmpfile-safer; remove stdio-safer.
98950         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
98951         * modules/fopen-safer, modules/tmpfile-safer: New files.
98952         * modules/stdio-safer: Remove.
98954 2006-07-24  Bruno Haible  <bruno@clisp.org>
98956         * modules/tmpdir: New file.
98957         * MODULES.html.sh (File system functions): Add it.
98959 2006-07-24  Bruno Haible  <bruno@clisp.org>
98961         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
98962         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
98964 2006-07-24  Bruno Haible  <bruno@clisp.org>
98966         * modules/clean-temp: New file.
98968 2006-07-24  Bruno Haible  <bruno@clisp.org>
98970         * m4/tmpdir.m4: New file, from GNU gettext.
98972 2006-07-24  Bruno Haible  <bruno@clisp.org>
98974         * lib/tmpdir.h: New file, from GNU gettext.
98975         * lib/tmpdir.c: New file, from GNU gettext.
98977 2006-07-24  Bruno Haible  <bruno@clisp.org>
98979         * lib/clean-temp.h: New file, from GNU gettext.
98980         * lib/clean-temp.c: New file, from GNU gettext.
98982 2006-07-23  Eric Blake  <ebb9@byu.net>
98984         * modules/stdio-safer (Files): Add tmpfile-safer.c.
98985         (Depends-on): Add binary-io.
98987 2006-07-23  Eric Blake  <ebb9@byu.net>
98989         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
98991 2006-07-23  Eric Blake  <ebb9@byu.net>
98993         * lib/tmpfile-safer.c: New file.
98994         * lib/stdio-safer.h (fopen_safer): Add prototype.
98995         * lib/stdio--.h (tmpfile): Make safer.
98997 2006-07-23  Bruno Haible  <bruno@clisp.org>
98999         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
99000         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
99001         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
99002         gl_linked_remove_at): Use it.
99004 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99005         and Simon Josefsson <jas@extundo.com>
99007         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
99009         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
99011 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99013         * modules/close-stream: New file.
99014         * modules/closeout (Description): Make it clear that it exits
99015         with a diagnostic on error.
99016         (Depends-on): Add close-stream.  Remove fpending, stdbool.
99017         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
99019 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99021         * m4/close-stream.m4: New file.
99023 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99025         * lib/close-stream.c, lib/close-stream.h: New files.
99027 2006-07-22  Bruno Haible  <bruno@clisp.org>
99029         Merge from GNU gettext 0.15.
99031         2006-05-01  Bruno Haible  <bruno@clisp.org>
99033                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
99035         2006-07-22  Bruno Haible  <bruno@clisp.org>
99037                 * modules/javaversion: New file.
99038                 * MODULES.html.sh (Java): Add javaversion.
99040         2006-03-12  Bruno Haible  <bruno@clisp.org>
99042                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
99044         2005-12-04  Bruno Haible  <bruno@clisp.org>
99046                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
99047                 (untested).
99049         2006-06-21  Bruno Haible  <bruno@clisp.org>
99051                 Avoid warnings from recent versions of mcs.
99052                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
99053                 -o, -L, -r any more. Use options documented since mcs-1.0
99054                 instead. Similarly for -g.
99056         2005-12-04  Bruno Haible  <bruno@clisp.org>
99058                 * build-aux/csharpcomp.sh.in: Suffix for resources is
99059                 .resources, not .resource.
99061         2005-07-09  Bruno Haible  <bruno@clisp.org>
99063                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
99064                 add a .dll suffix.
99065                 Reported by Mark Junker <mjscod@gmx.de>.
99067         2006-07-22  Bruno Haible  <bruno@clisp.org>
99069                 * modules/gettext: Upgrade to gettext-0.15.
99070                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
99071                 m4/visibility.m4.
99072                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
99074 2006-07-22  Bruno Haible  <bruno@clisp.org>
99076         Merge from GNU gettext 0.15.
99078         2006-03-25  Bruno Haible  <bruno@clisp.org>
99080                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
99082         2006-07-21  Bruno Haible  <bruno@clisp.org>
99084                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
99085                 "1.1".
99087         2006-05-09  Bruno Haible  <bruno@clisp.org>
99089                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
99090                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
99091                 for the conftestver execution.
99093         2006-05-01  Bruno Haible  <bruno@clisp.org>
99095                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
99096                 optional target-version argument. Verify that the compiler
99097                 groks source of the specified source-version, or add -source
99098                 option as necessary. Verify that the compiler produces
99099                 bytecode in the specified target-version, or add -target and
99100                 -source options as necessary. Make the result of the test
99101                 available as variable CONF_JAVAC. Also log error output in
99102                 config.log.
99104         2006-03-11  Bruno Haible  <bruno@clisp.org>
99106                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
99108         2006-05-09  Bruno Haible  <bruno@clisp.org>
99110                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
99111                 CLASSPATH_SEPARATOR to a semicolon.
99113         2006-03-12  Bruno Haible  <bruno@clisp.org>
99115                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
99116                 available as variable CONF_JAVA, for subsequent autoconf
99117                 tests. Also log error output in config.log.
99119         2006-07-19  Bruno Haible  <bruno@clisp.org>
99121                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
99122                 that getline works on glibc2 systems. Needed to avoid trouble
99123                 in relocatable.c.
99124                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
99126         2005-12-04  Bruno Haible  <bruno@clisp.org>
99128                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
99129                 launcher (untested).
99131         2005-12-04  Bruno Haible  <bruno@clisp.org>
99133                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
99135         2006-07-22  Bruno Haible  <bruno@clisp.org>
99137                 * gettext.m4: Update from GNU gettext-0.15.
99138                 * nls.m4: Likewise.
99139                 * po.m4: Likewise.
99140                 * inttypes-pri.m4: Likewise.
99141                 * inttypes-h.m4: Renamed from inttypes.m4.
99142                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
99144 2006-07-22  Bruno Haible  <bruno@clisp.org>
99146         Merge from GNU gettext 0.15.
99148         2005-07-05  Bruno Haible  <bruno@clisp.org>
99150                 * printf-args.c (printf_fetchargs): Work around broken
99151                 definition of wint_t on mingw.
99153         2005-02-12  Bruno Haible  <bruno@clisp.org>
99155                 * xallocsa.h: Add extern "C" for C++.
99157         2006-05-17  Bruno Haible  <bruno@clisp.org>
99159                 Cygwin portability.
99160                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
99162         2006-04-30  Bruno Haible  <bruno@clisp.org>
99164                 * progreloc.c: Include <mach-o/dyld.h> if available.
99165                 (find_executable): Use _NSGetExecutablePath when possible.
99167         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
99169                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
99170                 function.
99172         2005-12-29  Bruno Haible  <bruno@clisp.org>
99174                 * progreloc.c (set_program_name_and_installdir): Fix
99175                 compilation error.
99177         2005-12-04  Bruno Haible  <bruno@clisp.org>
99179                 Cygwin portability.
99180                 * progreloc.c: Include <windows.h> also on Cygwin.
99181                 (find_executable): Add support for Cygwin.
99182                 (set_program_name_and_installdir): Handle also platforms with
99183                 nonempty EXEEXT.
99185         2006-07-11  Bruno Haible  <bruno@clisp.org>
99187                 * javacomp.c: Fix a comment.
99188                 Reported by Jim Meyering.
99190         2006-04-30  Bruno Haible  <bruno@clisp.org>
99192                 * javacomp.h (compile_java_class): Add source_version,
99193                 target_version arguments.
99194                 * javacomp.c: Rewritten to choose only a compiler that
99195                 respects the specified source_version and target_version.
99197         2006-06-27  Bruno Haible  <bruno@clisp.org>
99199                 Assume correct S_ISDIR macro.
99200                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
99202         2006-07-22  Bruno Haible  <bruno@clisp.org>
99204                 * javaversion.h: New file, from GNU gettext.
99205                 * javaversion.c: New file, from GNU gettext.
99206                 * javaversion.java: New file, from GNU gettext.
99207                 * javaversion.class: New file, from GNU gettext.
99209         2006-05-17  Bruno Haible  <bruno@clisp.org>
99211                 Cygwin portability.
99212                 * javaexec.c (execute_java_class): Test for jview program
99213                 also on Cygwin.
99215         2006-04-09  Bruno Haible  <bruno@clisp.org>
99217                 * fatal-signal.c: Don't include string.h.
99218                 (at_fatal_signal): Use a copying loop instead of memcpy.
99220         2005-12-04  Bruno Haible  <bruno@clisp.org>
99222                 * csharpexec.c: Add support for 'clix' launcher (untested).
99223                 (execute_csharp_using_sscli): New function.
99224                 (execute_csharp_program): Call it.
99226         2006-06-21  Bruno Haible  <bruno@clisp.org>
99228                 Avoid warnings from recent versions of mcs.
99229                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
99230                 -o, -L, -r any more. Use options documented since mcs-1.0
99231                 instead. Similarly for -g.
99233         2005-07-09  Bruno Haible  <bruno@clisp.org>
99235                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
99236                 add a .dll suffix.
99237                 Reported by Mark Junker <mjscod@gmx.de>.
99239         2006-06-17  Bruno Haible  <bruno@clisp.org>
99241                 * config.charset: Update for NetBSD 3.0.
99243         2006-05-17  Bruno Haible  <bruno@clisp.org>
99245                 Cygwin portability.
99246                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
99248         2006-05-16  Bruno Haible  <bruno@clisp.org>
99250                 * localcharset.c [CYGWIN]: Include <windows.h>.
99251                 (get_charset_aliases): For Cygwin, return the same CPxxx
99252                 aliases list as under WIN32.
99253                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
99254                 the environment variables. Fall back to GetACP().
99256         2006-04-05  Bruno Haible  <bruno@clisp.org>
99258                 * config.charset: Update Juan Manuel Guerrero's address.
99260         2005-02-12  Bruno Haible  <bruno@clisp.org>
99262                 * allocsa.h: Add extern "C" for C++.
99264         2005-02-10  Bruno Haible  <bruno@clisp.org>
99266                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
99267                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
99269         2006-07-22  Bruno Haible  <bruno@clisp.org>
99271                 * gettext.h: Update to GNU gettext-0.15.
99273 2006-07-22  Bruno Haible  <bruno@clisp.org>
99275         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
99276         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
99277         lib-prefix.m4, longdouble.m4, ssize_t.m4.
99279 2006-07-21  Eric Blake  <ebb9@byu.net>
99281         * modules/stdlib-safer: New file.
99282         * MODULES.html.sh (File stream based Input/Output): Add
99283         stdlib-safer.
99285 2006-07-21  Eric Blake  <ebb9@byu.net>
99287         * lib/stdlib-safer.h: New file from coreutils, required by
99288         stdlib--.h.
99290 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
99292         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
99294 2006-07-20  Bruno Haible  <bruno@clisp.org>
99296         * gnulib-tool: Recognize new option --assume-autoconf.
99297         (autoconf_minversion): New variable.
99298         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
99300 2006-07-20  Bruno Haible  <bruno@clisp.org>
99302         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
99304 2006-07-19  Derek R. Price  <derek@ximbiot.com>
99306         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
99307         Reindent and repaginate.
99309 2006-07-19  Derek Price  <derek@ximbiot.com>
99311         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
99312         Correct grammar.
99314 2006-07-17  Bruno Haible  <bruno@clisp.org>
99316         * modules/list: New file.
99317         * modules/array-list: New file.
99318         * modules/carray-list, modules/carray-list-tests: New files.
99319         * modules/linked-list, modules/linked-list-tests: New files.
99320         * modules/avltree-list, modules/avltree-list-tests: New files.
99321         * modules/rbtree-list, modules/rbtree-list-tests: New files.
99322         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
99323         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
99324         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
99325         * modules/oset: New file.
99326         * modules/array-oset: New file.
99327         * modules/avltree-oset, modules/avltree-oset-tests: New files.
99328         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
99329         * tests/test-carray_list.c: New file.
99330         * tests/test-linked_list.c: New file.
99331         * tests/test-avltree_list.c: New file.
99332         * tests/test-rbtree_list.c: New file.
99333         * tests/test-linkedhash_list.c: New file.
99334         * tests/test-avltreehash_list.c: New file.
99335         * tests/test-rbtreehash_list.c: New file.
99336         * tests/test-avltree_oset.c: New file.
99337         * tests/test-rbtree_oset.c: New file.
99338         * MODULES.html.sh (Container data structures): New section.
99340 2006-07-17  Bruno Haible  <bruno@clisp.org>
99342         * m4/gl_list.m4: New file.
99344 2006-07-17  Bruno Haible  <bruno@clisp.org>
99346         * lib/gl_list.h: New file.
99347         * lib/gl_list.c: New file.
99348         * lib/gl_array_list.h: New file.
99349         * lib/gl_array_list.c: New file.
99350         * lib/gl_carray_list.h: New file.
99351         * lib/gl_carray_list.c: New file.
99352         * lib/gl_linked_list.h: New file.
99353         * lib/gl_linked_list.c: New file.
99354         * lib/gl_anylinked_list1.h: New file.
99355         * lib/gl_anylinked_list2.h: New file.
99356         * lib/gl_avltree_list.h: New file.
99357         * lib/gl_avltree_list.c: New file.
99358         * lib/gl_anyavltree_list1.h: New file.
99359         * lib/gl_anyavltree_list2.h: New file.
99360         * lib/gl_rbtree_list.h: New file.
99361         * lib/gl_rbtree_list.c: New file.
99362         * lib/gl_anyrbtree_list1.h: New file.
99363         * lib/gl_anyrbtree_list2.h: New file.
99364         * lib/gl_anytree_list1.h: New file.
99365         * lib/gl_anytree_list2.h: New file.
99366         * lib/gl_linkedhash_list.h: New file.
99367         * lib/gl_linkedhash_list.c: New file.
99368         * lib/gl_anyhash_list1.h: New file.
99369         * lib/gl_anyhash_list2.h: New file.
99370         * lib/gl_avltreehash_list.h: New file.
99371         * lib/gl_avltreehash_list.c: New file.
99372         * lib/gl_rbtreehash_list.h: New file.
99373         * lib/gl_rbtreehash_list.c: New file.
99374         * lib/gl_anytreehash_list1.h: New file.
99375         * lib/gl_anytreehash_list2.h: New file.
99377         * lib/gl_oset.h: New file.
99378         * lib/gl_oset.c: New file.
99379         * lib/gl_array_oset.h: New file.
99380         * lib/gl_array_oset.c: New file.
99381         * lib/gl_avltree_oset.h: New file.
99382         * lib/gl_avltree_oset.c: New file.
99383         * lib/gl_rbtree_oset.h: New file.
99384         * lib/gl_rbtree_oset.c: New file.
99385         * lib/gl_anytree_oset.h: New file.
99387 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99389         * m4/mkancesdirs.m4: New file.
99390         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
99391         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
99392         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
99393         it.
99395 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99397         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
99398         * lib/mkancesdirs.h: New files.
99399         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
99400         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
99401         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
99402         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
99403         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
99404         callers changed.  Revamp internals significantly, by not
99405         attempting to create directories that are temporarily more
99406         permissive than the final results.  Do not attempt to use
99407         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
99408         This removes some race conditions, fixes some bugs, and simplifies
99409         things.  Use new dirchownmod function to do owner and mode changes.
99410         * lib/mkdir-p.h: Likewise.
99411         * lib/modechange.c (octal_to_mode): New function.
99412         (struct mode_change): New member mentioned.
99413         (make_node_op_equals): New arg mentioned.  All callers changed.
99414         (mode_compile): Keep track of which mode bits the user has explicitly
99415         mentioned.
99416         (mode_adjust): New arg DIR, so that we implement the X op correctly.
99417         New arg PMODE_BITS, to keep track of which mode bits the user
99418         mentioned; it treats S_ISUID and S_ISGID speciall.
99419         All callers changed.
99420         * lib/modechange.h: Likewise.
99422 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99424         * MODULES.html.sh: Add mkancestors.
99425         * modules/mkancesdirs: New module.
99426         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
99427         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
99428         The chdir-safer and afs files are now orphans; I'll remove them
99429         unless someone speaks up.
99430         Add lib/dirchownmod.c, lib/dirchownmod.h.
99431         (Depends-on): Remove alloca, chown, save-cwd, dirname.
99432         Add lchown, mkancesdirs.
99433         (Maintainer): Add self.
99435 2006-07-15  Karl Berry  <karl@gnu.org>
99437         * gnulib-tool: help message wording/arrangement.
99439 2006-07-14  Simon Josefsson  <jas@extundo.com>
99441         * doc/gnulib.texi (Libtool and Windows): New section.
99443 2006-07-12  Simon Josefsson  <jas@extundo.com>
99445         * modules/gendocs (License): Fix license, approved by Karl.
99447 2006-07-12  Eric Blake  <ebb9@byu.net>
99449         * MODULES.html.sh: Add gendocs.
99451 2006-07-11  Eric Blake  <ebb9@byu.net>
99453         * modules/fdl: New module, to install doc/fdl.texi.
99454         * MODULES.html.sh: Add new section for documentation modules.
99455         * gnulib-tool: Avoid space-tab.
99456         (--doc-base): New option, to manage files from doc.
99458 2006-07-11  Eric Blake  <ebb9@byu.net>
99460         * m4/absolute-header.m4: Fix comments to match recent change.
99462 2006-07-11  Eric Blake  <ebb9@byu.net>
99464         * gnulib-tool: List --doc-base before --tests-base.
99466 2006-07-11  Derek R. Price  <derek@ximbiot.com>
99468         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
99470 2006-07-11  Bruno Haible  <bruno@clisp.org>
99472         * README: Mention where to put documentation.
99474 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99476         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
99478 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
99480         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
99481         to stdint.m4.
99483 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
99485         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
99486         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
99487         "no/such/file/stdint.h" when there is no such file, so that
99488         the resulting C code can be parsed by dodgy compilers.
99489         Problems reported by Bob Proulx.
99491 2006-07-10  Derek R. Price  <derek@ximbiot.com>
99493         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
99494         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
99495         macros into the GNU _D_EXACT_NAMLEN.
99496         * lib/savedir.c:  Likewise.
99497         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
99499 2006-07-10  Derek R. Price  <derek@ximbiot.com>
99500         and Paul Eggert  <eggert@cs.ucla.edu>
99502         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
99503         * m4/savedir.m4:
99504         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
99505         macros into the GNU _D_EXACT_NAMLEN.
99507 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99509         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
99510         around the absolute name, to work around a problem with the HP-UX
99511         11.23 native C compiler, reported by Bob Proulx.
99513 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99515         * doc/maintain.texi, make-stds.texi: Sync from
99516         <http://savannah.gnu.org/projects/gnustandards>.
99518 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99520         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
99522 2006-07-09  Jim Meyering  <jim@meyering.net>
99524         * m4/glob.m4: Remove a doubled word in a comment.
99526 2006-07-09  Jim Meyering  <jim@meyering.net>
99528         * lib/argp-pv.c: Remove a doubled word in a comment.
99529         * lib/check-version.c (check_version): Likewise.
99530         * lib/javacomp.c (compile_java_class): Likewise.
99532 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
99534         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
99535         for the benefit of people using Autoconf 2.60.  If you want to
99536         support older Autoconf versions you can copy m4/onceonly_2_57.m4
99537         (or m4/onceonly.m4, if pre-2.57) manually.
99539 2006-07-08  Jim Meyering  <jim@meyering.net>
99541         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
99542         comment.
99543         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
99544         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
99545         comment.
99547 2006-07-08  Jim Meyering  <jim@meyering.net>
99549         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
99551 2006-07-07  Simon Josefsson  <jas@extundo.com>
99553         * tests/test-crc.c: Change expected crc value, the test vector
99554         were probably computed using the old broken crc.c?
99556 2006-07-06  Simon Josefsson  <jas@extundo.com>
99558         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
99559         now the canonical place for the M4 file).
99561         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
99562         from the sys_socket dependency now.
99564         * modules/inet_pton (Files): Ditto.
99566         * modules/inet_ntop (Files): Ditto.
99568 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99570         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
99571         not gl_PREREQ_GETUSERSHELL.
99573 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99575         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
99576         with only one argument, for Autoconf 2.60.
99577         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
99578         expand to nothing, so add a shell command to avoid syntax error.
99579         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
99581 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99583         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
99585 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99587         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
99588         no longer needed.  Check for isblank decl.
99589         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
99590         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
99591         of existence.
99593 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99595         * lib/getloadavg.c: Use __VMS, not VMS.
99596         * lib/getopt.c: Likewise.
99597         * lib/getpagesize.h: Likewise.
99598         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
99599         and probably does not work.
99601 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99603         * lib/.cppi-disable: Add wcwidth.
99604         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
99605         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
99606         (ISGRAPH): Remove.  All uses changed to isgraph.
99607         (FOLD) [!defined _LIBC]: Remove special case.
99608         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
99609         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
99610         HAVE_ISBLANK.
99611         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
99612         case.
99614 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
99616         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
99617         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
99618         brackets.  Other minor changes to suppress some compiler
99619         warnings.
99621 2006-07-06  Derek R. Price  <derek@ximbiot.com>
99622         and Paul Eggert  <eggert@cs.ucla.edu>
99624         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
99625         of invoking obsolescent AC_HEADER_DIRENT macro.
99626         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
99627         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
99628         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
99629         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
99630         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
99631         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
99632         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
99633         * m4/readdir.m4: Remove; no longer needed.
99635 2006-07-06  Derek R. Price  <derek@ximbiot.com>
99636         and Paul Eggert  <eggert@cs.ucla.edu>
99638         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
99639         Don't worry about this obsolete case any more.
99640         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
99641         directories.
99642         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
99643         worry about this obsolete case any more.
99644         * lib/fts.c: Likewise.
99645         * lib/getcwd.c: Likewise.
99646         * lib/glob.h: Likewise.
99647         * lib/savedir.c: Likewise.
99649 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99651         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
99652         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
99653         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
99654         needed.
99655         All uses removed.
99656         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99657         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
99658         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
99659         needed.
99660         * m4/getdate.m4 (gl_GETDATE): Likewise.
99661         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
99662         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
99663         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
99664         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99665         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
99666         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
99667         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
99668         needed.
99670 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99672         * lib/memcasecmp.c: Include <limits.h>.
99673         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
99674         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
99675         Don't assume isdigit succeeds only on '0' through '9'.
99677 2006-07-05  Eric Blake  <ebb9@byu.net>
99679         * modules/getaddrinfo (Depends-on): Add snprintf.
99681 2006-07-05  Eric Blake  <ebb9@byu.net>
99683         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
99684         to avoid 'header present but could not be compiled' on cygwin.
99686 2006-07-05  Eric Blake  <ebb9@byu.net>
99688         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
99689         missing from netdb.h.
99690         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
99692 2006-07-05  Derek R. Price  <derek@ximbiot.com>
99694         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
99695         no longer needed.
99696         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
99697         * m4/getdate.m4 (gl_GETDATE): Likewise.
99698         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
99699         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
99700         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
99701         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99702         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
99704 2006-07-05  Derek R. Price  <derek@ximbiot.com>
99706         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
99707         All uses of is_space replaced by isspace.
99708         * lib/exit.h: Don't talk about STDC_HEADERS.
99709         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
99710         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
99711         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
99712         replaced by isprint etc.
99713         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
99714         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
99715         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
99716         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
99717         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
99718         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
99720 2006-07-05  Bruno Haible  <bruno@clisp.org>
99722         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
99723         the function exists, before testing against AIX.
99724         Reported by Martin Lambers <marlam@marlam.de>.
99726 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
99728         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
99729         From Mark D. Baushke.
99731 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
99733         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
99734         to the absolute name, not just one, to bypass Sun C 5.8's
99735         "warning: #include of /usr/include/... may be non-portable".
99737 2006-07-04  Eric Blake  <ebb9@byu.net>
99739         * modules/dirname-tests: New test module.
99740         * tests/test-dirname.c: New file, replacing dirname.c
99741         TEST_DIRNAME section that was recently deleted.
99743 2006-07-04  Bruno Haible  <bruno@clisp.org>
99745         Assume ANSI C header files and <ctype.h> functions.
99746         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
99747         (mbsnwidth): Use isprint, iscntrl instead.
99749 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99751         Merge from coreutils.
99752         * MODULES.html.sh: Add xstrtold.
99753         * modules/xstrtold: New file.
99754         * modules/cycle-check (Files): Add lib/same-inode.h.
99755         * modules/dirname (Files): Add m4/double-slash-root.m4.
99756         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
99757         * modules/mkdir-p (Files): Add lib/same-inode.h.
99758         * modules/same (Files): Add lib/same-inode.h.
99760 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99762         * m4/absolute-header.m4: Renamed from full-header-path.m4.
99763         This is to keep the terminology clean; POSIX talks about
99764         "absolute pathnames", not "full pathnames", but the GNU
99765         Coding Standards say to use "path" for something else;
99766         so use "absolute" to keep both sides happy.
99767         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
99768         Set gl_absolute_header, not gl_full_header_path.
99769         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
99770         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
99771         All uses changed.
99773         Merge from coreutils.
99775         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
99777         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
99778         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
99779         want to require the building of c-strtod.o.
99780         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
99781         needs -lm directly.
99782         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
99784         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
99786         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
99787         --as-needed option if available.  Problem reported by Albert Chin in
99788         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
99789         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
99790         cc merely issues a bunch of annoying warnings for --as-needed
99791         (this problem was reported by Bob Proulx).  Also, try linking with
99792         -lm to detect a bug in binutils 2.16 (this problem was reported
99793         by Ralf Wildenhues).
99795         2006-06-18  Jim Meyering  <jim@meyering.net>
99797         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
99798         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
99799         macro.
99800         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
99801         also check for glibc-2.4's abort-inducing bug.
99803         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
99804         Low-probability clean-up should be to use rmdir to get rid of
99805         the just-created directory, not unlink.
99807         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
99808         configure fail, and request a bug report to inform us about it.
99809         Add a comment that, barring reports to the contrary, in 2007 we'll
99810         assume ftruncate is universally available.
99812         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
99814         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
99816         2006-03-12  Jim Meyering  <jim@meyering.net>
99818         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
99819         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
99820         * m4/same.m4 (gl_SAME): Likewise.
99821         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
99823         2006-03-11  Eric Blake  <ebb9@byu.net>
99825         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
99826         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
99827         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
99828         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
99830 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99832         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
99833         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
99834         reported by Mark D. Baushke, one in
99835         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
99837         Merge from coreutils.
99839         * lib/.cppi-disable: Add stdint_.h.
99840         * lib/.cvsignore: Add stdint.h.
99842         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
99844         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
99845         both double and long double versions.
99846         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
99847         * lib/xstrtold.c: New file.
99848         * lib/xstrtod.h (xstrtold): New decl.
99850         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
99852         * lib/filemode.c (setst): Remove.
99853         (strmode): Rewrite to avoid setst.  This makes the code shorter,
99854         (arguably) clearer, and the generated code is a bit smaller on my
99855         Debian GNU/Linux stable x86 host.
99857         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
99859         * lib/filemode.c: Include "filemode.h" first, to test the interface.
99860         Assume that filemode.h includes sys/types.h and sys/stat.h.
99861         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
99862         (ftypelet): Reorder to put common cases first, for efficiency.
99863         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
99864         to do 'M'.
99865         (strmode): Renamed from mode_string, and now stores 12 bytes instead
99866         of 10, for compatibility with FreeBSD.  All callers changed.
99867         (filemodestring): Now stores 12 bytes instead of 10, and sets file
99868         types that can't be deduced solely from st_mode.  First arg is now a
99869         const pointer.
99870         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
99871         (strmode): Renamed from mode_string.
99872         (filemodestring): New decl.
99873         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
99874         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
99875         needed.
99876         (S_ISPORT, S_ISWHT): New macros, if not already defined.
99878         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
99880         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
99881         fsusage.h now does that.  Include fsusage.h first, to test interface.
99882         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
99883         at most one method (the old code could have generated decls that
99884         didn't conform to C89, not that this was ever exercised).
99885         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
99887         2006-03-19  Jim Meyering  <jim@meyering.net>
99889         Work even in a chroot where d_ino values for entries in "/"
99890         don't match the stat.st_ino values for the same names.
99891         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
99892         number, iterate through all entries again, using lstat instead.
99893         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
99894         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
99896         * lib/getcwd.c (__getcwd): Clarify a comment.
99897         Use memcpy in place of a call to strcpy.
99899         2006-03-12  Jim Meyering  <jim@meyering.net>
99901         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
99902         matches that of the current directory (which we're about to chdir ".."
99903         out of), then save the dev-ino of the parent, instead.
99905         * lib/same-inode.h (SAME_INODE): New file/macro.
99906         * lib/chdir-safer.c (SAME_INODE): Remove definition.
99907         Include "same-inode.h", instead.
99908         * lib/same.c: Likewise.
99909         * lib/cycle-check.h: Include "same-inode.h".
99910         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
99911         * lib/cycle-check.c (SAME_INODE): Remove definition.
99912         * lib/root-dev-ino.h: Include "same-inode.h".
99914         2006-03-11  Eric Blake  <ebb9@byu.net>
99916         * lib/same.c (same_name): s/base_name/last_component/
99917         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
99918         * lib/filenamecat.c (file_name_concat): Likewise.
99920         2006-03-11  Eric Blake  <ebb9@byu.net>,
99921                     Paul Eggert  <eggert@cs.ucla.edu>
99923         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
99924         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
99925         drive prefix.
99926         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
99927         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
99928         (last_component): New method.
99929         * lib/dirname.c (dir_len): Determine when drive letters need a
99930         subsequent slash.  Preserve // when it is special.
99931         (dir_name): Don't append dot when drive letter is absolute.
99932         [TEST_DIRNAME]: Move into a full-blown gnulib test.
99933         * lib/basename.c (base_name): New semantics - malloc the result.
99934         Preserve // when it is special.  Preserve relative files that look
99935         like drive letters.
99936         (base_len): Preserve // when it is special.
99937         (last_component): New method, similar to old base_name semantics.
99938         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
99939         base_name.  Strip redundant slashes from ///.
99941 2006-07-03  Jim Meyering  <jim@meyering.net>
99943         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
99944         macro is used before the first cycle_check call.
99946 2006-07-03  Eric Blake  <ebb9@byu.net>
99948         * modules/dirname (Depends-on): Add xstrndup.
99950 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
99952         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
99953         test cases, so that config.log is a bit easier to follow.
99955 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
99957         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
99958         both are 64 bits, since this seems to be the tradition, and this
99959         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
99960         we ever run into a host that prefers long long to long in this
99961         case, we'll need another configure-time test.  Problem reported by
99962         Jim Meyering.
99964 2006-07-02  Eric Blake  <ebb9@byu.net>
99966         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
99968 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
99970         * modules/inttypes (Depends-on): No longer depends on stdint.
99971         * modules/stdint (Description): Say more about assumptions.
99972         Say that the fast types might differ.  Say macros are used.
99973         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
99974         (Makefile.am): Revise list of substituted symbols to match
99975         new stdint.m4.
99976         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
99977         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
99978         * tests/test-stdint.c (verify_same_types)
99979         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
99980         the code conforms to C99/C89.
99981         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
99982         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
99984 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
99986         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
99987         but fix a bug, by requiring at least 64 bits.
99988         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
99989         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
99990         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
99991         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
99993         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
99994         changes.  Make 2.59 a prerequisite.  Check and substitute for
99995         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
99996         inttypes.h.  Do not use special include files; just use the
99997         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
99998         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
99999         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
100000         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
100001         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
100002         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
100003         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
100004         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
100005         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
100006         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
100007         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
100008         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
100009         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
100010         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
100011         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
100012         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
100013         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
100014         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
100015         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
100016         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
100017         WINT_MAX.  Check for C99 conformance more strictly, by detecting
100018         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
100019         not check for things that C99 does not require, e.g., int8_t.  If
100020         a test isn't needed unless <stdint.h> isn't working, and is
100021         unlikely to be needed for any other reason, then don't do it
100022         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
100023         size_t, since we assume C89 freestanding at least.  Do not check
100024         for sig_atomic_t, wchar_t, or wint_t, since the code now does
100025         the right thing even if the types are not defined.  Instead use:
100026         (gl_STDINT_TYPE_PROPERTIES): New macro.
100027         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
100028         testing whether <sys/types.h> clashes, as Autoconf does this for
100029         us now.  All uses removed.
100030         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
100031         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
100032         (gl_CHECK_TYPE_SAME):
100033         Remove; no longer needed.
100034         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
100035         exists, since we'll return 0 anyway in that case.
100036         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
100038 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100040         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
100041         possible collision with system files.
100042         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
100043         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
100044         WCHAR_MIN and WCHAR_MAX in this case.
100045         (<stddef.h>): Do not include; no longer needed.
100046         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
100047         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
100048         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
100049         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
100050         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
100051         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
100052         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
100053         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
100054         !defined(__c99))]: Include in this case too, since it's harmless
100055         now.
100056         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
100057         dangerous to do so.
100058         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
100059         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
100060         (_STDINT_MIN, _STDINT_MAX): New macros.
100061         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
100062         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
100063         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
100064         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
100065         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
100066         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
100067         macros, not typedefs; this simplifies things quite a bit.
100068         Use long int for all types narrower than int64_t.
100069         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
100070         Define in terms of long long int or int64_t or long int,
100071         not int64_t or int32_t.  This saves some compile-time testing.
100072         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
100073         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
100074         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
100075         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
100076         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
100077         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
100078         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
100079         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
100080         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
100081         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
100082         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
100083         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
100084         undef any previous version and define our own version, for
100085         simplicity and consistency with the new macros for types.
100086         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
100087         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
100088         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
100089         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
100090         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
100091         @WINT_T_SUFFIX@ to keep things simple here.
100092         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
100093         Simplify by assuming typical 8/16/32/64 host, since we're
100094         already doing that elsewhere anyway.
100095         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
100096         and assume long long int is 64 bits if available.  This
100097         speeds up 'configure'.
100099 2006-07-01  Eric Blake  <ebb9@byu.net>
100101         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
100102         Reported by Andreas Buening.
100104 2006-07-01  Eric Blake  <ebb9@byu.net>
100106         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
100108 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
100110         * lib/getaddrinfo.c: fixed typo
100112 2006-06-29  Jim Meyering  <jim@meyering.net>
100114         * modules/strftime (Maintainer): Add my name, since with the
100115         FPRINTFTIME changes strftime.c has forked from glibc.
100117 2006-06-29  Eric Blake  <ebb9@byu.net>
100119         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
100121 2006-06-29  Eric Blake  <ebb9@byu.net>
100123         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
100125 2006-06-29  Eric Blake  <ebb9@byu.net>
100127         * lib/stat_.h: New file.
100129 2006-06-29  Eric Blake  <ebb9@byu.net>
100131         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
100132         unused static function.
100134 2006-06-29  Eric Blake  <ebb9@byu.net>
100136         * doc/functions.texi (Function Portability): Document missing lstat
100137         on mingw.
100139 2006-06-29  Eric Blake  <ebb9@byu.net>
100141         * MODULES.html.sh: Add sys_stat.
100142         * modules/sys_stat: New module.
100143         * modules/mkstemp (Depends-on): Add sys_stat.
100145 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100147         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
100149 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100151         * m4/c-bs-a.m4: Removed.
100153 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100155         * lib/strftime.c: Assume strftime() exists.
100157 2006-06-29  Derek Price  <derek@ximbiot.com>
100159         * modules/c-bs-a: Removed - \a is C89.
100160         * MODULES.html.sh: Remove c-bs-a.
100162 2006-06-29  Bruno Haible  <bruno@clisp.org>
100164         * modules/wcwidth (License): Change to LGPL.
100166 2006-06-28  Simon Josefsson  <jas@extundo.com>
100168         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
100169         on _WIN32.
100171         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
100172         getnameinfo.
100174 2006-06-28  Simon Josefsson  <jas@extundo.com>
100176         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
100178 2006-06-28  Simon Josefsson  <jas@extundo.com>
100180         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
100181         functions there.  It will succeed on Windows XP, but on Windows
100182         2000 and (presumably) earlier, it will fail, and use the internal
100183         re-implementation.
100184         (use_win32_p): New function.
100185         (getaddrinfo): Use strtoul on servname, to support numeric ports.
100186         Support AI_NUMERICSERV to disable getservbyname.
100187         (getnameinfo): New function, only supports
100188         NI_NUMERICHOST|NI_NUMERICSERV for now.
100190         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
100191         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
100192         getnameinfo.
100194 2006-06-28  Eric Blake  <ebb9@byu.net>
100196         * modules/wcwidth: New file.
100197         * modules/mbchar (Depends-on): Add wcwidth.
100198         * modules/mbswidth (Depends-on): Add wcwidth.
100199         * MODULES.html.sh: Add wcwidth.
100201 2006-06-28  Eric Blake  <ebb9@byu.net>
100203         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
100204         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
100206 2006-06-28  Eric Blake  <ebb9@byu.net>
100208         * lib/xvasprintf.h: Fix comments.
100210 2006-06-28  Eric Blake  <ebb9@byu.net>
100212         * lib/mbchar.h (wcwidth): Include wcwidth.h.
100213         * lib/mbswidth.c (wcwidth): Move from here...
100214         * lib/wcwidth.h: ...to this new file.
100216 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100218         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
100220         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
100221         it's obsolete.
100222         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
100224 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100226         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
100227         Autoconf 2.60 says this stuff was obsolete.
100229 2006-06-28  Bruno Haible  <bruno@clisp.org>
100231         * modules/wcwidth (Files): Add m4/wchar_t.m4.
100233 2006-06-28  Bruno Haible  <bruno@clisp.org>
100235         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
100236         gt_TYPE_WCHAR_T.
100238 2006-06-28  Bruno Haible  <bruno@clisp.org>
100240         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
100241         declaration for wcwidth.
100242         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
100244 2006-06-28  Bruno Haible  <bruno@clisp.org>
100246         * lib/mkdtemp.c [MINGW]: Include <io.h>.
100247         (mkdir): Define using _mkdir.
100249 2006-06-28  Bruno Haible  <bruno@clisp.org>
100251         * lib/getaddrinfo.h: Fix POSIX URL.
100252         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
100253         _WIN32.
100254         (use_win32_p): Make static.
100255         (getaddrinfo): Reject service name if it is empty or does not consist
100256         solely of decimal digits, or if its value is > 65535.
100257         (getnameinfo): Remove useless casts.
100259 2006-06-27  Simon Josefsson  <jas@extundo.com>
100261         * modules/sys_select: New file, suggested by Bruno Haible, Paul
100262         Eggert and Martin Lambers.
100264 2006-06-27  Simon Josefsson  <jas@extundo.com>
100266         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
100267         Eggert and Martin Lambers.
100269 2006-06-27  Bruno Haible  <bruno@clisp.org>
100271         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
100272         result to 0, not to empty.
100273         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
100275 2006-06-27  Bruno Haible  <bruno@clisp.org>
100277         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
100279 2006-06-26  Simon Josefsson  <jas@extundo.com>
100281         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
100282         present.
100284 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
100286         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
100287         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
100288         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
100290 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
100292         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
100294 2006-06-26  Bruno Haible  <bruno@clisp.org>
100296         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
100298 2006-06-26  Bruno Haible  <bruno@clisp.org>
100300         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
100302 2006-06-26  Bruno Haible  <bruno@clisp.org>
100304         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
100305         SGI C compiler in pre-C99 mode.
100306         Suggested by Mark D. Baushke and Larry Jones.
100308 2006-06-26  Bruno Haible  <bruno@clisp.org>
100310         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
100311         WCHAR_MAX.
100312         Reported by Mark D. Baushke and Larry Jones.
100314 2006-06-26  Bruno Haible  <bruno@clisp.org>
100316         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
100317         in pre-C99 mode.
100318         Suggested by Mark D. Baushke and Larry Jones.
100320 2006-06-23  Simon Josefsson  <jas@extundo.com>
100321             Bruno Haible  <bruno@clisp.org>
100323         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
100324         Emit mostlyclean-local rule.
100325         (func_emit_tests_Makefile_am): Likewise.
100326         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
100328 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
100330         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
100332 2006-06-23  Bruno Haible  <bruno@clisp.org>
100334         * tests/test-stdint.c: Update to match ISO C 99 Technical
100335         Corrigendum 1.
100337 2006-06-23  Bruno Haible  <bruno@clisp.org>
100339         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
100341 2006-06-23  Bruno Haible  <bruno@clisp.org>
100343         * lib/stdint_.h: Treat IRIX like OpenBSD.
100345 2006-06-23  Bruno Haible  <bruno@clisp.org>
100347         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
100348         ISO C 99 Technical Corrigendum 1.
100350 2006-06-22  Simon Josefsson  <jas@extundo.com>
100352         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
100353         MinGW.
100355 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100357         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
100358         needed.  Some compiler complained about some of them.  Problem reported
100359         by Larry Jones in
100360         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
100362 2006-06-21  Simon Josefsson  <jas@extundo.com>
100364         * tests/test-getaddrinfo.c: New file.
100366         * modules/getaddrinfo-tests: New file.
100368         * MODULES.html.sh: Add inet_pton.
100370         * modules/inet_pton: New file.
100372 2006-06-21  Simon Josefsson  <jas@extundo.com>
100374         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
100375         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
100376         of using the (limited) gnulib implementation on Windows XP.
100378         * m4/inet_pton.m4: New file.
100380 2006-06-21  Simon Josefsson  <jas@extundo.com>
100382         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
100383         variable.
100385         * lib/socket_.h: Don't define WINVER.
100387         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
100388         slightly modified to work in gnulib.
100390 2006-06-21  Simon Josefsson  <jas@extundo.com>
100392         * doc/gnulib.texi (Windows sockets): Add.
100394 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
100396         * lib/read-file.c (fread_file): Start with buffer allocation of
100397         0 bytes rather than 1 byte; this simplifies the code.
100398         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
100399         code to free buffer and save/restore errno.
100400         (internal_read_file): Remove unused local.
100402 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
100404         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
100405         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
100406         Problem reported by Denis Excoffier in
100407         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
100409 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100411         * modules/sys_socket, modules/socklen: Include sys/types since
100412         FreeBSD 4.x's sys/socket.h needs it.
100414 2006-06-19  Simon Josefsson  <jas@extundo.com>
100416         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
100418 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
100420         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
100422 2006-06-19  Bruno Haible  <bruno@clisp.org>
100424         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
100425         and FULL_PATH_INTTYPES_H in angle brackets.
100426         Reported by Mark D. Baushke <mdb@gnu.org>.
100428 2006-06-17  Eric Blake  <ebb9@byu.net>
100430         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
100431         errno.
100433 2006-06-17  Bruno Haible  <bruno@clisp.org>
100435         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
100436         <sys/inttypes.h>.
100438 2006-06-17  Bruno Haible  <bruno@clisp.org>
100440         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
100441         whether errno is declared. Assume <errno.h> declares errno.
100443 2006-06-17  Bruno Haible  <bruno@clisp.org>
100445         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
100447 2006-06-17  Bruno Haible  <bruno@clisp.org>
100449         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
100450         problem on Solaris 2.5.1.
100452 2006-06-16  Eric Blake  <ebb9@byu.net>
100454         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
100455         * lib/unicodeio.c [!defined errno]: Likewise.
100456         * lib/strtol.c [!defined errno]: Likewise.
100457         * lib/strtod.c [!defined errno]: Likewise.
100459 2006-06-15  Eric Blake  <ebb9@byu.net>
100461         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
100463 2006-06-15  Eric Blake  <ebb9@byu.net>
100465         * config/srclist.txt (ssize_t.m4): Lose sync.
100467 2006-06-15  Bruno Haible  <bruno@clisp.org>
100469         * modules/stdint (Files): Include m4/full-header-path.m4,
100470         m4/size_max.m4, m4/wchar_t.m4.
100471         (Makefile.am): Many more substitutions.
100472         * modules/stdint-tests: New file.
100473         * tests/test-stdint.c: New file.
100475 2006-06-15  Bruno Haible  <bruno@clisp.org>
100477         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
100478         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
100479         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
100480         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
100481         gl_CHECK_TYPE_SAME): New macros.
100483 2006-06-15  Bruno Haible  <bruno@clisp.org>
100485         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
100487 2006-06-15  Bruno Haible  <bruno@clisp.org>
100489         * lib/stdint_.h: Rewritten to be fully auto-configured.
100490         Fixes bug on HP-UX/IA64.
100492 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
100494         * lib/getdate.y (__attribute__): Don't define if already defined.
100495         Problem reported by Larry Jones.
100496         * lib/utimens.c (__attribute__): Likewise.
100498 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
100500         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
100501         reported by Andreas Schwab.
100503 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100504             Bruno Haible  <bruno@clisp.org>
100506         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
100507         check for the declaration of strnlen and a run test that exposes the
100508         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
100509         rpl_strndup.
100511 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100512             Bruno Haible  <bruno@clisp.org>
100514         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
100516 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100518         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
100519         compile test, for Tru64 4.0D.
100521 2006-05-28  Karl Berry  <karl@gnu.org>
100523         * config/srclist.txt (printf-args.c): lose sync.
100525 2006-05-26  Martin Lambers  <marlam@marlam.de>
100527         * lib/getpass.c: Updates the test for the native W32 API, and adds
100528         missing includes, thus fixing compilation warnings.
100530 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
100532         * lib/exclude.c (exclude_fnmatch): New function.
100533         (excluded_file_name): Call exclude_fnmatch.
100534         * lib/exclude.h (excluded_file_name): New prototype
100536 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
100538         * lib/tempname.c (small_open, large_open): New macros.
100539         (__open, __open64) [!_LIBC]: Remove.
100540         (__gen_tempname): Use small_open and large_open instead of __open
100541         and __open64.  This fixes a portability bug on HP-UX 11.11i
100542         reported by Simon Wing-Tang in
100543         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
100545 2006-05-24  Bruno Haible  <bruno@clisp.org>
100547         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
100548         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
100549         Reported by Thorsten Maerz <torte@netztorte.de> via
100550         Aaron Stone <aaron@serendipity.cx>.
100552 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
100554         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
100555         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
100556         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
100557         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
100558         not really conditional on the cache.
100559         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
100561 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
100563         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
100564         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
100565         (my_usleep): Don't mishandle maximum value.
100567 2006-05-19  Jim Meyering  <jim@meyering.net>
100569         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
100571 2006-05-17  Bruno Haible  <bruno@clisp.org>
100573         Cygwin portability.
100574         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
100576 2006-05-17  Bruno Haible  <bruno@clisp.org>
100578         * lib/stdint_.h: Fix recognition of Cygwin.
100580 2006-05-15  Bruno Haible  <bruno@clisp.org>
100582         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
100583         on libtool patch by Ralf Wildenhues.
100585 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
100587         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
100588         test for C99 conformance; (bool) 0.5 is an integer constant
100589         expression, but (bool) -0.5 is not.  Problem reported by Fedor
100590         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
100592 2006-05-11  Simon Josefsson  <jas@extundo.com>
100594         * m4/xvasprintf.m4: Fix obvious typo.
100596 2006-05-11  Jim Meyering  <jim@meyering.net>
100598         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
100599         James Lemley.
100601 2006-05-10  Simon Josefsson  <jas@extundo.com>
100603         * lib/md4.c: Typo fix, update copyright years.
100604         (K1, K2): Don't use L because it turn computations into 64-bit on
100605         64-bit platforms.
100607 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
100609         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
100610         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
100611         unwanted sign propagation, e.g., on hosts with 64-bit int.
100612         There still are some problems with reeelly weird theoretical hosts
100613         (e.g., 33-bit int) but it's not worth worrying about now.
100614         * lib/sha1.c (rol): Likewise.
100615         (K1, K2, K3, K4): Remove unnecessary L suffix.
100617 2006-05-10  Bruno Haible  <bruno@clisp.org>
100619         * lib/des.c: Cast to avoid warnings.
100621 2006-05-09  Bruno Haible  <bruno@clisp.org>
100623         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
100624         (Depends-on): Depend also on xsize, stdarg.
100625         (configure.ac): Add gl_XVASPRINTF.
100627 2006-05-09  Bruno Haible  <bruno@clisp.org>
100629         * m4/xvasprintf.m4: New file.
100631 2006-05-09  Bruno Haible  <bruno@clisp.org>
100633         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
100634         (EOVERFLOW): Define fallback value.
100635         (xstrcat): New function.
100636         (xvasprintf): Recognize the special case of a string concatenation.
100638 2006-05-08  Eric Blake  <ebb9@byu.net>
100640         * gnulib-tool (func_version): Base copyright year on CVS date.
100641         (func_emit_copyright_notice): New function.
100642         (func_emit_lib_Makefile_am): Use it.
100643         (func_emit_tests_Makefile_am): Likewise.
100644         (func_import): Likewise.
100646 2006-05-08  Bruno Haible  <bruno@clisp.org>
100648         * modules/stdarg: New file.
100649         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
100651 2006-05-08  Bruno Haible  <bruno@clisp.org>
100653         * m4/stdarg.m4: New file, from GNU gettext.
100655 2006-05-08  Bruno Haible  <bruno@clisp.org>
100657         * config/srclist.txt (build-aux/config.rpath): different from latest
100658         release.
100660 2006-05-08  Bruno Haible  <bruno@clisp.org>
100662         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
100664 2006-05-05  Jim Meyering  <jim@meyering.net>
100666         * m4/warning.m4: New file, derived from bison's file by the same name.
100668 2006-05-03  Bruno Haible  <bruno@clisp.org>
100670         * lib/stdint_.h: Shorter URL.
100671         * lib/inttypes.h: Likewise.
100673 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100675         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
100677 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100679         * lib/verify.h: Document the internals better.  Most of this change
100680         was written by Bruno Haible.
100682 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100684         * doc/verify.texi: New file, partly based on a proposal by
100685         Bruno Haible.
100687 2006-05-02  Bruno Haible  <bruno@clisp.org>
100689         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
100690         test from here...
100691         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
100693 2006-04-29  Bruno Haible  <bruno@clisp.org>
100695         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
100696         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
100698 2006-04-29  Bruno Haible  <bruno@clisp.org>
100700         * gnulib-tool: Make --update option actually work.
100702 2006-04-29  Bruno Haible  <bruno@clisp.org>
100704         * doc/gcd.texi: New file.
100705         * doc/gnulib.texi: Include it.
100707 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
100709         * lib/getdate.y (get_date): When adding relative date, start with the
100710         initial time, not with the result of the first mktime call.
100712 2006-04-25  Bruno Haible  <bruno@clisp.org>
100714         * gnulib-tool (func_import): Output the include directives in three
100715         blocks, sorted separately.
100716         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100718 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
100720         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
100721         to define main with arguments, for C++.  Reported by Eric Blake.
100722         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
100723         Prefer 'int main ()' to 'int main (void)', for C++.
100724         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
100725         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
100726         for 'main', for C99 and C++.
100728 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
100730         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
100731         Don't assume that exit status -1 is valid.
100732         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
100733         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
100734         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
100735         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
100736         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
100737         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
100738         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
100739         functions can be used without declaring them, or that you can
100740         exit with status -1.
100741         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
100743 2006-04-24  Karl Berry  <karl@gnu.org>
100745         * config/srclist.txt (longdouble.m4): sync lost.
100747 2006-04-24  Eric Blake  <ebb9@byu.net>
100749         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
100751 2006-04-24  Bruno Haible  <bruno@clisp.org>
100753         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
100754         poll() implementation in AIX.
100755         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100757 2006-04-24  Bruno Haible  <bruno@clisp.org>
100759         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
100760         assigned exactly once.
100762 2006-04-23  Claudio Fontana  <claudio@gnu.org>
100763             Bruno Haible  <bruno@clisp.org>
100765         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
100766         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
100767         for AM_CPPFLAGS.
100769 2006-04-23  Bruno Haible  <bruno@clisp.org>
100771         * modules/copy-file: Depend on unistd.
100772         * modules/execute: Likewise.
100773         * modules/fatal-signal: Likewise.
100774         * modules/findprog: Likewise.
100775         * modules/mkdtemp : Likewise.
100776         * modules/pipe: Likewise.
100777         * modules/wait-process: Likewise.
100779 2006-04-23  Bruno Haible  <bruno@clisp.org>
100781         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
100782         condition was already detected.
100783         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100785 2006-04-23  Bruno Haible  <bruno@clisp.org>
100787         * lib/copy-file.c: Include <unistd.h> unconditionally.
100788         * lib/execute.c: Likewise.
100789         * lib/fatal-signal.c: Likewise.
100790         * lib/findprog.c: Likewise.
100791         * lib/mkdtemp.c: Likewise.
100792         * lib/pipe.h: Likewise.
100793         * lib/pipe.c: Likewise.
100794         * lib/wait-process.h: Likewise.
100796 2006-04-23  Bruno Haible  <bruno@clisp.org>
100798         * gnulib-tool (func_usage): Fix --import description. Document
100799         --update.
100800         (func_import): Create temporary file in a temporary directory, if
100801         --dry-run is specified. Silence errors from 'grep' when there are no
100802         m4 files in $m4dir.
100803         (func_create_testdir): Silence errors from 'grep' when there are no
100804         m4 files in $m4dir.
100805         Reported by Karl Berry <karl@freefriends.org>.
100807 2006-04-20  Bruno Haible  <bruno@clisp.org>
100809         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
100810         one argument, so that the code will be portable to Autoconf 2.60.
100811         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
100812         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
100813         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
100815 2006-04-19  Derek Price  <derek@ximbiot.com>
100816             Eric Blake  <ebb9@byu.net>
100818         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
100819         rather than "/full/path.h".  Update comment to match.  Shorten &
100820         generalize m4_translit call via AS_TR_CPP.
100822 2006-04-19  Derek Price  <derek@ximbiot.com>
100823             Eric Blake  <ebb9@byu.net>
100825         * lib/inttypes.h: Correct grammar in comment.
100827 2006-04-18  Derek Price  <derek@ximbiot.com>
100828             Paul Eggert  <eggert@cs.ucla.edu>
100830         * modules/inttypes: New file.
100831         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
100833 2006-04-18  Derek Price  <derek@ximbiot.com>
100834             Paul Eggert  <eggert@cs.ucla.edu>
100836         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
100837         New files.
100839 2006-04-18  Derek Price  <derek@ximbiot.com>
100840             Paul Eggert  <eggert@cs.ucla.edu>
100842         * lib/inttypes.h: New file.
100843         * lib/strtoimax.c: Assume <inttypes.h>.
100845 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
100847         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
100848         isn't mounted.  Problem reported by Kir Kolyshkin.
100850 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
100852         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
100853         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
100854         Derek R. Price.
100855         * lib/regex.h (RE_DUP_MAX): Update comment to match current
100856         implementation.
100858 2006-04-12  Eric Blake  <ebb9@byu.net>
100860         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
100861         is now done automatically by the corresponding Autoconf macro.
100863 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
100865         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
100866         time_r.h.
100868 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
100870         Merge regex changes from libc, removing some of our
100871         POSIX-conformance changes that were rejected and redoing them in a
100872         less-intrusive way.
100874         * lib/regcomp.c (re_compile_internal, init_dfa):
100875         Length arg is now size_t, not Idx.  All uses changed.
100876         (peek_token): Forward decl now says internal_function.
100877         (__re_error_msgid, __re_error_msgid_idx):
100878         Now static rather than extern with attribute_hidden.
100879         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
100880         For some reason libc prefers K&R style defns for external functions.
100881         (regerror) [!defined _LIBC]: Likewise.
100882         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
100883         (seek_collating_symbol_entry, lookup_collation_sequence_value):
100884         (build_range_exp, build_collating_symbol):
100885         Use K&R-style defn.
100886         (re_compile_fastmap): Use '\0' to memset, not 0.
100887         (utf8_sb_map): Make the calculations more obvious.
100888         (init_dfa, parse_bracket_exp, build_charclass_op):
100889         Call calloc and cast result, as glibc does.
100890         (init_word_char, fetch_token, peek_token, peek_token_bracket):
100891         (build_range_exp, build_collating_symbol):
100892         Now internal functions.
100894         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
100896         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
100897         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
100898         Don't depend on VMS; depend on __VMS instead, for POSIX
100899         namespace cleanness.
100900         (regoff_t): Define to ssize_t, not long int.
100902         Remove the REG_ macros named below.  Instead, make the old names
100903         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
100904         __USE_GNU_REGEX.
100905         (REG_BACKSLASH_ESCAPE_IN_LISTS):
100906         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
100907         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
100908         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
100909         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
100910         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
100911         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
100912         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
100913         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
100914         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
100915         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
100916         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
100917         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
100918         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
100919         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
100920         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
100921         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
100922         (REG_NREGS):
100923         Remove.  All uses replaced by the old RE_* names.
100924         (RE_BACKSLASH_ESCAPE_IN_LISTS):
100925         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
100926         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
100927         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
100928         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
100929         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
100930         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
100931         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
100932         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
100933         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
100934         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
100935         Don't bother having these macros be independent of each others'
100936         values, since they no longer exist in the POSIX name space.
100938         Rename the following member names back to their old names,
100939         unless !__USE_GNU_REGEX.  All uses changed back.
100940         (buffer): Renamed from re_buffer.
100941         (allocated): Renamed from re_allocated.
100942         (used): Renamed from re_used.
100943         (syntax): Renamed from re_syntax.
100944         (fastmap): Renamed from re_fastmap.
100945         (translate): Renamed from re_translate.
100946         (can_be_null): Renamed from re_can_be_null.
100947         (regs_allocated): Renamed from re_regs_allocated.
100948         (fastmap_accurate): Renamed from re_fastmap_accurate.
100949         (no_sub): Renamed from re_no_sub.
100950         (not_bol): Renamed from re_not_bol.
100951         (not_eol): Renamed from re_not_eol.
100952         (newline_anchor): Renamed from re_newline_anchor.
100953         (num_regs): Renamed from rm_num_regs.
100954         (start): Renamed from rm_start.
100955         (end): Renamed from rm_end.
100957         (free_state): Move up a bit.
100959         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
100960         #define to be empty.
100961         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
100962         when that is what is intended.
100963         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
100964         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
100965         (MAX): New macro.
100966         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
100967         All uses changed back to re_malloc, etc.  It's now the caller's
100968         responsibility to check for overflow; all callers changed.
100969         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
100970         (re_x2nrealloc): Remove.
100971         (free_state): Remove decl.
100973         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
100974         (re_set_registers, re_exec):
100975         Use K&R-style defn.
100977         2006-01-31  Roland McGrath  <roland@redhat.com>
100979         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
100980         Reported by Mike Frysinger <vapier@gentoo.org>.
100982         2006-01-15  Andreas Jaeger  <aj@suse.de>
100984         [BZ #1950]
100985         * lib/regex_internal.c (re_string_reconstruct): Adjust for
100986         build_wcs_upper_buffer change.
100987         (build_wcs_upper_buffer): Change return type.
100989         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
100991         * lib/regex_internal.h: Include <stdint.h> if available.
100993         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
100995         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
100997         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
100999         * lib/regcomp.c: Adjust for changed secondary hash function.
101001         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
101003         * lib/regex.h: Pretty printing.
101004         Clean up namespace a bit.
101006         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
101008         * lib/regexec.c (update_cur_sifted_state, check_arrival,
101009         check_arrival_add_next_nodes): Avoid using uninitialized variable.
101011         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101012                     Ulrich Drepper  <drepper@redhat.com>
101014         [BZ #1302]
101015         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
101016         changed.
101017         (bitset_word_t): Renamed from bitset_word.  All uses changed.
101019         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
101021         [BZ #281]
101022         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
101023         * lib/regcomp.c: Remove unnecessary uses of
101024         unsigned RE_TRANSLATE_TYPE.
101025         * lib/regex_internal.h: Likewise.
101026         * lib/regex_internal.c: Likewise.
101027         * lib/regexec.c: Likewise.
101028         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
101030         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
101032         * lib/regexec.c (find_recover_state): Remove unnecessary
101033         initialization.
101034         (transit_state_bkref): Make DFA a const pointer.
101035         (get_subexp): Likewise.
101036         (check_arrival): Likewise.
101037         (update_cur_sifted_state): Likewise.
101038         (re_search_internal): Likewise.
101039         (prune_impossible_nodes): Likewise.
101040         (acquire_init_state_context): Likewise.
101041         (proceed_next_node): Likewise.
101042         (set_regs): Likewise.
101043         (free_fail_stack_return): Likewise.
101044         (check_arrival_expand_ecl): Mark DFA parameter as const.
101045         (check_arrival_expand_ecl_sub): Likewise.
101046         (check_subexp_limits): Likewise.
101047         (sub_epsilon_src_nodes):  Likewise.
101048         (add_epsilon_src_nodes):  Likewise.
101049         (merge_state_array): Likewise.
101050         (update_regs): Likewise.
101051         (build_trtable): Likewise.
101052         (sift_states_backward): Mark MCTX parameter as const.
101053         (build_sifted_states): Likewise.
101054         (update_cur_sifted_state): Likewise.
101055         (sift_states_mkref): Likewise.
101056         (check_arrival_expand_ecl): Mark eclosure as const.
101057         (check_dst_limits_calc_pos_1): Likewise.
101058         * lib/regex_internal.h (re_match_context_t): Make dfa a const
101059         pointer.
101061         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
101063         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
101064         (transit_state_sb): Likewise.
101065         (transit_state_mb): Likewise.
101066         (sift_states_iter_mb): Likewise.
101067         (check_arrival_add_next_nodes): Likewise.
101068         (check_node_accept_bytes): Change first parameter to pointer-to-const.
101069         [_LIBC] (re_search_2_stub): Use mempcpy.
101071         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
101072         mbrtowc for very simple UTF-8 case.
101074         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
101075         a pointer-to-const.
101076         (re_acquire_state_context): Likewise.
101077         * lib/regex_internal.h: Adjust prototypes.
101079         * lib/regex.c: Prevent using C++ compilers.
101081         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
101082         (re_acquire_state_context): Likewise.
101084 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101086         * modules/regex (Depends-on): Add ssize_t.
101088 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101090         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
101091         translation table.
101093 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101095         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
101097 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
101098             Bruno Haible  <bruno@clisp.org>
101100         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
101101         <sys/types.h> and <inttypes.h>.
101103 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101105         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
101106         `__error_t_defined', so argp.h will not typedef the former.
101108 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
101110         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
101111         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
101112         glibc names.  Even if glibc is changed to conform to POSIX, the
101113         traditional names will be available anyway, since regex depends on
101114         the extensions module.  Also, fix a longstanding typo in the
101115         implementation of Spencer ERE test #75 from grep 2.3.  Problems
101116         reported by Emanuele Giaquinta.  Also, change sense of cached
101117         variable, so that the message makes sense.
101119 2006-03-24  Simon Josefsson  <jas@extundo.com>
101121         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
101122         including some doc fixes.
101123         (base64_encode_alloc): Fix +1 bug on allocation failures.
101125 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101127         * lib/base64.c (base64_encode): Do not read past end of array with
101128         unsanitized input on systems with CHAR_BIT > 8.
101130 2006-03-24  Eric Blake  <ebb9@byu.net>
101132         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
101134 2006-03-22  Karl Berry  <karl@gnu.org>
101136         * config/srclist.txt (*setenv.[ch]): get from coreutils.
101137         * config/srclistvars.sh (COREUTILS): new var.
101139 2006-03-17  Jim Meyering  <jim@meyering.net>
101141         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
101142         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
101144 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
101146         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
101147         no longer needs it.  Instead, check that regoff_t is as least
101148         as wide as ptrdiff_t.
101150         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
101151         so that our regex.h stays compatible with the installed regex.
101152         This is helpful for installers who configure --without-included-regex.
101153         Problem reported by Emanuele Giaquinta.
101155 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
101157         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
101158         Typedef to long int, not to off_, as POSIX will likely change
101159         in that direction.
101161 2006-03-15  Eric Blake  <ebb9@byu.net>
101163         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
101165 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101167         * lib/argp-help.c (validate_uparams): Fix typo
101168         * lib/argp-parse.c (argp_default_options): Consistently begin help
101169         messages with a lowercase letter.
101171 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
101173         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
101174         overrun buffers and shouldn't be used (much as gets shouldn't be
101175         used).
101176         * lib/time_r.c (asctime_r, ctime_r): Likewise.
101178 2006-03-08  Simon Josefsson  <jas@extundo.com>
101180         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
101181         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101183 2006-03-08  Simon Josefsson  <jas@extundo.com>
101185         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
101186         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101188 2006-03-08  Simon Josefsson  <jas@extundo.com>
101190         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
101191         signal that configure disabled the device.
101193 2006-03-08  Simon Josefsson  <jas@extundo.com>
101195         * build-aux/maint.mk: Fix refresh-po, to handle no translated
101196         languages.
101198 2006-03-07  Simon Josefsson  <jas@extundo.com>
101200         * modules/getopt (Depends-on): Add unistd.
101202         * modules/unistd: New file.
101204 2006-03-07  Simon Josefsson  <jas@extundo.com>
101206         * modules/gc-random: New file.
101208 2006-03-07  Simon Josefsson  <jas@extundo.com>
101210         * m4/unistd_h.m4: New file.
101212 2006-03-07  Simon Josefsson  <jas@extundo.com>
101214         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
101215         test to be side-effect free by storing the result in the cache
101216         variable gl_cv_lib_readline, and moving the assignment of
101217         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
101218         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101220 2006-03-07  Simon Josefsson  <jas@extundo.com>
101222         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
101223         error on missing devices (the functions will return an error).
101225         * m4/gc.m4: Move random stuff to gc-random.m4
101227 2006-03-07  Simon Josefsson  <jas@extundo.com>
101229         * lib/unistd_.h: New file.
101231 2006-03-07  Simon Josefsson  <jas@extundo.com>
101233         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
101235 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101237         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
101238         Problem reported by Juan Manuel Guerrero.
101240 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101242         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
101243         the unistd module.
101244         * lib/getlogin_r.c: Likewise.
101245         * lib/getlogin_r.h: Likewise.
101246         * lib/glob.c: Likewise.
101247         * lib/pagealign_alloc.c: Likewise.
101248         * lib/unistd_.h: Remove; no longer needed.
101250 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101252         * MODULES.html.sh (Support for systems lacking POSIX:2001):
101253         Add unistd.
101254         * modules/c-stack (Depends-on): Add unistd.
101255         * modules/getlogin_r: Likewise.
101256         * modules/glob: Likewise.
101257         * modules/pagealign_alloc: Likewise.
101258         * modules/unistd (Files): Remove lib/unistd_.h.
101259         (EXTRA_DIST): Remove.
101260         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
101261         need unistd_.h.
101262         (MOSTLYCLEANFILES): Remove unistd.h-t.
101264 2006-03-03  Simon Josefsson  <jas@extundo.com>
101266         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
101268 2006-03-03  Simon Josefsson  <jas@extundo.com>
101270         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
101271         libidn and bison.
101273 2006-03-03  Simon Josefsson  <jas@extundo.com>
101275         * build-aux/maint.mk: Add indent target.
101277 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
101279         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
101280         our replacement poll.h in any case, to avoid a differing
101281         declaration from a system header.  Seen on AIX.
101283 2006-03-01  Simon Josefsson  <jas@extundo.com>
101285         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
101286         <kasal@ucw.cz>.
101288 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101290         * modules/gettime (Depends-on): Add extensions module.
101291         * modules/nanosleep (Depends-on): Likewise.
101292         * modules/settime (Depends-on): Likewise.
101294 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101296         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
101297         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
101298         pedantically.
101299         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
101300         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
101302         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
101303         not "==".  Reported by Ralf Wildenhues.
101305 2006-03-01  Karl Berry  <karl@gnu.org>
101307         * doc/Copyright/request-*: new files, synced from gnuorg.
101309 2006-03-01  Karl Berry  <karl@gnu.org>
101311         * config/srclist.txt (Copyright/*): new entries.
101313 2006-02-28  Simon Josefsson  <jas@extundo.com>
101315         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
101317 2006-02-27  Simon Josefsson  <jas@extundo.com>
101319         * lib/base64.h: Indent #define's.  From Jim Meyering
101320         <jim@meyering.net>.
101322 2006-02-27  Jim Meyering  <jim@meyering.net>
101324         Revert the change of 2006-02-24, so these files can continue
101325         to be sync'd from gettext.
101326         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
101327         of `config.h'.
101329 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
101331         * modules/intprops: New file.
101332         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
101333         Add intprops.
101334         * modules/getloadavg (Files): Remove lib/intprops.h.
101335         (Depends-on): Add intprops.
101336         * modules/human: Likewise.
101337         * modules/inttostr: Likewise.
101338         * modules/openat: Likewise.
101339         * modules/sig2str: Likewise.
101340         * modules/userspec: Likewise.
101341         * modules/utimecmp: Likewise.
101342         * modules/xnanosleep: Likewise.
101343         * modules/xstrtol: Likewise.
101345 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
101347         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
101348         * modules/lock-tests (TESTS): Use $(EXEEXT).
101349         * modules/tls-tests: Likewise.
101350         * modules/argp-tests: Likewise.
101351         (check_PROGRAMS): New var, replacing...
101352         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
101354 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101356         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
101357         `config.h'.
101359 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
101361         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
101363 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101365         Sync from coreutils.
101366         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
101367         gl_CHDIR_SAFER.
101369 2006-02-22  Jim Meyering  <jim@meyering.net>
101371         Sync from coreutils.
101372         * m4/chdir-safer.m4: New file.
101374 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
101376         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
101377         AT_FDCWD exceeds INT_MAX.
101378         * lib/openat.h (AT_FDCWD): Likewise.
101380 2006-02-17  Eric Blake  <address@hidden>
101382         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
101384 2006-02-16  Simon Josefsson  <jas@extundo.com>
101386         * modules/getaddrinfo (Depends-on): Add sys_socket.
101388 2006-02-15  Simon Josefsson  <jas@extundo.com>
101390         * build-aux/maint.mk: Add dsyntax-check rule.
101392 2006-02-15  Eric Blake  <ebb9@byu.net>
101394         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
101395         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
101396         'present but cannot compile' warnings on cygwin.
101397         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
101398         use ws2tcpip.h if sys/socket.h works.
101399         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
101400         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
101402 2006-02-14  Simon Josefsson  <jas@extundo.com>
101404         * modules/maintainer-makefile (Files): Rename.
101406         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
101407         and (the local) Makefile.cfg to maint-cfg.mk.
101409         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
101410         to the latter.
101412         * modules/maintainer-makefile: New module.
101414         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
101415         severaly stripped to make it possible to build it up from scratch
101416         with reliable tests.
101418         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
101419         fixes to permit overriding the default actions when configure and
101420         makefile are not available.
101422 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
101424         Sync from coreutils.
101425         * modules/lstat (Depends-on): Don't depend on xalloc.
101426         (License): Change from GPL to LGPL, since this is now simply a
101427         replacement for a libc function.
101429 2006-02-14  Jim Meyering  <jim@meyering.net>
101431         Sync from coreutils.
101433         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
101434         failure on deficient systems, and simplify gnulib lgpl dependencies.
101435         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
101436         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
101438         * lib/xalloc-die.c: Remove unused definition of N_.
101440 2006-02-14  Jim Meyering  <jim@meyering.net>
101442         Sync from coreutils.
101443         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
101444         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
101445         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
101446         double-quote uses of that variable, to accommodate the rare case in
101447         which getmntent is available in none of the libraries checked.  This
101448         happens at least on FreeBSD 5.0.
101450 2006-02-13  Simon Josefsson  <jas@extundo.com>
101452         * gnulib-tool (Usage): Fix --import, from
101453         karl@freefriends.org (Karl Berry).
101455 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101457         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
101459 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
101461         * lib/argp-namefrob.h: Restore changes accidentally lost during the
101462         "autoupdate" on 2005-12-12.
101464 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
101466         * modules/closeout (Depends-on): Remove atexit.
101468 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
101470         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
101471         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
101473 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
101475         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
101476         __EXTENSIONS__ if this causes compilation to fail.  Problem
101477         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
101478         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
101480 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
101482         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
101483         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
101484         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
101485         All uses changed.
101487 2006-01-26  Simon Josefsson  <jas@extundo.com>
101489         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
101490         prototype is visible on mingw32.
101492         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
101493         for mingw32.
101495         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
101496         mingw32).
101498 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
101500         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
101501         attempt to open for write; this always fails, at least on POSIX
101502         hosts.  This reinstates the 2006-01-09 change, which was
101503         inadvertently removed.
101505 2006-01-26  Bruno Haible  <bruno@clisp.org>
101507         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
101508         Reported by Paul Eggert.
101510 2006-01-26  Bruno Haible  <bruno@clisp.org>
101511             Paul Eggert  <eggert@cs.ucla.edu>
101513         * lib/stdbool_.h (_Bool)
101514         [(! (defined __cplusplus || defined __BEOS__)
101515           && !defined __GNUC__
101516           && !(defined __HP_cc || defined __xlc__
101517                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
101518                || defined __sgi))]:
101519         #define to signed char in these cases too; this simplifies
101520         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
101521         etc., separately) and makes it more conservative.
101523 2006-01-25  Simon Josefsson  <jas@extundo.com>
101525         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
101526         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
101527         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
101529 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
101531         * lib/argp-namefrob.h: Bugfix. Remove stray #
101533 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
101535         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
101536         so that we test the test.
101537         Check for yet another HP-UX cc bug involving *bool |= bool.
101539 2006-01-25  Karl Berry  <karl@gnu.org>
101541         * config/srclist.txt (vasnprintf.c): sync lost.
101543 2006-01-25  Jim Meyering  <jim@meyering.net>
101545         Sync from the stable (b5) branch of coreutils:
101547         * lib/fts.c (fts_children): Don't let close() clobber errno from
101548         failed fchdir().
101550         * lib/fts.c (fts_stat): When following a symlink-to-directory,
101551         don't necessarily interpret stat-fails+lstat-succeeds as indicating
101552         a dangling symlink.  That can also happen at least for ELOOP.
101553         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
101554         FYI, this bug predates the inclusion of fts.c in coreutils.
101556         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
101557         in their own block, so pre-c99 compilers don't object.
101559         Avoid the double-free (first in fts_read, second in fts_close) that
101560         would occur when an `active' directory is made inaccessible (e.g.,
101561         via chmod a-x) during a traversal.
101562         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
101563         before returning.  Reproduce this failure by
101564         mkdir -p a/b; cd a; chmod a-x . b
101565         Reported by Stavros Passas.
101567 2006-01-25  Jim Meyering  <jim@meyering.net>
101569         * lib/fileblocks.c: Remove more useless parentheses.
101570         * lib/readutmp.h: Likewise.
101572 2006-01-25  Bruno Haible  <bruno@clisp.org>
101574         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
101575         warnings.
101576         Reported by Paul Eggert.
101578 2006-01-25  Bruno Haible  <bruno@clisp.org>
101580         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
101581         rid of a trap command. For Solaris sh.
101582         Reported by Mark D. Baushke <mdb@gnu.org>.
101584 2006-01-24  Simon Josefsson  <jas@extundo.com>
101586         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
101587         Bruno.
101589 2006-01-24  Karl Berry  <karl@gnu.org>
101591         * config/srclist.txt (argp-namefrob.h): sync lost.
101593 2006-01-24  Jim Meyering  <jim@meyering.net>
101595         * modules/openat (Files): Add lib/intprops.h.
101596         From Mark D. Baushke.
101598 2006-01-24  Jim Meyering  <jim@meyering.net>
101600         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
101601         Reported by Mark D. Baushke.
101603 2006-01-24  Jim Meyering  <jim@meyering.net>
101605         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
101607 2006-01-24  Bruno Haible  <bruno@clisp.org>
101609         * modules/strnlen (Maintainer): Change from glibc to all.
101611 2006-01-24  Bruno Haible  <bruno@clisp.org>
101613         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
101614         Patch by Paul Eggert.
101616 2006-01-24  Bruno Haible  <bruno@clisp.org>
101618         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
101619         already has it.
101620         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
101621         2005-11-26.
101623         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
101624         'signed char' to avoid problems with the built-in _Bool type.
101625         Reported by Paul Eggert on 2005-11-26.
101627 2006-01-24  Bruno Haible  <bruno@clisp.org>
101629         * gnulib-tool (func_import): Avoid constructing complicated sed
101630         expressions inside backquote.
101631         Report and solution by Mark D. Baushke <mdb@gnu.org>.
101633 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
101635         These changes imported from libc.
101636         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
101637         test and two separate function calls.
101638         * lib/strndup.c (__strndup): Add libc_hidden_def.
101640 2006-01-23  Simon Josefsson  <jas@extundo.com>
101642         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
101643         Remove the test_*_SOURCES variable: automake infers it by default.
101644         * modules/tls-tests: Likewise.
101646 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101648         Work around porting bugs reported by Dieter in
101649         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
101650         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
101651         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
101652         Include "getopt.h" first, to check interface.
101653         (getenv): Declare only if defined HAVE_DECL_GETENV &&
101654         !HAVE_DECL_GETENV.
101655         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
101656         (__strndup): Revert to K&R-style function dfns, the glibc style.
101657         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
101658         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
101659         Include strnlen.h first, to get prototype properly.
101660         (strnlen): Renamed from __strnlen.
101661         Remove weak alias.
101663 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101665         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
101667 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101669         * config/srclist.txt: Adjust to reflect glibc reorganization.
101670         This affects only comments.
101672 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
101674          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
101675          Reported by Bruce Korb <bkorb@gnu.org>.
101677 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
101679         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
101680         to pacify gcc -Wswitch-default.
101682 2006-01-22  Bruno Haible  <bruno@clisp.org>
101684         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
101685         temporary buffer for sprintf, take into account the precision also
101686         for 'd', 'i', 'u', 'o', 'x', 'X'.
101688 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
101690         * modules/argp-tests: New module
101691         * tests/test-argp.c: New file
101692         * tests/test-argp-2.sh: New file
101694 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
101696         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
101697         (__argp_base_name): Removed
101698         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
101699         typo.
101700         (__argp_base_name): Provide macro definition or extern declaration
101701         depending on the configuration
101703 2006-01-20  Simon Josefsson  <jas@extundo.com>
101705         * modules/inet_ntop (Depends-on): Depend on sys_socket.
101707 2006-01-20  Simon Josefsson  <jas@extundo.com>
101709         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
101711 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
101713         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
101714         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
101715         Suggested by Bruno Haible.
101717 2006-01-20  Karl Berry  <karl@gnu.org>
101719         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
101720         until changes propagate, I guess.
101722 2006-01-19  Simon Josefsson  <jas@extundo.com>
101724         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
101726 2006-01-19  Simon Josefsson  <jas@extundo.com>
101728         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
101730 2006-01-19  Simon Josefsson  <jas@extundo.com>
101732         * gnulib-tool: Set check_PROGRAMS.
101734         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
101735         modules/des-tests, modules/gc-arcfour-tests,
101736         modules/gc-arctwo-tests, modules/gc-des-tests,
101737         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
101738         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
101739         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
101740         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
101741         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
101742         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
101743         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
101744         test_*_SOURCES.
101746 2006-01-18  Simon Josefsson  <jas@extundo.com>
101748         * modules/socklen (Depends-on): Depend on sys_socket.
101750 2006-01-18  Simon Josefsson  <jas@extundo.com>
101752         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
101753         modules/des-tests, modules/gc-arcfour-tests,
101754         modules/gc-arctwo-tests, modules/gc-des-tests,
101755         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
101756         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
101757         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
101758         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
101759         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
101760         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
101761         $(EXEEXT) to automake TESTS variable, for mingw32.
101763 2006-01-17  Simon Josefsson  <jas@extundo.com>
101765         * modules/socklen (Include): Need sys/socket.h.
101767 2006-01-17  Bruno Haible  <bruno@clisp.org>
101769         * modules/ssize_t (Include): Add <sys/types.h>.
101771 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
101773         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
101774         it's not portable and it doesn't work with cross-compiles.
101775         Problem reported by Bruno Haible.  Fix missing-$ typo in
101776         'test "gl_cv_ignore_unused_libraries" ...' that prevented
101777         -zignore from being used with Sun's C compiler.
101779 2006-01-12  Simon Josefsson  <jas@extundo.com>
101781         * lib/base64.c: Fix warning, reported by Bruno Haible
101782         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
101784 2006-01-12  Bruno Haible  <bruno@clisp.org>
101786         * modules/ldd: New file.
101787         * build-aux/ldd.sh.in: New file.
101788         * MODULES.html.sh (Support for building libraries and executables): Add
101789         ldd.
101791 2006-01-12  Bruno Haible  <bruno@clisp.org>
101793         * m4/ldd.m4: New file.
101795 2006-01-12  Bruno Haible  <bruno@clisp.org>
101797         * gnulib-tool (func_import, func_create_testdir): Don't go into an
101798         endless loop while replacing $auxdir with build-aux.
101800 2006-01-11  Simon Josefsson  <jas@extundo.com>
101802         * lib/stdint_.h (SIZE_MAX): Add missing (.
101804 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
101806         Sync from coreutils.
101807         * lib/md5.c: Fix commentary typos.
101808         (alignof, UNALIGNED_P): No need for a GCC-specific version.
101809         * lib/md5.h (__attribute__): Remove; unused.
101810         * lib/sha1.c: Fix commentary to match md5 better.
101811         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
101812         so that we don't need to worry about alignment.  All uses changed.
101813         This merges the 2005-10-28 md5 change into sha1.
101815 2006-01-11  Jim Meyering  <jim@meyering.net>
101817         Sync from coreutils.
101818         * lib/md5.c (OP): Fix spacing.
101820 2006-01-11  Bruno Haible  <bruno@clisp.org>
101822         Ensure automatic ordering between gl_LOCK and gl_ARGP.
101823         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
101824         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
101826 2006-01-11  Bruno Haible  <bruno@clisp.org>
101828         Ensure automatic ordering between gl_LOCK and gl_ARGP.
101829         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
101830         the "early" section as well.
101832 2006-01-11  Bruno Haible  <bruno@clisp.org>
101834         Avoid "ar: no archive members specified" error on MacOS X.
101835         * gnulib-tool (func_modules_add_dummy): New function.
101836         (func_import, func_create_testdir): Invoke it.
101838 2006-01-11  Bruno Haible  <bruno@clisp.org>
101840         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
101841         with $auxdir in AC_CONFIG_FILES statements.
101843 2006-01-11  Bruno Haible  <bruno@clisp.org>
101845         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
101846         Initialize also noinst_HEADERS to empty.
101848 2006-01-11  Bruno Haible  <bruno@clisp.org>
101850         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
101851         variables.
101852         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
101853         autoreconf.
101855 2006-01-11  Bruno Haible  <bruno@clisp.org>
101857         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
101858         overridable by the user.
101859         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101861 2006-01-10  Simon Josefsson  <jas@extundo.com>
101863         * modules/sys_socket: New file.
101865 2006-01-10  Simon Josefsson  <jas@extundo.com>
101867         * m4/sys_socket_h.m4: New file.
101869 2006-01-10  Simon Josefsson  <jas@extundo.com>
101871         * lib/socket_.h: New file.
101873 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
101875         * modules/readutmp (Maintainer): Add myself.
101877 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
101879         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
101880         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
101881         People who are still concerned with buggy memcmp implementations
101882         can invoke gl_FUNC_MEMCMP themselves.
101884 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
101886         * lib/regex_internal.h (BITSET_WORD_BITS):
101887         Work around a bug in 64-bit PGC (before version 6.1-2), where the
101888         preprocessor mishandles large unsigned values as if they were signed.
101889         Problem reported by Claudio Fontana in
101890         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
101892 2006-01-10  Jim Meyering  <jim@meyering.net>
101894         Avoid the double-free (first in fts_read, second in fts_close) that
101895         would occur when an `active' directory is made inaccessible (e.g.,
101896         via chmod a-x) during a traversal.
101897         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
101898         before returning.  Reproduce this failure by
101899         mkdir -p a/b; cd a; chmod a-x . b
101900         Reported by Stavros Passas.
101902         Sync from coreutils.
101903         * lib/sha1.c: Tweak grammar in a comment.
101905 2006-01-10  Jim Meyering  <jim@meyering.net>
101907         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
101908         Patch by Joerg Sonnenberger.
101910 2006-01-10  Bruno Haible  <bruno@clisp.org>
101912         * modules/readutmp: Depend on module free.
101913         * modules/strtok_r: Depend on module restrict.
101915 2006-01-10  Bruno Haible  <bruno@clisp.org>
101917         * modules/gettext (configure.ac): Add an invocation of
101918         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
101920 2006-01-10  Bruno Haible  <bruno@clisp.org>
101922         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
101923         Reported by Werner Lemberg <wl@gnu.org>.
101925 2006-01-10  Bruno Haible  <bruno@clisp.org>
101927         * lib/localcharset.c: Update from GNU gettext.
101929 2006-01-10  Bruno Haible  <bruno@clisp.org>
101931         * lib/argp.h (__const): Remove macro. Use const instead.
101932         * lib/argp-fmtstream.h (__const): Likewise.
101933         * lib/glob_.h (__const): Remove macro.
101934         * lib/glob-libc.h: Use const instead of __const.
101936 2006-01-10  Bruno Haible  <bruno@clisp.org>
101938         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
101939         variable.
101940         Needed to avoid an automake error regarding the 'gettext' module.
101942 2006-01-09  Simon Josefsson  <jas@extundo.com>
101944         * modules/inet_ntop (Depends-on): Add restrict.
101946 2006-01-09  Simon Josefsson  <jas@extundo.com>
101948         * modules/gc-rijndael-tests (License): Put under LGPL.
101950         * modules/gc-des-tests (License): Likewise.
101952         * modules/gc-arcfour-tests (License): Likewise.
101954         * modules/gc-arctwo-tests (License): Likewise.
101956         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
101958         * modules/gc-hmac-sha1-tests (Files): Likewise.
101960         * modules/gc-hmac-md5-tests (License): Likewise.
101962         * modules/gc-sha1-tests (License): Likewise.
101964         * modules/gc-md5-tests (License): Likewise.
101966         * modules/gc-md4-tests (License): Likewise.
101968         * modules/gc-md2-tests (License): Likewise.
101970         * modules/gc-tests (License): Likewise.
101972         * modules/des-tests (License): Likewise.
101974         * modules/md4-tests (License): Likewise.
101976         * modules/md2-tests (License): Likewise.
101978 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
101980         Sync from coreutils:
101982         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
101983         * modules/lib-ignore: New file.
101984         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
101985         chdir-safer.m4, lchmod.m4.
101986         * modules/openat: Add mkdirat.c, openat-priv.h.
101988 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
101990         Sync from coreutils.
101991         * m4/lib-ignore.m4: New file.
101992         * m4/lchmod.m4: New file.
101994 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
101996         Sync from coreutils.
101997         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
101998         for write access: POSIX says that must fail.
101999         * lib/fts.c (diropen): Likewise.
102000         * lib/save-cwd.c (save_cwd): Likewise.
102001         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
102002         well, for minor improvements on hosts that lack O_DIRECTORY.
102003         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
102004         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
102005         Fall back on chown if open failed with EACCES.
102007         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
102008         Report an error at compile-time if only a 1-second nominal clock
102009         resolution is found.
102011         * lib/lchmod.h: New file.
102012         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
102013         (make_dir_parents): Use lchown rather than chown, and
102014         lchmod rather than chmod.
102016         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
102017         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
102018         "proc" reported by n0dalus.
102020         * lib/mountlist.c: Include <limits.h>.
102021         (dev_from_mount_options)
102022         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
102023         New function.  It no longer assumes "dev=" has the System V meaning
102024         on Linux (since it doesn't).  It also parses "dev=" more carefully.
102025         (read_file_system_list)
102026         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
102027         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
102028         dev= in that case.
102030         * lib/posixtm.h (PDS_PRE_2000): New macro.
102031         * lib/posixtm.c (year): Arg is now syntax_bits rather than
102032         allow_century.  All usages changed.  Reject dates outside the range
102033         1969-1999 if PDS_PRE_2000 is used.
102035 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102037         Sync from coreutils.
102038         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
102039         (Time of day items): Mention the possibility of leap seconds.
102040         Problem reported by Dr. David Alan Gilbert.
102042 2006-01-09  Jim Meyering  <jim@meyering.net>
102044         Sync from coreutils.
102046         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
102048         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
102050         * lib/modechange.c (mode_compile): Reject an invalid mode string
102051         that starts with an octal digit.  From Andreas Gruenbacher.
102053         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
102054         and dup to open_safer and dup_safer, respectively.
102055         (openat_permissive): Fix typo in comment.
102057         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
102058         "gettext.h"; either no longer needed or are guaranteed by openat.h.
102059         (_): Remove; no longer needed.
102060         (openat): Renamed from rpl_openat; no need for rpl_openat
102061         since openat.h renames openat for us.
102062         Replace most of the body with a call to openat_permissive,
102063         to avoid duplicate code.
102064         Port to (probably hypothetical) environments were mode_t is
102065         wider than int.
102066         (openat_permissive): Require mode arg, so that we can check
102067         types better.  Put it just after flags.  Change cwd failure
102068         indicator from pointer-to-bool to pointer-to-errno-value.
102069         All callers changed.
102070         Invoke openat_save_fail and/or openat_restore_fail if
102071         cwd_errno is null, so that openat can call us.
102072         (openat_permissive, fdopendir, fstatat, unlinkat):
102073         Simplify errno handling to avoid some duplicate code,
102074         as it's OK to set errno on success.
102075         * lib/openat.h: Revamp code so that function macros depend on
102076         __OPENAT_PREFIX only, not also on AT_FDCWD.
102077         (openat_ro): Remove.  Caller changed to use openat_permissive.
102078         (openat_permissive): Now a macro, if not a function.
102079         (openat_restore_fail, openat_save_fail): Now always functions,
102080         since mkdirat needs them even if __OPENAT_PREFIX is defined.
102082         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
102083         and openat.c.
102084         * lib/mkdirat.c: Include openat-priv.h.
102085         Remove definitions of macros defined therein.
102086         * lib/openat.c: Likewise.
102088         * lib/mkdirat.c (mkdirat): New file and function.
102089         * lib/openat.h (mkdirat): Declare.
102091         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
102093         * lib/openat.h (openat_permissive): Declare.
102094         (openat_ro): Define.
102096         * lib/openat.c (EXPECTED_ERRNO): New macro.
102097         (openat_permissive): New function -- used in remove.c rewrite.
102098         (all functions): Set errno just before returning, only if there
102099         was an actual failure.
102100         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
102102         Emulate openat-family functions using Linux's procfs, if possible.
102103         Idea and some code based on Ulrich Drepper's glibc changes.
102105         * lib/openat.c: (BUILD_PROC_NAME): New macro.
102106         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
102107         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
102108         before falling back on save_cwd and restore_cwd.
102109         (fdopendir, fstatat, unlinkat): Likewise.
102111         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
102112         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
102114         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
102115         as second argument to va_arg.  Otherwise, some versions of gcc
102116         warn that `if this code is reached, the program will abort'.
102118 2006-01-09  Jim Meyering  <jim@meyering.net>
102120         Sync from coreutils.
102121         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
102122         Require openat-priv.h.
102124 2006-01-09  Bruno Haible  <bruno@clisp.org>
102126         * modules/strnlen (Include): Use strnlen.h.
102128 2006-01-09  Bruno Haible  <bruno@clisp.org>
102130         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
102132 2006-01-09  Bruno Haible  <bruno@clisp.org>
102134         * lib/sysexit_.h (EX_OK): New macro.
102135         Suggested by Martin Lambers <marlam@marlam.de>.
102137 2006-01-09  Bruno Haible  <bruno@clisp.org>
102139         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
102140         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
102142 2006-01-09  Bruno Haible  <bruno@clisp.org>
102144         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
102145         numbers.
102147 2006-01-09  Bruno Haible  <bruno@clisp.org>
102149         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
102150         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
102151         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
102152         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
102154 2006-01-09  Bruno Haible  <bruno@clisp.org>
102156         * build-aux/javacomp.sh.in: New file, moved from lib/.
102157         * modules/javacomp-script (Files): Update.
102158         (configure.ac): Add AC_CONFIG_FILES invocation.
102159         (EXTRA_DIST): Remove variable.
102161         * build-aux/javaexec.sh.in: New file, moved from lib/.
102162         * modules/javaexec (Files): Update.
102163         (configure.ac): Add AC_CONFIG_FILES invocation.
102164         (EXTRA_DIST): Remove javaexec.sh.in.
102166         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
102167         * modules/csharpcomp-script (Files): Update.
102168         (configure.ac): Add AC_CONFIG_FILES invocation.
102169         (EXTRA_DIST): Remove variable.
102171         * build-aux/csharpexec.sh.in: New file, moved from lib/.
102172         * modules/csharpexec (Files): Update.
102173         (configure.ac): Add AC_CONFIG_FILES invocation.
102174         (EXTRA_DIST): Remove csharpexec.sh.in.
102176 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
102178         Sync from coreutils.
102180         Add POSIX ACL support
102181         * lib/acl.h (copy_acl, set_acl): Add declarations.
102182         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
102183         systems other than Linux.
102184         (chmod_or_fchmod): New function: use fchmod when possible,
102185         and chmod otherwise.
102186         (file_has_acl): Add a POSIX ACL implementation, with a
102187         Linux-specific subcase.
102188         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
102189         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
102190         acls are unsupported.
102191         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
102192         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
102193         are unsupported.
102195 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
102197         Sync from coreutils.
102198         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
102200 2006-01-07  Bruno Haible  <bruno@clisp.org>
102202         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
102203         gl_EARLY.
102205 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102207         * lib/strftime.c (tzname): Don't declare if it is already #defined.
102208         Problem reported for Mingw by Mark Junker.
102210 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102212         * README: Gnulib normally doesn't generate a tarball.
102214 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
102216         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
102217         long int, not int, for nanosecond counts, so that people who are
102218         used to POSIX struct timespec won't be surprised.  Reported by Jim
102219         Meyering.
102221 2005-12-28  Bruno Haible  <bruno@clisp.org>
102223         * build-aux/config.rpath: Update from GNU gettext.
102225 2005-12-16  Jim Meyering  <jim@meyering.net>
102227         * modules/fprintftime: New module.
102228         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
102230 2005-12-16  Jim Meyering  <jim@meyering.net>
102232         * m4/fprintftime.m4: New file.
102234 2005-12-16  Jim Meyering  <jim@meyering.net>
102236         * lib/fprintftime.c, lib/fprintftime.h: New files.
102238 2005-12-15  Simon Josefsson  <jas@extundo.com>
102240         * modules/socklen (configure.ac): Fix M4 macro name, to align with
102241         new m4/socklen.m4.
102243 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102245         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
102246         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
102248 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102250         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
102251         * lib/argp-help.c (fill_in_uparams): Check if the constructed
102252         struct uparams is valid. Fall back to the default values if it is
102253         not.
102255 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102257         * modules/argp (Files): Add argp-pin.c
102258         (Depends-on): dirname
102259         (lib_SOURCES): Add argp-pin.c
102261 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102263         * m4/argp.m4:  Check if program_invocation_name and
102264         program_invocation_short_name are declared and define appropriate
102265         macros if they are not.
102267 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102269         * lib/argp-help.c (__argp_base_name): New function
102270         (__argp_short_program_name): Rewrite using __argp_base_name
102271         * lib/argp-namefrob.h: Define program_invocation_name and
102272         program_invocation_short_name if requested
102273         (__argp_base_name): Add prototype
102274         * lib/argp-parse.c (argp_def): Use gettext wrappers
102275         (argp_default_parser): Use __argp_base_name
102276         * lib/argp-pin.c: New file. Defines program_invocation_name and
102277         program_invocation_short_name on systems that lack them.
102279 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102281         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
102282         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102283         porting problem reported by Georg Schwarz in
102284         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102286 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102288         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
102289         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102290         porting problem reported by Georg Schwarz in
102291         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102293 2005-12-05  Bruno Haible  <bruno@clisp.org>
102295         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
102296         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
102297         Reported by Mark Junker <mjscod@gmx.de>.
102299 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
102301         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
102302         Use implementation from Albert Chin, with some
102303         comments/corrections by Stepan Kasal and myself.
102305 2005-12-02  Bruno Haible  <bruno@clisp.org>
102307         * gnulib-tool (func_import): Accept GPLed build tool modules when
102308         --lgpl is given.
102309         * modules/csharpcomp-script: New file.
102310         * modules/csharpcomp: Depend on it.
102311         * modules/javacomp-script: New file.
102312         * modules/javacomp: Depend on it.
102313         Suggested by Simon Josefsson.
102315 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
102317         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
102318         statement, to work around an HP-UX 10.20 compiler bug reported by
102319         Peter O'Gorman.
102321 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102323         * modules/savedir (Depends-on): Add openat.
102325 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102327         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
102328         (uintmax_t) [defined uintmax_t]: Do not declare.
102329         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
102330         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
102331         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
102332         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
102333         sake of portability to weird hosts that C allows (though we don't
102334         know of any practical examples).
102336         * lib/savedir.h (fdsavedir): New decl.
102337         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
102338         contains most of the former guts of savedir.
102339         (savedir): Use savedirstream.
102340         Include "openat.h".
102342 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
102344         * modules/obstack (Files): Add m4/ulonglong.m4.
102345         Problem reported by Davide Angelocola.
102347 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
102349         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
102350         coreutils no longer futzes with rounding modes.
102352 2005-11-14  Jim Meyering  <jim@meyering.net>
102354         * lib/mkstemp-safer.c: Include <config.h>, required for possible
102355         replacement of mkstemp.
102357 2005-11-10  Simon Josefsson  <jas@extundo.com>
102359         * lib/readline.c: Remove EOL.
102361 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102363         * modules/gethrxtime (Depends-on): Add gettime.
102365 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102367         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
102368         or gettimeofday; no longer needed.
102370 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102372         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
102373         time business.
102374         (gethrxtime) [! (HAVE_NANOUPTIME
102375         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
102376         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
102377         our own approximation.
102379 2005-11-08  Eric Blake  <ebb9@byu.net>
102381         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102383 2005-11-08  Eric Blake  <ebb9@byu.net>
102385         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102387 2005-11-04  Bruno Haible  <bruno@clisp.org>
102389         * gnulib-tool: Implement --update mode.
102391 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102393         Fix porting problem reported by Theodoros V. Kalamatianos.
102394         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
102395         Don't assume that futimes failing means we must fail.
102397 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102399         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
102400         variables to suggest the intended function of the PATH_MAX check.
102402 2005-10-30  Kean Johnston  <jkj@sco.com>
102404         Trivial changes to support SCO systems.
102405         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
102406         as PATH_MAX.
102407         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
102408         where __ptr is null when no I/O is pending.
102410 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102412         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
102413         leave errno alone.  Problem reported by Dmitry V. Levin.
102415 2005-10-28  Simon Josefsson  <jas@extundo.com>
102417         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
102418         Test more.
102420         * tests/test-gc-md2.c, tests/test-md2.c: New files.
102422         * modules/md2, modules/md2-tests: New files.
102424 2005-10-28  Simon Josefsson  <jas@extundo.com>
102426         * m4/inet_ntop.m4: More tests.
102428         * m4/gc-md2.m4, md2.m4: New file.
102430 2005-10-28  Simon Josefsson  <jas@extundo.com>
102432         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
102433         "restrict" keywords, as per POSIX.  Protect the function
102434         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
102435         Don't use K&R prototypes.  Check the sprintf return values.
102436         Re-define EAFNOSUPPORT if not present.  Indent.
102438         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
102439         suggested by Bruno Haible <bruno@clisp.org>.
102441         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
102443         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
102445         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
102446         libgcrypt).
102448         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
102450         * lib/md2.h, lib/md2.c: New files.
102452 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
102454         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
102455         errno alone.  Problem reported by Frederic Jolliton.
102457 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
102459         * modules/verify (License): Change from GPL to LGPL.  This is a
102460         tiny module and there are apparently near-equivalents that are
102461         under the BSD license.
102463 2005-10-24  Simon Josefsson  <jas@extundo.com>
102465         * modules/sha1: Relicense to LGPL.
102467 2005-10-24  Simon Josefsson  <jas@extundo.com>
102469         * lib/md4.h: Shrink buffer size, now that we changed the type.
102471 2005-10-23  Simon Josefsson  <jas@extundo.com>
102473         * gnulib-tool (func_import): Fix --tests-base.
102475 2005-10-22  Simon Josefsson  <jas@extundo.com>
102477         * modules/arcfour (Depends-on): Need stdint.
102479 2005-10-22  Simon Josefsson  <jas@extundo.com>
102481         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
102482         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
102484 2005-10-22  Simon Josefsson  <jas@extundo.com>
102486         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
102487         suggested by Bruno Haible <bruno@clisp.org>.
102489 2005-10-22  Simon Josefsson  <jas@extundo.com>
102491         * lib/crc.h: Include stddef.h, for size_t.
102493 2005-10-22  Simon Josefsson  <jas@extundo.com>
102495         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
102496         arcfour_context struct (simplify test vector testing in GNU
102497         Shishi).
102499 2005-10-21  Simon Josefsson  <jas@extundo.com>
102501         * modules/des, modules/des-tests: New files.
102503         * modules/gc-des, modules/gc-des-tests: New files.
102505         * tests/test-des.c, tests/test-gc-des.c: New file.
102507 2005-10-21  Simon Josefsson  <jas@extundo.com>
102509         * modules/arctwo, modules/arctwo-tests: New files.
102511         * tests/test-arctwo.c: New file.
102513         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
102515         * tests/test-gc-arctwo.c: New file.
102517 2005-10-21  Simon Josefsson  <jas@extundo.com>
102519         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
102520         Bruno Haible <bruno@clisp.org>.
102522         * m4/gc-des.m4: New file.
102524 2005-10-21  Simon Josefsson  <jas@extundo.com>
102526         * m4/arctwo.m4: New file.
102528         * m4/gc-arctwo.m4: New file.
102530 2005-10-21  Simon Josefsson  <jas@extundo.com>
102532         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
102533         block.
102535 2005-10-21  Simon Josefsson  <jas@extundo.com>
102537         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
102538         <bruno@clisp.org>.
102540         * lib/hmac-sha1.c (hmac_sha1): Likewise.
102542         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
102543         Bruno Haible <bruno@clisp.org>.
102545         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
102546         <bruno@clisp.org>.
102548 2005-10-21  Simon Josefsson  <jas@extundo.com>
102550         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
102552 2005-10-21  Simon Josefsson  <jas@extundo.com>
102554         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
102556 2005-10-21  Simon Josefsson  <jas@extundo.com>
102558         * lib/des.h, lib/des.c: New files.
102560         * lib/gc-gnulib.c: Support DES.c
102562 2005-10-21  Simon Josefsson  <jas@extundo.com>
102564         * lib/arctwo.h, lib/arctwo.c: New files.
102566         * lib/gc-gnulib.c: Support ARCTWO.
102568 2005-10-21  Simon Josefsson  <jas@extundo.com>
102570         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
102571         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102573 2005-10-21  Simon Josefsson  <jas@extundo.com>
102575         * gnulib-tool (func_import, func_create_testdir): Define automake
102576         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
102577         Makefile.am snippet),
102578         suggested by Bruno Haible <bruno@clisp.org>.
102580         * modules/gc (Makefile.am): Use it.
102582 2005-10-21  Bruno Haible  <bruno@clisp.org>
102584         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
102585         patch.
102587 2005-10-19  Simon Josefsson  <jas@extundo.com>
102589         * tests/test-gc-rijndael.c: New file.
102591         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
102593 2005-10-19  Simon Josefsson  <jas@extundo.com>
102595         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
102596         interface too.
102598 2005-10-19  Simon Josefsson  <jas@extundo.com>
102600         * tests/test-gc-arcfour.c: New file.
102602         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
102604 2005-10-19  Simon Josefsson  <jas@extundo.com>
102606         * modules/gc-md4, modules/gc-md4-tests: New file.
102608         * tests/test-gc-md4.c: New file.
102610 2005-10-19  Simon Josefsson  <jas@extundo.com>
102612         * m4/gc-md4.m4: New file.
102614 2005-10-19  Simon Josefsson  <jas@extundo.com>
102616         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
102617         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
102618         <kasal@ucw.cz>.
102620 2005-10-19  Simon Josefsson  <jas@extundo.com>
102622         * m4/gc-arcfour.m4: New file.
102624         * m4/gc-rijndael.m4: New file.
102626 2005-10-19  Simon Josefsson  <jas@extundo.com>
102628         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
102630 2005-10-19  Simon Josefsson  <jas@extundo.com>
102632         * lib/gc-gnulib.c: Support ARCFOUR.
102634 2005-10-19  Simon Josefsson  <jas@extundo.com>
102636         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
102637         support.
102639         * lib/gc.h: Add ECB enum type.
102641         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
102643 2005-10-18  Simon Josefsson  <jas@extundo.com>
102645         * tests/test-md5.c: New file.
102647         * modules/md5-tests: New file.
102649 2005-10-18  Simon Josefsson  <jas@extundo.com>
102651         * tests/test-md4.c: New file.
102653         * modules/md4, modules/md4-tests: New files.
102655 2005-10-18  Simon Josefsson  <jas@extundo.com>
102657         * m4/md4.m4: New file.
102659 2005-10-18  Simon Josefsson  <jas@extundo.com>
102661         * lib/md4.h, lib/md4.c: New files, based on md5.?.
102663 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
102665         * gnulib-tool (func_create_testdir): Omit the second check whether
102666         BUILT_SOURCES in nonempty.
102668 2005-10-17  Simon Josefsson  <jas@extundo.com>
102670         * tests/test-rijndael.c: New file.
102672 2005-10-17  Simon Josefsson  <jas@extundo.com>
102674         * modules/sha1: Depend on stdint instead of md5.
102676         * modules/md5: Depend on stdint, remove uint32_t.
102678 2005-10-17  Simon Josefsson  <jas@extundo.com>
102680         * modules/gc-sha1-tests: New file.
102682         * tests/test-gc-sha1.c: New file.
102684 2005-10-17  Simon Josefsson  <jas@extundo.com>
102686         * m4/md5.m4: Remove call to uint32_t.m4.
102688 2005-10-17  Simon Josefsson  <jas@extundo.com>
102690         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
102692         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
102693         md5.h.
102695         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
102697         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
102699 2005-10-17  Simon Josefsson  <jas@extundo.com>
102701         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
102703 2005-10-17  Simon Josefsson  <jas@extundo.com>
102705         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
102707 2005-10-17  Simon Josefsson  <jas@extundo.com>
102709         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
102711         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
102713 2005-10-17  Bruno Haible  <bruno@clisp.org>
102715         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
102716         that it can also be used in a test.
102718 2005-10-16  Bruno Haible  <bruno@clisp.org>
102720         * gnulib-tool (func_emit_tests_Makefile_am): Also define
102721         TESTS_ENVIRONMENT, so that individual tests can augment it.
102723         * gnulib-tool (func_create_testdir): Use an intermediate target for
102724         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
102725         macros, like $(ALLOCA_H), which cannot be passed through the command
102726         line.
102728 2005-10-15  Simon Josefsson  <jas@extundo.com>
102730         * modules/rijndael-tests: New file.
102732         * modules/rijndael: New file.
102734 2005-10-15  Simon Josefsson  <jas@extundo.com>
102736         * m4/rijndael.m4: New file.
102738 2005-10-15  Simon Josefsson  <jas@extundo.com>
102740         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
102742         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
102744 2005-10-14  Simon Josefsson  <jas@extundo.com>
102746         * tests/test-arcfour.c: New file.
102748         * modules/arcfour, modules/arcfour-tests: New files.
102750 2005-10-14  Simon Josefsson  <jas@extundo.com>
102752         * m4/arcfour.m4: New file.
102754 2005-10-14  Simon Josefsson  <jas@extundo.com>
102756         * lib/arcfour.h, lib/arcfour.c: New files.
102758 2005-10-14  Roland McGrath  <roland@redhat.com>
102760         Import from libc.  [BZ #1331]
102761         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
102762         macro argument.
102763         Reported by Matej Vela <vela@debian.org>.
102765 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
102767         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
102768         include <wchar.h>; no longer needed.
102770 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
102772         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
102774 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
102775         and  Ulrich Drepper  <drepper@redhat.com>
102777         Import from libc.
102778         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
102779         instead of inline stream orientation test and two separate
102780         function calls.  Pay no attention to USE_IN_LIBIO.
102782 2005-10-13  Simon Josefsson  <jas@extundo.com>
102784         * modules/gc-hmac-md5-tests: New file.
102786         * tests/test-gc-hmac-sha1.c: New file.
102788         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
102790         * modules/gc-hmac-md5-tests: New file.
102792         * tests/test-gc-md5.c: New file.
102794         * modules/gc-md5-tests: New file.
102796 2005-10-13  Simon Josefsson  <jas@extundo.com>
102798         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
102799         Move memory allocation outside of loop.
102801 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
102803         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
102804         intermediate directory is in a read-only file system.  Problem
102805         reported by Eric Blake.
102807 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
102809         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
102811 2005-10-12  Simon Josefsson  <jas@extundo.com>
102813         * tests/test-hmac-sha1.c: New file.
102815         * modules/hmac-sha1-tests: New file.
102817         * modules/hmac-sha1: New file.
102819 2005-10-12  Simon Josefsson  <jas@extundo.com>
102821         * modules/gc-sha1: New file.
102823 2005-10-12  Simon Josefsson  <jas@extundo.com>
102825         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
102827         * tests/test-gc-pbkdf2-sha1.c: New file.
102829 2005-10-12  Simon Josefsson  <jas@extundo.com>
102831         * modules/gc-md5, modules/gc-hmac-md5: New files.
102833         * modules/gc (Files): Remove md5, memxor and hmac files.
102835 2005-10-12  Simon Josefsson  <jas@extundo.com>
102837         * m4/gc-pbkdf2-sha1.m4: New file.
102839         * m4/gc-hmac-sha1.m4: New file.
102841         * m4/gc-sha1: New file.
102843         * m4/hmac-sha1.m4: New file.
102845 2005-10-12  Simon Josefsson  <jas@extundo.com>
102847         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
102849         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
102851 2005-10-12  Simon Josefsson  <jas@extundo.com>
102853         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
102854         suggested by Bruno Haible <bruno@clisp.org>.
102856 2005-10-12  Simon Josefsson  <jas@extundo.com>
102858         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
102860 2005-10-12  Simon Josefsson  <jas@extundo.com>
102862         * lib/gc-pbkdf2-sha1.c: New file.
102864         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
102866 2005-10-12  Simon Josefsson  <jas@extundo.com>
102868         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
102870         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
102872 2005-10-12  Simon Josefsson  <jas@extundo.com>
102874         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
102875         GC_USE_HMAC_MD5, respectively.
102877         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
102878         (gc_md5): Fix typo.
102880         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
102882         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
102884         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
102886 2005-10-12  Bruno Haible  <bruno@clisp.org>
102888         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
102889         Reported by Stepan Kasal <kasal@ucw.cz>.
102891 2005-10-11  Simon Josefsson  <jas@extundo.com>
102893         * tests/test-crc.c: New file.
102895         * modules/crc, modules/crc-tests: New files.
102897 2005-10-11  Simon Josefsson  <jas@extundo.com>
102899         * m4/crc.m4: New file.
102901 2005-10-11  Simon Josefsson  <jas@extundo.com>
102903         * lib/gc.h: Add gc_hash and gc_hash_buffer.
102905         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
102907         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
102909 2005-10-11  Simon Josefsson  <jas@extundo.com>
102911         * lib/crc.h, lib/crc.c: New files.
102913         * lib/gc.h (gc_hash_buffer): Add doc.
102915 2005-10-11  Bruno Haible  <bruno@clisp.org>
102917         * modules/c-strcasestr: New file.
102918         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
102920 2005-10-11  Bruno Haible  <bruno@clisp.org>
102922         * modules/c-strcase: New file.
102923         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
102925 2005-10-11  Bruno Haible  <bruno@clisp.org>
102927         * lib/strcasecmp.c: Include limits.h.
102928         (strcasecmp): Avoid integer overflow on exotic platforms.
102929         * lib/strncasecmp.c: Include limits.h.
102930         (strncasecmp): Avoid integer overflow on exotic platforms.
102931         Reported by Paul Eggert.
102933 2005-10-11  Bruno Haible  <bruno@clisp.org>
102935         * lib/c-strcasestr.h: New file, from GNU gettext.
102936         * lib/c-strcasestr.c: New file, from GNU gettext.
102938 2005-10-11  Bruno Haible  <bruno@clisp.org>
102940         * lib/c-strcase.h: New file, from GNU gettext.
102941         * lib/c-strcasecmp.c: New file, from GNU gettext.
102942         * lib/c-strncasecmp.c: New file, from GNU gettext.
102944 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
102946         * modules/mempcpy (License): GPL -> LGPL.
102947         * modules/strchrnul (License): Likewise.
102948         * modules/sysexits (License): Likewise.
102950 2005-10-08  Simon Josefsson  <jas@extundo.com>
102952         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
102954 2005-10-07  Simon Josefsson  <jas@extundo.com>
102956         * m4/memxor.m4: Remove gl_C_RESTRICT call.
102958 2005-10-06  Simon Josefsson  <jas@extundo.com>
102960         * tests/test-hmac-md5.c: New file.
102962         * modules/hmac-md5-tests: New file.
102964         * modules/hmac-md5: New file.
102966 2005-10-06  Simon Josefsson  <jas@extundo.com>
102968         * m4/hmac-md5.m4: New file.
102970         * m4/memxor.m4: Require gl_C_RESTRICT.
102972 2005-10-06  Simon Josefsson  <jas@extundo.com>
102974         * lib/memxor.c (memxor): Avoid casts and warnings.
102976 2005-10-06  Simon Josefsson  <jas@extundo.com>
102978         * lib/hmac-md5.c: New file.
102980         * lib/hmac.h: New file.
102982 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
102984         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
102985         promotes to int, not unsigned int, to catch the AIX 5.3
102986         compiler bug.
102988 2005-10-05  Simon Josefsson  <jas@extundo.com>
102990         * modules/memxor: New file.
102992         * modules/iconv (Files): Move config.rpath to havelib, it is used
102993         there.
102995         * modules/havelib (Files): Add config.rpath.
102997 2005-10-05  Simon Josefsson  <jas@extundo.com>
102999         * m4/memxor.m4: New file.
103001 2005-10-05  Simon Josefsson  <jas@extundo.com>
103003         * lib/memxor.c (memxor): Fix compiler error.
103005         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
103006         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
103008         * lib/memxor.h, lib/memxor.c: New files.
103010         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
103011         we assume all systems have it, suggested by Jim Meyering
103012         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
103013         any systems lack sys/socket.h; mingw32 is known to lack it, but we
103014         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
103015         same reasons.
103017 2005-10-05  Simon Josefsson  <jas@extundo.com>
103019         * config/srclist.txt: Add glibc bug 1423 for md5.h.
103021 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
103023         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
103024         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
103025         needed, since the source code now assumes these .h files.
103027 2005-10-05  Derek Price  <derek@ximbiot.com>
103029         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
103031 2005-10-05  Bruno Haible  <bruno@clisp.org>
103033         * modules/stdint (License): Change to LGPL.
103035 2005-10-04  Simon Josefsson  <jas@extundo.com>
103037         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
103038         D. Baushke" <mdb@gnu.org>.
103040 2005-10-04  Bruno Haible  <bruno@clisp.org>
103042         * lib/verify.h (verify_true): Provide alternative definition for C++.
103044 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
103046         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
103047         (SSIZE_MAX): New macro, if not already defined.
103048         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
103049         than 2 GiB.
103051 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103053         Sync from coreutils.
103054         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
103055         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
103056         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
103057         ULLONG_MAX doesn't work with 2.7.2.1.
103059 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103061         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
103062         From Ben Pfaff.
103064         * modules/exclude (Depends-on): Depend on verify.
103065         * modules/strtoimax (Depends-on): Likewise.
103066         * modules/utimecmp (Depends-on): Likewise.
103068 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103070         * lib/exclude.c: Include verify.h.
103071         (verify): Remove.  All callers changed to use verify.h's version.
103072         * lib/strtoimax.c: Likewise.
103073         * lib/utimecmp.c: Likewis.e
103075         Sync from coreutils.
103076         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
103077         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
103078         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
103079         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
103080         bother returning ENOSYS if settimeofday or stime fails; just let
103081         them return whatever errno they want to return.
103082         * lib/utimens.c: Include unistd.h, for dup2.
103083         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
103084         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
103086 2005-10-02  Jim Meyering  <jim@meyering.net>
103088         Sync from coreutils.
103089         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
103090         from glibc-2.2.5 that fails for read-only files.
103092 2005-10-02  Jim Meyering  <jim@meyering.net>
103094         Sync from coreutils.
103095         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
103096         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
103097         `#if HAVE_CONFIG_H'.
103098         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
103099         Remove AT_FDCWD test.
103100         Do not consume the fd unless successful.
103101         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
103102         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
103103         block, so that we don't even try to compile it if settimeofday is
103104         available.  This works around a compilation failure on OSF1 V5.1,
103105         due to stime requiring a `long int*' while tv_sec is `int'.
103107 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
103109         Sync from coreutils.
103110         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
103111         against `yes', rather than just testing for nonempty.
103113 2005-10-01  Simon Josefsson  <jas@extundo.com>
103115         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
103116         and Darwin.
103118         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
103119         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
103120         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
103121         freeaddrinfo and gai_strerror are declared by the POSIX headers.
103122         Check if struct addrinfo is declared.
103124 2005-10-01  Simon Josefsson  <jas@extundo.com>
103126         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
103127         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
103128         AI_* and EAI_* definitions.  Protect function declarations.
103130 2005-10-01  Jim Meyering  <jim@meyering.net>
103132         Sync from coreutils.
103134         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
103135         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
103136         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
103137         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
103138         in the inet and nsl libraries.  Required on Solaris 5.7.
103140 2005-10-01  Jim Meyering  <jim@meyering.net>
103142         Sync from coreutils.
103143         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
103144         in the inet and nsl libraries.  Required on Solaris 5.7.
103146 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
103148         * lib/getdelim.c (getdelim): Remove unused variables.
103150 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
103152         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
103153         so that the code works even with ancient cpp.  Portability problem
103154         with GCC 2.7.2.1 reported by Thomas M.Ott.
103156 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
103158         * modules/regex (Depends-on): Add strcase.
103160         * modules/gethostname (Licence): Change from GPL to LGPL, since
103161         gethostname.c is a trivial implementation of a standard library
103162         function.
103163         * modules/poll (License): Change from GPL to LGPL, since it's
103164         derived from LGPL code.
103166 2005-09-27  Jim Meyering  <jim@meyering.net>
103168         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
103169         HAVE_CONFIG_H.
103171         * lib/intprops.h (signed_type_or_expr__): Define.
103172         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
103173         for unsigned types.
103175 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
103177         * lib/verify.h (verify_expr): Remove, replacing with:
103178         (verify_true): New macro that returns true instead of void.
103179         (verify_type__): Remove.
103180         (verify): Use verify_true rather than verify_type__.
103182 2005-09-26  Bruno Haible  <bruno@clisp.org>
103184         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
103185         is necessary.
103186         (lib_SOURCES): Remove mbchar.c.
103187         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
103188         (Files): Add m4/mbrtowc.m4.
103189         * modules/mbiter: Likewise.
103190         * modules/mbuiter: Likewise.
103192 2005-09-26  Bruno Haible  <bruno@clisp.org>
103194         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
103195         compile mbchar.c if they are not both present.
103196         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
103197         * m4/mbiter.m4 (gl_MBITER): Likewise.
103198         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
103199         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
103200         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
103202 2005-09-25  Jim Meyering  <jim@meyering.net>
103204         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
103205         also uses socklen_t.
103207 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
103209         * lib/utimens.c (ENOSYS): Define if not already defined.
103210         (futimens): Support having a null PATH if the file descriptor
103211         is nonnegative.
103213         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
103214         Remove.
103215         (__attribute): Define to empty unless GCC 3.1 or later.
103216         This works around a core dump on OpenBSD 3.4, which has GCC
103217         2.95.3, which dumps core when given __attribute__(()).  It also
103218         simplifies other tests, since we really don't want to bother with
103219         worrying about which ancient version of GCC supported what.
103220         Original problem reported by Yoann Vandoorselaere, with part of
103221         the fix suggested by Derek Price.
103223 2005-09-24  Jim Meyering  <jim@meyering.net>
103225         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
103226         so we can once again use a positive bitfield width of 1 -- now we
103227         don't have to explain why we were using a bitfield width of 2.
103229 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103231         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
103232         and similarly for the other external symbols.  Problem reported
103233         by James Gallager.
103235         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
103236         bug reported by Jim Meyering.
103238         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
103239         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
103240         not needed, since socklen is a prerequisite module.
103242 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103244         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
103245         Problem reported by Eric Blake.
103246         (getaddrinfo): Initialize se so that it's not garbage.
103247         Redo internal storage allocation so that it doesn't make unportable
103248         assumptions about alignment.
103249         Fix a memory leak.
103251         * lib/utimens.c (futimens): Use futimesat if available.
103252         Prefer it to futimes since it doesn't have the futimes bug.
103254         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
103255         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
103256         Instead, declare a function that returns a pointer to an array,
103257         and use verify_type__ to declare the size of the array.
103258         Problem and germ of a solution reported by Bruno Haible.
103259         (verify_type__): Use 2, not 1, for bitfield size, to avoid
103260         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
103262 2005-09-23  Jim Meyering  <jim@meyering.net>
103264         Sync from coreutils.
103265         Correct build failure (socklen_t not defined) on at least
103266         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
103267         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
103269 2005-09-23  Jim Meyering  <jim@meyering.net>
103271         * modules/getaddrinfo (Depends-on): Add socklen.
103273 2005-09-23  Bruno Haible  <bruno@clisp.org>
103275         * tests/test-verify.c: New file.
103277 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103279         Sync from coreutils.
103281         * modules/argmatch (Depends-on): Add verify.
103282         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
103283         unistd-safer.
103284         * modules/save-cwd (Depends-on): Likewise.
103286         * modules/openat (Files): Add lib/openat-die.c.
103287         (Depends-on): Remove error, exitfail.
103288         Add dirname.
103290         * modules/verify: New file.
103291         * MODULES.html.sh (Diagnostics <assert.h>): New section,
103292         with "verify" module.
103294 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103296         Sync from coreutils.
103298         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
103299         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
103300         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
103301         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
103302         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
103303         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
103304         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
103305         Don't bother checking for string.h, stdlib.h, unistd.h.
103306         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
103307         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
103308         module's job.
103309         * m4/jm-macros.m4 (gl_MACROS): Likewise.
103310         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
103312         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
103313         (gl_GETDATE): Use it.
103315         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
103317 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103319         Sync from coreutils.
103321         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
103322         stat-time.h.
103323         * lib/argmatch.h: Include verify.h
103324         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
103325         (ARGMATCH_ASSERT): Remove; unused.
103326         * lib/canonicalize.c: Assume STDC_HEADERS.
103327         * lib/exclude.c: Include "strcase.h".
103328         * lib/regex_internal.h [!defined _LIBC]: Likewise.
103329         * lib/getusershell.c: Include stdio--.h rather than stdio.h
103330         and stdio-safer.h.
103331         (getusershell): Call fopen, not fopen_safer.
103332         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
103333         Do not include unistd-safer.h.
103334         (save_cwd): Don't call fd_safer; no longer needed
103335         now that we include fcntl--.h.
103337         * lib/getdate.y (relative_time): New type.
103338         (RELATIVE_TIME_0): New constant.
103339         (parser_control): Use relative_time instead of doing it ourselves.
103340         (%union): Add new relative_time rel member.
103341         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
103342         Now typeless.
103343         (relunit, relunit_snumber): Now of type rel.
103344         (zone, rel, relunit, get_date): Adjust to above changes.
103346         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
103347         Do not include unistd-safer.h.
103348         (getloadavg): Don't call fd_safer; no longer needed
103349         now that we include fcntl--.h.
103351         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
103352         (make_dir_parents): Treat ENOSYS like EEXIST.
103354         Improve quality of diagnostics on restore_cwd failure.
103355         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
103356         (make_dir_parents): Last arg is now int * (for errno), not bool *.
103357         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
103358         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
103359         each time through the loop.  Do not diagnose restore_cwd failure;
103360         that is the caller's job (and perhaps the caller does not care).
103362         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
103363         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
103364         If the file already exists but is not a directory, don't bother
103365         to try to make its parents.
103366         Close potential file descriptor leak if we can't chdir("/") (!).
103367         Don't always return true if chdir($PWD) fails; return true only
103368         if the requested action was done successfully (except for the
103369         chdir($PWD)).
103370         Don't log final directory unless we actually made it.
103371         Refactor to avoid duplicate code to fix up permissions.
103372         Don't attempt to fix up parent permissions if chdir($PWD) fails.
103374         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
103375         to make it a bit faster and (I hope) clearer.
103376         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
103377         Fix bug in formats like %2N.
103379         * lib/verify.h: New file.
103381 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103383         Sync from coreutils.
103384         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
103386 2005-09-22  Jim Meyering  <jim@meyering.net>
103388         Sync from coreutils.
103390         * m4/lstat.m4 (gl_FUNC_LSTAT):
103391         Use AC_LIBSOURCES to require lstat.c and lstat.h.
103392         Remove obsolete comment.
103393         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
103394         * m4/xstrtod.m4: Likewise.
103396         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
103398 2005-09-22  Jim Meyering  <jim@meyering.net>
103400         Sync from coreutils.
103402         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
103404         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
103405         the .tm_year member, since otherwise gcc-4.0 would now warn about
103406         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
103408         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
103409         order to avoid an unsuppressible warning from gcc on 64-bit systems.
103411         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
103412         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
103413         when run in a time zone for which daylight savings time is in effect
103414         for the starting date.
103416         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
103417         stop us from restricting permissions of just-created absolute-named
103418         directories.
103419         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
103420         to restore initial working directory.
103421         * lib/mkdir-p.c (make_dir_parents): New parameter:
103422         different_working_dir, to tell caller if/when we change the working
103423         directory and are unable to return to the initial one.
103424         * lib/mkdir-p.h (make_dir_parents): Update prototype.
103425         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
103426         `return false'.  This fixes a bug introduced on 2004-07-30.
103428         * lib/openat.c (fdopendir): Be sure to close the supplied
103429         file descriptor before returning.  This makes our replacement
103430         implementation a little closer to Solaris's, where fdopendir
103431         ties the file descriptor to the returned DIR* pointer.
103432         * lib/openat.c (unlinkat): New function.
103433         * lib/openat.h (unlinkat): Add prototype.
103434         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
103435         (openat_restore_fail): Rename from openat_restore_die.
103436         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
103438         Provide an alternative to exiting immediately upon save_cwd or
103439         restore_cwd failure.  Now, an application can arrange e.g.,
103440         to perform a longjump in that case.
103441         * lib/openat.c: Include dirname.h.
103442         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
103443         (rpl_openat, fdopendir, fstatat): Call openat_save_die
103444         and openat_restore_die rather than calling error directly.
103445         Don't include "error.h" or "exitfail.h"; they're no longer needed.
103447         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
103448         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
103449         define.
103451         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
103452         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
103453                             int utc, int nanoseconds);
103454         Background:
103455         date should not have to allocate a megabyte of virtual memory to
103456         handle a format argument like +%1048575T.  When implemented with
103457         strftime, it must allocate such a buffer, use strftime to fill it
103458         in, print it, then free it.
103459         With fprintftime, it simply prints everything and exits.
103460         With no need for memory allocation, that's one fewer way to fail.
103461         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
103462         optional field width, not before, so we accept %9:z, not %:9z.
103463         (my_strftime): Be sure to use L_('x') for literals.
103465         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
103466         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
103467         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
103468         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
103469         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
103470         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
103471         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
103472         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
103473         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
103474         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
103475         * lib/xgethostname.c, lib/xreadlink.c:
103476         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
103478         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
103479         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
103480         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
103481         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
103482         and don't include <sys/file.h>).
103484 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
103486         Sync from coreutils.
103488         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
103489         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
103490         [!LDAV_DONE]: Avoid unused variable warning.
103492 2005-09-21  Bruno Haible  <bruno@clisp.org>
103494         * lib/unicodeio.h (unicode_to_mb): New declaration.
103496 2005-09-20  Derek Price  <derek@ximbiot.com>
103498         * lib/getaddrinfo.c: Don't include <netdb.h> included from
103499         getaddrinfo.h.
103501 2005-09-20  Bruno Haible  <bruno@clisp.org>
103503         * gnulib-tool: Remove trailing slashes from the values specified for
103504         --source-base, --m4-base, --tests-base, --aux-dir.
103505         Suggested by Simon Josefsson <jas@extundo.com>.
103507 2005-09-20  Bruno Haible  <bruno@clisp.org>
103509         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
103510         func_modules_to_filelist, func_import, func_create_testdir): Make all
103511         sorting results locale-independent, so that gnulib-cache.m4 doesn't
103512         change when gnulib-tool is invoked in a different locale.
103514 2005-09-19  Simon Josefsson  <jas@extundo.com>
103516         * m4/socklen.m4: Fix typo.
103518 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103520         Use a consistent style for including <config.h>.
103521         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
103522         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
103523         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
103524         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
103525         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
103526         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
103527         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
103528         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
103529         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
103530         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
103531         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
103532         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
103533         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
103534         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
103535         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
103536         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
103537         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
103538         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
103539         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
103540         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
103541         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
103542         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
103543         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
103544         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
103545         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
103546         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
103547         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
103548         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
103549         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
103550         lib/xstrtoumax.c, lib/yesno.c:
103551         Standardize inclusion of config.h.
103552         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
103553         lib/inttostr.h:  Removed inclusion of config.h from header files.
103554         * lib/inttostr.c:  Adjusted in-tree users.
103555         * lib/timespec.h: Remove superfluous warning to include config.h.
103556         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
103557         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
103558         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
103559         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
103560         config.h with HAVE_CONFIG_H.
103562 2005-09-19  Jim Meyering  <jim@meyering.net>
103564         * modules/pathmax (License): Change to LGPL.
103566 2005-09-19  Derek Price  <derek@ximbiot.com>
103568         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
103570 2005-09-19  Bruno Haible  <bruno@clisp.org>
103572         * gnulib-tool (import): Provide default for --tests-base.
103574 2005-09-19  Bruno Haible  <bruno@clisp.org>
103576         * doc/quote.texi: New file, extracted from gnulib.texi.
103577         * doc/ctime.texi: New file, extracted from gnulib.texi.
103578         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
103579         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
103580         * doc/gnulib.texi: Include them.
103582 2005-09-18  Bruno Haible  <bruno@clisp.org>
103584         Portability fix.
103585         * gnulib-tool (func_readlink): New function.
103586         (func_ln_if_changed): Use it.
103588 2005-09-18  Bruno Haible  <bruno@clisp.org>
103590         * gnulib-tool: Support --with-tests also with --import.
103591         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
103592         (func_import): Use variables $testsbase and $inctests. Emit a
103593         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
103594         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
103595         SUBDIRS += $testsdir.
103596         (func_create_testdir): Update.
103598 2005-09-18  Bruno Haible  <bruno@clisp.org>
103600         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
103601         instead of $dry_run.
103602         (func_cp_if_changed, func_mv_if_changed): Remove functions.
103603         (func_ln_if_changed): Don't handle dry-run here.
103604         (func_import): In dry-run mode, detect more precisely which actions
103605         would be performed, and don't use "...ing" verbs.
103607 2005-09-18  Bruno Haible  <bruno@clisp.org>
103609         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
103610         (func_import): Use join on two temporary files instead of three nested
103611         loops, in order to determine which files are new or old.
103613 2005-09-18  Bruno Haible  <bruno@clisp.org>
103615         * gnulib-tool (func_import): Comment out code that spits out the
103616         new files with --dry-run.
103618 2005-09-18  Bruno Haible  <bruno@clisp.org>
103620         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
103622 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103624         * lib/stat-time.h: New file.
103625         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
103626         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
103627         in a different way.
103628         (timespec_cmp): New function.
103629         * lib/utimecmp.c: Include stat-time.h.
103630         (SYSCALL_RESOLUTION): Depend on whether various struct stat
103631         members exist, not on the obsolescent ST_MTIM_NSEC.
103632         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
103634 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103636         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
103638 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103640         * MODULES.html.sh (File system functions): Add stat-time.
103641         * modules/stat-time: New file.
103642         * modules/timespec (Files): Remove m4/st_mtim.m4; this
103643         is now done in a different way, by the stat-time module.
103644         * modules/utimecmp (Depends-on): Add stat-time.
103646 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
103648         * m4/st_mtim.m4: Remove.  Superseded by...
103649         * m4/stat-time.m4: New file.
103650         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
103651         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
103653 2005-09-15  Derek Price  <derek@ximbiot.com>
103655         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
103657 2005-09-15  Derek Price  <derek@ximbiot.com>
103659         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
103660         * lib/regex_internal.c: Ditto, using this...
103661         (__GNUC_PREREQ): ...new macro.
103662         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
103663         using...
103664         (__GNUC_PREREQ): ...this new macro.
103666         * lib/strstr.h: Include string.h. Define strstr as a macro here.
103668 2005-09-15  Derek Price  <derek@ximbiot.com>
103669             Paul Eggert  <eggert@cs.ucla.edu>
103671         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
103672         changes, consolidating in...
103673         * lib/regex_internal.h: ...this file.
103675 2005-09-13  Jim Meyering  <jim@meyering.net>
103677         * lib/canon-host.c: Filter through gnu indent and reword comments
103678         slightly.
103679         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
103681 2005-09-13  Derek Price  <derek@ximbiot.com>
103683         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
103684         failure.
103685         Reported by Jim Meyering  <jim@meyering.net>.
103687 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
103689         * lib/base64.c: Typo.
103690         (base64_encode): Put b64str in initialized data section.
103692 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
103694         Merge glibc and coreutils changes into gnulib, plus a few
103695         extra fixes.
103696         * lib/md5.c: Use #error rather than a string.
103697         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
103698         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
103699         (__attribute__): Define to empty for non recent-GCC.
103700         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
103701         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
103702         Renamed from their non-__ counterparts, with new macros replacing
103703         them if not _LIBC.  Add __THROW attribute.
103704         (rol): Remove.
103705         (struct md5_ctx): Align buffer if using GCC.
103706         * lib/sha1.h (struct sha1_ctx): Likewise.
103707         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
103708         The old name was backwards.
103709         (NOTSWAP): Remove; not used.
103710         (rol): New macro, moved here from md5.h.
103711         (sha1_process_block): Remove a FIXME that doesn't make sense.
103713 2005-09-12  Derek Price  <derek@ximbiot.com>
103715         Return usable errors from canon-host.
103716         * lib/canon-host.h: New file.
103717         * lib/canon-host.c (canon_host): Wrap...
103718         (canon_host_r): ...this new function, which now relies exclusively on
103719         getaddrinfo.
103720         (ch_strerror): New function.
103721         (last_cherror): New global.
103722         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
103723         interface.
103724         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
103725         void *.
103726         (freeaddrinfo): Free ai->ai_canonname when set.
103728 2005-09-12  Derek Price  <derek@ximbiot.com>
103730         Make canon-host require getaddrinfo.
103731         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
103732         AC_LIBSOURCE canon-host.h.  Call...
103733         (gl_PREREQ_CANON_HOST): ...this new function, which requires
103734         gl_GETADDRINFO.
103735         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
103737 2005-09-12  Derek Price  <derek@ximbiot.com>
103739         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
103740         LGPL.
103741         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
103743 2005-09-12  Derek Price  <derek@ximbiot.com>
103745         * lib/gai_strerror.c: Include config.h when available.  Include
103746         getaddrinfo.h before other headers to test interface.
103747         Reported by Larry Jones <lawrence.jones@ugs.com>.
103749 2005-09-12  Derek Price  <derek@ximbiot.com>
103750             Paul Eggert  <eggert@cs.ucla.edu>
103752         * modules/glob (Files): Add glob-libc.h.
103754 2005-09-12  Derek Price  <derek@ximbiot.com>
103755             Paul Eggert  <eggert@cs.ucla.edu>
103757         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
103758         glob_.h, glob-libc.h.
103759         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
103761 2005-09-12  Derek Price  <derek@ximbiot.com>
103762             Paul Eggert  <eggert@cs.ucla.edu>
103764         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
103765         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
103766         protecting things that should be done only in gnulib contexts.
103767         * lib/glob_.h: New file, containing only the glob things needed for
103768         gnulib.
103769         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
103770         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
103771         (glob, globfree, glob_pattern_p): Now defined simply in terms of
103772         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
103773         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
103774         and to respect the namespace rules better.
103776 2005-09-08  Simon Josefsson  <jas@extundo.com>
103778         * modules/socklen: New file.
103780 2005-09-08  Simon Josefsson  <jas@extundo.com>
103782         * m4/socklen.m4: New file.
103784 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103786         * modules/utimens (Files): Add m4/utimbuf.m4, since
103787         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
103788         Reported by Sergey Poznyakoff.
103790 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103792         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
103793         definitions, since that's the preferred style in glibc.
103794         Fix a minor spacing issue, and update copyright notice to match
103795         glibc's.
103797 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103799         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
103801 2005-09-06  Simon Josefsson  <jas@extundo.com>
103803         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
103804         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
103806 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
103808         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
103809         warning.
103811 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
103813         * config/srclist.txt: Add glibc bug 1302.
103815 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
103817         Change bitset word type from unsigned int to unsigned long int,
103818         as this has better performance on typical 64-bit hosts.
103819         Port bitset code to hosts with unusual word sizes.
103820         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
103821         (build_collating_symbol):
103822         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
103823         argument is a bitset.  This is merely a style issue, but it makes
103824         it clearer that an entire array is expected.
103825         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
103826         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
103827         Port to the case where bitset_word is not the same as unsigned int.
103828         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
103829         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
103830         Likewise.
103831         * lib/regexec.c (check_dst_limits_calc_pos_1,
103832         check_subexp_matching_top):
103833         (build_trtable, group_nodes_into_DFAstates):
103834         Likewise.
103835         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
103836         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
103837         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
103838         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
103839         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
103840         * lib/regcomp.c (optimize_subexps, lower_subexp):
103841         Work even if bitset_word has holes in its bitwise representation.
103842         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
103843         * lib/regexec.c (check_dst_limits_calc_pos_1,
103844         check_subexp_matching_top):
103845         Likewise.
103846         * lib/regex_internal.c (re_string_reconstruct):
103847         Don't assume UCHAR_MAX == 255.
103848         * lib/regex_internal.h (bitset_set_all): Likewise.
103849         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
103850         All uses changed.
103851         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
103852         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
103853         All uses changed.
103854         (BITSET_WORD_MAX): New macro.
103855         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
103856         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
103857         (bitset_empty, bitset_copy):
103858         Prefer sizeof (bitset) to multiplying it out ourselves.
103859         (bitset_not_merge): Remove; unused.
103860         (bitset_contain): Return bool, not unsigned int with one bit on.
103861         All callers changed.
103862         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
103863         alignment than re_node_set; do this by defining a new internal
103864         type struct dests_alloc and using it to allocate memory.
103866 2005-09-05  Bruno Haible  <bruno@clisp.org>
103868         * gnulib-tool (func_import): Fix comparison in handling of symbolic
103869         links.
103871 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
103873         * modules/size_max (Makefile.am): Add size_max.h
103875 2005-09-04  Derek Price  <derek@ximbiot.com>
103877         * gnulib-tool (func_import): Fix reversed $symbolic logic.
103879 2005-09-03  Simon Josefsson  <jas@extundo.com>
103881         * gnulib-tool: Fix typo.
103883 2005-09-03  Simon Josefsson  <jas@extundo.com>
103885         * config/srclist.txt: Add glibc bug 1293.
103887 2005-09-03  Derek Price  <derek@ximbiot.com>
103889         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
103890         From Larry Jones <lawrence.jones@ugs.com>.
103892 2005-09-02  Simon Josefsson  <jas@extundo.com>
103894         * modules/socklen: New file.
103896 2005-09-02  Simon Josefsson  <jas@extundo.com>
103898         * modules/havelib: New module.
103900         * modules/gettext, modules/iconv, modules/lock, modules/readline:
103901         Use havelib.
103903 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
103905         Check for arithmetic overflow when calculating sizes, to prevent
103906         some buffer-overflow issues.  These patches are conservative, in the
103907         sense that when I couldn't determine whether an overflow was possible,
103908         I inserted a run-time check.
103909         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
103910         macros.
103911         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
103912         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
103913         (re_xnrealloc, re_x2nrealloc): New inline functions.
103914         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
103915         parse_bracket_exp):
103916         (build_equiv_class, build_charclass): Check for arithmetic overflow
103917         in size expression calculations.
103918         * lib/regex_internal.c (re_string_realloc_buffers):
103919         (build_wcs_upper_buffer, re_node_set_add_intersect):
103920         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
103921         (re_dfa_add_node, register_state): Likewise.
103922         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
103923         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
103924         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
103925         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
103927 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
103929         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
103930         m4/ulonglong.m4.  Problem reported by Martin Lambers.
103932 2005-09-02  Bruno Haible  <bruno@clisp.org>
103934         Support for lib vs. lib64 distinction on biarch platforms.
103935         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
103936         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
103937         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
103939 2005-09-02  Bruno Haible  <bruno@clisp.org>
103941         * gnulib-tool (import): In the other first-use case, provide defaults
103942         as well.
103944 2005-09-02  Bruno Haible  <bruno@clisp.org>
103946         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
103947         patches not yet found in the latest gettext release.
103949 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
103951         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
103952         to avoid a collision with bits/local_lim.h in glibc.
103953         All uses changed.  Problem reported by Dmitry V. Levin in
103954         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
103956         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
103957         bugs in int versus size_t comparisons.
103958         (re_string_context_at): Fix bug where the code assumed that
103959         Idx is signed.
103961         Use bool where appropriate.
103962         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
103963         All callers changed.
103964         (calc_eclosure_iter): Likewise, for ROOT arg.
103965         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
103966         (build_charclass_op): Likewise, for NON_MATCH arg.
103967         * lib/regex_internal.c (re_string_allocate, re_string_construct):
103968         (re_string_construct_common): Likewise, for ICASE arg.
103969         * lib/regexec.c (re_search_2_stub, re_search_stub):
103970         Likewise, for RET_LEN arg.
103971         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
103972         (set_regs): Likewise, for FL_BACKTRACK arg.
103973         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
103974         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
103975         (calc_eclosure_iter, parse_bracket_exp):
103976         Use bool for internal variables that are booleans.
103977         * lib/regexec.c (re_search_internal, check_matching,
103978         proceed_next_node):
103979         (set_regs, build_sifted_states, sift_states_bkref):
103980         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
103981         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
103982         (find_collation_sequence_value):
103983         Likewise.
103984         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
103985         (re_node_set_compare):
103986         Return bool, not int. All callers changed.
103987         * lib/regexec.c (check_halt_node_context, check_dst_limits):
103988         (build_trtable, check_node_accept): Likewise.
103989         * lib/regex_internal.h: Include stdbool.h.
103991         Fix bugs uncovered when converting to bool.
103992         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
103993         failure instead of charging ahead blindly.
103994         * lib/regex_internal.c (register_state): Likewise.
103995         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
103996         for freeing internal storage.
103997         (group_nodes_into_DFA_states): Use unsigned int, not int, for
103998         bitset pieces used as boolean, to avoid undefined behavior
103999         on hosts that do int overflow checking.
104001 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
104003         * config/srclist.txt: Add glibc bugs 1285-1287.
104005 2005-09-01  Jim Meyering  <jim@meyering.net>
104007         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
104008         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
104009         Require gl_STAT_MACROS, too.
104011 2005-09-01  Bruno Haible  <bruno@clisp.org>
104013         * gnulib-tool (import): In the first-use case, provide defaults.
104015 2005-09-01  Bruno Haible  <bruno@clisp.org>
104017         * gnulib-tool (func_import): Remove the .tmp files.
104019 2005-09-01  Bruno Haible  <bruno@clisp.org>
104021         * gnulib-tool (func_import): Fix handling of symbolic links.
104023 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104025         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
104026         old glibc regex code mishandles strings longer than 2**31 bytes.
104027         This patch fixes this when the regex code is used in gnulib
104028         (i.e., outside glibc).
104030         This patch should not affect the use of the regex code inside
104031         glibc.  No doubt this problem also needs to be handled for glibc
104032         as well, but the result will be an incompatible change to the
104033         glibc ABI, and the old ABI will have to be supported too.  That
104034         can be the subject for another patch.
104036         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
104037         governing whether the rest of this patch is active.  By default,
104038         the macro is disabled and the patch has no effect.
104039         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
104040         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
104041         (struct re_pattern_buffer, re_search, re_search_2, re_match):
104042         (re_match_2, re_set_registers): Use the new types.
104043         * lib/regex_internal.h (Idx, re_hashval_t): New types.
104044         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
104045         New macros.
104046         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
104047         (re_string_context_at, bin_tree_t, re_dfastate_t):
104048         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
104049         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
104050         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
104051         (re_string_char_size_at, re_string_wchar_at):
104052         (re_string_elem_size_at):
104053         Use the new types and macros to port to 64-bit hosts.
104054         Use unsigned types for internal values, so that the code
104055         mostly works even for arrays larger than SSIZE_MAX.
104056         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
104057         (search_duplicated_node, calc_eclosure_iter, fetch_number):
104058         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
104059         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
104060         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
104061         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
104062         (calc_inveclosure, parse_dup_op, build_range_exp):
104063         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
104064         (fetch_number, create_token_tree, mark_opt_subexp):
104065         Likewise.
104066         * lib/regex_internal.c (re_string_construct_common,
104067         create_ci_newstate):
104068         (create_cd_newstate, re_string_allocate, re_string_construct):
104069         (re_string_realloc_buffers, build_wcs_upper_buffer):
104070         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
104071         (re_string_reconstruct, re_string_peek_byte_case):
104072         (re_string_fetch_byte_case, re_string_context_at):
104073         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
104074         (re_node_set_init_copy, re_node_set_add_intersect):
104075         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104076         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104077         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
104078         (re_acquire_state, re_acquire_state_context, register_state):
104079         Likewise.
104080         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
104081         search_cur_bkref_entry):
104082         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
104083         (re_search_internal, re_search_2_stub, re_search_stub)
104084         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
104085         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
104086         (update_cur_sifted_state, check_dst_limits):
104087         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
104088         (check_subexp_limits, sift_states_bkref, merge_state_array):
104089         (check_subexp_matching_top, get_subexp, get_subexp_sub):
104090         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
104091         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
104092         (expand_bkref_cache, check_node_accept_bytes):
104093         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
104094         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
104095         (acquire_init_state_context, check_halt_node_context):
104096         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
104097         (sift_states_backward, clean_state_log_if_needed):
104098         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
104099         (find_recover_state, transit_state_sb, transit_state_mb):
104100         (transit_state_bkref, build_trtable, match_ctx_clean):
104101         Likewise.
104102         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
104103         to work around an assumption that REG_MISSING is negative.
104105         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
104106         (seek_collating_symbol_entry) [defined _LIBC]:
104107         (lookup_collation_sequence_value) [defined _LIBC]:
104108         (build_range_exp, build_collating_symbol) [defined _LIBC]:
104109         Use prototypes rather than old-style function definitions.
104110         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
104111         (transit_state_sb) [0]:
104112         (find_collation_sequence_value) [defined _LIBC]: Likewise.
104114         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
104115         rm_eo.
104117         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
104118         (optimize_subexps, lower_subexp):
104119         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
104120         since the signed shift might overflow.  Use 1u<<31 instead.
104121         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
104122         Likewise.
104123         * lib/regexec.c (check_dst_limits_calc_pos_1,
104124         check_subexp_matching_top): Likewise.
104126         * lib/regcomp.c (optimize_subexps, lower_subexp):
104127         Use CHAR_BIT rather than 8, for clarity.
104128         * lib/regexec.c (check_dst_limits_calc_pos_1):
104129         (check_subexp_matching_top): Likewise.
104130         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
104131         have to worry about portability issues when shifting it left.
104132         Remove no-longer-needed test for table_size > 0.
104133         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
104134         in a word, as the resulting behavior is undefined.
104135         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
104136         in one case, a <= should have been an <, and in another case the
104137         whole test was missing.
104138         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
104139         the standard name CHAR_BIT.
104140         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
104141         this is not true on one's complement and signed-magnitude hosts.
104143         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
104144         next_last_offset.
104145         (struct re_dfa_t): Remove unused member states_alloc.
104146         * lib/regcomp.c (init_dfa): Don't initialize unused members.
104148 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104150         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
104151         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
104152         and large-file glibc and in 32-bit large-file Solaris.
104154 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104156         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
104157         lengths fit in regoff_t; this isn't true if regoff_t is the same
104158         width as size_t.
104159         * lib/regex.c (re_search_internal): 5th arg is LAST_START
104160         (= START + RANGE) instead of RANGE.  This avoids overflow
104161         problems when regoff_t is the same width as size_t.
104162         All callers changed.
104163         (re_search_2_stub): Check for overflow when adding the
104164         sizes of the two strings.
104165         (re_search_stub): Check for overflow when adding START
104166         to RANGE; if it occurs, substitute the extreme value.
104168 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104170         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
104172 2005-08-31  Jim Meyering  <jim@meyering.net>
104174         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
104175         a pointer-to-const.
104176         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
104177         (register_state): Likewise.
104178         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
104179         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
104180         (group_nodes_into_DFAstates): Likewise.
104182 2005-08-31  Jim Meyering  <jim@meyering.net>
104184         * check-module: Add a FIXME comment.
104186 2005-08-31  Eric Blake  <ebb9@byu.net>
104188         * modules/unistd-safer (Files): Add unistd--.h.
104189         * modules/stdio-safer (Files): Add stdio--.h.
104191 2005-08-31  Derek Price  <derek@ximbiot.com>
104193         * lib/getdelim.c (getdelim): Return EOF on EOF.
104194         Reported by Larry Jones <lawrence.jones@ugs.com>.
104196 2005-08-31  Bruno Haible  <bruno@clisp.org>
104198         Avoid unnecessary diffs in the generated lib/Makefile.am.
104199         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
104200         the generated files.
104201         (func_import): Don't set cmd.
104203 2005-08-31  Bruno Haible  <bruno@clisp.org>
104205         * lib/strstr.c: Include <stddef.h>, for NULL.
104206         * lib/strcasestr.c: Likewise.
104207         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
104209 2005-08-31  Bruno Haible  <bruno@clisp.org>
104211         * gnulib-tool: New option --macro-prefix.
104212         (func_import): Use macro_prefix.
104213         (import): Handle option --macro-prefix.
104215 2005-08-31  Bruno Haible  <bruno@clisp.org>
104217         * gnulib-tool (import): Rename most ac_* variables to cached_*.
104218         Also use new variables cached_lgpl, cached_libtool.
104220 2005-08-31  Bruno Haible  <bruno@clisp.org>
104222         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
104223         always instantiating them.
104225 2005-08-31  Bruno Haible  <bruno@clisp.org>
104227         * gnulib-tool (func_import): Read the previous cached settings
104228         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
104229         earlier added by gnulib but are now dropped. Warn when a gnulib file
104230         overwrites a non-gnulib file.
104232 2005-08-31  Bruno Haible  <bruno@clisp.org>
104234         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
104235         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
104236         projects that don't keep autogenerated files in CVS. Put into
104237         actioncmd only the specified modules, not the transitive closure.
104239 2005-08-31  Bruno Haible  <bruno@clisp.org>
104241         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
104242         Create directories that shall be filled.
104243         (import): Don't look for gl_* macros in configure.ac. Recurse across
104244         all directories containing a gnulib-cache.m4 files, if meaningful.
104246 2005-08-31  Bruno Haible  <bruno@clisp.org>
104248         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
104249         (import): Set seen_libtool when we see gl_LIBTOOL.
104251 2005-08-31  Bruno Haible  <bruno@clisp.org>
104253         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
104254         declaration macro definitions from generated gnulib.m4.
104256 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
104258         * lib/iconvme.h: Add prototype for iconv_alloc.
104260 2005-08-29  Simon Josefsson  <jas@extundo.com>
104262         * lib/iconvme.c: Fix errno.
104264 2005-08-29  Bruno Haible  <bruno@clisp.org>
104266         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
104267         that it works when the directory contains spaces.
104269 2005-08-29  Bruno Haible  <bruno@clisp.org>
104271         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
104273 2005-08-29  Bruno Haible  <bruno@clisp.org>
104275         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
104276         Emit more advice.
104278 2005-08-29  Bruno Haible  <bruno@clisp.org>
104279         and Stepan Kasal  <kasal@ucw.cz>
104281         * check-module: If more parameters are given, check each of them
104282         separately; add more exceptions, as noted by Jim Meyering.
104283         (check_module): New procedure.
104284         (%exempt_header): Now contains all exceptions.
104286 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
104288         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
104290 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
104292         * lib/iconvme.c: Split iconv_string into iconv_alloc.
104294 2005-08-28  Bruno Haible  <bruno@clisp.org>
104296         * m4/gnulib-tool.m4: New file.
104298 2005-08-27  Jim Meyering  <jim@meyering.net>
104300         * modules/unistd-safer (Files): Add pipe-safer.c.
104301         * modules/fcntl-safer (Files): Add creat-safer.c.
104303 2005-08-27  Jim Meyering  <jim@meyering.net>
104305         * m4/stdlib-safer.m4: New file.  From coreutils.
104306         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
104307         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
104308         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
104309         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
104310         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
104312 2005-08-27  Jim Meyering  <jim@meyering.net>
104314         * lib/fopen-safer.c: Merge minor changes from coreutils.
104315         * lib/dup-safer.c: Likewise.
104316         * lib/fd-safer.c: Likewise.
104318         Merge from coreutils.
104319         * lib/stdio--.h: New file.
104320         * lib/stdlib--.h: New file.
104321         * lib/mkstemp-safer.c: New file.
104323         GNU tar needs these.
104324         * lib/pipe-safer.c: New file.
104325         * lib/creat-safer.c: New file.
104326         * lib/fcntl--.h (creat): Define to creat_safer.
104327         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
104328         * lib/unistd--.h (pipe): Define to pipe_safer.
104329         * lib/unistd-safer.h: Declare pipe_safer.
104331 2005-08-26  Simon Josefsson  <jas@extundo.com>
104333         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
104334         Haible <bruno@clisp.org>.
104336 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
104338         * lib/regex_internal.h: Remove all references to
104339         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
104340         or better.
104341         (bitset_not, bitset_merge, bitset_not_merge):
104342         (bitset_mask, re_string_allocate, re_string_construct):
104343         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
104344         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
104345         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
104346         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
104347         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104348         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104349         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
104350         (re_acquire_state_context):
104351         Remove unnecessary forward decls.
104352         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
104353         Put __attribute at function definition,
104354         now that the function decl has been removed.
104355         * lib/regex_internal.c (re_string_peek_byte_case):
104356         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
104357         Likewise.
104359 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
104361         * m4/regex.m4: Add AC_PREREQ(2.50).
104362         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
104364 2005-08-25  Simon Josefsson  <jas@extundo.com>
104366         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
104367         __fsetlocking.
104369 2005-08-25  Simon Josefsson  <jas@extundo.com>
104371         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
104372         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
104373         GLIBC specific code.
104375 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104377         Make regex safe for g++.  This fixes one real bug (an "err"
104378         that should have been "*err").  g++ problem reported by
104379         Sam Steingold.
104380         * lib/regex_internal.h (re_calloc): New macro, consistent with
104381         re_malloc etc.  All callers of calloc changed to use re_calloc.
104382         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
104383         not int.  All callers changed.
104384         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
104385         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
104386         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
104387         (find_recover_state): Change "err" to "*err"; this fixes what
104388         appears to be a real bug.
104389         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
104390         versus int.
104392 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104394         * modules/regex (Depends-on): Add malloc, since the code
104395         assumes that !malloc(0) means failure.
104397 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104399         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
104401         alloca modernization/simplification for regex.
104402         * lib/regex.c: Remove portability cruft for alloca.  This no longer
104403         needs to be at the start of the file, and can be moved into
104404         regex_internal.h and simplified.
104405         * lib/regex_internal.h: Include <alloca.h>.
104406         (__libc_use_alloca) [!defined _LIBC]: New macro.
104407         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
104408         now works outside glibc.
104410 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104412         * config/srclist.txt: Add glibc bugs 1241, 1245.
104414 2005-08-25  Jim Meyering  <jim@meyering.net>
104416         * lib/open-safer.c: Include <config.h>.
104417         Otherwise, we'd lose LARGEFILE support in any file using
104418         e.g. "fcntl--.h"
104420 2005-08-25  Bruno Haible  <bruno@clisp.org>
104422         * m4/minmax.m4: Require autoconf 2.52.
104423         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
104424         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
104425         alternatives of translit over the alphabet.
104426         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
104428 2005-08-24  Simon Josefsson  <jas@extundo.com>
104430         * tests/test-getpass.c: New file.
104432 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104434         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
104435         for GNU regex features.
104437 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104439         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
104440         * lib/regex.h (regerror): Likewise.
104442         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
104443         requires this.  (The code never needed it.)
104445         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
104446         All uses of recently-renamed identifiers changed to use the new,
104447         POSIX-compliant names.  The code will build and run just fine
104448         without these changes, but it's better to eat our own dog food
104449         and use the standard-conforming names.
104451         * lib/regex.h: Fix a multitude of POSIX name space violations.
104452         These changes have an effect only for programs that define
104453         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
104454         do not change anything for programs compiled in the normal way.
104455         Also, there is no effect on the ABI.
104457         (_REGEX_SOURCE): New macro.
104458         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
104459         defined and _GNU_SOURCE is not; this fixes a name space violation.
104461         Rename the following macros to obey POSIX requirements.
104462         The old names are still visible as macros if _REGEX_SOURCE is defined.
104463         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
104464         RE_BACKSLASH_ESCAPE_IN_LISTS.
104465         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
104466         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
104467         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
104468         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
104469         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
104470         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
104471         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
104472         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
104473         (REG_INTERVALS): renamed from RE_INTERVALS.
104474         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
104475         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
104476         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
104477         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
104478         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
104479         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
104480         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
104481         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
104482         RE_UNMATCHED_RIGHT_PAREN_ORD.
104483         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
104484         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
104485         (REG_DEBUG): renamed from RE_DEBUG.
104486         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
104487         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
104488         unusual, since we can't clash with the POSIX REG_ICASE.
104489         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
104490         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
104491         (REG_NO_SUB): renamed from RE_NO_SUB.
104492         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
104493         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
104494         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
104495         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
104496         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
104497         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
104498         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
104499         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
104500         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
104501         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
104502         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
104503         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
104504         RE_SYNTAX_POSIX_MINIMAL_BASIC.
104505         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
104506         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
104507         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
104508         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
104509         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
104510         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
104511         (REG_FIXED): Renamed from REGS_FIXED.
104512         (REG_NREGS): Renamed from RE_NREGS.
104514         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
104515         of other REG_* macros, since POSIX says the user is allowed to
104516         #undef these macros selectively.
104518         (reg_errcode_t): Update comment stating what other tables need
104519         to be consistent.
104521         Rename the following enum values to obey POSIX requirements.
104522         The old names are still visible as macros.
104523         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
104524         is not defined, since GNU is supposed to be a superset of POSIX as
104525         much as possible, and since we want reg_errcode_t to be a signed
104526         type for implementation consistency.
104527         (_REG_NOERROR): Renamed from REG_NOERROR.
104528         (_REG_NOMATCH): Renamed from REG_NOMATCH.
104529         (_REG_BADPAT): Renamed from REG_BADPAT.
104530         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
104531         (_REG_ECTYPE): Renamed from REG_ECTYPE.
104532         (_REG_EESCAPE): Renamed from REG_EESCAPE.
104533         (_REG_ESUBREG): Renamed from REG_ESUBREG.
104534         (_REG_EBRACK): Renamed from REG_EBRACK.
104535         (_REG_EPAREN): Renamed from REG_EPAREN.
104536         (_REG_EBRACE): Renamed from REG_EBRACE.
104537         (_REG_BADBR): Renamed from REG_BADBR.
104538         (_REG_ERANGE): Renamed from REG_ERANGE.
104539         (_REG_ESPACE): Renamed from REG_ESPACE.
104540         (_REG_BADRPT): Renamed from REG_BADRPT.
104541         (_REG_EEND): Renamed from REG_EEND.
104542         (_REG_ESIZE): Renamed from REG_ESIZE.
104543         (_REG_ERPAREN): Renamed from REG_ERPAREN.
104544         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
104545         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
104546         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
104547         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
104549         (_REG_RE_NAME, _REG_RM_NAME): New macros.
104550         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
104551         changed.  But support the old name if the new one is not defined
104552         and if _REGEX_SOURCE.
104554         Change the following member names in struct re_pattern_buffer.
104555         The old names are still supported if !_REGEX_SOURCE.
104556         The new names are always supported, regardless of _REGEX_SOURCE.
104557         (re_buffer): Renamed from buffer.
104558         (re_allocated): Renamed from allocated.
104559         (re_used): Renamed from used.
104560         (re_syntax): Renamed from syntax.
104561         (re_fastmap): Renamed from fastmap.
104562         (re_translate): Renamed from translate.
104563         (re_can_be_null): Renamed from can_be_null.
104564         (re_regs_allocated): Renamed from regs_allocated.
104565         (re_fastmap_accurate): Renamed from fastmap_accurate.
104566         (re_no_sub): Renamed from no_sub.
104567         (re_not_bol): Renamed from not_bol.
104568         (re_not_eol): Renamed from not_eol.
104569         (re_newline_anchor): Renamed from newline_anchor.
104571         Change the following member names in struct re_registers.
104572         The old names are still supported if !_REGEX_SOURCE.
104573         The new names are always supported, regardless of _REGEX_SOURCE.
104574         (rm_num_regs): Renamed from num_regs.
104575         (rm_start): Renamed from start.
104576         (rm_end): Renamed from end.
104578         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
104579         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
104580         Prepend __ to parameter names.
104582         Undo yesterday's changes.
104584 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104586         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
104587         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
104588         lib/regex.c.
104590 2005-08-24  Jim Meyering  <jim@meyering.net>
104592         Sync from coreutils.
104593         * m4/fcntl-safer.m4: New file.
104595         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
104596         and object files for this module.
104598 2005-08-24  Jim Meyering  <jim@meyering.net>
104600         Sync from coreutils.
104601         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
104603 2005-08-24  Jim Meyering  <jim@meyering.net>
104605         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
104606         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
104608 2005-08-24  Jim Meyering  <jim@meyering.net>
104610         * modules/fcntl-safer: New module.
104611         * modules/fts (Depends-on): Add fcntl-safer.
104612         * MODULES.html.sh (File descriptor based Input/Output):
104613         Add fcntl-safer.
104615 2005-08-24  Bruno Haible  <bruno@clisp.org>
104617         Support for unit test modules.
104618         * modules/README: Mention tests modules.
104619         * modules/TEMPLATE-TESTS: New file.
104620         * gnulib-tool: New options --extract-tests-module, --with-tests and
104621         --tests-base (unused for the moment).
104622         (testsbase, inctests): New variables.
104623         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
104624         (func_verify_module): Exclude TEMPLATE-TESTS.
104625         (func_verify_nontests_module, func_verify_tests_module): New functions.
104626         (func_get_dependencies): Add implicit dependency for tests modules.
104627         (func_get_tests_module): New function.
104628         (func_modules_transitive_closure): When --with-tests was specified,
104629         include the unit tests as well, unless explicitly avoided.
104630         (func_emit_lib_Makefile_am): Ignore the tests modules here.
104631         (func_emit_tests_Makefile_am): New function.
104632         (func_create_testdir): When --with-tests was specified, emit a
104633         tests/ directory.
104634         * MODULES.html.sh (Future developments): Update.
104636 2005-08-24  Bruno Haible  <bruno@clisp.org>
104638         * modules/tls-tests: New file.
104639         * tests/test-tls.c: New file, from GNU gettext.
104641 2005-08-24  Bruno Haible  <bruno@clisp.org>
104643         * modules/lock-tests: New file.
104644         * tests/test-lock.c: New file, from GNU gettext.
104646 2005-08-24  Bruno Haible  <bruno@clisp.org>
104648         * lib/lock.h: Add multiple inclusion guard.
104649         * lib/tls.h: Add multiple inclusion guard.
104651 2005-08-24  Bruno Haible  <bruno@clisp.org>
104653         * gnulib-tool: Add support for the --aux-dir option to
104654         --create-testdir, --create-megatestdir, --test, --megatest.
104655         (func_create_testdir, func_create_megatestdir): Optionally emit a
104656         AC_CONFIG_AUX_DIR directive.
104657         (create-testdir, create-megatestdir, test, megatest): Provide a
104658         default value for $auxdir.
104660 2005-08-24  Bruno Haible  <bruno@clisp.org>
104662         * gnulib-tool (import): Use compound statement instead of subshell
104663         where possible.
104665 2005-08-24  Bruno Haible  <bruno@clisp.org>
104667         * gnulib-tool (import): Change --aux-dir default to "build-aux".
104669 2005-08-24  Bruno Haible  <bruno@clisp.org>
104671         * gnulib-tool (func_version): Update.
104673 2005-08-24  Bruno Haible  <bruno@clisp.org>
104675         * gnulib-tool (func_import, func_create_testdir,
104676         func_create_megatestdir): Quote all autoconf macro arguments.
104678 2005-08-24  Bruno Haible  <bruno@clisp.org>
104680         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
104681         option --force, because --force causes the aclocal.m4 of each
104682         subdirectory to be newer than the corresponding config.h.in.
104684 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104686         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
104687         All contents moved to gl_REGEX.
104688         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
104689         assume that it does.
104691 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104693         * lib/regex.h (REG_NOSYS)
104694         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
104695         Define, since POSIX requires it as of 2001.
104696         (_REG_ENOSYS)
104697         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
104698         New private symbol, used to keep the enum signed in all cases.
104699         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
104700         Youngman in
104701         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
104703         * lib/regex_internal.c (re_string_skip_chars, register_state):
104704         (calc_state_hash):
104705         Remove forward decls; no longer needed now that we use prototypes.
104706         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
104707         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
104708         (clean_state_log_if_needed): Likewise.
104710 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104712         * config/srclist.txt: Add glibc bugs 1231-1233.
104714 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104716         Fix problems reported by Sam Steingold in
104717         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
104718         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
104719         assumed that reg_errcode_t is a signed type, which is not
104720         necessarily true if _XOPEN_SOURCE is not defined.
104721         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
104722         since some compilers warn about it otherwise.
104724 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104726         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
104727         (init_word_char, create_initial_state, duplicate_node_closure):
104728         (fetch_token, peek_token_bracket, build_range_exp):
104729         (build_collating_symbol): Remove forward decls; no longer needed
104730         now that we use prototypes.
104732         * lib/regcomp.c:
104733         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
104734         (re_compile_fastmap_iter, regcomp, regerror, regfree):
104735         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
104736         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
104737         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
104738         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
104739         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
104740         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
104741         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
104742         (build_range_exp, build_collating_symbol, parse_bracket_exp):
104743         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
104744         (build_charclass, build_charclass_op, fetch_number, create_tree):
104745         (create_token_tree, mark_opt_subexp, duplicate_tree):
104746         Use prototypes rather than old-style definitions.
104748         * lib/regex_internal.c:
104749         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
104750         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
104751         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
104752         (re_string_reconstruct, re_string_peek_byte_case):
104753         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
104754         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
104755         (re_node_set_init_copy, re_node_set_add_intersect):
104756         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104757         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104758         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
104759         (re_acquire_state, re_acquire_state_context, register_state):
104760         (create_ci_newstate, create_cd_newstate, free_state):
104761         Likewise.
104762         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
104763         re_search_2):
104764         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
104765         (re_search_internal, prune_impossible_nodes):
104766         (acquire_init_state_context, check_matching, static):
104767         (check_halt_node_context, check_halt_state_context, proceed_next_node):
104768         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
104769         (update_regs, sift_states_backward, build_sifted_states):
104770         (clean_state_log_if_needed, merge_state_array):
104771         (update_cur_sifted_state, add_epsilon_src_nodes):
104772         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
104773         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
104774         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
104775         (find_recover_state, check_subexp_matching_top, transit_state_mb):
104776         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
104777         (check_arrival, check_arrival_add_next_nodes):
104778         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
104779         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
104780         (check_node_accept_bytes, check_node_accept, extend_buffers):
104781         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
104782         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
104783         (sift_ctx_init):
104784         Likewise.
104786         * lib/regex_internal.h:
104787         (re_string_allocate, re_string_construct, re_string_reconstruct):
104788         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
104789         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
104790         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
104791         (re_string_context_at, re_string_peek_byte_case):
104792         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
104793         is defined, since we now use prototypes always.
104795         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
104796         C89 or better.  All uses removed.
104798 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104800         * config/srclist.txt: Add glibc bugs 1220-1227.
104802 2005-08-20  Jim Meyering  <jim@meyering.net>
104804         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
104805         of unused local, dfa.
104807 2005-08-20  Bruno Haible  <bruno@clisp.org>
104809         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
104811 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104813         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
104814         (re_node_set_insert_last, re_dfa_add_node):
104815         Rename local variables to avoid GCC shadowing warnings.
104817 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104819         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
104820         [defined lint]: Suppress bogus uninitialized-variable warnings.
104822         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
104823         and let the caller return REG_ESPACE if out of space.  This
104824         removes an uninitialied-variable warning with GCC 4.0.1, and also
104825         avoids taking the address of a local variable.  All callers
104826         changed.
104828 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104830         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
104831         $LIBCSRC/posix/regexec.c.
104832         Add glibc bug 1217 for regcomp.c.
104834 2005-08-19  Jim Meyering  <jim@meyering.net>
104836         * lib/regexec.c (proceed_next_node): Redo local variables to
104837         avoid GCC shadowing warnings.
104839 2005-08-18  Bruno Haible  <bruno@clisp.org>
104841         * lib/strstr.c (strstr): Fix return value in multibyte case.
104842         * lib/strcasestr.c (strcasestr): Likewise.
104844 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
104846         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
104848 2005-08-17  Jim Meyering  <jim@meyering.net>
104850         Make the %s format (seconds since the epoch) work for a negative
104851         number and when used with a zero-padded field width, e.g. %015s.
104853         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
104854         label so that it precedes the code to set `digits'.  Otherwise,
104855         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
104856         print `00-22'.  Now, it prints `-0022', as it should.
104858 2005-08-17  Bruno Haible  <bruno@clisp.org>
104860         * modules/strstr (Files): Add m4/mbrtowc.m4.
104861         (Depends-on): Add mbuiter.
104863 2005-08-17  Bruno Haible  <bruno@clisp.org>
104865         * modules/strcasestr: New file.
104866         * MODULES.html.sh (String handling, based on ANSI C 89): Add
104867         strcasestr.
104869 2005-08-17  Bruno Haible  <bruno@clisp.org>
104871         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
104873 2005-08-17  Bruno Haible  <bruno@clisp.org>
104875         * modules/mbuiter: New file.
104876         * MODULES.html.sh (Extended multibyte and wide character utilities):
104877         Add mbuiter.
104879 2005-08-17  Bruno Haible  <bruno@clisp.org>
104881         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
104882         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
104884 2005-08-17  Bruno Haible  <bruno@clisp.org>
104886         * m4/strcasestr.m4: New file.
104888 2005-08-17  Bruno Haible  <bruno@clisp.org>
104890         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
104891         * lib/strstr.c: Completely rewritten, with multibyte locale support.
104893 2005-08-17  Bruno Haible  <bruno@clisp.org>
104895         * lib/strcasestr.h: New file.
104896         * lib/strcasestr.c: New file.
104898 2005-08-17  Bruno Haible  <bruno@clisp.org>
104900         * lib/strcasecmp.c: Use mbuiter.h.
104902 2005-08-17  Bruno Haible  <bruno@clisp.org>
104904         * lib/mbuiter.h: New file.
104906 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
104908         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
104909         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
104910         and gl_GETOPT are both invoked via different paths (as happens
104911         with GNU tar CVS because it uses both argp and getopt), the former
104912         wins.
104914 2005-08-16  Bruno Haible  <bruno@clisp.org>
104916         * modules/tls: New file.
104917         * MODULES.html.sh (Multithreading): Add tls.
104919 2005-08-16  Bruno Haible  <bruno@clisp.org>
104921         * modules/strnlen1: New file.
104922         * MODULES.html.sh (String handling): Add strnlen1.
104924 2005-08-16  Bruno Haible  <bruno@clisp.org>
104926         * modules/strcase (Files): Add m4/mbrtowc.m4.
104927         (Depends-on): Add strnlen1, mbchar.
104929 2005-08-16  Bruno Haible  <bruno@clisp.org>
104931         * modules/mbiter: New file.
104932         * MODULES.html.sh (Extended multibyte and wide character utilities):
104933         Add mbiter.
104935 2005-08-16  Bruno Haible  <bruno@clisp.org>
104937         * modules/mbfile: New file.
104938         * MODULES.html.sh (Extended multibyte and wide character utilities):
104939         Add mbfile.
104941 2005-08-16  Bruno Haible  <bruno@clisp.org>
104943         * modules/mbchar: New file.
104944         * MODULES.html.sh (Extended multibyte and wide character utilities):
104945         New section.
104947 2005-08-16  Bruno Haible  <bruno@clisp.org>
104949         * m4/tls.m4: New file, from GNU gettext.
104951 2005-08-16  Bruno Haible  <bruno@clisp.org>
104953         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
104954         always.
104955         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
104957 2005-08-16  Bruno Haible  <bruno@clisp.org>
104959         * m4/mbiter.m4: New file.
104961 2005-08-16  Bruno Haible  <bruno@clisp.org>
104963         * m4/mbfile.m4: New file.
104965 2005-08-16  Bruno Haible  <bruno@clisp.org>
104967         * m4/mbchar.m4: New file.
104969 2005-08-16  Bruno Haible  <bruno@clisp.org>
104971         * lib/tls.h: New file, from GNU gettext.
104972         * lib/tls.c: New file, from GNU gettext.
104974 2005-08-16  Bruno Haible  <bruno@clisp.org>
104976         * lib/strnlen1.h: New file.
104977         * lib/strnlen1.c: New file.
104979 2005-08-16  Bruno Haible  <bruno@clisp.org>
104981         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
104982         (mbi_init): Update.
104983         (mbi_avail, mbi_advance): Let the iteration end before the terminating
104984         NUL byte, not after it.
104986 2005-08-16  Bruno Haible  <bruno@clisp.org>
104988         * lib/strcase.h (strcasecmp): Add note in comments.
104989         * lib/strncasecmp.c: Use code from strcasecmp.c.
104990         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
104991         (strcasecmp): Work correctly in multibyte locales.
104993 2005-08-16  Bruno Haible  <bruno@clisp.org>
104995         * lib/mbiter.h: New file.
104997 2005-08-16  Bruno Haible  <bruno@clisp.org>
104999         * lib/mbfile.h: New file.
105001 2005-08-16  Bruno Haible  <bruno@clisp.org>
105003         * lib/mbchar.h: New file.
105004         * lib/mbchar.c: New file.
105006 2005-08-16  Bruno Haible  <bruno@clisp.org>
105008         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
105009         the valid ones. Makes the comparison operations transitive:
105010         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
105011         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
105013 2005-08-15  Simon Josefsson  <jas@extundo.com>
105015         * modules/ssize_t (License): Change to 'unlimited'.
105017         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
105019 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
105021         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
105022         Add comments for each pending glibc patch.
105024 2005-08-15  Bruno Haible  <bruno@clisp.org>
105026         * lib/regex.h (__restrict_arr): Don't define to __restrict if
105027         __cplusplus is defined.
105029 2005-08-14  Jim Meyering  <jim@meyering.net>
105031         Sync from coreutils.
105033         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
105034         Use the hash-table-based cycle-detection code not just when
105035         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
105036         Reported by James Youngman in
105037         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
105038         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
105039         FTS_TIGHT_CYCLE_CHECK.
105040         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
105041         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
105042         once again.
105043         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
105044         * lib/fts.c (fd_safer): Remove decl.
105045         Include fcntl--.h rather than unistd-safer.h
105046         (fts_safe_changedir): Don't call fd_safer; no longer needed
105047         now that we include fcntl--.h.
105049 2005-08-12  Simon Josefsson  <jas@extundo.com>
105051         * modules/getndelim2: Use ssize_t module.
105052         * modules/getnline: Likewise.
105053         * modules/safe-read: Likewise.
105054         * modules/xreadlink: Likewise.
105056         * modules/ssize_t: New file.
105058 2005-08-12  Simon Josefsson  <jas@extundo.com>
105060         * m4/readline.m4: Look for termcap, curses or ncurses if required.
105062 2005-08-12  Simon Josefsson  <jas@extundo.com>
105064         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105065         ssize_t.
105067 2005-08-12  Simon Josefsson  <jas@extundo.com>
105069         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
105070         readline, getdelim and check_version.
105071         (Support for systems lacking ISO C 99: Sizes of integer types):
105072         Add size_max.
105074 2005-08-12  Bruno Haible  <bruno@clisp.org>
105076         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
105078 2005-08-11  Simon Josefsson  <jas@extundo.com>
105080         * modules/readline: New file.
105082         * modules/strnlen (Files): Add strnlen.h.
105084 2005-08-11  Simon Josefsson  <jas@extundo.com>
105086         * m4/readline.m4: New file.
105088 2005-08-11  Simon Josefsson  <jas@extundo.com>
105090         * lib/readline.h, readline.c: New file.
105092 2005-08-11  Simon Josefsson  <jas@extundo.com>
105094         * doc/gnulib.texi (Initial import, Finishing touches): Mention
105095         gl_AVOID.
105097 2005-08-11  Bruno Haible  <bruno@clisp.org>
105099         * lib/strnlen.h (strnlen): Change parameter name to match comment.
105101 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
105103         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
105105 2005-08-10  Simon Josefsson  <jas@extundo.com>
105107         * tests/test-iconvme.c: New file.
105109 2005-08-10  Simon Josefsson  <jas@extundo.com>
105111         * m4/strnlen.m4: New file.
105113         * m4/strndup.m4: Don't check for strnlen declaration, done in
105114         strnlen.m4.
105116 2005-08-10  Simon Josefsson  <jas@extundo.com>
105118         * lib/strndup.c: Use strnlen.h.
105120         * lib/strnlen.h: New file.
105122 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
105124         * README: Typos.
105126 2005-08-02  Simon Josefsson  <jas@extundo.com>
105128         * modules/readline: New file.
105130 2005-08-02  Simon Josefsson  <jas@extundo.com>
105132         * modules/getdelim: New file.
105134         * modules/getline: Rewrite, don't use getndelim2.
105136 2005-08-02  Simon Josefsson  <jas@extundo.com>
105138         * m4/getline.m4: Separate out getdelim stuff into separate module.
105140         * m4/getdelim.m4: New file.
105142 2005-08-02  Simon Josefsson  <jas@extundo.com>
105144         * lib/getline.h, getline.c: Rewrite.
105146         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
105148 2005-07-31  Bruno Haible  <bruno@clisp.org>
105150         * lib/lock.h (gl_lock_initializer): New macro.
105151         (gl_lock_define_initialized): Use it.
105152         (gl_rwlock_initializer): New macro.
105153         (gl_rwlock_define_initialized): Use it.
105154         (gl_recursive_lock_initializer): New macro.
105155         (gl_recursive_lock_define_initialized): Use it.
105157 2005-07-30  Karl Berry  <karl@gnu.org>
105159         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
105160         Report from Ben Pfaff, regarding getopt.
105162 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
105164         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
105165         normal way.
105166         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
105167         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
105168         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
105169         (gl_GETOPT): Use the new macros.  Most of the implementation
105170         is moved to the new macros.  This is for programs like Emacs
105171         that don't want all the functionality of gl_GETOPT.
105173 2005-07-26  Bruno Haible  <bruno@clisp.org>
105175         * m4/lock.m4: Update from GNU gettext.
105177 2005-07-26  Bruno Haible  <bruno@clisp.org>
105179         * lib/lock.h: Update from GNU gettext.
105180         * lib/lock.c: Update from GNU gettext.
105182 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
105184         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
105185         obsolescent AC_TRY_RUN.  Include the default includes files, for
105186         'exit'.
105188 2005-07-24  Bruno Haible  <bruno@clisp.org>
105190         * modules/visibility: New file.
105191         * MODULES.html.sh (Misc): Add visibility.
105193 2005-07-24  Bruno Haible  <bruno@clisp.org>
105195         * m4/visibility.m4: New file.
105197 2005-07-24  Bruno Haible  <bruno@clisp.org>
105199         * doc/visibility.texi: New file.
105201 2005-07-22  Bruno Haible  <bruno@clisp.org>
105203         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
105204         $(ALLOCA_H), redundant through BUILT_SOURCES.
105205         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
105206         redundant through BUILT_SOURCES.
105207         * modules/byteswap (Makefile.am): Remove explicit dependency on
105208         $(BYTESWAP_H), redundant through BUILT_SOURCES.
105209         * modules/fnmatch (Makefile.am): Remove explicit dependency on
105210         $(FNMATCH_H), redundant through BUILT_SOURCES.
105211         * modules/getopt (Makefile.am): Remove explicit dependency on
105212         $(GETOPT_H), redundant through BUILT_SOURCES.
105213         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
105214         redundant through BUILT_SOURCES.
105215         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
105216         redundant through BUILT_SOURCES.
105217         * modules/stdbool (Makefile.am): Remove explicit dependency on
105218         $(STDBOOL_H), redundant through BUILT_SOURCES.
105219         * modules/stdint (Makefile.am): Remove explicit dependency on
105220         $(STDINT_H), redundant through BUILT_SOURCES.
105221         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
105222         Remove explicit dependency on $(SYSEXITS_H).
105223         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
105225 2005-07-18  Simon Josefsson  <jas@extundo.com>
105227         * lib/check-version.c (check_version): Accept identical versions too.
105229 2005-07-18  Bruno Haible  <bruno@clisp.org>
105231         * modules/lock: New file.
105232         * MODULES.html.sh (Multithreading): New section.
105234 2005-07-18  Bruno Haible  <bruno@clisp.org>
105236         * m4/lock.m4: New file, from GNU gettext.
105238 2005-07-18  Bruno Haible  <bruno@clisp.org>
105240         * lib/lock.h: New file, from GNU gettext.
105241         * lib/lock.c: New file, from GNU gettext.
105243 2005-07-18  Bruno Haible  <bruno@clisp.org>
105245         * lib/lock.h (gl_once_t): New type.
105246         (gl_once_define, gl_once): New macros.
105247         * lib/lock.c (fresh_once): New variable.
105248         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
105249         functions.
105251 2005-07-16  Simon Josefsson  <jas@extundo.com>
105253         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
105254         workaround, suggested by Bruno.
105256 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105258         * modules/xalloc (Depends-on): Add xalloc-die.
105259         * modules/xvasprintf (Depends-on): Add xalloc-die.
105261 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105263         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
105264         with a minor change.
105266 2005-07-15  Bruno Haible  <bruno@clisp.org>
105268         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
105269         When using lib/poll.c, define poll as rpl_poll.
105271 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
105273         * modules/argp (Depends-on): Remove unlocked-io.
105275 2005-07-14  Derek Price  <derek@ximbiot.com>
105277         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
105278         for glob symlink bug.
105280 2005-07-14  Bruno Haible  <bruno@clisp.org>
105282         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
105283         Instead, test for *_unlocked function declarations directly.
105285 2005-07-11  Simon Josefsson  <jas@extundo.com>
105287         * modules/size_max: New file.
105289         * modules/xsize: Depend on size_max module for size_max.m4.
105291 2005-07-11  Simon Josefsson  <jas@extundo.com>
105293         * lib/size_max.h: New file.
105295 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
105297         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
105298         copyright symbol and the year.
105299         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
105300         (version_etc_va): Use parameterized copyright notice.
105301         Reword to conform to the current GNU coding standards.
105303 2005-07-11  Karl Berry  <karl@gnu.org>
105305         * doc/gnulib.texi (Quoting): new node.
105306         (Initial import): more info, from Patrice.
105308 2005-07-11  Bruno Haible  <bruno@clisp.org>
105310         * gnulib-tool (func_usage): Document option --avoid.
105311         (Command line options): Handle --avoid.
105312         (func_acceptable): New function.
105313         (func_modules_transitive_closure): Use it.
105315 2005-07-11  Bruno Haible  <bruno@clisp.org>
105317         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
105318         Reported by Jim Meyering.
105320 2005-07-10  Bruno Haible  <bruno@clisp.org>
105322         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
105323         Needed when size_t is smaller than 'unsigned int'.
105324         Reported by Paul Eggert.
105326 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105328         * modules/argp (Depends-on): Add unlocked-io
105330 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105332         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
105333         block of defines.
105335 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
105337         * config/srclist.txt: Comment out regcomp.c, since we have a porting
105338         fix now.
105340 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
105341         and Paul Eggert  <eggert@cs.ucla.edu>
105343         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
105344         in wint_t, not wchar_t.  Remove now-unnecessary cast.
105346 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105348         * modules/regex (Files): Add lib/regex_internal.c,
105349         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
105350         (Depends-on): Add extensions.
105351         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
105353 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105355         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
105356         pathconf.
105357         * m4/same.m4 (gl_SAME): Likewise.
105358         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
105360         * m4/regex.m4: Adjust to new libc regex implementation.
105361         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
105362         all the .c and .h parts of (the new) regex.
105363         Quote the m4 stuff better.
105364         Check for RE_ICASE bug of old gnulib.
105365         Check for REG_STARTEND of recent libc.
105366         Rename local variables from jm_* to gl_*.
105367         Quote operand of "test -f".
105368         Say "recent enough" version of libc, not "version 2".
105369         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
105370         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
105371         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
105372         Remove check for btowc, isascii.
105373         Require AM_LANGINFO_CODESET.
105375 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105377         * lib/regex.c, regex.h: Sync from libc.
105378         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
105379         * lib/regexec.c:
105380         New files, synced from libc, except that regex_internal.h
105381         currently has a small porting fix.
105383 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105385         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
105386         regex_internal.c, regexec.c.
105387         Add regex_internal.h too, but as a comment, since the libc version
105388         is currently broken in gnulib mode.
105390 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
105392         Support programs like Emacs that use gnulib but not gettext.
105393         * MODULES.html.sh (Internationalization functions): Add gettext-h.
105394         * modules/gettext-h: New file.
105395         * modules/gettext (Files): Remove lib/gettext.h.
105396         (Depends-on): Add gettext-h.
105397         (Makefile.am): Remove lib_SOURCES.
105398         * modules/argmatch, modules/c-stack, modules/closeout:
105399         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
105400         * modules/execute, modules/file-type, modules/getaddrinfo:
105401         * modules/getopt, modules/human, modules/javacomp:
105402         * modules/javaexec, modules/mkdir-p, modules/obstack:
105403         * modules/openat, modules/pagealign_alloc, modules/pipe:
105404         * modules/quotearg, modules/regex, modules/rpmatch:
105405         * modules/unicodeio, modules/userspec, modules/version-etc:
105406         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
105407         * modules/xsetenv:
105408         Depend on gettext-h, not gettext.
105410 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
105412         * gnulib-tool (func_import): Add support for 'public domain' license.
105413         * modules/alloca, modules/atexit, modules/memmove:
105414         Now public domain, not GPL.
105415         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
105416         * modules/realloc, modules/strerror, modules/strtod:
105417         Now LGPL, not GPL.
105419 2005-07-05  Bruno Haible  <bruno@clisp.org>
105421         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
105422         autoconf CVS. Needed for mingw.
105424 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105426         Remove the dependency of the strftime module on the tzset module.
105427         * modules/strftime (Depends-on): Remove dependency on tzset.
105429 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105431         Remove the dependency of the strftime module on the tzset module.
105432         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
105433         gl_FUNC_TZSET_CLOBBER.
105435 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105437         Remove the dependency of the strftime module on the tzset module.
105438         * lib/strftime.c (my_strftime)
105439         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
105440         Copy the input structure, to work around some of the bug with
105441         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
105442         Solaris releases, you should also use the tzset module, but we won't
105443         require it as a dependency any more since we don't want LGPLed code
105444         to depend on GPLed code.
105446 2005-07-02  Jim Meyering  <jim@meyering.net>
105448         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
105449         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
105450         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
105451         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
105453 2005-07-02  Jim Meyering  <jim@meyering.net>
105455         * lib/backupfile.c (backup_args): Change a `0' to NULL.
105457 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105459         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
105460         declares only 'struct timespec;' (!).
105462 2005-07-01  Jim Meyering  <jim@meyering.net>
105464         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
105465         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
105466         * lib/save-cwd.c, tempname.c:
105467         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
105468         and don't include <sys/file.h>).
105470 2005-06-29  Jim Meyering  <jim@meyering.net>
105472         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
105473         type name.  Use the variable name instead.
105474         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
105475         Likewise.
105477 2005-06-28  Simon Josefsson  <jas@extundo.com>
105479         * modules/check-version (Files): Add check-version.m4.
105481 2005-06-28  Simon Josefsson  <jas@extundo.com>
105483         * m4/check-version.m4: New file, suggested by Jim Meyering
105484         <jim@meyering.net>.
105486 2005-06-28  Simon Josefsson  <jas@extundo.com>
105488         * lib/check-version.h, lib/check-version.c: New files.
105490 2005-06-28  Simon Josefsson  <jas@extundo.com>
105492         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
105493         collision with global variable.  Better indentation.  Don't
105494         increment buffer pointer beyond buffer end.  Based on comments
105495         from Paul Eggert <eggert@cs.ucla.edu>.
105497         * lib/base64.h: Indent.
105499 2005-06-28  Simon Josefsson  <jas@extundo.com>
105501         * doc/gnulib.texi (Library version handling): New section.
105503 2005-06-28  Jim Meyering  <jim@meyering.net>
105505         * check-module (find_included_lib_files): Hard-code another
105506         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
105507         but modules/fts-lgpl (correctly) does not list those files.
105509         * modules/canonicalize (Files): Add lib/pathmax.h.
105511 2005-06-25  Simon Josefsson  <jas@extundo.com>
105513         * modules/check-version: New file.
105515 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
105517         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
105518         initializer of struct addrinfo, as an indication that we don't
105519         care how many members the structure has.
105521 2005-06-24  Derek Price  <derek@ximbiot.com>
105522         and Bruno Haible  <bruno@clisp.org>
105524         Remove stat module & update lstat.
105525         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
105526         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
105527         * m4/stat.m4: Remove this file.
105529 2005-06-24  Derek Price  <derek@ximbiot.com>
105530         and Bruno Haible  <bruno@clisp.org>
105532         Remove stat module & update lstat.
105533         * lib/stat.c: Remove this file...
105534         (slash_aware_lstat): ...moving this content and its support...
105535         * lib/lstat.c (rpl_lstat): ...into here.
105536         * lib/lstat.h: New file.
105538 2005-06-24  Derek Price  <derek@ximbiot.com>
105539         and Bruno Haible  <bruno@clisp.org>
105541         Remove stat module & update lstat.
105542         * config/srclist.txt (libc sources): Remove stat.
105544 2005-06-24  Derek Price  <derek@ximbiot.com>
105545         and Bruno Haible  <bruno@clisp.org>
105547         Remove stat module & update lstat.
105548         * MODULES.html.sh (stat): Remove.
105549         * MODULES.html: Regenerated.
105550         * modules/lstat (Description): Correct function name.
105551         (Files): Add "lstat.h".
105552         (Depends-on): Remove stat, add xalloc, stat-macros.
105553         * modules/stat: Remove this file.
105554         (Include): Add "lstat.h", remove <sys/stat.h>.
105556 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
105558         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
105559         (ranged_convert): Don't save conversion in a temporary struct.
105560         This causes a warning with GCC 4.0.0, and anyway in the typical
105561         case it's not worth the extra 100 bytes or so of code.
105562         (ranged_convert, __mktime_internal): When calling a function via a
105563         pointer P, use P () rather than (*P) (), as we now assume C89 or
105564         better.
105566 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105568         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
105569         "who -r" failed to give output.  Problem reported by Tim Waugh.
105571         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
105572         (xcalloc): Use it to avoid needless tests.
105573         Problem reported by Jim Meyering.
105575 2005-06-20  Derek Price  <derek@ximbiot.com>
105577         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
105578         unnecessary for Autoconfs > 2.59c.
105580 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105582         * lib/argp.h (__option_is_short): Check upper limit of
105583         __key. Isprint() requires its argument to have the value
105584         of an unsigned char or EOF.
105586 2005-06-16  Jim Meyering  <jim@meyering.net>
105588         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
105589         when either N or S is zero.
105591 2005-06-16  Derek Price  <derek@ximbiot.com>
105593         * m4/bison.m4: Declare YACC & YFLAGS precious.
105595 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
105597         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
105598         multibyte string or pattern, fall back on unibyte matching.
105599         Problem reported by James Youngman.
105601 2005-06-08  Bruno Haible  <bruno@clisp.org>
105603         * modules/csharpcomp: New file.
105604         * MODULES.html.sh (C#): Add csharpcomp.
105606 2005-06-08  Bruno Haible  <bruno@clisp.org>
105608         * m4/csharpcomp.m4: New file, from GNU gettext.
105610 2005-06-08  Bruno Haible  <bruno@clisp.org>
105612         * lib/csharpcomp.h: New file, from GNU gettext.
105613         * lib/csharpcomp.c: New file, from GNU gettext.
105614         * lib/csharpcomp.sh.in: New file, from GNU gettext.
105616 2005-06-08  Bruno Haible  <bruno@clisp.org>
105618         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
105619         warning on mingw.
105621 2005-06-07  Derek Price  <derek@ximbiot.com>
105623         Sync from CVS.
105624         * lib/glob_.h: Indent nested #ifdef.
105626 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105628         Sync from coreutils.
105629         Use "file name" when talking about file names, instead of "filename"
105630         or "path", as per the GNU coding standards.
105631         * lib/mkdir-p.c: Renamed from makepath.c.
105632         (make_dir_parents): Renamed from make_path.  All callers changed.
105633         * lib/mkdir-p.h: Likewise.  All includers changed.
105634         * lib/filenamecat.c: Renamed from path-concat.c.
105635         (file_name_concat): Renamed from path_concat.  All callers changed.
105636         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
105637         * lib/filenamecat.h: Likewise.  All includers changed.
105638         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
105639         in comments or local variable names.
105640         * lib/basename.c: Likewise.
105641         * lib/canonicalize.c, canonicalize.h: Likewise.
105642         * lib/dirname.c, dirname.h: Likewise.
105643         * lib/euidaccess.c: Likewise.
105644         * lib/exclude.c: Likewise
105645         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
105646         * lib/fsusage.c, fsuage.h: Likewise.
105647         * lib/fts.c, fts_.h: Likewise.
105648         * lib/getcwd.c: Likewise.
105649         * lib/getloadavg.c: Likewise.
105650         * lib/mkstemp.c: Likewise.
105651         * lib/mountlist.c, mountlist.h: Likewise.
105652         * lib/openat.c, openat.h: Likewise.
105653         * lib/readlink-stub.c: Likewise.
105654         * lib/readutmp.c, readutmp.h: Likewise.
105655         * lib/rename.c: Likewise.
105656         * lib/rmdir.c: Likewise.
105657         * lib/same.c: Likewise.
105658         * lib/savedir.c: Likewise.
105659         * lib/stripslash.c: Likewise.
105660         * lib/tempname.c: Likewise.
105661         * lib/xreadlink.c: Likewise.
105662         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
105663         All uses changed.
105664         * lib/exclude.h: Likewise.
105666         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
105667         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105668         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
105669         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105670         * lib/pathmax.h: Include <limits.h> unconditionally, since other
105671         files have been getting away with it for years (MORE/BSD 4.3
105672         is extinct now).
105673         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
105674         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105676         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
105677         Define to 256, not 255, as per modern POSIX.
105679 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105681         Sync from coreutils.
105682         Use "file name" when talking about file names, instead of "filename"
105683         or "path", as per the GNU coding standards.
105684         * MODULES.html.sh: mkdir-p renamed from makepath.
105685         filenamecat renamed from path-concat.
105686         * modules/filenamecat: Renamed from modules/path-concat.
105687         (Files): filenamecat.h and filenamecat.c renamed from
105688         path-concat.h and path-concat.c.
105689         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
105690         (Include): filenamecat.h, not path-concat.h.
105691         * modules/mkdir-p: Renamed from modules/makepath.
105692         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
105693         makepath.c.
105694         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
105695         (Include): mkdir-p.h, not makepath.h.
105697 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105699         Sync from coreutils.
105700         * m4/mkdir-p.m4: Renamed from makepath.m4.
105701         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
105702         Rename files from makepath.c to mkdir-p.c, and from
105703         makepath.h to mkdir-p.h.
105704         * m4/filenamecat.m4: Renamed from path-concat.m4.
105705         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
105706         Rename files from path-concat.c to filenamecat.c,
105707         and from path-concat.h to filenamecat.h.
105708         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
105709         "file name" in local variables or comments.
105710         * m4/rename.m4: Likewise.
105712 2005-06-01  Bruno Haible  <bruno@clisp.org>
105714         * modules/csharpexec: New file.
105715         * MODULES.html.sh (C#): New section.
105717 2005-06-01  Bruno Haible  <bruno@clisp.org>
105719         * m4/csharp.m4: New file, from GNU gettext.
105720         * m4/csharpexec.m4: New file, from GNU gettext.
105722 2005-06-01  Bruno Haible  <bruno@clisp.org>
105724         * lib/csharpexec.h: New file, from GNU gettext.
105725         * lib/csharpexec.c: New file, from GNU gettext.
105726         * lib/csharpexec.sh.in: New file, from GNU gettext.
105728 2005-05-31  Derek Price  <derek@ximbiot.com>
105729             Paul Eggert  <eggert@cs.ucla.edu>
105731         Sync from cvs.
105732         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
105734 2005-05-31  Derek Price  <derek@ximbiot.com>
105735             Paul Eggert  <eggert@cs.ucla.edu>
105737         Sync from cvs.
105738         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
105740 2005-05-29  Derek Price  <derek@ximbiot.com>
105742         * config/srclist.txt (glob_.h, glob.c): Add these files.
105744 2005-05-29  Derek Price  <derek@ximbiot.com>
105746         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
105747         * modules/glob: New file.
105748         * modules/getlogin_r: Add link to POSIX spec in description.
105750 2005-05-29  Derek Price  <derek@ximbiot.com>
105751             Paul Eggert  <eggert@cs.ucla.edu>
105753         * m4/glob.m4: New file.
105755 2005-05-29  Derek Price  <derek@ximbiot.com>
105756             Paul Eggert  <eggert@cs.ucla.edu>
105758         * lib/glob_.h, lib/glob.c: New files.
105760 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105762         * modules/fts (Files): Remove m4/inttypes-pri.m4.
105763         * modules/fts-lgpl (Depends-on): Remove gettext.
105765 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105767         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
105768         and don't require gt_INTTYPES_PRI.
105770 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105772         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
105774         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
105775         the configuration hassle isn't worth it.
105776         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
105777         (LONGEST_MODIFIER, PRIuMAX): Remove.
105779 2005-05-27  Bruno Haible  <bruno@clisp.org>
105781         * lib/getlogin_r.h: Remove second include of <stddef.h>.
105783 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
105785         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
105786         _POSIX_PTHREAD_SEMANTICS for Solaris.
105788 2005-05-25  Derek Price  <derek@ximbiot.com>
105790         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
105792 2005-05-25  Derek Price  <derek@ximbiot.com>
105793             Paul Eggert  <eggert@cs.ucla.edu>
105795         * modules/getlogin_r, m4/getlogin_r.m4: New files.
105796         * lib/getlogin_r.c, getlogin_r.h: New files.
105798 2005-05-25  Bruno Haible  <bruno@clisp.org>
105799             Derek Price  <derek@ximbiot.com>
105801         * lib/getlogin_r.h: Simplify API documentation.
105803 2005-05-23  Derek Price  <derek@ximbiot.com>
105805         * modules/minmax (Files): Add m4/minmax.m4.
105806         (configure.ac): Add gl_MINMAX.
105808 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
105810         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
105811         so that unistd-safer.h (GPL'ed code) need not be included.
105813 2005-05-22  Bruno Haible  <bruno@clisp.org>
105815         * m4/minmax.m4: New file.
105816         Based on a patch by Derek Price <derek@ximbiot.com>.
105818 2005-05-22  Bruno Haible  <bruno@clisp.org>
105820         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
105821         (INT64_MIN): Fix definition.
105822         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
105824         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
105825         NEED_SIGNED_INT_TYPES.
105827         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
105828         HAVE_SYSTEM_INTTYPES.
105830 2005-05-22  Bruno Haible  <bruno@clisp.org>
105832         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
105833         Also include <sys/param.h> if it defines MIN, MAX.
105834         Based on a patch by Derek Price <derek@ximbiot.com>.
105836 2005-05-21  Jim Meyering  <jim@meyering.net>
105838         * modules/fts (Files): Add m4/inttypes-pri.m4.
105839         (Depends-on): Add lstat and remove gettext.  Alphabetize.
105841 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105843         New fts module.
105844         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
105845         (setup_dir, free_dir): New functions.
105846         (enter_dir, leave_dir): Define trivial
105847         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
105848         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
105849         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
105850         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
105851         Move to fts-cycle.c.
105852         (fts_open): Use setup_dir.
105853         (fts_close): Use free_dir.
105854         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
105855         This adds a label and some gotos, but the alternatives were messier.
105856         Check for memory allocation failure when entering a dir.
105857         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
105858         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
105859         (FTS): New member fts_cycle, that is a union that contains the
105860         old active_dir_ht and cycle_state.  All uses changed to mention
105861         fts_cycle.ht and fts_cycle.state.
105862         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
105863         fts.c, with the following changes:
105864         (setup_dir, free_dir): New functions.
105865         (enter_dir): Now returns bool.  Return true if successful, false
105866         if memory exhausted.  All callers changed.
105867         Do not bother partly cleaning up on
105868         memory allocation failure; that is free_dir's job.
105869         However, free ad if hash_insert fails, to avoid memory leak.
105870         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
105871         fts->fts_options to see which union member to use.
105873 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105875         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
105876         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
105878 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105880         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
105882 2005-05-20  Jim Meyering  <jim@meyering.net>
105884         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
105885         Now a macro, to pacify GCC.
105887 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
105889         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
105890         of -1.
105892 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
105894         * lib/chown.c (rpl_chown): Return -1 on failure.
105896 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
105898         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
105899         Don't check for stddef.h.
105900         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
105901         don't use its results.
105902         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
105903         since we include them unconditionally.  Don't require
105904         AM_STDBOOL_H, since stdbool is a prerequisite.
105905         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
105906         since we assume C89 or better.
105907         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
105908         as we don't use their results.
105909         Don't check for fchdir, memmove, memset, strrchr, as we use
105910         them unconditionally.
105911         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
105912         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
105914 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
105916         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
105917         Include <stddef.h> unconditionally, since we assume C89 now.
105918         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
105919         * lib/fts.c: Include fts_.h first, to check interface.
105920         Do not include intprops.h; no longer needed.
105921         Include cycle-check.h and hash.h, since fts_.h no longer does.
105922         Remove unnecessary casts of closedir to void.
105923         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
105924         decide whether to decrement nlinks.
105925         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
105926         (FTS): Use struct hash_table * instead of Hash_table, so that
105927         we no longer need to include hash.h here.
105929 2005-05-18  Jim Meyering  <jim@meyering.net>
105931         * modules/dirfd (License): Change to LGPL.  Most of the code
105932         is already in the public domain.
105934 2005-05-18  Jim Meyering  <jim@meyering.net>
105936         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
105937         Reported by Yoann Vandoorselaere.
105939 2005-05-17  Jim Meyering  <jim@meyering.net>
105941         * m4/fts.m4: New file, from coreutils.
105943 2005-05-17  Jim Meyering  <jim@meyering.net>
105945         * lib/fts.c, lib/fts_.h: New files, from coreutils.
105947 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
105949         Sync from coreutils.
105950         * m4/unlinkdir.m4: New file.
105952 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
105954         Sync from coreutils.
105955         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
105956         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
105957         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
105958         White space changes only.
105959         * lib/makepath.c (make_path): Port to hosts where leading "//" is
105960         special.
105961         * lib/yesno.c: Include getline.h, not ctype.h.
105962         (yesno): Don't remove leading white space; POSIX doesn't allow it.
105963         Use getline to remove arbitrary restriction on response length.
105965 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
105967         * config/srclist-update: Spell out "Street" in FSF postal
105968         mail address; this is the style the FSF seems to prefer.
105970         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
105971         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
105972         this updates FSF postal mail address.
105974         Sync from coreutils.
105975         * modules/unlinkdir: New file.
105976         * modules/yesno (Depends-on): Add getline.
105977         * MODULES.html.sh (File system functions): Add unlinkdir.
105979 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
105981         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
105982         lib/strsep.h:
105983         Change the initial comment to refer to GPL, not LGPL.
105984         gnulib-tool will change it to LGPL as needed.
105986         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
105987         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
105988         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
105989         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
105990         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
105991         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
105992         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
105993         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
105994         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
105995         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
105996         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
105997         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
105998         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
105999         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
106000         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
106001         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
106002         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
106003         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
106004         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
106005         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
106006         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
106007         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
106008         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
106009         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
106010         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
106011         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
106012         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
106013         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
106014         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
106015         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
106016         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
106017         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
106018         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
106019         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
106020         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
106021         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
106022         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
106023         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
106024         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
106025         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
106026         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
106027         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
106028         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
106029         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
106030         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
106031         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
106032         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
106033         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
106034         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
106035         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
106036         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
106037         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
106038         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
106039         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
106040         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
106041         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
106042         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
106043         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
106044         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
106045         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
106046         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
106047         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
106048         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
106049         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
106050         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
106051         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
106052         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
106053         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
106054         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
106055         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
106056         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
106057         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
106058         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
106059         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
106060         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
106061         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
106062         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
106063         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
106064         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
106065         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
106066         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
106067         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
106068         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
106069         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
106070         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
106071         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
106072         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
106073         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
106074         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
106075         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
106076         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
106077         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
106078         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
106079         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
106080         lib/yesno.c, lib/yesno.h:
106081         Update FSF postal mail address.
106083 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106085         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
106086         tests/test-memmem.c, tests/test-stpncpy.c:
106087         Update FSF postal mail address.
106089 2005-05-13  Bruno Haible  <bruno@clisp.org>
106091         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
106092         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
106093         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
106094         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
106095         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
106096         Add support for 64-bit integers in the MSVC compiler.
106098 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106100         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
106102 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
106104         * gnulib-tool (func_import): Sort and uniquify recommended includes.
106106 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
106108         * doc/getdate.texi (General date syntax): Don't say that date
106109         date --iso-8601=ns generates acceptable dates; it doesn't yet.
106110         Problem reported by Nic Ferrier.
106112 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106114         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
106115         specified in ai_socktype. Fix invalid ai_protocol
106116         check. ai_protocol is usually set to 0 or depending on
106117         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
106118         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
106119         ai_socktype / ai_protocol in the returned addrinfo structure.
106121 2005-05-10  Simon Josefsson  <jas@extundo.com>
106123         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
106124         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
106126 2005-05-10  Karl Berry  <karl@gnu.org>
106128         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
106129         (from http://www.gnu.org/licenses).
106130         * doc/COPYING.LIB: also rename to COPYING.LESSER.
106131         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
106132         fdl.texi suffices.
106134 2005-05-10  Karl Berry  <karl@gnu.org>
106136         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
106137         (COPYING.DOC): remove.
106139         * config/srclist-update: new FSF address.
106141 2005-05-10  Derek Price  <derek@ximbiot.com>
106143         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
106144         possible.
106146 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106147             Bruno Haible  <bruno@clisp.org>
106149         * modules/inet_ntop: New file.
106150         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106151         inet_ntop.
106153 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106154             Bruno Haible  <bruno@clisp.org>
106156         * m4/inet_ntop.m4: New file.
106158 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106159             Bruno Haible  <bruno@clisp.org>
106161         * lib/inet_ntop.h: New file.
106162         * lib/inet_ntop.c: New file, from glibc with modifications.
106164 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
106166         * modules/time_r (License): Change to LGPL.
106167         * modules/extensions (License): Change to LGPL.  Actually,
106168         the license is more permissive than that, but currently gnulib-tool
106169         doesn't know how to handle more-permissive licenses.
106171         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
106172         Problem reported by Dave Love.
106174 2005-05-08  Jim Meyering  <jim@meyering.net>
106176         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
106177         blank.
106179 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
106181         * modules/argmatch (Depends-on): Add stdbool.
106182         * modules/backupfile (Depends-on): Likewise.
106183         * modules/chdir-long (Depends-on): Likewise.
106184         * modules/closeout (Depends-on): Likewise.
106185         * modules/cycle-check (Depends-on): Likewise.
106186         * modules/dirname (Depends-on): Likewise.
106187         * modules/fnmatch (Depends-on): Likewise.
106188         * modules/fsusage (Depends-on): Likewise.
106189         * modules/fwriteerror (Depends-on): Likewise.
106190         * modules/getcwd (Depends-on): Likewise.
106191         * modules/getloadavg (Depends-on): Likewise.
106192         * modules/hard-locale (Depends-on): Likewise.
106193         * modules/makepath (Depends-on): Likewise.
106194         * modules/mountlist (Depends-on): Likewise.
106195         * modules/nanosleep (Depends-on): Likewise.
106196         * modules/posixtm (Depends-on): Likewise.
106197         * modules/quotearg (Depends-on): Likewise.
106198         * modules/readtokens (Depends-on): Likewise.
106199         * modules/readtokens0 (Depends-on): Likewise.
106200         * modules/readutmp (Depends-on): Likewise.
106201         * modules/save-cwd (Depends-on): Likewise.
106202         * modules/strftime (Depends-on): Likewise.
106203         * modules/userspec (Depends-on): Likewise.
106204         * modules/utimecmp (Depends-on): Likewise.
106205         * modules/xgetcwd (Depends-on): Likewise.
106206         * modules/xnanosleep (Depends-on): Likewise.
106207         * modules/xstrtod (Depends-on): Likewise.
106208         * modules/yesno (Depends-on): Likewise.
106210 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
106212         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
106213         needless checks.
106215 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106217         Merge from coreutils.  Among other things,
106218         add bulletproofing for cases where stdin, stdout, or stderr are closed.
106219         * lib/fd-safer.c: New file.
106220         * lib/fcntl-safer.h, open-safer.c: Remove.
106221         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
106222         * lib/dup-safer.c: Include unistd-safer.h first.
106223         Don't include errno.h.
106224         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
106225         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
106226         * lib/file-type.c: Rely on file-type.h change.
106227         * lib/getloadavg.c: Include unistd-safer.h.
106228         (getloadavg): Use safer open.
106229         * lib/getusershell.c: Include "stdio-safer.h".
106230         (getusershell): Use safer fopen.
106231         * lib/long-options.c (long_options): Use NULL rather than 0.
106232         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
106233         'free'.
106234         * lib/modechange.c: Likewise.
106235         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
106236         (MODE_DONE): New constant.
106237         (struct mode_change): Remove 'next' member.
106238         (make_node_op_equals): New function; like the old one of the
106239         same name, except it allocates an array.
106240         (mode_compile, mode_create_from_ref): Use it.
106241         (mode_compile): Allocate result as an array, not a linked list.
106242         Parse octal string ourself, so that we catch mistakes like "+0".
106243         (mode_adjust): Arg is an array, not a linked list.
106244         * lib/modechange.c: Include stat-macros.h, xalloc.h.
106245         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
106246         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
106247         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
106248         Remove.  This is now stat-macros.h's job.
106249         (talloc): Remove.  All callers replaced by xalloc, so that
106250         our invokers don't have to worry about reporting memory failures.
106251         (make_node_op_equals): Remove.
106252         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106253         New constants.
106254         (struct mode_change): Moved here from modechange.h.
106255         (mode_append_entry): Remove.
106256         (mode_compile): Remove MASKED_OPS arg, since it encouraged
106257         apps to have incorrect behavior.  Use simpler algorithm for head
106258         and tail.  Don't futz with umask; that's now the job of mode_adjust.
106259         Detect more invalid usages rather than having somewhat-random behavior.
106260         Don't insert an "a=" action, as that leads to incorrect behavior.
106261         (mode_compile, mode_create_from_ref): Return NULL on error instead
106262         of an enum, since now there's only one way to have an error.  All
106263         callers changed.
106264         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
106265         at the correct time.  Simplify calculation of "+u" and its ilk.
106266         Don't mishandle "+X".
106267         (mode_free): Remove "register" and localize decls.
106268         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106269         (struct mode_change): Move to modechange.c; callers don't
106270         need to see this stuff.
106271         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
106272         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
106273         (mode_change, mode_adjust): Reflect the new signatures noted above.
106274         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
106275         that might redefine system include files.
106276         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
106277         (my_usleep): Use NULL rather than (void *) 0.
106278         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
106279         Use siginterrupt to specify that system calls should be interrupted.
106280         (rpl_nanosleep): Move initialization of suspended closer to call of
106281         my_usleep.
106282         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
106283         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
106284         (desirable_utmp_entry): New function.
106285         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
106286         using x2nrealloc, to simplify logic.
106287         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
106288         size calculation.  Do not assume utmp file is a regular file.
106289         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
106290         (READ_UTMP_CHECK_PIDS): New constant.
106291         * lib/save-cwd.c: Include unistd-safer.h.
106292         (save_cwd): Use fd_safer.
106293         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
106294         [!_LIBC] Include "stat-macros.h" instead.
106295         * lib/unistd-safer.h (fd_safer): New decl.
106297 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106299         * modules/getloadavg (Depends-on): Add unistd-safer.
106300         * modules/getusershell (Depends-on): Add stdio-safer.
106301         * modules/lstat (Depends-on): Remove xalloc.
106302         * modules/mkstemp (Depends-on): Add stat-macros.
106303         * modules/modechange (Depends-on): Remove xstrtol.
106304         Add stat-macros, xalloc.
106305         * modules/save-cwd (Depends-on): Add unistd-safer.
106306         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
106307         * modules/unistd-safer (Files): Add lib/fd-safer.c
106308         (Makefile.am): Remove lib_SOURCES.
106310         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
106311         Remove fcntl-safer; unistd-safer supersedes it.
106313 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106315         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
106316         AC_HEADER_STAT.
106317         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
106318         (gl_PREREQ_CHOWN): Remove.
106319         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
106320         it.  Don't require AC_HEADER_STAT.
106321         (gl_PREREQ_LSTAT): Remove.
106322         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
106323         Don't require AC_HEADER_STAT.
106324         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
106325         (gl_PREREQ_RMDIR): Remove.
106326         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
106327         mention stat-macros.h or AC_HEADER_STAT, since we'll make
106328         the stat-macros module a prerequisite.
106329         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
106330         * m4/filemode.m4 (gl_FILEMODE): Likewise.
106331         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
106332         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
106333         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
106334         variable names.
106335         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
106336         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
106337         variable prefixes.
106338         * m4/fcntl-safer.m4: Remove.
106339         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
106340         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
106341         Invoke gl_PREREQ_FD_SAFER.
106342         (gl_PREREQ_FD_SAFER): New macro.
106343         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
106344         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
106345         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
106346         Remove duplicate call to AC_LIBOBJ(readutmp).
106347         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
106349         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
106350         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
106352 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106354         * MODULES.html.sh (Misc): Add byteswap.
106356 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106358         * modules/getcwd (Depends-on): Add extensions.
106359         * modules/openat (Depends-on): Likewise.
106361 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106363         * modules/byteswap: New file.
106365 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106367         * m4/byteswap.m4: New file.
106369 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106371         * lib/byteswap_.h: New file.
106373 2005-04-25  Karl Berry  <karl@gnu.org>
106375         * m4/gettext.m4: Update from GNU gettext 0.14.4.
106377 2005-04-25  Albert Chin  <china@thewrittenword.com>
106379         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
106380         Toolkit C bug.
106382 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
106384         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
106385         (func_ln_if_changed): Remove forcibly for no error message
106386         in case file does not exist.
106388 2005-04-19  Simon Josefsson  <jas@extundo.com>
106390         * gnulib-tool (Options): Make --symlink mean --symbolic.
106392 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
106394         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
106396 2005-04-16  Simon Josefsson  <jas@extundo.com>
106398         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
106400 2005-04-15  Simon Josefsson  <jas@extundo.com>
106402         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
106404 2005-04-15  Simon Josefsson  <jas@extundo.com>
106406         * gnulib-tool: Rename --symlink to --symbolic.
106408 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
106410         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
106411         symbolic links to files instead of copying/moving.  Add --aux-dir,
106412         specifying directory relative --dir where auxiliary build tools
106413         are placed.
106415 2005-04-14  Bruno Haible  <bruno@clisp.org>
106417         * modules/allocsa (License): Change to LGPL.
106418         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
106420 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
106422         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
106423         that "UTC +1 second" continues to work.  Problem reported
106424         by Dmitry V. Levin.
106425         (relunit_snumber): New rule.
106426         (relunit): Use it.
106428 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
106430         * lib/getdate.y (universal_time_zone_table): New constant.
106431         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
106432         universal_time_zone_table.
106433         (lookup_zone): Prefer universal_time_zone_table to
106434         local_time_zone_table, so that "GMT" time stamps are allowed in
106435         London during the summer.  Problem reported by Ian Abbott.
106437 2005-04-12  Jim Meyering  <jim@meyering.net>
106439         * lib/human.c (humblock): Set *options even when returning due to
106440         xstrtoumax conversion failure.  Thanks to a used-uninitialized
106441         warning from gcc-4.
106443 2005-04-09  Jim Meyering  <jim@meyering.net>
106445         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
106446         -Wuninitialized: initialize tm0.tm_year.
106448 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
106450         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
106451         count, since there's no maximum.  All uses changed.
106452         Add member dsts_seen.
106453         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
106454         not being INT_MAX.
106455         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
106456         Use pc_rels_seen to decide whether a date is absolute.
106458         * lib/getdate.y (number): Don't overwrite year.
106459         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
106460         check.
106462 2005-04-02  Simon Josefsson  <jas@extundo.com>
106464         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
106465         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
106467 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
106469         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
106470         where no absolute path name can be longer than PATH_MAX.
106472 2005-03-27  Jim Meyering  <jim@meyering.net>
106474         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
106476 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
106478         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
106479         "one's complement" -> "ones' complement" in comment, as per Knuth.
106480         "value of type" -> "type or expression" in comment.
106481         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
106483 2005-03-26  Jim Meyering  <jim@meyering.net>
106485         Comment nits.
106486         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
106487         Correct typos: s/or/of/.
106489 2005-03-26  Jim Meyering  <jim@meyering.net>
106491         * modules/check-include-files: Move to ../ and rename to...
106492         * check-module: ...this.
106494 2005-03-25  Jim Meyering  <jim@meyering.net>
106496         * modules/xvasprintf (Files): Add xalloc.h.
106498 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
106500         * modules/gettext (Files): config/config.rpath ->
106501         build-aux/config.rpath
106502         * modules/iconv (Files): Likewise.
106503         Problem reported by Oskar Liljeblad.
106505 2005-03-23  Jim Meyering  <jim@meyering.net>
106507         * modules/check-include-files: New script to check for
106508         missing dependencies, multiple includes, etc.
106510         * modules/c-strtold (Depends-on): Add xalloc.
106511         * modules/c-strtod (Depends-on): Add xalloc.
106512         * modules/hash (Depends-on): Add xalloc.
106513         (Files): Remove lib/xalloc.h.
106515         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
106516         * modules/userspec (Files): Add lib/inttostr.h.
106518 2005-03-23  Jim Meyering  <jim@meyering.net>
106520         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
106522 2005-03-22  Jim Meyering  <jim@meyering.net>
106524         * modules/stat-macros: New module.
106525         * modules/canonicalize, modules/euidaccess, modules/file-type,
106526         * modules/filemode, modules/lchown, modules/makepath,
106527         * modules/rmdir, modules/stat: Depend on new stat-macros module
106528         rather than listing lib/stat-macros.h manually.
106529         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
106531 2005-03-22  Jim Meyering  <jim@meyering.net>
106533         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
106535 2005-03-22  Bruno Haible  <bruno@clisp.org>
106537         * config/srclist.txt: Replace target directory 'config' with
106538         'build-aux'.
106539         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
106540         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
106541         ../build-aux/.
106543 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
106545         * modules/chdir-long (Depends-on): Add mempcpy.
106547         * modules/acl, modules/backupfile, modules/c-strtod,
106548         modules/c-strtold, modules/canon-host, modules/canonicalize,
106549         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
106550         modules/exclude, modules/exitfail, modules/file-type,
106551         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
106552         modules/getdate, modules/getline, modules/getpagesize,
106553         modules/getpass, modules/getugroups, modules/group-member,
106554         modules/hard-locale, modules/hash, modules/human, modules/idcache,
106555         modules/inttostr, modules/long-options, modules/makepath,
106556         modules/md5, modules/memcasecmp, modules/memcoll,
106557         modules/modechange, modules/mountlist, modules/path-concat,
106558         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
106559         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
106560         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
106561         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
106562         modules/strftime, modules/strndup, modules/strverscmp,
106563         modules/timespec, modules/unlocked-io, modules/userspec,
106564         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
106565         modules/yesno:
106566         Remove lib_SOURCES line from Makefile.am section, as this is now
106567         done automatically by the corresponding Autoconf macro.
106569 2005-03-21  Jim Meyering  <jim@meyering.net>
106571         Changes imported from coreutils.
106573         * lib/cycle-check.c: Don't include xalloc.h.
106575         * lib/path-concat.c: Don't include assert.h.
106576         (path_concat): Remove assertion that would have triggered
106577         for ABASE starting with more than one slash.
106578         Reported by Andreas Schwab.
106580         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
106581         properly when ABASE is an absolute file name.
106582         Correct the description of this function.
106583         Include <assert.h>.
106584         Add an assertion and a test driver.
106585         This fixes a bug introduced on 2004-07-02.
106586         Andreas Schwab reported the resulting failure of cp --parents:
106587         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
106589 2005-03-21  Jim Meyering  <jim@meyering.net>
106591         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
106592         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
106594 2005-03-21  Jim Meyering  <jim@meyering.net>
106595         and  Paul Eggert  <eggert@cs.ucla.edu>
106597         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
106598         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
106599         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
106600         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
106601         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
106602         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
106603         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
106604         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
106605         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
106606         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
106607         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
106608         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
106609         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
106610         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
106611         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
106612         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
106613         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
106614         for these modules.
106616 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
106618         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
106619         (which shouldn't happen), generate nothing instead of returning 0
106620         immediately, so that nstrftime (NULL, ...) doesn't return 0.
106622 2005-03-16  Bruno Haible  <bruno@clisp.org>
106624         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
106625         HAVE_LONGLONG_64BIT.
106627 2005-03-16  Bruno Haible  <bruno@clisp.org>
106629         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
106630         HAVE_LONGLONG_64BIT.
106632 2005-03-16  Bruno Haible  <bruno@clisp.org>
106634         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
106635         HAVE_LONGLONG_64BIT.
106637 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
106639         * lib/strftime.c (my_strftime): Prepend space to format so that we can
106640         reliably distinguish strftime failure from empty output on POSIX
106641         hosts.
106643 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
106645         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
106646         (iconv_string): Don't guess a size-zero buffer, as that might cause
106647         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
106648         result would be 'too large', where 'too large' is (heuristically)
106649         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
106650         overflow concerns.  This will prevent some unwanted malloc failures
106651         when the inputs are very large.
106653 2005-03-15  Karl Berry  <karl@gnu.org>
106655         * config/srclist.txt (config.rpath): from gettext.
106656         * config/config.rpath: update.
106658 2005-03-15  Bruno Haible  <bruno@clisp.org>
106660         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
106661         to 'negate'.
106663         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
106664         variable.
106666         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
106667         results.
106669 2005-03-14  Simon Josefsson  <jas@extundo.com>
106671         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
106672         <fx@gnu.org>.
106674 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
106676         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
106677         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
106678         intprops.h.
106679         * lib/strtol.c: Likewise.
106681 2005-03-14  Jim Meyering  <jim@meyering.net>
106683         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
106684         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
106685         to be nonzero so that we (and caller) can detect the difference
106686         between a valid zero-length expansion and an error return, even
106687         when the underlying strftime fails before writing anything into
106688         that location.
106690 2005-03-14  Bruno Haible  <bruno@clisp.org>
106692         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
106693         Update from GNU gettext 0.14.3.
106695 2005-03-10  Jim Meyering  <jim@meyering.net>
106697         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
106699 2005-03-10  Jim Meyering  <jim@meyering.net>
106701         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
106702         so that this module works on systems without fchdir.
106704 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
106706         Factor int-properties macros into a single file, except for
106707         glibc-related files.
106708         * lib/intprops.h: New file.
106709         * lib/getloadavg.c: Include it instead of limits.h.
106710         (INT_STRLEN_BOUND): Remove.
106711         * lib/human.c: Include intprops.h.
106712         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
106713         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
106714         302/1000.
106715         * lib/inttostr.h: Include intprops.h instead of limits.h.
106716         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
106717         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
106718         for consistency with intprops.h.
106719         (time_t_is_integer, twos_complement_arithmetic): Use them.
106720         * lib/sig2str.h: Include <signal.h>, intprops.h.
106721         (INT_STRLEN_BOUND): Remove.
106722         * lib/strftime.c (TYPE_SIGNED): Remove.
106723         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
106724         * lib/strtol.c: Adjust comments to match intprops.h.
106725         * lib/userspec.c: Include intprops.h.
106726         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
106727         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
106728         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
106729         instead of rolling our own expressions.
106730         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
106732         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
106733         instead of int.
106734         (my_strftime): Do not mishandle years close to INT_MAX, by doing
106735         the right thing even if adding 1900 would overflow.  Similarly
106736         for tm_mon + 1 and tm_yday + 1.
106737         Make %Y always equivalent to %C%y, and similarly for %G and %g.
106738         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
106739         (DO_SIGNED_NUMBER): New macro.
106740         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
106742 2005-03-07  Bruno Haible  <bruno@clisp.org>
106744         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
106746 2005-03-07  Bruno Haible  <bruno@clisp.org>
106748         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
106750 2005-03-04  Derek R. Price  <derek@ximbiot.com>
106752         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
106753         (func_import): Only replace files via --import when they have actually
106754         changed.
106756 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106758         * m4/mmap-anon.m4: New file.
106759         * m4/pagealign_alloc.m4: New file.
106761 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106762             Bruno Haible  <bruno@clisp.org>
106764         * modules/pagealign_alloc: New file.
106765         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
106767 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106768             Bruno Haible  <bruno@clisp.org>
106770         * lib/pagealign_alloc.h: New file.
106771         * lib/pagealign_alloc.c: New file.
106773 2005-03-03  Bruno Haible  <bruno@clisp.org>
106775         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
106776         Use an all-permissive copyright notice, recommended by RMS.
106778 2005-03-02  Bruno Haible  <bruno@clisp.org>
106780         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
106781         of AIX, the replacement has to be done only after <string.h> is
106782         included, therefore not in config.h. stpncpy.h does the replacement,
106783         and stpncpy.c uses it.
106785 2005-03-02  Bruno Haible  <bruno@clisp.org>
106787         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
106788         stpncpy.c uses it.
106790 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106792         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
106793         The workaround isn't strictly needed for POSIX conformance, and
106794         it's too much of a pain to configure and maintain.  We'll ask
106795         people to fix their kernels instead.
106796         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
106797         (NANOSLEEP_BUG_WORKAROUND): Remove.
106798         (xnanosleep): Remove the workaround.
106800 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106802         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
106803         Reported by Derek Price.
106804         (Include): Add "timespec.h".
106806         * modules/xnanosleep (Depends-on): Remove gethrxtime.
106808 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106810         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
106811         to detect nanosleep bug.
106813 2005-03-01  Bruno Haible  <bruno@clisp.org>
106815         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
106817 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
106819         * modules/gethrxtime: New file.
106820         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
106821         (Depends-on): Add gethrxtime.
106822         (configure.ac): Add gl_XNANOSLEEP.
106823         (Makefile.am): Remove lib_SOURCES line.
106825 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
106827         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
106828         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
106830 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
106832         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
106833         * lib/timespec.h (gettime): Return void, since it always
106834         succeeds now.  All uses changed.
106835         * lib/gettime.c (gettime): Likewise.
106836         [HAVE_NANOTIME]: Prefer nanotime.
106837         Assume gettimeofday succeeds, as POSIX requires.
106838         Assime time () succeeds, since other code already does.
106839         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
106840         (timespec_subtract): Remove.
106841         (NANOSLEEP_BUG_WORKAROUND): New constant.
106842         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
106843         things considerably.  Use it only on GNU/Linux hosts, since the
106844         workaround shouldn't be needed elsewhere.
106846 2005-02-24  Bruno Haible  <bruno@clisp.org>
106848         * modules/gettext (Files): Add m4/glibc2.m4.
106850 2005-02-24  Bruno Haible  <bruno@clisp.org>
106852         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
106853         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
106854         * m4/progtest.m4:
106855         Update from GNU gettext 0.14.2.
106856         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
106858 2005-02-24  Bruno Haible  <bruno@clisp.org>
106860         * lib/localcharset.c: Update from GNU gettext 0.14.2.
106861         * lib/config.charset: Update from GNU gettext 0.14.2.
106863 2005-02-24  Bruno Haible  <bruno@clisp.org>
106865         * lib/gettext.h: Update from GNU gettext 0.14.2.
106867 2005-02-23  Simon Josefsson  <jas@extundo.com>
106869         * m4/iconvme.m4: New file.
106871 2005-02-23  Jim Meyering  <jim@meyering.net>
106873         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
106874         change.
106875         Thanks to Bruno Haible for catching it.
106877 2005-02-22  Simon Josefsson  <jas@extundo.com>
106879         * modules/iconvme: New file.
106881         * MODULES.html.sh: Add iconvme.
106883 2005-02-22  Simon Josefsson  <jas@extundo.com>
106885         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
106887 2005-02-22  Simon Josefsson  <jas@extundo.com>
106889         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
106891 2005-02-22  Jim Meyering  <jim@meyering.net>
106893         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
106894         s/ifndef/ifdef/.
106896 2005-02-20  Neil Conway  <neilc@samurai.com>
106898         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
106899         returned by OSX/Darwin if the specified buffer is not large
106900         enough for the hostname.
106902 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106904         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
106905         pass it to _help, otherwise the latter coredumps trying to
106906         dereference state.root_argp.
106908 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
106910         * modules/chdir-long (Depends-on): Add memrchr.
106911         * modules/memrchr (Files): Add lib/memrchr.h.
106912         (Include): "memrchr.h".
106914 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
106916         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
106918 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
106920         * lib/memrchr.h: New file.
106921         * lib/chdir-long.c: Include it.
106922         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
106923         Don't bother including stddef.h.
106925 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
106927         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
106928         inclusion.
106929         Include <sys/types.h>, for dev_t.
106930         (ME_DUMMY, ME_REMOTE): Move from here....
106931         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
106932         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
106933         Dmitry V. Levin.
106934         Include mountlist.h first, to test the interface.
106936 2005-01-29  Bruno Haible  <bruno@clisp.org>
106938         * lib/progname.c (program_name): Initialize.
106939         Needed when linking statically on MacOS X.
106941 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
106943         Sync from coreutils.
106944         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
106945         (Depends-on): Add c-strtod.
106946         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
106948 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
106950         Sync from coreutils.
106951         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
106953         Remove files that are specific to coreutils.
106954         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
106956 2005-01-28  Bruno Haible  <bruno@clisp.org>
106958         * modules/javacomp: New file.
106959         * MODULES.html.sh (Java): Add javacomp.
106961 2005-01-28  Bruno Haible  <bruno@clisp.org>
106963         * m4/javacomp.m4: New file, from GNU gettext.
106965 2005-01-28  Bruno Haible  <bruno@clisp.org>
106967         * lib/javacomp.sh.in: New file, from GNU gettext.
106968         * lib/javacomp.h: New file, from GNU gettext.
106969         * lib/javacomp.c: New file, from GNU gettext.
106971 2005-01-26  Simon Josefsson  <jas@extundo.com>
106973         * lib/gai_strerror.c: Use GPL in header.
106975 2005-01-26  Bruno Haible  <bruno@clisp.org>
106977         * modules/javaexec: New file.
106978         * MODULES.html.sh (Java): Add javaexec.
106980 2005-01-26  Bruno Haible  <bruno@clisp.org>
106982         * m4/javaexec.m4: New file, from GNU gettext.
106984 2005-01-26  Bruno Haible  <bruno@clisp.org>
106986         * lib/javaexec.sh.in: New file, from GNU gettext.
106987         * lib/javaexec.h: New file, from GNU gettext.
106988         * lib/javaexec.c: New file, from GNU gettext.
106990 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106992         * modules/lchown (Depends-on): Remove lchown.h
106994 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106996         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
106997         must be defined if the header file was not found, in order
106998         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
107000 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107002         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
107003         initializers for struct pentry_state.
107004         (__argp_error): Check return value of __asprintf
107005         (__argp_failure): Translate error message
107007         * lib/argp-parse.c: Removed braces around the expansion of N_()
107009 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
107011         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
107012         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
107013         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
107014         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
107015         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
107016         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
107017         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
107018         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
107019         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
107020         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
107021         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
107022         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
107023         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
107024         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
107025         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
107026         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
107027         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
107028         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
107029         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
107030         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
107031         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
107032         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
107033         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
107034         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
107035         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
107036         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
107037         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
107038         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
107039         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
107040         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
107041         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
107042         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
107043         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
107044         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
107045         xstrtol.m4, xstrtoumax.m4, yesno.m4:
107046         Use an all-permissive copyright notice, recommended by RMS.
107048 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
107050         * modules/chdir-long (Depends-on): Remove mempcpy.
107052 2005-01-21  Jim Meyering  <jim@meyering.net>
107054         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
107055         same value as for Solaris 9.
107057         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
107058         component length.  This included changing the parameter to be
107059         of type `char *' rather than `char const *'.
107060         * lib/chdir-long.h (chdir_long): Update prototype.
107062         * lib/openat.c (fdopendir, fstatat): New functions.
107063         * lib/openat.h: Include headers required for use of DIR and struct
107064         stat.
107065         [AT_SYMLINK_NOFOLLOW]: Define.
107066         (fdopendir, fstatat): Add prototypes.
107068 2005-01-21  Bruno Haible  <bruno@clisp.org>
107070         * modules/classpath: New file.
107071         * MODULES.html.sh (Java): Add classpath.
107073 2005-01-21  Bruno Haible  <bruno@clisp.org>
107075         * lib/classpath.h: New file, from GNU gettext.
107076         * lib/classpath.c: New file, from GNU gettext.
107078 2005-01-20  Simon Josefsson  <jas@extundo.com>
107080         * modules/version-etc-fsf: New file.
107082 2005-01-20  Simon Josefsson  <jas@extundo.com>
107084         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
107085         * lib/version-etc.c: Remove version_etc_copyright.
107086         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
107087         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
107089 2005-01-20  Simon Josefsson  <jas@extundo.com>
107091         * lib/base64.h (isbase64): Add.
107093         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
107094         using a unsigned prototype, don't inline.
107095         (base64_decode): Use it.
107097 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107099         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
107100         it.
107102 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107104         * lib/save-cwd.c (save_cwd): Remove code to support the case
107105         where fchdir is missing or flaky.
107107 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107109         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
107111 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
107113         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
107114         AC_LIBSOURCES now does this.
107115         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
107116         with new ullong_max module.
107118 2005-01-19  Bruno Haible  <bruno@clisp.org>
107120         * modules/sh-quote: New file.
107121         * MODULES.html.sh (Executing programs): Add sh-quote.
107123 2005-01-19  Bruno Haible  <bruno@clisp.org>
107125         * lib/sh-quote.h: New file, from GNU gettext.
107126         * lib/sh-quote.c: New file, from GNU gettext.
107128 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107130         Merge from coreutils.
107131         * m4/ullong_max.m4: New file.
107132         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
107133         (gl_MACROS): Assume localeconv exists.
107135 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107137         Merge changes from coreutils, as described below in several
107138         changelogs dated today.
107140         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
107141         (O_DIRECTORY): Remove; not needed here, since "." must be
107142         a directory.  All uses removed.
107143         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
107144         universal on Suns, and we also need to test for IRIX.
107145         Revamp code to use 'if' rather than '#if'.
107146         Avoid unnecessary comparison of cwd->desc to 0.
107148         * lib/utimens.c (futimens): Robustify the previous patch, by checking
107149         for known valid error numbers rather than observed invalid ones.
107151 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107153         * modules/ullong_max: New file.
107155         * modules/chdir-long, modules/openat: New files.
107156         * modules/save-cwd (Depends-on): Depend on chdir-long.
107157         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
107159 2005-01-18  Jim Meyering  <jim@meyering.net>
107161         Merge from coreutils.
107162         * m4/chdir-long.m4, m4/openat.m4: New files.
107163         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
107164         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
107165         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
107166         is sane and DOES follow symlinks.  Besides, testing 20 different
107167         systems found no broken chown implementations.
107168         Prompted by a change in rsync's copy of this macro.
107169         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
107171         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
107173         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
107174         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
107175         NULL-means-set-to-current-time semantics.
107176         Remove temporary file immediately, rather than waiting
107177         for configure's at-exit trap code to do it.
107179 2005-01-18  Jim Meyering  <jim@meyering.net>
107181         * lib/version-etc.c (version_etc_copyright): Update copyright date.
107183         * lib/utimens.c (futimens): Account for the fact that futimes
107184         can also fail with errno == ENOSYS or errno == ENOENT.
107185         Patch from Dmitry V. Levin.
107187         Change the name of the robust chdir function from chdir to chdir_long.
107188         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
107189         (restore_cwd): Use chdir_long, not chdir.
107190         * lib/chdir-long.c: Renamed from chdir.c.
107191         * lib/chdir-long.h: Renamed from chdir.h.
107192         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
107193         Hurd.
107195 2005-01-18  Bruno Haible  <bruno@clisp.org>
107197         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
107198         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
107199         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
107200         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
107201         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
107202         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
107203         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
107204         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
107205         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
107206         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
107207         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
107208         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
107209         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
107210         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
107211         Use an all-permissive copyright notice, recommended by RMS.
107213 2005-01-18  Bob Proulx  <bob@proulx.com>
107215         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
107216         simplify offsetof() macro construct to avoid compile failure with
107217         native HP-UX 11.0 ANSI C compiler.
107219 2005-01-17  Bruno Haible  <bruno@clisp.org>
107221         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
107222         redundant because stpncpy.m4 takes care of it.
107224 2005-01-17  Bruno Haible  <bruno@clisp.org>
107226         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
107228 2005-01-17  Bruno Haible  <bruno@clisp.org>
107230         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
107231         used.
107233 2005-01-17  Bruno Haible  <bruno@clisp.org>
107235         * lib/fwriteerror.h (fwriteerror): Change specification to include
107236         fclose.
107237         * lib/fwriteerror.c: Include <stdbool.h>.
107238         (fwriteerror): At the end, close the file stream. Record whether
107239         stdout was already closed.
107241 2005-01-17  Bruno Haible  <bruno@clisp.org>
107243         * lib/execute.c (environ): Declare if needed.
107244         * lib/pipe.c (environ): Likewise.
107245         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
107247 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107249         * modules/argp: Depend on vsnprintf
107251 2005-01-10  Jim Meyering  <jim@meyering.net>
107253         * modules/closeout (Depends-on): Add atexit.
107255 2005-01-06  Bruno Haible  <bruno@clisp.org>
107257         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
107259 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
107261         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
107262         definitions to be after all include files, to avoid collisions.
107263         Problem reported by Bob Proulx.
107265 2005-01-04  Jim Meyering  <jim@meyering.net>
107267         Changes imported from coreutils.
107268         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
107269         as the mkstemp template, use a temporary directory and an
107270         8.3-friendly template to avoid trouble on systems like DJGPP.
107271         Reported by Juan M. Guerrero via Stepan Kasal.
107272         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
107273         close. Remove the temporary directory right away, rather than waiting
107274         for configure's at-exit trap code to do it.
107275         Suggestion from Stepan Kasal.
107277 2005-01-01  Simon Josefsson  <jas@extundo.com>
107279         * gnulib-tool: Print #include directives when --import'ing.
107281 2004-12-28  Simon Josefsson  <jas@extundo.com>
107283         * tests/test-base64.c: Include required header files.  Remove
107284         unused variables.
107286 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107288         * modules/error (Depends-on): Remove gettext.
107290 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107292         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
107293         not needed.  This removes a dependency on the gettext module.
107294         [defined _LIBC]: Do not include <libintl.h>; not needed.
107296 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107298         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
107299         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
107301 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107303         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
107304         HAVE_DECL_STRTOLD.
107306 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107308         * modules/getdate (Depends-on): Remove alloca-opt.
107310 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107312         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
107314 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107316         * lib/argp-parse.c: Include <stddef.h>.
107317         (alignof, alignto): New macros.
107318         (parser_init): Don't assume that void * is aligned sufficiently
107319         for struct option.
107321         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
107322         need to extend the stack.
107323         (YYINITDEPTH): New macro, so that the initial stack isn't overly
107324         large.
107326 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107328         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
107330 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107332         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
107333         (2004-10-24) change.  Apparently this was a false alarm.
107335         * modules/getdate: Depend on alloca-opt, not alloca.
107337 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107339         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
107340         Remove now-obsolete comment about AIX.
107341         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
107342         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
107343         (YYMAXDEPTH): New macro.
107345 2004-12-18  Simon Josefsson  <jas@extundo.com>
107347         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
107349 2004-12-18  Bruno Haible  <bruno@clisp.org>
107351         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
107353 2004-12-18  Bruno Haible  <bruno@clisp.org>
107355         * lib/fatal-signal.c (fatal_signals): Make non-const.
107356         (init_fatal_signals): New function.
107357         (uninstall_handlers, install_handlers): Ignore signals that were set to
107358         SIG_IGN.
107359         (at_fatal_signal): Call init_fatal_signals.
107360         (init_fatal_signal_set): Likewise. Ignore signals that were set to
107361         SIG_IGN.
107362         Reported by Paul Eggert.
107364 2004-12-18  Bruno Haible  <bruno@clisp.org>
107366         * doc/alloca.texi: New file.
107367         * doc/alloca-opt.texi: New file.
107369 2004-12-17  Jim Meyering  <jim@meyering.net>
107371         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
107372         Otherwise, install-sh could exit with improper exit status when
107373         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
107375 2004-12-16  Simon Josefsson  <jas@extundo.com>
107377         * tests/test-base64.c: Add license.
107379 2004-12-15  Stepan Kasal  <address@hidden>
107381         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
107383 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
107385         * modules/getcwd (Files): Add m4/d-ino.m4.
107386         Suggested by Mark D. Baushke.
107388 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107390         * lib/getdate.y (textint): New member "negative".
107391         (time_zone_hhmm): New function.
107392         Expect 14 shift-reduce conflicts, not 13.
107393         (o_colon_minutes): New rule.
107394         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
107395         (yylex): Set the "negative" member of signed numbers.
107397 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107399         * doc/getdate.texi (Time of day items, Time zone items):
107400         Describe new formats +00:00, UTC+00:00.
107402 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
107404         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
107405         spurious "-l"s.  Problem reported by Stepan Kasal.
107407 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
107409         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
107410         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
107412 2004-12-04  Simon Josefsson  <jas@extundo.com>
107414         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
107415         Vandoorselaere <yoann@prelude-ids.org>.
107417 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107419         Changes imported from coreutils.
107420         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
107421         exist.
107422         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
107424 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107426         Changes imported from coreutils.
107427         * lib/hard-locale.c: Assume <locale.h> exists.
107428         Include "strdup.h".
107429         (GLIBC_VERSION): New macro.
107430         (hard_locale): Assume setlocale exists.
107431         Rewrite to avoid #ifdef.
107432         Use strdup rather than malloc + strcpy.
107433         * lib/human.c: Assume <locale.h> exists.
107434         (human_readable): Assume localeconv exists.
107436 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107438         * modules/hard-locale (Depends-on): Add strdup.
107440 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
107442         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
107443         convert T2, not T.  (Imported from libc.)
107445 2004-11-30  Simon Josefsson  <jas@extundo.com>
107447         * modules/restrict (License): Change to LGPL.
107449 2004-11-30  Simon Josefsson  <jas@extundo.com>
107451         * m4/restrict.m4: Add copyright and copying conditions.
107453 2004-11-30  Simon Josefsson  <jas@extundo.com>
107455         * m4/base64.m4: New file.
107457 2004-11-30  Simon Josefsson  <jas@extundo.com>
107459         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
107460         base64.
107462         * tests/test-base64.c: New file.
107464         * modules/base64: New file.
107466 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
107468         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
107469         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
107471         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
107473 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
107475         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
107476         (__getcwd.c): Don't restore errno; glibc doesn't.
107477         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
107478         first, falling back to our code only if its results look suspicious.
107479         Ensure that the resulting buffer is only as large as necessary.
107481         * lib/readutmp.c: Include readutmp.h first.
107482         Include <errno.h>, since readutmp.h no longer does that.
107483         * lib/readutmp.h: Don't include <errno.h>,
107484         <sys/param.h>, <time.h>; not needed to establish interface.
107485         (errno): Remove decl.
107486         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
107487         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
107488         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
107490 2004-11-28  Simon Josefsson  <jas@extundo.com>
107492         * lib/base64.h, base64.c: New file.
107494 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
107496         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
107498 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
107500         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
107501         (Depends-on): Remove pathmax, same.  Add mempcpy.
107502         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
107503         (Makefile.am): Append getcwd.h to lib_SOURCES.
107504         (Include): Add getcwd.h.
107505         (Maintainer): Change from Jim Meyering to "all, glibc",
107506         since getdate now uses intended-for-glibc code.
107507         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
107508         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
107510 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107512         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
107513         HP's ANSI C compiler.
107514         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
107515         Declaring int functions causes warnings on some modern systems and
107516         shouldn't be needed to compile on ancient ones.
107517         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
107518         defined.
107520         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
107521         with the following changes.
107522         (__set_errno): Parenthesize properly.
107523         Include <stdbool.h>.
107524         (MIN, MAX, MATCHING_INO): New macros.
107525         (__getcwd): Define with prototype, not K&R form.
107526         Use heuristics to allocate default buffer on stack if possible.
107527         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
107528         behavior, and to avoid the PATH_MAX limit when computing
107529         ../../../../...
107530         Use MATCHING_INO to compare inode number to file.
107531         Check for arithmetic overflow in size calculations.
107532         Fix bug in reallocation of dot array that caused getcwd to fail
107533         on directories nested deeper than 75.
107534         Be more careful about saving errno on error.
107535         Do not use realloc; use only free+malloc, as this is a bit
107536         more flexible and avoids a needless copy operation.
107537         Do not inspect st_dev and st_ino for symbolic links; POSIX
107538         doesn't specify the latter.
107539         Check for closedir errors.
107540         Avoid needless casts.
107541         Use "#ifdef weak_alias" around weak_alias, to be like other
107542         glibc code.
107543         The following changes to getcwd.c have effect only when used in
107544         gnulib; they have no effect inside glibc proper.
107545         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
107546         as alloca isn't used.
107547         (alloca, __alloca): Likewise.
107548         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
107549         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
107550         unconditionally, as gnulib assumes C89 or better.
107551         Do not include <sys/param.h>.
107552         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
107553         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
107554         better.
107555         (NULL) [!defined NULL]: Remove; we assume C89 or better.
107556         Include <dirent.h> in a way that is compatible with modern Autoconf.
107557         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
107558         New macros, if not already defined.
107559         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
107560         Use "_LIBC", not "defined _LIBC", for consistency.
107561         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
107562         a mempcpy module.
107563         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
107564         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
107565         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
107566         credit only to Jim Meyering and adjust the copyright dates.
107567         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
107568         <stdlib.h>, <unistd.h>, "pathmax.h".
107569         Instead, include "xgetcwd.h" (first) and "getcwd.h".
107570         (INITIAL_BUFFER_SIZE): Remove.
107571         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
107573 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107575         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
107576         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
107577         Use the _ONCE methods, for efficiency.
107578         Check for fcntl.h.  In test program, include <errno.h>
107579         and <fcntl.h> if available.  Remove old K&R cruft from
107580         test program.  Check for common errors in GNU/Linux,
107581         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
107582         don't do AC_LIBOBJ, as that's getcwd.m4's job.
107583         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
107584         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
107585         name accordingly.
107586         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
107587         accommodate new getcwd.c.
107588         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
107589         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
107590         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
107591         that's all we need now.
107593 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107595         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
107596         argp-parse.c depends on getopt internals, that means we should
107597         always use our getopt, to be on the safe side.
107598         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
107599         order not to spoil the result of an eventual previous invocation
107600         of gl_GETOPT_SUBSTITUTE.
107602 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107604         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
107605         redefinition warnings. To avoid them, include the defines
107606         in `#if !defined __need_getopt ... #endif'. The only place
107607         where __getopt_argv_const is used is in definitions
107608         of getopt_long and getopt_long_only below, which are as well
107609         protected by `#ifndef __need_getopt'.
107610         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
107611         __need_getopt after including <stdio.h> and <unistd.h> These
107612         headers might have defined it.
107614 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
107616         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
107618 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
107620         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
107621         (futimens): New function, which uses futimes if available.
107622         (futimens, utimens): Support timespec==NULL, with same semantics
107623         as utime and utimens.
107624         * lib/utimens.h (futimens): New decl.
107626 2004-11-23  Jim Meyering  <jim@meyering.net>
107628         * lib/getopt_.h: Remove trailing blanks.
107630 2004-11-23  Jim Meyering  <jim@meyering.net>
107632         * lib/__fpending.c: Add comment.
107634 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
107636         * modules/canonicalize (Depends-on): Add xreadlink.
107637         Problem reported by James Youngman.
107639 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107641         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
107642         New macros.
107643         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
107644         optopt): Use them instead of invoking ## directly; otherwise, the
107645         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
107647 2004-11-19  Bruno Haible  <bruno@clisp.org>
107649         * lib/strtok_r.c: Move comments from here...
107650         * lib/strtok_r.h: ... to here.
107652 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107654         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
107655         implementations that mishandle size_t overflow.
107657 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107659         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
107660         might fail.  Problem reported by Yoann Vandoorselaere.
107661         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
107662         implementations that mishandle size_t overflow.
107664 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107666         * modules/canon-host (Depends-on): Add strdup.
107668 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107670         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
107672 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107674         * lib/canon-host.c: Include "strdup.h".
107675         (canon_host): Use getaddrinfo if available, so that IPv6 works.
107676         Use strdup instead of malloc/strcpy to duplicate strings.
107678         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
107679         (human_space_before_unit): New constant.
107680         * lib/human.c (human_readable): Support it.
107682         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
107683         (xgetcwd): Set errno correctly when failing.
107684         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
107685         the failure is actually due to a PATH_MAX problem.
107687         Further getopt changes to make it more likely that glibc will
107688         buy the changes back.
107689         * lib/getopt.c (POSIXLY_CORRECT): New constant.
107690         (getopt): Use it, so to preserve glibc semantic
107691         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
107692         when compiling for libc.
107693         * lib/getopt_.h (__getopt_argv_const): Bring it back.
107694         (getopt_long, getopt_long_only): Use it.
107696         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
107697         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
107698         (getopt): Argv is now char * const *, as per standard.
107699         (_getopt_internal_r, _getopt_internal): Argv is now char **,
107700         not char *__getopt_argv_const *.
107701         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
107702         _getopt_long_only_r): Likewise.
107703         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
107704         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
107705         _getopt_long_r, _getopt_long_only_r): Likewise.
107706         * lib/getopt_.h (__getopt_argv_const): Remove.
107707         (getopt): Argv is now char * const *, as per standard.
107709         * lib/getdate.y (tORDINAL): New token.
107710         (day, relunit): Allow it for relative times.
107711         (relative_time_table): Use tORDINAL for ordinals.
107713 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107715         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
107716         Document that "second" isn't allowed as an ordinal number.
107718 2004-11-16  Jim Meyering  <jim@meyering.net>
107720         * modules/closeout (Depends-on): Add fpending.
107722 2004-11-15  Jim Meyering  <jim@meyering.net>
107724         * lib/closeout.c: Include "__fpending.h" once again.
107725         Include <stdbool.h>.
107726         (close_stdout): Don't fail just because stdout was closed initially,
107727         since some programs don't write to stdout in the normal course of
107728         operation (other than --version and --help), and we don't want this
107729         function to make e.g. `touch file >&-' fail.
107730         But do fail if it was closed and someone has tried to write to it.
107731         E.g., `printf foo >&-' must fail.
107733 2004-11-13  Jim Meyering  <jim@meyering.net>
107735         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
107737 2004-11-12  Simon Josefsson  <jas@extundo.com>
107739         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
107740         small doc fix is still pending.
107742 2004-11-11  Simon Josefsson  <jas@extundo.com>
107744         * modules/strtok_r: New file.
107746         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107747         strtok_r.
107749 2004-11-11  Simon Josefsson  <jas@extundo.com>
107751         * m4/strtok_r.m4: New file.
107753         * m4/getopt.m4: Replace opterr.
107755 2004-11-11  Simon Josefsson  <jas@extundo.com>
107757         * lib/strtok_r.h, strtok_r.c: New file.
107759 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
107761         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
107762         of replacing opterr, getopt, etc.  This should handle the
107763         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
107765 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
107767         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
107768         we can stop lying to compilers about the constness of argv when we
107769         are compiled outside glibc.
107770         (getopt, getopt_long, getopt_long_only): Use it.
107771         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
107772         _getopt_internal, getopt): Likewise.
107773         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
107774         _getopt_long_only_r): Likewise.
107775         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
107776         _getopt_long_r, _getopt_long_only_r): Likewise.
107778         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
107779         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
107780         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
107781         the other external symbols.
107782         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
107783         declaration, since the above renaming now works around collisions.
107785 2004-11-11  Jim Meyering  <jim@meyering.net>
107787         * lib/linebreak.c: Remove trailing blanks.
107788         * lib/alloca_.h: Likewise.
107789         * lib/acosl.c: Likewise.
107790         * lib/euidaccess.c: Likewise.
107791         * lib/allocsa.h: Likewise.
107793 2004-11-10  Simon Josefsson  <jas@extundo.com>
107795         * m4/getaddrinfo.m4: New file.
107797 2004-11-10  Simon Josefsson  <jas@extundo.com>
107799         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
107801 2004-11-10  Simon Josefsson  <jas@extundo.com>
107803         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107804         getaddrinfo.
107806         * modules/getaddrinfo: New file.
107808 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
107810         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
107812 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
107814         * lib/mktime.c (SHR): New macro, which is a portable
107815         substitute for >> that should work even on Crays.
107816         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
107817         Problem reported by Mark D. Baushke in
107818         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
107819         * lib/getdate.y (SHR): Likewise.
107820         (tm_diff): Use it.
107821         * lib/strftime.c (SHR): Likewise.
107822         (tm_diff): Use it.
107823         * lib/quotearg.c (struct quoting_options): Use unsigned int for
107824         quote_these_too, so that right shifts are well defined.  All uses
107825         changed.
107827 2004-11-10  Jim Meyering  <jim@meyering.net>
107829         Ensure that no close failure goes unreported.
107830         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
107831         return early when it seems there's nothing to flush.
107832         Don't include __fpending.h.
107834 2004-11-10  Jim Meyering  <jim@meyering.net>
107836         * modules/closeout (Depends-on): Remove fpending.
107838 2004-11-10  Jim Meyering  <jim@meyering.net>
107840         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
107842 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107844         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
107845         gl_FUNC_STRFTIME.
107846         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
107847         and AC_REQUIRE when possible, to avoid duplicate checks.
107848         Check for <wchar.h>.
107850 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107852         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
107854 2004-11-09  Bruno Haible  <bruno@clisp.org>
107856         * m4/sockpfaf.m4: New file.
107858 2004-11-05  Bruno Haible  <bruno@clisp.org>
107860         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
107861         Reported by Mark D. Baushke <mdb@cvshome.org>.
107863 2004-11-04  Bruno Haible  <bruno@clisp.org>
107865         2004-09-11  Bruno Haible  <bruno@clisp.org>
107866                 * allocsa.valgrind: New file.
107867         2004-02-06  Bruno Haible  <bruno@clisp.org>
107868                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
107869                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
107870                 Reported by Christopher Seip <chris.seip@hp.com>.
107872 2004-11-04  Bruno Haible  <bruno@clisp.org>
107874         * modules/allocsa (Files): Add lib/allocsa.valgrind.
107875         (Makefile.am): Distribute it.
107877 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
107879         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
107880         with errno == ERANGE if the buffer is too small.
107881         Problem reported by Mark D. Baushke.
107883 2004-11-03  Albert Chin  <china@thewrittenword.com>
107884             Paul Eggert  <eggert@cs.ucla.edu>
107886         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
107887         equivalent, substitute $ac_type for equivalent type rather than
107888         blindly using uint32_t *always* which won't work if uint32_t is not
107889         available.  Define _UINT32_T to work around typedef of uint32_t if
107890         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
107891         2.5.1.
107893 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
107895         * m4/jm-macros.m4: Sync from coreutils.
107896         (gl_MACROS): Check for mbrlen, for pathchk.
107897         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
107899 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
107901         * lib/xreadlink.c (MAXSIZE): New macro.
107902         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
107903         size does not exceed MAXSIZE.  Avoid cast.
107904         As suggested by Mark D. Baushke in
107905         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
107906         if readlink fails with buffer size just under MAXSIZE, try again
107907         with MAXSIZE.
107909 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
107911         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
107913 2004-11-02  Derek R. Price  <derek@ximbiot.com>
107914         and  Paul Eggert  <eggert@cs.ucla.edu>
107916         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
107917         (get_date): Overparenthesize to avoid GCC warning.
107919 2004-11-02  Bruno Haible  <bruno@clisp.org>
107921         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
107922         returns void.
107924 2004-11-02  Bruno Haible  <bruno@clisp.org>
107926         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
107927         function returns void.
107929 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
107931         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
107932         fflush_unlocked, flockfile, funlockfile, funlockfile,
107933         fputs_unlocked, putc_unlocked.
107935 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
107937         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
107938         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
107939         already declared.
107941 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
107943         * modules/getdate (Files): Add doc/getdate.texi.
107944         (Depends-on): Add setenv, xalloc.
107946 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
107948         * lib/getdate.y: Add support for TZ="foo" within a date string.
107949         Fix some bugs near time_t boundaries.  Reject dates with
107950         out-of-range components, e.g., "Sept 31".
107951         Include <stdlib.h>, "setenv.h", "xalloc.h".
107952         (ISDIGIT_LOCALE): Remove; unused.
107953         Note that the TZ and time functions used here are not reentrant.
107954         (mktime_ok, get_tz): New functions.
107955         (TZBUFSIZE): New constant.
107956         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
107957         This requires that we sometimes generate our own TZ="XXX..." setting.
107959 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
107961         * doc/getdate.texi: New file, from coreutils with modifications for
107962         the new TZ parsing.
107964 2004-10-27  Derek R. Price  <derek@ximbiot.com>
107966         * lib/mktime.c (not_equal_tm): Remove redundant check.
107968 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107970         * modules/regex (lib_SOURCES): Add regex.c.
107971         Reported by James Youngman in
107972         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
107974 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107976         * lib/getdate.y: Use Bison 1.875 features, and some minor
107977         code cleanups.  This change does not affect semantics.
107978         Don't include <stdlib.h>; no longer needed.
107979         Don't include unlocked-io.h; only the "#if TEST" code uses
107980         stdio, and performance isn't crucial there.
107981         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
107982         Bison 1.875 features as described below.
107983         All uses of "PC." replaced by "pc->".
107984         (YYSTYPE): Add a forward declaration.
107985         (yylex, yyerror): Use full prototypes in forward decls.
107986         Use "%pure-parser" rather than obsolescent "%pure_parser".
107987         Use %parse-param and %lex-param instead of obsolescent
107988         YYPARSE_PARAM and YYLEX_PARAM.
107989         (meridian_table, month_and_day_table, time_units_table,
107990         relative_time_table, time_zone_table, military_table,
107991         lookup_zone, lookup_word, get_date):
107992         Use NULL instead of 0 where appropriate.
107993         (to_hour): Avoid abort (), to avoid a dependency on
107994         stdlib.h.
107995         (yyerror, yylex): Now accepts parser_control * arg.
107996         (main) [TEST]: Use '\0' rather than 0 for char.
107998 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
108000         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
108002 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
108004         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
108005         It's now the caller's responsibility to handle the case where
108006         !HAVE_GETPAGESIZE && !defined getpagesize.
108008         * lib/mktime.c (leapyear): Arg is long int, not int.
108010 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
108012         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
108014 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
108016         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
108017         missing.  Problem reported by James Youngman.
108019 2004-10-16  Simon Josefsson  <jas@extundo.com>
108021         * gnulib-tool: Fix comments.  Fix parse problem.
108022         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
108024 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
108026         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
108027         implementation of getopt_long.  Problem reported by Alexander Taler in:
108028         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
108030 2004-10-15  Bruno Haible  <bruno@clisp.org>
108032         * gnulib-tool: Untabify. Initialize supplied_libname.
108033         (func_usage): More homogenous output.
108034         (func_modules_transitive_closure, func_modules_to_filelist,
108035         func_emit_lib_Makefile_am): New functions.
108036         (func_import): New function, extracted from big case statement. Use
108037         func_get_license, func_modules_transitive_closure,
108038         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
108039         opt_lgpl. Don't use test -a, as it's not portable.
108040         (func_create_testdir): Use func_modules_transitive_closure,
108041         func_modules_to_filelist, func_emit_lib_Makefile_am.
108043 2004-10-15  Bruno Haible  <bruno@clisp.org>
108045         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
108047 2004-10-15  Bruno Haible  <bruno@clisp.org>
108049         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
108050         the portions belonging to each module.
108051         Suggested by Derek Robert Price <derek@ximbiot.com>.
108053 2004-10-12  Simon Josefsson  <jas@extundo.com>
108055         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
108056         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
108057         to real functions.
108059 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108061         * modules/vsnprintf: New file.
108063 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108065         * m4/vsnprintf.m4: New file.
108067 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108069         * lib/vsnprintf.h: New file.
108070         * lib/vsnprintf.c: New file.
108072 2004-10-11  Bruno Haible  <bruno@clisp.org>
108074         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
108075         vsnprintf.
108077 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108079         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
108081 2004-10-07  Bruno Haible  <bruno@clisp.org>
108083         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
108084         fits into the provided buffer.
108086 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108088         * lib/diacrit.c, diacrit.h: Add GPL notice.
108090         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
108091         notice.
108092         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
108093         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
108094         This avoids a potential constant-folding bug.
108096 2004-10-05  Bruno Haible  <bruno@clisp.org>
108098         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
108099         for the declaration of strsep.
108101 2004-10-05  Bruno Haible  <bruno@clisp.org>
108103         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
108105 2004-10-04  Simon Josefsson  <jas@extundo.com>
108107         * modules/memmem: New file.
108108         * tests/test-memmem.c: New file.
108109         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
108111 2004-10-04  Simon Josefsson  <jas@extundo.com>
108113         * m4/memmem.m4: New file.
108115 2004-10-04  Simon Josefsson  <jas@extundo.com>
108117         * lib/memmem.h: New file.
108118         * lib/memmem.c: New file, taken from glibc.
108120 2004-10-04  Simon Josefsson  <jas@extundo.com>
108122         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
108123         '#ifdef USE_UNLOCKED_IO'.
108125 2004-10-04  Simon Josefsson  <jas@extundo.com>
108127         * config/srclist.txt: Add memmem from glibc.
108129 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108131         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
108133         * modules/argmatch, modules/argp, modules/closeout, modules/error,
108134         modules/exclude, modules/getdate, modules/getline,
108135         modules/getndelim2, modules/getpass, modules/getpass-gnu,
108136         modules/getusershell, modules/linebuffer, modules/md5,
108137         modules/mountlist, modules/posixtm, modules/readtokens,
108138         modules/readutmp, modules/regex, modules/sha1,
108139         modules/version-etc, modules/yesno:
108140         Remove dependency on unlocked-io.
108142 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108144         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
108146         * m4/unlocked-io.m4: Add copyright notice.
108147         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
108149 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108151         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
108152         * lib/xmalloc.c (xmemdup): Likewise.
108153         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
108154         XFREE): Remove these long-obsolescent macros.
108155         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
108156         * lib/xstrdup.c: Remove.
108158         * lib/regex.c (re_comp): Cast gettext return value to char *,
108159         Problem reported by Martin Neitzel via Mark D. Baushke.
108161 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108163         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
108164         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
108165         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
108166         regex.c, sha1.c, version-etc.c, yesno.c:
108167         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
108168         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
108169         the includer's responsibility.
108171         Sync from coreutils.
108173         * lib/modechange.c (mode_compile): Don't decrement a pointer that
108174         points to the start of a string, as the C Standard says the
108175         resulting behavior is undefined.
108177         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
108178         simple -> simple_backups, numbered_existing ->
108179         numbered_existing_backups, numbered -> numbered_backups
108180         to avoid shadowing problems.  All uses changed.
108181         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
108182         * lib/backupfile.c (check_extension, numbered_backup):
108183         Rename locals to avoid shadowing 'basename'.
108184         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
108185         once.
108187         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
108188         * lib/.cvsignore: Add getopt.h.
108190 2004-10-04  Bruno Haible  <bruno@clisp.org>
108192         * modules/README: New file.
108193         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
108194         not a module.
108196 2004-10-02  Jim Meyering  <jim@meyering.net>
108198         * lib/dirfd.h, getpagesize.h: Add copyright notice.
108200 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108202         * modules/strsep: New file.
108204 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108206         * m4/strsep.m4: New file.
108208 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108210         * lib/strsep.h: New file.
108211         * lib/strsep.c: New file.
108213 2004-10-01  Simon Josefsson  <jas@extundo.com>
108215         * lib/snprintf.c (snprintf): Handle size==0.
108217 2004-10-01  Simon Josefsson  <jas@extundo.com>
108218             Bruno Haible  <bruno@clisp.org>
108220         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
108221         (snprintf): Declare 'args'.
108223 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
108225         * lib/snprintf.c: Remove comments as to why each header is needed.
108227 2004-10-01  Bruno Haible  <bruno@clisp.org>
108229         * MODULES.html.sh: Add strsep.
108231 2004-09-30  Simon Josefsson  <jas@extundo.com>
108233         * modules/snprintf: New file.
108235 2004-09-30  Simon Josefsson  <jas@extundo.com>
108237         * m4/snprintf.m4: New file.
108239 2004-09-30  Simon Josefsson  <jas@extundo.com>
108241         * lib/snprintf.h, lib/snprintf.c: New files.
108243 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
108245         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
108246         (hol_entry_help): Never translate an empty string.
108247         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
108248         * lib/argp.h (OPTION_NO_TRANS): New option.
108250 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108252         * modules/argp (Maintainer): Replace Simon Josefsson
108253         by Sergey Poznyakoff.
108255 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108257         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
108258         changes merged back into glibc.
108260 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108262         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
108264 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
108266         * lib/xvasprintf.c: Include xalloc.h.
108267         (xvasprintf): Use xalloc_die, not xmalloc_die.
108269 2004-09-29  Bruno Haible  <bruno@clisp.org>
108271         * modules/alloca-opt: New file, derived from modules/alloca.
108272         * modules/allocsa: Depend on alloca-opt instead of alloca.
108273         * modules/setenv: Likewise.
108274         * modules/vasnprintf: Likewise.
108275         * MODULES.html.sh: Add alloca-opt.
108277 2004-09-28  Simon Josefsson  <jas@extundo.com>
108279         * gnulib-tool: New parameter --lgpl, to asseert that modules are
108280         LGPL, and to replace license template from GPL to LGPL.
108282 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108284         * modules/dummy: Change license to LGPL.
108286 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108288         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
108290 2004-09-24  Simon Josefsson  <jas@extundo.com>
108292         * modules/minmax (License): Change from GPL to LGPL.
108294 2004-09-23  Simon Josefsson  <jas@extundo.com>
108296         * gnulib-tool (--import): Typo.
108298 2004-09-23  Simon Josefsson  <jas@extundo.com>
108300         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
108302 2004-09-22  Bruno Haible  <bruno@clisp.org>
108304         * modules/*: Add 'License' field.
108305         * gnulib-tool: Accept --extract-license option.
108306         (func_get_license): New function.
108308 2004-09-21  Bruno Haible  <bruno@clisp.org>
108310         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
108311         Reported by Simon Josefsson.
108313 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108315         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
108316         gl_AC_TYPE_LONG_LONG.
108318 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108320         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
108322 2004-09-18  Simon Josefsson  <jas@extundo.com>
108323         and  Paul Eggert  <eggert@cs.ucla.edu>
108325         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
108326         calls with autoreconf.  Define GL_LIB.
108328 2004-09-14  Karl Berry  <karl@gnu.org>
108330         * config/srclist.txt: unsync setenv.c, sigh.
108332 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108334         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
108335         Problem reported by Bruno Haible in:
108336         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
108338 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108340         * config/srclist.txt: Comment out argp-pvh.c.
108342 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
108344         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
108345         in case some system header has #define'd it.  Problem reported by
108346         Soeren D. Schulze in
108347         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
108349 2004-09-09  Karl Berry  <karl@gnu.org>
108351         * regex.[ch]: delete from the root.  These were supposed to be
108352                 synced with emacs cvs, but this has not happened for about
108353                 a year, and anyway nothing else uses emacs regex.[ch].
108354                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
108355                 lib/regex[.ch] is untouched.
108357 2004-09-09  Bruno Haible  <bruno@clisp.org>
108359         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
108361 2004-09-09  Bruno Haible  <bruno@clisp.org>
108363         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
108364         modifications.
108365         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
108367 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108369         * modules/xvasprintf: New file.
108370         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
108372 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108374         * lib/xvasprintf.h: New file.
108375         * lib/xvasprintf.c: New file.
108376         * lib/xasprintf.c: New file.
108378 2004-09-08  Bruno Haible  <bruno@clisp.org>
108380         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
108382 2004-09-08  Bruno Haible  <bruno@clisp.org>
108384         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
108385         length is > INT_MAX.
108386         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
108387         more.
108389 2004-09-08  Bruno Haible  <bruno@clisp.org>
108391         * lib/stdint_.h: New file, taken from GNU clisp.
108393 2004-09-08  Bruno Haible  <bruno@clisp.org>
108394             Oskar Liljeblad  <oskar@osk.mine.nu>
108396         * modules/stdint: New file.
108397         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
108399 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108401         Import from coreutils.
108402         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
108403         strings on unbounded length.  alloca's performance benefits aren't
108404         that important here.
108405         (V_STRDUP): Remove.
108406         (parse_with_separator): New function, with most of the internals
108407         of the old parse_user_spec.  Allow user to omit both user and group,
108408         for compatibility with FreeBSD.
108409         Clone only the user name, not the entire spec.
108410         Do not set *uid, *gid unless entirely successful.
108411         Avoid memory leak in some failing cases.
108412         Fix regression for USER.GROUP reported by Dmitry V. Levin in
108413         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
108414         (parse_user_spec): Rewrite to use parse_with_separator.
108416 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108418         * modules/userspec: Don't depend on alloca.
108420 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108422         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
108424 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
108426         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
108427         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
108428         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
108430 2004-08-16  Simon Josefsson  <jas@extundo.com>
108432         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
108433         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
108434         Add --dry-run for --import.
108435         Let user provided command line parameters override configure.ac
108436         settings.
108438 2004-08-12  Simon Josefsson  <jas@extundo.com>
108440         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
108441         as discussed with Paul Eggert in threads rooted at
108442         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
108443         and
108444         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
108445         Before, the test was empty, and relied on ELIDE_CODE in source
108446         code.)
108447         (gl_PREREQ_GETOPT): New macro.
108448         (gl_GETOPT): Use them.
108450 2004-08-12  Simon Josefsson  <jas@extundo.com>
108452         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
108453         * lib/getopt_.h: Renamed from getopt.h.
108455 2004-08-12  Simon Josefsson  <jas@extundo.com>
108457         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
108458         Change default library name from libfoo to libgnu.
108459         Now, if you have a configure.ac that says:
108460                 gl_SOURCE_BASE(gl)
108461                 gl_M4_BASE(gl/m4)
108462                 gl_MODULES(error getopt etcetera)
108463                 gl_INIT
108464         you can import all you need by running:
108465                 ../gnulib/gnulib-tool --import
108467         * modules/getopt (Files): Rename getopt.h to getopt_.h.
108468         (Makefile.am): Rewrite, use logic from argz.
108469         (Include): Use <getopt.h> instead of "getopt.h".
108471 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108473         * modules/argp (Files): Add m4/unlocked-io.m4.
108474         (Depends-on): Add extensions.
108476 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108478         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
108479         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
108480         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
108481         Check for program_invocation_name, program_invocation_short_name,
108482         flockfile, funlockfile, features.h, _getopt_long_only_r.
108484 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108486         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
108487         its complicated substitute.
108488         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
108489         and program_invocation_name.
108490         (__argp_basename) [!_LIBC]: Remove; the only use was
108491         replaced by its body.
108492         (__argp_short_program_name): Change condition from
108493         !defined __argp_short_program_name to
108494         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
108495         to match argp-namefrob.h.
108496         (__argp_failure): Don't assume strerror_r returns char *.
108497         * lib/argp-parse.c (N_): Define unconditionally.
108498         (argp_default_options): Fill out initializers with 0 to avoid
108499         gcc warnings.
108501 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108503         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
108504         getopt1.c.
108506 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108508         Merge from coreutils.
108510         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
108512         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
108513         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
108515 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108517         Merge from coreutils.
108519         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
108520         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
108521         for Reliant Unix 5.43.
108523         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
108524         (union fooround): Use uintmax_t, not long int.
108525         The rest is a merge from libc:
108526         [defined _LIBC]: Include <shlib-compat.h>.
108527         (_obstack) [defined _LIBC]: Remove after 2.3.4.
108529         * lib/settime.c (settime): Recode to avoid warning with
108530         Sun Forte C 6U2.
108532         * lib/strverscmp.c: Convert to UTF-8.
108534 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108536         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
108537         m4/uintmax_t.m4.
108539 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108541         * modules/xalloc-die: New file.
108542         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
108544         * modules/md5 (Files): Add m4/uint32_t.m4.
108545         * modules/sha1: Renamed from modules/sha.
108546         (Files):
108547         Rename lib/sha.h to lib/sha1.h.
108548         Rename lib/sha.c to lib/sha1.c.
108549         Rename m4/sha.m4 to m4/sha1.m4.
108550         (lib_SOURCES): Likewise.
108551         (configure.ac): Rename gl_SHA to gl_SHA1.
108552         (Include): sha.h -> sha1.h.
108554 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108556         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
108557         * m4/sha1.m4: Renamed from sha.m4.
108558         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
108560 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108562         * lib/obstack.h (obstack_empty_p):
108563         Don't assume that chunk->contents is suitably aligned.
108564         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
108565         Likewise. Problem reported by Benno in
108566         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
108568         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
108569         readable.  This could be improved further but it'd take some work.
108571 2004-08-08  Simon Josefsson  <jas@extundo.com>
108573         * modules/xgethostname (Depends-on): Remove exit and error (not
108574         used).
108576         * modules/getpass-gnu: Add getpass.h.
108577         (Depends-on): Add stdbool.
108578         * modules/getpass: Add getpass.h.
108580 2004-08-08  Simon Josefsson  <jas@extundo.com>
108582         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
108583         Check getpass declaration.
108585 2004-08-08  Simon Josefsson  <jas@extundo.com>
108587         * lib/xgethostname.c: Don't include error.h (not used).
108589         * lib/getpass.h: Add.
108590         * lib/getpass.c: Include getpass.h first.
108592 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
108594         * lib/xalloc-die.c: New file.
108595         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
108596         All uses removed.
108597         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
108598         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
108599         xalloc-die.c.
108600         (_, N_, xalloc_die): Move to xalloc-die.c.
108601         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
108602         so that we needn't mess with xalloc_msg_memory_exhausted.
108604         * lib/sha1.h: Renamed from sha.h.
108605         (SHA1_H): Renamed from _SHA_H.
108606         (sha1_ctx): Renamed from sha_ctx.
108607         (sha1_init_ctx): Renamed from sha_init_ctx.
108608         (sha1_process_block): Renamed from sha_process_block.
108609         (sha1_process_bytes): Renamed from sha_process_bytes.
108610         (sha1_finish_ctx): Renamed from sha_finish_ctx.
108611         (sha1_read_ctx): Renamed from sha_read_ctx.
108612         (sha1_stream): Renamed from sha_stream.
108613         (sha1_buffer): Renamed from sha_buffer.
108614         * lib/sha1.c: Likewise; renamed from sha.c.
108615         Do not include <sys/types.h>.
108616         Include <stddef.h> rather than <stdlib.h>.
108618 2004-08-08  Bruno Haible  <bruno@clisp.org>
108620         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
108621         FILESYSTEM_PREFIX_LEN.
108622         * lib/progreloc.c: Likewise.
108623         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
108625 2004-08-06  Simon Josefsson  <jas@extundo.com>
108627         * modules/progname (Depends-on): Don't depend on stdbool.
108629 2004-08-06  Simon Josefsson  <jas@extundo.com>
108631         * modules/getsubopt: New file.
108632         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108633         getsubopt.
108635 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108637         More merge from coreutils.
108639         * m4/utimens.m4, m4/utimecmp.m4: New files.
108640         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
108641         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
108642         prereq.m4, sha.m4: Import changes from coreutils.
108644 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108646         More merge from coreutils.
108647         * modules/raise, modules/readtokens0, modules/utimens:
108648         * modules/utimecmp, module/xnanosleep: New files.
108649         * modules/strftime: Add lib/strftime.h.
108650         Change include from <time.h> to "strftime.h".
108651         * modules/yesno: Add lib/yesno.h.
108652         * modules/backupfile: Remove lib/addext.c.
108653         * modules/euidaccess: Add stat-macros.h.
108654         * modules/canonicalize, modules/euidaccess,
108655         modules/filemode, modules/lchown, modules/makepath,
108656         modules/rmdir, modules/stat: Likewise.
108658 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108660         Merge from tar.
108661         * lib/argp-help.c (make_hol, hol_append): Don't assume that
108662         SIZE_MAX is a valid preprocessor constant.
108663         (__argp_basename): Change from "#ifndef _LIBC"
108664         to "#ifndef __argp_short_program_name", so that
108665         we don't compile these functions for tar.
108667         More merges from coreutils.
108668         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
108669         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
108670         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
108671         * lib/addext.c: Remove; no longer needed.
108672         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
108673         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
108674         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
108675         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
108676         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
108677         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
108678         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
108679         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
108680         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
108681         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
108682         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
108683         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
108684         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
108685         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
108686         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
108687         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
108688         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
108689         Import changes from coreutils.
108691 2004-08-05  Simon Josefsson  <jas@extundo.com>
108693         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
108695 2004-08-05  Simon Josefsson  <jas@extundo.com>
108697         * m4/getsubopt.m4: New file.
108699 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108701         Merge from coreutils.
108703         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
108704         * m4/getcwd-path-max.m4: New files.
108706         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
108707         FILESYSTEM_PREFIX_LEN ->
108708         FILE_SYSTEM_PREFIX_LEN.
108709         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
108710         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
108711         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
108712         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
108714         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
108715         prerequisite modules now handle the DOS stuff.
108716         Don't check for unistd.h.
108718 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108720         Merge from coreutils.
108722         * lib/.gdb-history: Remove; this doesn't belong here.
108724         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
108725         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
108726         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
108727         * lib/getcwd.c: New files.
108729         * lib/dirname.h: Include <stdbool.h>.
108730         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
108731         for consistency with POSIX terminology.  All uses changed.
108732         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
108733         (strip_trailing_slashes): Use bool for booleans.
108734         * lib/stripslash.c (strip_trailing_slashes): Likewise.
108736         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
108737         sometimes returns a positive errno value even when it succeeds.
108738         (print_errno_message) [!LIBC]: Fall back on strerror if
108739         __strerror_r fails.
108741         * lib/path-concat.c (mempcpy): Don't define if a system header defines
108742         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
108743         (longest_relative_suffix): New function.
108744         (path_concat): Use it.  Assume first argument is not NULL.
108745         Port to DOS.  Omit redundant separators.
108746         Report an error instead of returning NULL.
108747         Use mempcpy instead of memcpy.
108748         (xpath_concat): Remove: not declared or used.
108750         * lib/same.h: Include <stdbool.h>
108751         (same_name): Return bool, not int.
108752         * lib/same.c (same_name): Likewise.
108753         (errno): Don't declare; we assume C89 or better now.
108755         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
108756         if not already defined.
108758         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
108759         * lib/dup-safer.c (errno): Likewise.
108761 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108763         Merge from coreutils.
108764         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
108765         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
108766         * modules/path-concat: Don't depend on strdup.
108768 2004-08-03  Simon Josefsson  <jas@extundo.com>
108770         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
108771         * lib/progname.h: Don't include stdbool.h.
108773 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108775         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
108776         * MODULES.html.sh (func_all_modules): Remove fatal.
108778 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108780         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
108782 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108784         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
108785         working.
108787 2004-08-02  Simon Josefsson  <jas@extundo.com>
108789         * lib/getsubopt.h: New file, with comments from Bruno Haible.
108790         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
108791         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
108793 2004-08-01  Simon Josefsson  <jas@extundo.com>
108795         * lib/xgetdomainname.c: Include stdlib.h, for free().
108797 2004-07-19  Bruno Haible  <bruno@clisp.org>
108799         * MODULES.html.sh (func_all_modules): Add dummy.
108801 2004-07-16  Simon Josefsson  <jas@extundo.com>
108803         * modules/dummy: New file.
108805 2004-07-16  Simon Josefsson  <jas@extundo.com>
108807         * lib/dummy.c: New file.
108809 2004-07-16  Bruno Haible  <bruno@clisp.org>
108811         * lib/backupfile.h: Add extern "C" for C++.
108812         * lib/closeout.h: Likewise.
108813         * lib/copy-file.h: Likewise.
108814         * lib/findprog.h: Likewise.
108815         * lib/full-write.h: Likewise.
108816         * lib/pathname.h: Likewise.
108817         * lib/progname.h: Likewise.
108818         * lib/stpcpy.h: Likewise.
108819         * lib/stpncpy.h: Likewise.
108820         * lib/strcase.h: Likewise.
108821         * lib/strstr.h: Likewise.
108822         * lib/xalloc.h: Likewise.
108824         * lib/mbswidth.h: Add extern "C" for C++.
108825         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
108827 2004-07-13  Robert Millan  <robertmh@gnu.org>
108829         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
108831 2004-07-09  Simon Josefsson  <jas@extundo.com>
108833         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
108834         failed without this.)
108836 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
108838         * modules/chown (Files): Add lib/fchown-stub.c, since
108839         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
108841 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
108843         * lib/fchown-stub.c: New file.
108845 2004-06-24  Jim Meyering  <jim@meyering.net>
108847         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
108849 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108851         * modules/argz: Omit "#include".
108853         * MODULES.html.sh (func_all_modules): Add calloc, to match
108854         2004-06-01 addition of calloc module.
108856 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108858         * m4/argz.m4: New file, which is autoupdated from libtool.
108860 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108862         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
108863         libtool.
108865 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108867         * config/srclist-update: Don't insist on "USA." before the
108868         close-comment, as libtool omits the period and puts the */ on a
108869         separate line.
108870         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
108871         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
108873 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
108875         * modules/argz: New file.
108876         * MODULES.html.sh (func_all_modules): Add argz.
108878 2004-06-12  Jim Meyering  <jim@meyering.net>
108879         and  Paul Eggert  <eggert@cs.ucla.edu>
108881         * modules/hash (Files): Add lib/xalloc.h.
108882         * modules/pipe (Depends-on): Add wait-process.
108883         * modules/stat (Depends-on): Add xalloc.
108884         * modules/userspec (Files): Add lib/userspec.h.
108885         * modules/xstrto
108887         Upgrade from gettext-0.13.
108888         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
108889         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
108890         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
108892 2004-06-10  Jim Meyering  <jim@meyering.net>
108894         * lib/calloc.c: New file.
108896 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
108898         * lib/getdate.y (yylex): Allow space between sign and number.
108899         Problem reported by Dan Jacobson.
108901 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
108903         Merge from coreutils CVS.
108905         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
108906         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
108907         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
108908         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
108909         xstrtol.m4: Fix copyright date and/or serial number.
108911         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
108912         See if we need an fchown replacement.
108913         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
108914         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
108915         and use the replacement function if we detect either defect.
108917         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
108918         gl_UTIMECMP.
108920 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
108921         and  Jim Meyering  <jim@meyering.net>
108923         Merge from coreutils CVS.
108925         * lib/stat-macros.h: New file, with contents from file-type.h
108926         and coreutils' system.h.
108927         * lib/file-type.c: Include "stat-macros.h".
108928         * lib/file-type.h (file_type): Move all macro definitions to new file,
108929         stat-macros.h.
108931         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
108932         Wrap old code with this conditional.
108933         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
108934         function that does not dereference symlinks.
108935         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
108937         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
108938         dependency problems.
108939         (xreadlink): Accept new arg SIZE, for efficiency.
108940         All decls and uses changed.
108941         * lib/xreadlink.h: Include <stddef.h>, for size_t.
108943         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
108944         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
108946         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
108947         sysexits.h.
108949 2004-06-01  Jim Meyering  <jim@meyering.net>
108951         * m4/calloc.m4: New file.
108953 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
108955         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
108956         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
108957         Also, fix a typo in a diagnostic.
108959 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
108961         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
108962         or AC_FUNC_REALLOC.
108964 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
108966         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
108967         macros to be defined.
108968         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
108969         the allocator returns NULL because the requested size is zero.
108971 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
108973         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
108974         var.  Add comment explaining why libc still defines it.  This
108975         merges the following patch from glibc:
108976         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
108978 2004-05-20  Andreas Schwab  <schwab@suse.de>
108980         * m4/free.m4: Replace free if it not known to work, not the other
108981         way round.
108983 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
108985         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
108986         present in glibc since revision 1.1 of this file.
108987         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
108988         obstack_alignment_mask, obstack_alloc, obstack_base,
108989         obstack_blank, obstack_blank_fast, obstack_chunk_size,
108990         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
108991         obstack_grow0, obstack_init, obstack_int_grow,
108992         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
108993         obstack_next_free, obstack_object_size, obstack_ptr_grow,
108994         obstack_ptr_grow_fast, obstack_room): Remove declarations of
108995         nonexistent functions.
108997 2004-05-18  Karl Berry  <karl@gnu.org>
108999         * config/srclist.txt: break link for vasnprintf.c.
109001 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
109003         Port obstack to the AS/400, where pointers are 16 bytes wide and
109004         you cannot cast an integer to a valid pointer.  This patch is
109005         currently waiting to be integrated into glibc; see
109006         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
109008         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
109009         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
109010         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
109011         (struct obstack): temp member is now a union of a pointer and
109012         an integer, instead of an integer.  All integer uses changed.
109013         This does not affect the physical layout of struct obstack,
109014         except on hosts (like the AS/400) where the size or alignment of
109015         void * is greater than that of ptrdiff_t.
109016         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
109017         __STDC__)]: Store temporary in pointer member of union, not
109018         integer member.
109019         * lib/obstack.c: Include <stddef.h>, for offsetof.
109020         (struct fooalign): Remove; it doesn't need a name.
109021         (union fooround): Change double to long double, and add void *.
109022         (DEFAULT_ALIGNMENT): Use offsetof to compute.
109023         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
109024         not a macro.  Hence the values are always int; so remove all
109025         casts-to-int in uses.
109027 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
109029         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
109030         we can get this patch merged into glibc.
109032 2004-05-17  Derek R. Price  <derek@ximbiot.com>
109033             Paul Eggert  <eggert@cs.ucla.edu>
109035         * m4/argp: Depend on alloca.
109037 2004-05-17  Derek R. Price  <derek@ximbiot.com>
109038             Paul Eggert  <eggert@cs.ucla.edu>
109040         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
109041         freecoding.
109043 2004-05-17  Bruno Haible  <bruno@clisp.org>
109045         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
109046         precision that consists of a '.' followed by an empty digit string.
109047         Patch by Tor Lillqvist <tml@iki.fi>.
109049 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
109051         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
109052         for backward compatibility with older code.  We need our own
109053         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
109054         it under some other name, and our alloca.h will define it.
109056 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
109057             Derek Price  <derek@ximbiot.com>
109059         * lib/alloca.c: Include <alloca.h>, to get our interface.
109060         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
109061         include <alloca.h> first.  Use C89 prototype for alloca; this
109062         requires including <stddef.h> for size_t.  Use extern "C" if C++.
109063         Use #elif for simplicity, since we can assume C89 now.
109064         Don't try to source the system alloca.h since it will not be found
109065         and to prevent recursively including its replacement.
109066         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
109067         * lib/regex.c: Likewise.
109069 2004-05-16  Derek Price  <derek@ximbiot.com>
109070             Paul Eggert  <eggert@cs.ucla.edu>
109072         getline cleanup.  This changes the getndelim2 API: both order of
109073         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
109074         no delimiter).
109076         * lib/getline.c: Don't include stddef.h or stdio.h, since our
109077         interface does that.
109078         (getline): Always use getdelim, so that we don't have two
109079         copies of this code.
109080         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
109081         if available.
109082         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
109083         (GETNDELIM2_MAXIMUM): New macro.
109084         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
109085         instead of the old practice of delim2==0.  All callers changed.
109086         Return -1 on overflow, instead of returning junk.
109087         Do not set *linesize unless allocation succeeds.
109088         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
109089         that we include sys/types.h.
109090         * lib/getnline.h: Likewise.
109091         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
109092         (getndelim2): Reorder arguments.
109093         * lib/getnline.c (getnline, getndelim):
109094         Don't discard the NMAX argument.
109095         (getnline): Invoke getndelim, to avoid code duplication.
109096         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
109097         of (size_t) -1 by callers of the getnline family.
109099 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
109101         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
109102         Check for gettimeofday.
109103         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
109104         Check for settimeofday, stime.
109106 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
109108         * lib/nanosleep.c (suspended): Change its type from int to
109109         sig_atomic_t volatile.
109110         (first_call): Make it private to rpl_nanosleep, and have it
109111         be zero initially as that's a bit faster.
109112         (my_usleep): Round up fractional times instead of truncating them,
109113         as this is the usual meaning for 'sleep'.
109115         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
109116         doesn't work.
109117         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
109118         (ENOSYS): Define if not defined.
109119         (settime): Fall back on stime if it exists and settimeofday fails.
109120         But don't bother with fallbacks if a method fails with errno == EPERM.
109122 2004-05-11  Jim Meyering  <jim@meyering.net>
109124         Prior to this change, the save_cwd caller required read access to the
109125         current directory on most systems (ones with the fchdir function).
109127         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
109128         fails, try write-only, and finally, resort to using xgetcwd.
109130 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
109132         * lib/obstack.c, obstack.h: Import changes from libc.
109134 2004-04-28  Bruno Haible  <bruno@clisp.org>
109136         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
109137         also implicitly appends .exe to executables.
109138         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
109139         accepts Windows pathnames.
109140         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
109141         Treat Cygwin like Windows, since it now accepts Windows pathnames.
109142         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
109143         Treat Cygwin like Windows, since it now accepts Windows pathnames.
109144         Reported by Derek Robert Price <derek@ximbiot.com>.
109146 2004-04-21  Karl Berry  <karl@gnu.org>
109148         * config/srclist.txt (localcharset.c): break sync.
109150 2004-04-20  Paul Eggert  <eggert@twinsun.com>
109152         * m4/host-os.m4: Add a copyright notice.
109154 2004-04-20  Jim Meyering  <jim@meyering.net>
109156         Change UTILS_ to gl_ in AC_DEFINE'd names.
109157         Change utils_- and jm_-prefixed variables, too.
109158         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
109159         UTILS_FUNC_MKDIR_TRAILING_SLASH.
109160         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
109162         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
109163         Don't emit trailing blanks.
109164         Also rename jm_-prefixed variables to have gl_ prefix.
109166         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
109167         Also rename jm_-prefixed variables to have gl_ prefix.
109169         * m4/jm-macros.m4: Reflect the renamings.
109170         * m4/prereq.m4: Likewise.
109172 2004-04-20  Jim Meyering  <jim@meyering.net>
109174         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
109175         memory.
109177 2004-04-20  Jim Meyering  <jim@meyering.net>
109178             Bruno Haible  <bruno@clisp.org>
109180         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
109181         memory when realloc fails.
109183 2004-04-19  Jim Meyering  <jim@meyering.net>
109185         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
109186         now that readutmp.c may call `free (0)'.
109188 2004-04-19  Bruno Haible  <bruno@clisp.org>
109190         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
109191         * m4/inttypes_h.m4: Likewise.
109192         * m4/stdint_h.m4: Likewise.
109193         * m4/intmax_t.m4: Likewise.
109194         * m4/uintmax_t.m4: Likewise.
109196 2004-04-18  Jim Meyering  <jim@meyering.net>
109198         * m4/prereq.m4: Don't forbid jm_ prefix.
109200         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
109201         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
109202         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
109203         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
109204         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
109205         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
109206         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
109207         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
109208         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
109209         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
109210         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
109211         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
109212         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
109213         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
109214         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
109215         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
109216         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
109217         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
109218         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
109220 2004-04-18  Jim Meyering  <jim@meyering.net>
109222         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
109223         failure, don't leak memory and do call END_UTMP_ENT.
109225 2004-04-16  Jim Meyering  <jim@meyering.net>
109227         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
109228         coreutils' stat program.
109229         (gl_PREREQ): Don't require jm_PREREQ_STAT.
109231 2004-04-11  Paul Eggert  <eggert@twinsun.com>
109233         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
109234         C89.
109235         (CHAR_BIT): Remove, since we assume C89.
109236         Include <stdint.h> if available, as per current Autoconf CVS advice.
109238 2004-03-31  Jim Meyering  <jim@meyering.net>
109240         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
109241         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
109242         * m4/xalloc.m4: Likewise.
109244 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109246         Merge from coreutils.
109248         * m4/inttostr.m4: New file.
109249         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
109250         Require AM_STDBOOL_H and gl_TIMESPEC instead.
109251         Require gl_CLOCK_TIME.
109252         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
109254 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109256         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
109257         not bool, to be more consistent with Unix conventions.
109258         Suggested by Bruno Haible.
109260         Merge from coreutils.
109262         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
109263         * lib/umaxtostr.c: New files.
109265         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
109266         the usual <time.h> dance.
109267         (get_date): Change signature to support fractional time stamps.
109268         All callers changed.
109269         * lib/getdate.y: Include "getdate.h" first, as we can now
109270         assume C89 and don't need to worry about 'const'.
109271         Similarly, include "unlocked-io.h" near start, not in middle.
109272         Include <limits.h>.
109273         (textint.value): Use long int rather than int.
109274         (textint.digits): Use size_t rather than int.
109275         (BILLION, LOG10_BILLION): New constants.
109276         (parser_control): New member rel_ns.  Members day_ordinal,
109277         time_zone, month, day, hour, minutes, rel_year, rel_month,
109278         rel_day, rel_hour, rel_minutes, rel_seconds
109279         are now long int, not int.  Member seconds is now struct timespec,
109280         not int.  New member timespec_seen.  Members dates_seen, days_seen,
109281         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
109282         not int.
109283         (%union.intval): Now long int, not int.
109284         New member timespec.
109285         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
109286         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
109287         (spec): Now is a timespec or an item list.
109288         (timespec, items): New nonterminals.
109289         (time, rel, relunit, number, get_date):
109290         Add support for fractional seconds.
109291         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
109292         (gmtime, localtime, mktime): Remove decls; not needed with C89.
109293         (to_hour): First arg is now long int, not int.
109294         (to_year): Returns long int, not int.
109295         Don't treat year -70 like 70.
109296         (tm_diff): Returns long int, not int.
109297         (lookup_word): Use bool instead of int when appropriate.
109298         (yylex): Use size_t for count, not int.
109299         Detect overflow when parsing large integer constants.
109300         Add support for fractions.
109301         (get_date): Make pointers 'const' if possible.
109302         Use more-portable code to detect integer overflow.
109303         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
109304         Don't use ctime; it's not reliable if the year has >4 digits.
109306         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
109307         This is for compatibility with BSD.
109309         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
109310         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
109311         From coreutils' system.h.
109313         * lib/userspec.c: Don't include "posixver.h".
109314         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
109315         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
109316         compatible extension.  Simplify code by removing a boolean int
109317         that was always nonzero if a string was nonnull.
109319 2004-03-30  Jim Meyering  <jim@meyering.net>
109321         Merge from coreutils.
109323         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
109324         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
109325         on some systems one must include <grp.h> before it.
109326         Reported by Christian Krackowizer.
109328 2004-03-30  Jim Meyering  <jim@meyering.net>
109330         Merge from coreutils.
109332         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
109334         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
109335         an empty input stream.
109337         * lib/readtokens.c: Include <stdbool.h>.
109338         (readtoken): Use `size_t' rather than int/long.
109339         All callers adjusted.
109340         Use `bool' rather than `int' where appropriate.
109341         Use memset rather than an explicit loop.
109342         Use x2nrealloc rather than xrealloc.
109343         Allow the use of `\0' as a delimiter.
109344         (readtokens): Likewise.
109345         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
109347 2004-03-30  Jim Meyering  <jim@meyering.net>
109349         * m4/realloc.m4: Remove file, since now it does no more than
109350         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
109351         the `configure.ac' section of module/realloc.
109352         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
109354 2004-03-30  Bruno Haible  <bruno@clisp.org>
109356         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
109357         nonnull.
109359 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109361         Merge changes to getloadavg.c from coreutils and Emacs.
109363         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
109364         Define to an expression, not to the empty string.
109365         Include cloexec.h and xalloc.h.
109366         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
109367         Use set_cloexec_flag rather than rolling our own.
109368         * lib/cloexec.c, lib/cloexec.h: New files.
109370 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109372         * m4/cloexec.m4: New file.
109374 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109376         * lib/getopt.h: Sync with libc CVS.
109378 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109379             Bruno Haible  <bruno@clisp.org>
109381         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
109382         mbswidth.
109384 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109385             Bruno Haible  <bruno@clisp.org>
109387         * lib/mbswidth.h: Include <wchar.h> only if
109388         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
109389         <wchar.h>.
109390         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
109392 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109394         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
109395         Sync with libc CVS.
109396         * lib/getopt_int.h: New file, also synced from libc.
109398 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109400         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
109401         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
109402         Bring back getopt.c, getopt.h, getopt1.c.
109404 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109406         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
109407         All uses changed.  Check for sa_sigaction member; this fixes
109408         a bug first reported by Jason Andrade in
109409         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109411 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109413         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
109414         '#if' expressions.  Unlike the code it replaces, it does not
109415         depend on (defined _SC_PAGESIZE).  However, it does depend on
109416         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
109417         first reported by Jason Andrade in
109418         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109420 2004-02-25  Simon Josefsson  <jas@extundo.com>
109422         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
109424 2004-02-25  Simon Josefsson  <jas@extundo.com>
109426         * lib/strdup.h: New file.
109427         * lib/strdup.c: Include it.
109428         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
109429         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
109431 2004-02-23  Karl Berry  <karl@gnu.org>
109433         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
109434         (from fencepost.gnu.org:/gd/gnuorg).
109436 2004-02-23  Karl Berry  <karl@gnu.org>
109438         * config/srclistvars.sh (GNUORG) [karl]: redefine.
109439         * config/srclist.txt: add maintain/standards documents.
109441 2004-02-18  Bruno Haible  <bruno@clisp.org>
109443         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
109444         Reported by Derek Robert Price <derek@ximbiot.com>.
109446 2004-02-16  Karl Berry  <karl@gnu.org>
109448         * config/mkinstalldirs, install-sh: update from automake.
109450 2004-02-06  Karl Berry  <karl@gnu.org>
109452         * m4/po.m4: update from gettext 0.14.1.
109454 2004-02-06  Karl Berry  <karl@gnu.org>
109456         * lib/config.charset: update from gettext 0.14.1.
109458 2004-02-05  Paul Eggert  <eggert@twinsun.com>
109460         Add comments and code, prompted by suggestions from Bruno Haible
109461         for sh-quote.
109462         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
109463         describing the enum quoting_style values.
109464         * lib/quotearg.c (quotearg_alloc): New function.
109465         (quotearg_buffer_restyled): Treat lone { and } as special.
109466         Treat = as special.  Work around bug with older shells
109467         that "see" a '\' that is really the 2nd byte of a multibyte char.
109468         Quote empty string with shell_quoting_style.
109470 2004-02-03  Bruno Haible  <bruno@clisp.org>
109472         * m4/pipe.m4: New file, from GNU gettext.
109474 2004-02-03  Bruno Haible  <bruno@clisp.org>
109476         * lib/pipe.h: New file, from GNU gettext.
109477         * lib/pipe.c: New file, from GNU gettext.
109479 2004-01-27  Bruno Haible  <bruno@clisp.org>
109481         * m4/execute.m4: New file, from GNU gettext.
109483 2004-01-27  Bruno Haible  <bruno@clisp.org>
109485         * lib/execute.h: New file, from GNU gettext.
109486         * lib/execute.c: New file, from GNU gettext.
109487         * lib/w32spawn.h: New file, from GNU gettext.
109489 2004-01-24  Paul Eggert  <eggert@twinsun.com>
109491         Merge from diffutils.
109493         * lib/file-type.c (file_type): Add typed memory objects.
109494         * lib/file-type.h (S_TYPEISTMO): New macro.
109496         * lib/c-stack.h (c_stack_action): Remove argv argument.
109497         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
109498         (die): Don't calculate message unless segv_action returns.
109499         (get_stack_location, min_address_from_argv, max_address_from_argv,
109500         volatile stack_base, volatile_stack_size): Remove.
109501         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
109502         that every segmentation violation is a stack overflow.  (Ouch!)
109503         See Debian bug 136249 (still outstanding) for more info about why
109504         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
109506 2004-01-24  Paul Eggert  <eggert@twinsun.com>
109508         Exit-status fix from coreutils.
109510         Use exit_failure consistently in place of EXIT_FAILURE,
109511         so that program exit statuses are consistent on failure.
109513         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
109514         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
109515         * lib/argmatch.h: Comment fix to match the above.
109516         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
109517         Now a macro referring to exit_failure, instead of a separate
109518         variable.  Include "exitfail.h" to get it.
109519         * lib/xstrtol.h: Include "exitfail.h".
109520         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
109522         * lib/long-options.c (parse_long_options): Use prototype
109523         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
109524         for clarity.
109526 2004-01-21  Jim Meyering  <jim@meyering.net>
109528         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
109529         so as not to conflict with a different-sized __mktime_internal
109530         function in GNU libc.
109531         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
109532         Problem building statically-linked `ls' reported by Michael Brunnbauer.
109534 2004-01-20  Karl Berry  <karl@gnu.org>
109536         * config/config.guess: update from config.
109538         * config/srclistvars.sh: GNUWWWLICENSES for karl.
109540 2004-01-20  Bruno Haible  <bruno@clisp.org>
109542         Safer stack allocation.
109543         * lib/setenv.c: Include allocsa.h.
109544         (alloca): Remove fallback definition.
109545         (freea): Remove macro.
109546         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
109547         instead of freea.
109549 2004-01-20  Bruno Haible  <bruno@clisp.org>
109551         * m4/eealloc.m4: New file, from GNU gettext.
109553 2004-01-20  Bruno Haible  <bruno@clisp.org>
109555         * m4/allocsa.m4: New file, from GNU gettext.
109557 2004-01-20  Bruno Haible  <bruno@clisp.org>
109559         * lib/xallocsa.h: New file, from GNU gettext.
109560         * lib/xallocsa.c: New file, from GNU gettext.
109562 2004-01-20  Bruno Haible  <bruno@clisp.org>
109564         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
109566 2004-01-20  Bruno Haible  <bruno@clisp.org>
109568         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
109569         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
109570         specially.
109572 2004-01-20  Bruno Haible  <bruno@clisp.org>
109574         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
109575         patch.
109577 2004-01-20  Bruno Haible  <bruno@clisp.org>
109579         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
109581 2004-01-20  Bruno Haible  <bruno@clisp.org>
109583         * lib/eealloc.h: New file.
109585 2004-01-20  Bruno Haible  <bruno@clisp.org>
109587         * lib/binary-io.h: Avoid warnings on Cygwin.
109589 2004-01-20  Bruno Haible  <bruno@clisp.org>
109591         * lib/allocsa.h: New file, from GNU gettext.
109592         * lib/allocsa.c: New file, from GNU gettext.
109594 2004-01-18  Karl Berry  <karl@gnu.org>
109596         * doc/gpl.texi, doc/lgpl.texi: new files.
109598 2004-01-18  Karl Berry  <karl@gnu.org>
109600         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
109601         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
109603 2004-01-15  Paul Eggert  <eggert@twinsun.com>
109605         Merge from coreutils.
109607         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
109608         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
109609         (gl_DEFAULT_POSIX2_VERSION): Move
109610         the documentation from 'configure' into 'config.hin',
109611         so that 'configure --help' isn't burdened by it and
109612         we don't have to worry about its formatting there.
109613         Reword the documentation so that it's more succinct
109614         and can be run together into a single paragraph.
109615         * m4/same.m4 (gl_SAME): Check for pathconf.
109617 2004-01-15  Paul Eggert  <eggert@twinsun.com>
109619         Merge from coreutils.
109621         * lib/posixver.c: Include posixver.h.
109623         * lib/same.c: Include <stdbool.h>, <limits.h>.
109624         (_POSIX_NAME_MAX): Define if not defined.
109625         (MIN): New macro.
109626         (same_name): If file names are silently truncated, report
109627         that the file names are the same if they are the same after
109628         the silent truncation.
109630         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
109631         conversion function.
109632         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
109633         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
109634         longer needed.
109636 2004-01-15  Jim Meyering  <jim@meyering.net>
109638         Merge from coreutils.
109640         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
109641         if no library is required.
109642         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
109643         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
109644         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
109645         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
109646         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
109647         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
109648         value, $ac_cv_search_crypt, if it's "none required".
109649         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
109650         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
109651         not gl_FUNC_GETLOADAVG.
109652         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
109653         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
109655 2004-01-15  Jim Meyering  <jim@meyering.net>
109657         Merge from coreutils.
109659         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
109660         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
109661         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
109663         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
109664         optional configure-time default.
109666         * lib/version-etc.c (version_etc_copyright): Update copyright date.
109668         * lib/xreadlink.c (xreadlink): Correct outdated comment.
109670 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
109672         Merge from coreutils.
109674         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
109675         value, $ac_cv_search_nanosleep, if it's "none required".
109677 2004-01-14  Paul Eggert  <eggert@twinsun.com>
109679         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
109680         with like-named macro in fnmatch.c.
109681         (EXT): Use an internal constant instead.
109683         Merge fnmatch patches from glibc.
109684         * lib/fnmatch.c (mbsinit): Remove define.
109685         Add libc_hidden_ver (__fnmatch, fnmatch).
109686         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
109687         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
109689 2004-01-14  Karl Berry  <karl@gnu.org>
109691         * config/install-sh: update from automake.
109693 2004-01-13  Karl Berry  <karl@gnu.org>
109695         * config/install-sh: update from automake.
109697 2004-01-09  Karl Berry  <karl@gnu.org>
109699         * config/install-sh: update from automake.
109701 2004-01-05  Karl Berry  <karl@gnu.org>
109703         * config/config.{sub,guess}: update from config.
109705 2003-12-31  Karl Berry  <karl@gnu.org>
109707         * config/depcomp: update from automake.
109709 2003-12-14  Karl Berry  <karl@gnu.org>
109711         * lib/config.charset: update from gettext-runtime.
109713 2003-12-03  Paul Eggert  <eggert@twinsun.com>
109715         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
109716         Bug reported by Alfred M. Szmidt.
109718 2003-12-03  Bruno Haible  <bruno@clisp.org>
109720         * m4/gettext.m4: Upgrade from gettext-0.13.
109721         * m4/po.m4: Upgrade from gettext-0.13.
109722         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
109723         * m4/intmax.m4: New file, from gettext-0.13.
109724         * m4/printf-posix.m4: New file, from gettext-0.13.
109726 2003-11-29  Karl Berry  <karl@gnu.org>
109728         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
109730 2003-11-25  Paul Eggert  <eggert@twinsun.com>
109731             Bruno Haible  <bruno@clisp.org>
109733         * lib/printf-parse.h: Don't include sys/types.h.
109734         (ARG_NONE): New macro.
109735         (char_directive): Change type of *arg_index fields to size_t.
109736         * lib/printf-parse.c: Don't include sys/types.h.
109737         (SSIZE_MAX): Remove macro.
109738         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
109739         Remove unnecessary overflow check.
109740         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
109741         fields.
109743 2003-11-25  Bruno Haible  <bruno@clisp.org>
109745         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
109747 2003-11-25  Bruno Haible  <bruno@clisp.org>
109749         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
109750         gt_TYPE_SSIZE_T.
109752 2003-11-24  Paul Eggert  <eggert@twinsun.com>
109754         * modules/alloca: Remove dependency on xalloc.
109756 2003-11-24  Paul Eggert  <eggert@twinsun.com>
109758         * lib/alloca.c: Remove dependency on xalloc module.
109759         (xalloc_die): Remove.
109760         (memory_full) [!defined emacs]: New macro.
109761         [!defined emacs]: Don't include xalloc.h.
109762         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
109763         address arithmetic overflows.  Change datatypes a bit to avoid
109764         unnecessary casts.
109766 2003-11-22  Jim Meyering  <jim@meyering.net>
109768         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
109769         s/size/size_t/.
109771 2003-11-21  Karl Berry  <karl@gnu.org>
109773         * config/config.{sub,guess}: update from config.
109775 2003-11-18  Karl Berry  <karl@gnu.org>
109777         * config/config.{sub,guess}: update from config.
109779         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
109781 2003-11-17  Paul Eggert  <eggert@twinsun.com>
109783         * README: Mention that S+T cannot overflow if S is the size of
109784         an existing object and T is sufficiently small.
109786 2003-11-17  Jim Meyering  <jim@meyering.net>
109788         On systems without utime and without a utimes function capable of
109789         dealing with a NULL struct utimbuf* argument, this utime replacement
109790         could -- in unusual circumstances -- leak a file descriptor.
109791         * lib/utime.c: Include <unistd.h> and <errno.h>.
109792         (utime_null): Be sure to close `fd' and to preserve errno.
109793         Reported by Geoff Collyer via Arnold Robbins.
109795 2003-11-17  Bruno Haible  <bruno@clisp.org>
109797         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
109798         (Depends-on): Add xsize.
109800 2003-11-17  Bruno Haible  <bruno@clisp.org>
109802         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
109804 2003-11-17  Bruno Haible  <bruno@clisp.org>
109806         * lib/vasnprintf.c (alloca): Remove fallback definition.
109807         (freea): Remove definition.
109808         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
109809         Reported by Paul Eggert.
109811 2003-11-16  Paul Eggert  <eggert@twinsun.com>
109812             Bruno Haible  <bruno@clisp.org>
109814         Protect against address arithmetic overflow.
109815         * lib/printf-args.h: Include stddef.h.
109816         (arguments): Change type of field 'count' to size_t.
109817         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
109818         'unsigned int' where appropriate.
109819         * lib/printf-parse.h: Include sys/types.h.
109820         (char_directive): Change type of *arg_index fields to ssize_t.
109821         (char_directives): Change type of fields 'count', max_*_length to
109822         size_t.
109823         * lib/printf-parse.c: Include sys/types.h and xsize.h.
109824         (SSIZE_MAX): Define fallback value.
109825         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
109826         instead of 'int' where appropriate. Check a_allocated, d_allocated
109827         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
109828         * lib/vasnprintf.c: Include xsize.h.
109829         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
109830         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
109831         overflow. Avoid wraparound when converting a width or precision from
109832         decimal to binary.
109834 2003-11-16  Bruno Haible  <bruno@clisp.org>
109836         Update from GNU gettext.
109837         * lib/printf-parse.c: Generalize to it can be compiled for wide
109838         strings.
109839         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
109840         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
109841         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
109842         SNPRINTF): New macros.
109843         Don't include <alloca.h> if the file is used inside libintl.
109844         (local_wcslen): New function, for Solaris 2.5.1.
109845         (VASNPRINTF): Use it instead of wcslen.
109847 2003-11-16  Bruno Haible  <bruno@clisp.org>
109849         * lib/xsize.h (xmax): New function.
109850         (xsum, xsum3, xsum4): Declare as "pure" functions.
109852 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109854         * modules/xalloc (Files): Undo latest change, since xalloc.h
109855         no longer needs SIZE_MAX or PTRDIFF_MAX.
109857 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109859         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
109860         gl_PTRDIFF_MAX.
109862 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109864         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
109865         "return", to pacify some unknown compiler.  Problem reported
109866         by Joerg Schilling.
109868 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109870         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
109871         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
109872         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
109873         heuristic is just as accurate as far as we know, and it removes a
109874         dependency on size_max.m4 and ptrdiff_max.m4.
109876 2003-11-11  Bruno Haible  <bruno@clisp.org>
109878         * modules/xsize (Files): Add m4/size_max.m4.
109879         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
109881 2003-11-11  Bruno Haible  <bruno@clisp.org>
109883         * m4/size_max.m4: New file.
109884         * m4/ptrdiff_max.m4: New file.
109885         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
109886         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
109887         (gl_XALLOC): Invoke it.
109889 2003-11-11  Bruno Haible  <bruno@clisp.org>
109891         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
109892         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
109893         defined.
109895 2003-11-10  Paul Eggert  <eggert@twinsun.com>
109897         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
109898         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
109899         rejected some allocations of exactly SIZE_MAX - 2 bytes.
109900         From Bruno Haible.
109901         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
109902         not (size_t) -1, since it's defined here.
109904 2003-11-09  Karl Berry  <karl@gnu.org>
109906         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
109908 2003-11-06  Paul Eggert  <eggert@twinsun.com>
109910         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
109911         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
109912         Reject sizes of exactly SIZE_MAX bytes.
109913         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
109914         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
109916 2003-11-05  Bruno Haible  <bruno@clisp.org>
109918         * lib/xsize.h: Include limits.h, to avoid a possible collision with
109919         SIZE_MAX defined in <limits.h> on Solaris.
109921 2003-11-04  Jim Meyering  <jim@meyering.net>
109923         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
109924         variable names, rather than @VAR@.
109925         * modules/poll: Likewise.
109927 2003-11-04  Bruno Haible  <bruno@clisp.org>
109929         * modules/xsize: New file.
109930         * modules/linebreak: Depend on xsize.
109931         * MODULES.html.sh (func_all_modules): Add xsize.
109933 2003-11-04  Bruno Haible  <bruno@clisp.org>
109935         * m4/xsize.m4: New file.
109937 2003-11-04  Bruno Haible  <bruno@clisp.org>
109939         * lib/xsize.h: New file.
109940         * lib/linebreak.c: Include xsize.h.
109941         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
109942         argument for overflow.
109943         Suggested by Paul Eggert.
109945 2003-11-03  Karl Berry  <karl@gnu.org>
109947         * config/config.{guess,sub}: update from config.
109949 2003-11-03  Jim Meyering  <jim@meyering.net>
109951         * modules/userspec (lib_SOURCES): Add userspec.h.
109952         (Include): Add "userspec.h".
109953         Improve description.
109955 2003-11-03  Jim Meyering  <jim@meyering.net>
109957         * lib/userspec.c: Include "userspec.h".
109958         * lib/userspec.h: New file.
109960 2003-11-03  Bruno Haible  <bruno@clisp.org>
109962         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
109964 2003-11-03  Bruno Haible  <bruno@clisp.org>
109966         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
109967         available, to avoid (extremely rare) race condition.
109968         Suggested by Paul Eggert.
109970 2003-11-02  Karl Berry  <karl@gnu.org>
109972         * config/srclist.txt (vasprintf.c): sync broken, sigh.
109974 2003-10-31  Paul Eggert  <eggert@twinsun.com>
109976         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
109977         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
109978         (read_filesystem_list): Set and use me_type_malloced.
109979         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
109980         whatever the type happens to be), for brevity and consistency.
109981         Check for size calculation overflow on Alphas running OSF/1.
109983 2003-10-31  Jim Meyering  <jim@meyering.net>
109985         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
109987         * lib/linebuffer.c: Include <string.h> for declaration of memset.
109989 2003-10-30  Paul Eggert  <eggert@twinsun.com>
109990             Bruno Haible  <bruno@clisp.org>
109992         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
109993         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
109995 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
109997         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
109998         netbsd*-gnu*.  Suggested by Robert Millan.
110000 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110002         * modules/group-member: Depend on stdbool.
110004 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110006         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
110008 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110010         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
110011         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
110012         after the 'gnu' in these cases.  This fixes some bugs in the
110013         previous change, and is based on suggestions by Robert Millan.
110015 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110017         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
110018         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
110019         no longer needed.
110020         * lib/quotearg.c (quotearg_n_options): Use it.
110021         * lib/group-member.c: Include <stdbool.h>.
110022         (free_group_info): Arg is now const *; don't free arg.
110023         (get_group_info): Now returns bool and accepts struct group_info *,
110024         rather than returning a malloc'ed struct group_info *.
110025         All uses changed.  Check for overflow in internal size calculation.
110027         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
110028         rather than xmalloc/xrealloc.
110029         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
110030         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
110031         conformance bug: the old code used a pointer after freeing the
110032         storage that it addressed.
110033         * lib/hash.c (hash_initialize): Simplify the code by using
110034         xalloc_oversized rather than doing it by hand.
110035         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
110036         the buffer preserved.  Use free and xmalloc instead.
110037         * lib/quotearg.c (quotearg_n_options): Likewise.
110038         Use a simpler test for size overflow.  Don't use xalloc_oversized
110039         because unsigned int might be wider than size_t (!); this suggests
110040         that we should switch from unsigned int to size_t for slot numbers.
110042 2003-10-28  Paul Eggert  <eggert@twinsun.com>
110044         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
110045         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
110046         NetBSD kernels.  Requested by Richard Stallman.
110048 2003-10-27  Paul Eggert  <eggert@twinsun.com>
110050         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
110051         to allocate the returned structure.  Do not allocate a subarray,
110052         as x2nrealloc will do that.
110053         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
110054         instead of xnrealloc.
110055         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
110057 2003-10-27  Bruno Haible  <bruno@clisp.org>
110059         * lib/stdbool_.h: Better support for BeOS.
110061 2003-10-26  Paul Eggert  <eggert@twinsun.com>
110063         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
110064         now uses inline.
110066 2003-10-26  Paul Eggert  <eggert@twinsun.com>
110068         * lib/xalloc.h (xalloc_oversized): New static inline function, for
110069         callers that want to do their own size-overflow checking.  Include
110070         <stdbool.h>, since xalloc_oversized returns bool.
110071         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
110072         to use xalloc_oversized.
110074         Add two functions x2realloc, x2nrealloc, for programs that grow
110075         arrays dynamically by doubling their sizes.
110076         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
110077         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
110078         New functions.
110080         Port to C99 semantics for 'inline' of external functions.
110081         Bug reported by Bruno Haible.
110082         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
110083         with the old contents of xnmalloc.
110084         (xnmalloc, xmalloc): Use it.
110085         (xnrealloc_inline): New static inline function,
110086         with the old contents of xnrealloc.
110087         (xnrealloc, xrealloc): Use it.
110089         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
110090         that.
110092 2003-10-26  Karl Berry  <karl@gnu.org>
110094         * config/srclist.txt (COPYING.DOC): no longer available from
110095         /gd/gnuorg; don't know where the ultimate source is.
110097 2003-10-25  Paul Eggert  <eggert@twinsun.com>
110099         Fix several address-calculation bugs in the hash modules,
110100         plus some minor code cleanup.
110102         * lib/hash.h: Include <stdbool.h>, for bool.
110103         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
110104         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
110105         hash_get_n_entries, hash_get_max_bucket_length,
110106         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
110107         hash_rehash): Use size_t rather than unsigned.
110108         * lib/hash.c (struct hash_table, hash_get_n_buckets,
110109         hash_get_n_buckets_used, hash_get_n_entries,
110110         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
110111         hash_get_entries, hash_do_for_each, hash_string, is_prime,
110112         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
110113         Likewise.
110114         (SIZE_MAX): Define if not defined.
110115         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
110116         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
110117         hash_print):
110118         Use const * when possible.
110119         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
110120         (check_tuning): Fix bug: if tuning parameters were very close to
110121         0 or 1, rounding errors could have caused subscript violations.
110122         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
110123         (hash_initialize): Add 'fail:' label
110124         to free table and return NULL, and use it to simplify code.
110125         Use calloc rather than clearing the storage ourself.
110126         (hash_initialize, hash_rehash): Check for arithmetic overflow in
110127         buffer size calculations.
110128         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
110129         Include <stddef.h>, for size_t.
110130         * lib/hash-pjw.c (hash_pjw): Likewise.
110131         Switch to method described by Bruno Haible.
110132         Include <limits.h>, for CHAR_BIT.
110133         (SIZE_BITS): New macro.
110135 2003-10-23  Paul Eggert  <eggert@twinsun.com>
110137         * m4/getline.m4 (AM_FUNC_GETLINE):
110138         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
110139         hosts.  Problem reported by Derek Robert Price in
110140         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
110141         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
110142         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
110144 2003-10-21  Paul Eggert  <eggert@twinsun.com>
110146         * lib/getndelim2.c (getndelim2): When size calculation overflows,
110147         ceiling the allocation at NMAX bytes rather than silently
110148         discarding input bytes before NMAX is reached.  This makes
110149         a difference only if NMAX exceeds SIZE_MAX / 2.
110151         * lib/obstack.c: Merge from glibc.
110152         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
110153         Add libc_hidden_def (_obstack_newchunk).
110154         (_obstack_free) [! defined _LIBC]: Remove.
110155         [defined _LIBC]: Make a strong alias from obstack_free, rather than
110156         a clone of the function body.
110157         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
110158         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
110160         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
110161         glibc.
110162         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
110163         arg to memcpy.
110165         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
110166         (obstack_ptr_grow_fast, obstack_int_grow_fast):
110167         Don't use lvalue casts, as GCC plans to remove support for them
110168         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
110169         was also present in the non-GCC version, indicating that this
110170         code had always been buggy and had never been widely used.
110171         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
110172         Use the fast variant of each macro, rather than copying the
110173         definiens of the fast variant; that way, we'll be more likely to
110174         catch future bugs in the fast variants.
110176 2003-10-20  Bruno Haible  <bruno@clisp.org>
110178         * modules/wait-process: New file.
110179         * MODULES.html.sh (func_all_modules): Add wait-process.
110181 2003-10-20  Bruno Haible  <bruno@clisp.org>
110183         * m4/wait-process.m4: New file.
110185 2003-10-20  Bruno Haible  <bruno@clisp.org>
110187         * lib/wait-process.h: New file, from GNU gettext.
110188         * lib/wait-process.c: New file, from GNU gettext.
110190 2003-10-19  Jim Meyering  <jim@meyering.net>
110192         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
110193         HPUX 10.20.
110195 2003-10-18  Karl Berry  <karl@gnu.org>
110197         * config/config.guess: update from config.
110199 2003-10-16  Paul Eggert  <eggert@twinsun.com>
110201         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
110202         (getgroups): First arg is int, not size_t.
110203         Don't let 'free' mangle errno.
110205 2003-10-16  Paul Eggert  <eggert@twinsun.com>
110207         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
110209 2003-10-16  Karl Berry  <karl@gnu.org>
110211         * config/config.{guess,sub}: update from config.
110213 2003-10-16  Jim Meyering  <jim@meyering.net>
110215         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
110216         memcpy.
110218 2003-10-15  Paul Eggert  <eggert@twinsun.com>
110220         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
110221         (SIZE_MAX): Remove.
110222         (new_exclude, add_exclude_file): Initial size no longer needs to
110223         be a power of 2.
110224         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
110225         our own address arithmetic overflow checking.
110227         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
110228         (fnmatch): Do not alloca more than 2000 wide characters;
110229         instead, use malloc for large buffers.
110230         Check for address arithmetic overflow, and return -1
110231         with errno set to ENOMEM in that case.
110232         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
110233         (NEW_PATTERN): Do not alloca more than 8000 bytes;
110234         instead, return -1.  Check for address arithmetic overflow.
110236 2003-10-14  Paul Eggert  <eggert@twinsun.com>
110238         Handle invalid suffixes and overflow independently, so that
110239         callers can treat them independently as needed.  Fix some bugs in
110240         suffix handling, e.g., "100k@" was not diagnosed as an invalid
110241         suffix for a human-readable blocksize.  The major caller-visible
110242         change is the addition of a new
110243         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
110244         that both overflow and suffix chars were found.
110246         * lib/human.c (humblock): Don't check separately for invalid suffix
110247         char; that is xstrtoumax's job (now that its bug is fixed).
110248         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
110249         INTMAX_MAX]: New macros.
110250         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
110251         TYPE_MAXIMUM): New macros.
110252         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
110253         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
110254         if overflow occurs, as it's what __strtol does and it's more useful
110255         in practice.
110256         (__xstrtol): If __strtol reports some error other than ERANGE,
110257         reflect it to the caller as LONGINT_INVALID.  If it reports
110258         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
110259         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
110260         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
110261         value.
110262         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
110263         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
110264         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
110265         [defined UINTMAX_MAX]: New macros.
110267 2003-10-14  Bruno Haible  <bruno@clisp.org>
110269         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
110271 2003-10-14  Bruno Haible  <bruno@clisp.org>
110273         * m4/sig_atomic_t: New file, from GNU gettext.
110274         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
110276 2003-10-14  Bruno Haible  <bruno@clisp.org>
110278         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
110279         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
110280         Also use volatile where needed.
110282 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110284         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
110285         Change maintainer from Bruno Haible to 'all'.
110287 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110289         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
110291 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110293         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
110294         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
110295         and define in terms of the other primitives.
110296         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
110297         (SIZE_MAX): Define if not already defined.
110298         (array_size_overflow): New function.
110299         (xalloc_die): Abort instead of exiting if 'error' returns.
110300         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
110301         (xmalloc, xrealloc): Use them.
110302         (xcalloc): Check for address arithmetic overflow.
110303         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
110304         a bit faster than strcpy.
110306 2003-10-10  Simon Josefsson  <jas@extundo.com>
110308         * modules/argp (Depends-on): Add restrict and strcase.
110310 2003-10-10  Simon Josefsson  <jas@extundo.com>
110312         * m4/argp.m4: Add AC_C_INLINE.
110314 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110316         Merge getpass from libc, plus a few fixes.
110318         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
110319         Include <stdbool.h>.
110320         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
110321         __fsetlocking to empty.
110322         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
110323         do include <bits/libc-lock.h>.
110324         Do not include <fcntl.h>; not needed.
110325         [_LIBC]: Include <wchar.h>.
110326         (NOTCANCEL_MODE): New macro.
110327         (flockfile, funlockfile) [_LIBC]: New macros.
110328         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
110329         [!_LIBC]: New macros.
110330         (call_fclose): New function.
110331         (getpass): Use it.  Save tty stream separately; this simplifies the
110332         code and makes it more reliable if stdin happens to equal stdout.
110333         Invoke __fsetlocking on tty.
110334         Handle thread cancellation if needed.
110335         Namespace cleanup (use __tcgetattr, __getline).
110336         Use bool for Booleans.
110337         [USE_IN_LIBIO]: Handle wide streams.
110338         [!_LIBC]: Unconditionally do the fseek, since we don't know what
110339         stream might go where.
110341         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
110342         doesn't have to include <stdio.h> before us.
110343         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
110344         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
110345         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
110346         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
110347         if not declared, so that we can use getpass.c code from libc without
110348         rewriting it.
110349         (flockfile, ftrylockfile, funlockfile): New macros.
110351 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110353         * modules/getpass: Depend on stdbool.
110355 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110357         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
110359 2003-10-07  Karl Berry  <karl@gnu.org>
110361         * config/config.{guess,sub}: update from config.
110363 2003-10-06  Jim Meyering  <jim@meyering.net>
110364             Bruno Haible  <bruno@clisp.org>
110366         This lets translators provide better translations for the
110367         "Written by ..." part of --version output.
110368         * lib/version-etc.h: Include stdarg.h.
110369         (version_etc_copyright): Declare as readonly.
110370         (version_etc): Make this function variadic with a NULL-terminated list
110371         of author name strings.
110372         (version_etc_va): New declaration.
110373         * lib/version-etc.c: Include stdarg.h, stdlib.h.
110374         (version_etc_copyright): Declare as readonly.
110375         (version_etc_va): New function. Provide a different translatable string
110376         for each possible number of authors < 10. Abbreviate when there are 10
110377         authors or more.
110378         (version_etc): Make this function variadic. Call version_etc_va.
110379         Suggestion from Gary V. Vaughan.
110381         * lib/long-options.h (parse_long_options): Change prototype: the
110382         authors string is moved to the end and becomes variadic.
110383         * lib/long-options.c: Include stdarg.h.
110384         (parse_long_options): Make this function variadic, too.
110385         Call version_etc_va, not version_etc.
110387 2003-10-06  Bruno Haible  <bruno@clisp.org>
110389         * modules/version-etc-2: Remove file.
110390         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
110392 2003-10-06  Bruno Haible  <bruno@clisp.org>
110394         * modules/fatal-signal: New file.
110395         * MODULES.html.sh (func_all_modules): Add fatal-signal.
110397 2003-10-06  Bruno Haible  <bruno@clisp.org>
110399         * m4/fatal-signal.m4: New file.
110400         * m4/signalblocking.m4: New file, from GNU gettext.
110402 2003-10-06  Bruno Haible  <bruno@clisp.org>
110404         * lib/version-etc-2.h: Remove file.
110405         * lib/version-etc-2.c: Remove file.
110407 2003-10-06  Bruno Haible  <bruno@clisp.org>
110409         * lib/fatal-signal.h: New file, from GNU gettext.
110410         * lib/fatal-signal.c: New file, from GNU gettext.
110412 2003-10-05  Paul Eggert  <eggert@twinsun.com>
110414         * README: Rework advice for preventing empty .o files.
110415         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
110416         not <sys/types.h>.
110418 2003-10-04  Karl Berry  <karl@gnu.org>
110420         * lib/argp*: update from libc.
110422 2003-10-04  Karl Berry  <karl@gnu.org>
110424         * config/config.{guess,sub}: update from config.
110426 2003-10-02  Bruno Haible  <bruno@clisp.org>
110428         * modules/lchown (Include): Add lchown.h.
110429         * modules/time_r (Include): Use "..." syntax.
110430         * modules/xgetdomainname (Include): Add xgetdomainname.h.
110432 2003-10-01  Simon Josefsson  <jas@extundo.com>
110434         * MODULES.html.sh (func_all_modules): Move gethostname from section
110435         'based on' to section 'lacking' POSIX:2001.
110437 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
110439         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
110440         to output mode on the same stream.
110442 2003-09-29  Paul Eggert  <eggert@twinsun.com>
110444         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
110445         Fix arg typo in previous patch.
110447 2003-09-28  Jim Meyering  <jim@meyering.net>
110449         * lib/error.c: Correct cpp indentation.
110451 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110453         * modules/free: New file.
110455 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110457         * m4/free.m4: New file.
110459 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110461         * lib/minmax.h (MIN, MAX)
110462         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
110463         Omit the special code that used __typeof__, since we worry that
110464         it could be more trouble than it's worth.  See:
110465         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
110466         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
110468         * lib/free.c: New file.
110470 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
110472         Trivial fixes to Makefile.am parts of module listings.
110473         * modules/strstr: Append strstr.h to lib_SOURCES.
110474         * modules/strcase: Likewise, for strcase.h.
110476 2003-09-27  Karl Berry  <karl@gnu.org>
110478         * config/mkinstalldirs: update from automake.
110480 2003-09-26  Paul Eggert  <eggert@twinsun.com>
110482         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
110483         (error_tail): Do not loop, reallocating temporary buffer, since
110484         the output cannot contain more wide characters than the input
110485         contains bytes, the size must be big enough already.  This avoids
110486         one potential size overflow calculation.  Check for size overflow
110487         when calculating temporary buffer size.  Free temporary buffer
110488         when done, if it was allocated with malloc; this plugs a memory
110489         leak.  Remove casts from void * to pointers, that are no longer
110490         needed now that we're assuming C89 or better.
110492         Merge error changes from glibc.
110494         * lib/error.c, error.h: Update copyright notice header to match glibc.
110495         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
110496         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
110497         Disable cancellation while printing error.
110498         * lib/error.h: Prepend __ to parameter names.
110500 2003-09-26  Jim Meyering  <jim@meyering.net>
110502         * lib/error.c (error_tail): Move some declarations
110503         into inner scope where the local variables are used.
110505 2003-09-26  Bruno Haible  <bruno@clisp.org>
110507         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
110508         stpncpy().
110509         Don't define stpncpy through config.h; it's now done through stpncpy.h.
110511 2003-09-26  Bruno Haible  <bruno@clisp.org>
110513         * lib/stpncpy.h (gnu_stpncpy): New declaration.
110514         (stpncpy): Define as alias for gnu_stpncpy.
110515         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
110517 2003-09-25  Simon Josefsson  <jas@extundo.com>
110519         * lib/xgetdomainname.h: New file.
110520         * lib/xgetdomainname.c: New file.
110522 2003-09-25  Simon Josefsson  <jas@extundo.com>
110523             Bruno Haible  <bruno@clisp.org>
110525         * modules/getdomainname: New file.
110526         * modules/xgetdomainname: New file.
110527         * MODULES.html.sh (func_all_modules): Add getdomainname,
110528         xgetdomainname.
110530 2003-09-25  Simon Josefsson  <jas@extundo.com>
110531             Bruno Haible  <bruno@clisp.org>
110533         * m4/getdomainname.m4: New file.
110535 2003-09-25  Simon Josefsson  <jas@extundo.com>
110536             Bruno Haible  <bruno@clisp.org>
110538         * lib/getdomainname.h: New file.
110539         * lib/getdomainname.c: New file.
110541 2003-09-25  Karl Berry  <karl@gnu.org>
110543         * lib/argp-fmtstream.c, argp-help.c: update from libc.
110545 2003-09-25  Karl Berry  <karl@gnu.org>
110547         * config/install-sh: update from automake.
110549 2003-09-25  Bruno Haible  <bruno@clisp.org>
110551         * modules/version-etc-2: New file, from modules/version-etc with
110552         modifications.
110553         * MODULES.html.sh (func_all_modules): Add version-etc-2.
110555 2003-09-25  Bruno Haible  <bruno@clisp.org>
110557         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
110558         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
110560 2003-09-24  Simon Josefsson  <jas@extundo.com>
110562         * modules/xgethostname: Add xgethostname.h.
110564 2003-09-24  Paul Eggert  <eggert@twinsun.com>
110566         * lib/linebuffer.c (freebuffer): Don't free the argument, just
110567         the buffer associated with the argument.  Bug reported by
110568         Simon Josefsson.
110570 2003-09-24  Paul Eggert  <eggert@twinsun.com>
110572         * README: Document assumptions that 'int' is at least 32 bits
110573         wide, that integer arithmetic is 2's complement without overflow,
110574         that there are no holes in integer values, that adding sizes of
110575         two nonoverlapping objects can't overflow, and that all-bits-zero
110576         yields scalar zero.  Fix spelling and capitalization typos.
110578 2003-09-19  Karl Berry  <karl@gnu.org>
110580         * lib/argp.h: update from libc.
110582 2003-09-17  Paul Eggert  <eggert@twinsun.com>
110584         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
110585         to avoid spurious warnings like "AC_RUN_IFELSE was called before
110586         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
110588 2003-09-17  Paul Eggert  <eggert@twinsun.com>
110590         * gnulib-tool: Use "test -h", not "test -L", for portability
110591         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
110592         (tags_regexp): Remove, since \| doesn't conform to POSIX.
110593         (sed_extract_prog): Issue s commands one-by-one, rather than
110594         using \| in one s command.
110596 2003-09-16  Paul Eggert  <eggert@twinsun.com>
110598         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
110599         input error, instead of returning NULL the next time we are called
110600         (and therefore losing track of errno).
110602 2003-09-16  Bruno Haible  <bruno@clisp.org>
110604         * gnulib-tool (func_create_testdir): Warn about duplicated
110605         dependencies.
110607 2003-09-15  Paul Eggert  <eggert@twinsun.com>
110609         * modules/argmatch, modules/fatal, modules/obstack,
110610         modules/xalloc, modules/xgethostname: Sort dependencies by
110611         importance, not alphabetically.
110613 2003-09-15  Paul Eggert  <eggert@twinsun.com>
110615         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
110616         fails, so that the caller gets the proper errno.
110618         * lib/readutmp.c (read_utmp): Likewise.
110619         Check for fstat error.  Close stream and free storage
110620         when failing.
110622 2003-09-14  Karl Berry  <karl@gnu.org>
110624         * config/srclist.txt (strdup.c): disable for c89 changes.
110626 2003-09-14  Jim Meyering  <jim@meyering.net>
110628         * lib/getloadavg.c: Correct cpp indentation.
110629         * lib/strdup.c: Likewise.
110630         * lib/vasnprintf.c: Likewise.
110632 2003-09-14  Bruno Haible  <bruno@clisp.org>
110634         * modules/fwriteerror: New file.
110635         * MODULES.html.sh (func_all_modules): Add fwriteerror.
110637 2003-09-14  Bruno Haible  <bruno@clisp.org>
110639         * lib/fwriteerror.h: New file.
110640         * lib/fwriteerror.c: New file.
110642 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110644         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
110645         modules/xgethostname, modules/xalloc: Depend on exit.
110647 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110649         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
110651         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
110652         and AC_MINIX, too, so that their extensions are available.
110654         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
110655         This macro has been superseded by gl_BACKUPFILE.
110657         More patches to assume C89 or better.
110659         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
110661         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
110662         unconditionally.
110663         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
110664         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
110665         Include <string.h>, <stdlib.h> unconditionally.
110666         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
110667         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
110668         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
110669         headers or for string.h.
110670         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
110671         or strtoul.
110673         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
110674         headers.
110675         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
110676         * m4/userspec.m4 (gl_USERSPEC): Likewise.
110677         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
110678         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
110679         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
110680         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
110681         memcpy, memset.
110682         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
110683         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
110684         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
110685         strtol.
110686         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
110687         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
110688         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
110689         strtoul.
110691 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110693         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
110694         * lib/obstack.c [!defined _LIBC]: Likewise.
110695         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
110696         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
110697         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
110699         More changes to assume C89 or better.
110701         * lib/error.c (error_tail): Assume vprintf.
110703         * lib/argmatch.c (getenv): Remove decl.
110704         * lib/progreloc.c (get_full_program_name): Define via prototype.
110705         * lib/setenv.c (clearenv): Likewise.
110706         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
110707         needed.
110708         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
110709         (malloc, memcpy): Remove decls.
110710         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
110711         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
110712         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
110713         (memcpy): Remove macro.
110714         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
110715         (__P): Remove.  All uses removed.
110716         (PTR): Remove.  All uses changed to void *.
110717         (CHAR_BIT, NULL): Remove.
110718         (spaces, zeros, memset_space, memset_zero)
110719         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
110720         Remove.
110721         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
110722         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
110723         Define with prototype.
110724         Remove now-unnecessary prototype decl.
110725         (extra_args_spec): Assume ANSI C.  All uses changed.
110726         (extra_args_spec_iso): Remove.
110727         (my_strftime, emacs_strftimeu): Define via prototype.
110728         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
110729         unconditionally.
110730         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
110731         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
110732         (strtoul, strtol): Remove decls.
110733         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
110734         LONG_MAX): Remove.
110735         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
110736         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
110737         (LOCALE_PARAM_PROTO): New macro.
110738         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
110739         (INTERNAL (strtol), strtol): Define with a prototype.
110740         (PARAMS): Remove.  All uses removed.
110741         * lib/tempname.c: Include <string.h> unconditionally.
110742         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
110743         * lib/xgethostname.c (main): Define with a prototype.
110744         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
110745         Include <stdlib.h> unconditionally.
110746         (calloc, malloc, realloc, free): Remove decls.
110747         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
110748         Include <stdlib.h> unconditionally.  Sort include file names.
110749         (strtod): Remove.
110750         (xstrtod): Define with a prototype.
110751         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
110752         (strtol, strtoul): Remove decls.
110754 2003-09-11  Paul Eggert  <eggert@twinsun.com>
110756         More patches to assume C89 or better.
110757         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
110758         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
110759         string.h, memchr, STDC_HEADERS.
110761 2003-09-11  Paul Eggert  <eggert@twinsun.com>
110763         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
110764         Include <stdlib.h>, <string.h> unconditionally.
110765         Remove now-unnecessary cast to char *.
110766         * lib/strnlen.c: Include <string.h> unconditionally.
110767         * lib/yesno.c (yesno): Define with a prototype.
110769 2003-09-11  Bruno Haible  <bruno@clisp.org>
110771         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
110773 2003-09-10  Jim Meyering  <jim@meyering.net>
110775         * lib/error.c: Correct indentation of cpp directives.
110777 2003-09-10  Bruno Haible  <bruno@clisp.org>
110779         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
110780         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
110781         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
110782         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
110783         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
110784         <stdlib.h> and <string.h> checks.
110785         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
110786         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
110788 2003-09-10  Bruno Haible  <bruno@clisp.org>
110790         * lib/strcspn.c: Include <string.h> unconditionally.
110791         * lib/strpbrk.c: Include <string.h> unconditionally.
110792         * lib/strstr.c: Include <string.h> unconditionally.
110793         * lib/unicodeio.c: Include <string.h> unconditionally.
110794         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
110795         * lib/unsetenv.c: Likewise.
110796         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
110797         * lib/yesno.c: Include <stdlib.h> unconditionally.
110798         (rpmatch): Add prototype.
110800 2003-09-09  Paul Eggert  <eggert@twinsun.com>
110802         More patches to assume C89 or better.
110803         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
110804         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
110805         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
110806         or for string.h.
110807         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
110808         stdlib.h.
110809         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
110810         C headers.
110811         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
110812         string.h.
110813         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
110814         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
110815         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
110816         or for string.h.
110817         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
110818         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
110819         C headers.
110820         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
110821         memcpy.
110822         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
110823         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
110824         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
110825         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
110826         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
110827         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
110828         string.h, free.
110829         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
110830         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
110831         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
110832         C headers, or for string.h.
110833         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
110834         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
110835         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
110836         headers, memory.h, stdlib.h, string.h, strings.h.
110837         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
110838         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
110839         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
110840         strchr.
110841         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
110842         headers, memory.h, string.h.
110843         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
110844         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
110845         free.
110846         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
110847         headers.
110848         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
110849         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
110850         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
110851         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
110852         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
110854 2003-09-09  Paul Eggert  <eggert@twinsun.com>
110856         More K&R removal.
110858         * lib/acosl.c (main): Use a prototype.
110859         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
110860         tanl.c: Likewise.
110862         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
110864         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
110865         (getopt, etopt_long, getopt_long_only, _getopt_internal)
110866         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
110867         with a prototype.
110868         * lib/getopt.c (const): Remove macro.
110869         Include <string.h> unconditionally.
110870         (my_index): Remove; all uses changed to strchr.
110871         (strlen): Remove decl.
110872         (exchange): Remove forward decl; no longer needed.
110873         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
110874         Define with prototype.
110875         * lib/getopt1.c (const): Remove macro.
110876         (getopt_long, getopt_long_only, main): Define with prototype.
110878         * lib/getugroups.c: Include <string.h> unconditionally.
110880         * lib/getusershell.c: Include <stdlib.h> unconditionally.
110881         (getusershell, setusershell, endusershell, readname, main):
110882         Define with prototypes.
110884         * lib/group-member.c: Include group-member.h first.
110885         Include <stdlib.h> unconditionally.
110887         * lib/hard-locale.c: Include hard-locale.h first.
110888         Include <stdlib.h>, <string.h> unconditionally.
110890         * lib/hash.c (free, malloc): Remove decls.
110891         Include <stdlib.h> unconditionally.
110893         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
110894         (getenv): Do not declare.
110896         * lib/idcache.c: Include <string.h> unconditionally.
110898         * lib/long-options.c: Include long-options.h first, to test interface.
110899         Include <stdlib.h> unconditionally.
110901         * lib/makepath.c: Include makepath.h first, to test interface.
110902         Include <stdlib.h> and <string.h> unconditionally.
110904         * lib/linebuffer.c: Include <stdlib.h>.
110905         (free): Remove decl.
110907         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
110908         stddef.h. rpl_malloc returns void *, not char *.
110909         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
110910         prototype.
110912         * lib/md5.h: Include <limits.h> unconditionally.
110913         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
110914         (__P): Remove; all uses removed.
110915         * lib/md5.c: Include "md5.h" first.
110916         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
110917         md5_buffer, md5_process_bytes, md5_process_block):
110918         Define with prototypes.
110919         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
110920         * lib/sha.c: Include "sha.h" first.
110921         Include <stdlib.h>, <string.h> unconditionally.
110923         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
110924         * lib/memcmp.c (__ptr_t): Likewise.
110925         * lib/memrchr.c (__ptr_t): Likewise.
110926         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
110927         Include <string.h> unconditionally.
110928         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
110929         * lib/memchr.c: Include <stdlib.h> unconditionally.
110930         * lib/memchr.c (LONG_MAX): Remove.
110931         * lib/memrchr.c (LONG_MAX): Likewise.
110932         * lib/memchr.c (__memchr): Define via a prototype.
110933         * lib/memrchr.c (__memrchr): Likewise.
110934         * lib/memcmp.c (__P): Remove, and remove all uses.
110935         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
110936         Remove forward decls; no longer needed.
110937         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
110938         Use types required by C89 in prototype.
110940         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
110941         * lib/savedir.c: Likewise.
110942         * lib/mkdir.c (free): Remove decl.
110943         * lib/rmdir.c (rmdir): Define with a prototype.
110944         * lib/savedir.c: Include savedir.h first, to test interface.
110946         * lib/mktime.c (STDC_HEADERS): Remove.
110947         Include <stdlib.h>, <string.h> unconditionally.
110949         * lib/modechange.c: Include <stdlib.h> unconditionally.
110950         (malloc): Remove decl.
110952         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
110953         (free): Remove decl.
110955         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
110956         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
110957         (This type really should be intptr_t, but that's a C99ism.)
110958         (_obstack_memcpy): Remove: all uses changed to memcpy.
110959         Include <string.h> unconditionally.
110960         (struct obstack): Assume __STDC__ for types of members
110961         chunkfun, freefun, extra_arg.
110962         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
110963         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
110964         obstack_begin, obstack_specify_allocation,
110965         obstack_specify_allocation_with_arg, obstack_chunkfun,
110966         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
110967         Remove unprototyped decls and the macros that use them.
110968         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
110969         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
110970         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
110971         (defined __STDC__ && __STDC__)]:
110972         Remove nonprototyped code.
110973         Include <stdlib.h> unconditionally.
110974         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
110975         _obstack_allocated_p, _obstack_free, obstack_free,
110976         _obstack_memory_used, print_and_abort):
110977         Define using prototypes.
110978         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
110979         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
110980         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
110981         obstack_next_free, obstack_object_size, obstack_room) [0]:
110982         Remove unused, unprototyped code.
110984         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
110986         * lib/physmem.c (physmem_total, physmem_available, main): Define
110987         with prototypes.
110989         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
110990         (main): Define with a prototype.
110992         * lib/posixver.c (getenv): Remove decl.
110994         * lib/putenv.c (malloc): Returns void *, not char *.
110995         Include <string.h> unconditionally.
110996         (strchr, memcpy, NULL): Do not define.
110998         * lib/readtokens.c: Include readtokens.h first, to test interface.
110999         Include <stdlib.h>, <string.h> unconditionally.
111000         (init_tokenbuffer): Define with a prototype.
111002         * lib/regex.c (PARAMS): Remove.  All uses removed.
111003         All uses of _RE_ARGS removed, too.
111004         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
111005         unconditionally.
111006         (bzero): Assume memset exists.
111007         (memcmp, memcpy, NULL): Remove.
111008         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
111009         char, or assignments to local vars of type signed char.
111010         (init_syntax_once, PREFIX(extract_number_and_incr),
111011         PREFIX(print_partial_compiled_pattern),
111012         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
111013         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
111014         PREFIX(regex_grow_registers), PREFIX(regex_compile),
111015         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
111016         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
111017         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
111018         wcs_compile_range, byte_compile_range, truncate_wchar,
111019         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
111020         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
111021         count_mbs_length, wcs_re_match_2_internal,
111022         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
111023         PREFIX(alt_match_null_string_p),
111024         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
111025         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
111026         regfree, PREFIX(extract_number)): Define with prototype.  Remove
111027         now-unnecessary declaration, if any.
111028         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
111029         regcomp, regexec):
111030         Remove now-unnecessary casts among pointer types.
111031         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
111033         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
111034         (free): Remove decl.
111036         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
111038         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
111039         (free): Remove decl.
111041         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
111042         * lib/xgetcwd.c: Likewise.
111044         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
111045         (free): Remove decl.
111047         * lib/strchrnul.c (strchrnul): Define with a prototype.
111048         Fix bug: c_in was not converted to char before searching.
111050         The following changes are not K&R related:
111052         * lib/group-member.h: Include <sys/types.h>, so that this file is
111053         self-contained.
111054         * lib/makepath.h: Likewise.
111056         * lib/getusershell.c (readname, default_index, line_size, readname):
111057         Use size_t, not int, for sizes.
111058         (readname): If the size overflows, report an error instead of
111059         looping forever.
111061 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111063         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
111064         libc.
111066 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111068         * README: New section: portability guidelines.
111070 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
111072         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
111073         C89 spec.
111075 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
111077         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
111079 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111081         Assume C89 or better; remove K&R cruft.
111082         A few of these changes were first proposed by Derek Robert Price
111083         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
111085         * lib/addext.c: Include <string.h> unconditionally.
111086         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
111087         Don't declare getenv or malloc.
111089         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
111090         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
111091         (NULL): Remove.
111092         (find_stack_direction, alloca): Use prototypes.
111094         * lib/atexit.c (atexit): Define using a prototype.
111096         * lib/basename.c, dirname.c, stripslash.c:
111097         Include <string.h> unconditionally.
111099         * lib/bcopy.c: Include <stddef.h>.
111100         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
111102         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
111104         * lib/error.h (error, error_at_line, error_print_progname)
111105         [! (defined (__STDC__) && __STDC__)]: Remove decls.
111106         * lib/error.c: Include error.h first, to check interface.
111107         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
111108         (VA_START): Remove; all uses changeed to va_start.
111109         (exit, strerror): Remove decls.
111110         (error_print_progname): Prototype uncondionally.
111111         Don't include <errno.h>; no longer needed.
111112         (private_strerror): Remove.
111113         (error_tail): Always define.
111114         (error, error_at_line): Assume C89 or better; always use prototypes.
111115         * lib/fatal.c: Include "fatal.h" first, to test interface.
111116         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
111117         (VA_START): Remove; all uses changed to va_start.
111118         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
111119         this case.
111120         (exit): Remove decl.
111121         (fatal): Prototype unconditionally.  Assume va_start works.
111122         Abort at end, to pacify gcc.
111124         * lib/euidaccess.c (main): Define with a prototype.
111126         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
111128         * lib/exitfail.c: Include <stdlib.h> unconditionally.
111130         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
111131         prototypes.
111132         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
111133         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
111134         (getenv): Remove decl.
111135         (fnmatch): Define using a prototype.
111136         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
111137         (FCT): Define using a prototype.
111139         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
111141         * lib/gethostname.c: Include <stddef.h>.
111142         (gethostname): Define with prototype.  Length is size_t, not int.
111144 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111146         Assume C89 or better; remove K&R cruft.
111147         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
111148         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
111149         string.h, getenv, malloc.
111150         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
111151         headers.
111152         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
111153         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
111154         do not check for strerror.
111155         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
111156         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
111157         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
111158         do not check for doprnt or vprintf.
111159         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
111160         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
111162 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111164         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
111165         getversion.c should have been removed then, but was accidentally
111166         preserved.
111168         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
111169         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
111171 2003-09-08  Karl Berry  <karl@gnu.org>
111173         * config/config.sub, config.guess, srclistvars.sh: update from savannah
111174                 config, forget about prep.
111176         * config/depcomp, missing: update from automake.
111178 2003-09-07  Paul Eggert  <eggert@twinsun.com>
111180         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
111181         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
111183 2003-09-07  Paul Eggert  <eggert@twinsun.com>
111185         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
111186         copy_tm_result.  Bug reported by Simon Josefsson in
111187         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
111189 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111191         * m4/time_r.m4: New file.
111192         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
111193         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
111194         is. Check for timegm declaration.
111195         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
111196         Do not check for gmtime_r.
111197         Replace mktime if __mktime_internal does not exist and if mktime
111198         hasn't been replaced already.
111200 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111202         * lib/time_r.c, lib/time_r.h: New files.
111204         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
111205         __localtime_r.
111206         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
111207         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
111209         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
111210         __gmtime_r.
111211         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
111212         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
111213         Include <time_r.h>.
111215         * lib/timegm.c: Switch to glibc implementation, with the following
111216         changes:
111217         [defined HAVE_CONFIG_H]: Include <config.h>.
111218         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
111219         (__mktime_internal) [!defined _LIBC]: New decl.
111220         (__gmtime_r) [!defined _LIBC]: New macro and function.
111221         (timegm): Use a prototype, since gnulib assumes C89.
111222         Do not bother declaring tmp to be const, as it's not really usefu.
111223         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
111224         (timegm): Declare only if HAVE_DECL_TIMEGM.
111226 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111228         * MODULES.html.sh (func_all_modules): Add time_r.
111229         * modules/time_r: New file.
111230         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
111231         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
111233 2003-09-03  Paul Eggert  <eggert@twinsun.com>
111235         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
111236         Bug reported by Lute Kamstra in
111237         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
111239         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
111240         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
111241         course with correspondingly smaller numbers for tomorrow and
111242         yesterday.  From Tadayoshi Funaba.  Originally installed into
111243         sh-utils on 1999-08-07, but the patch got lost (I guess during the
111244         coreutils merge?).
111246 2003-08-31  Simon Josefsson  <jas@extundo.com>
111248         * modules/timegm: New file.
111249         * MODULES.html.sh (func_all_modules): Add timegm.
111251 2003-08-31  Simon Josefsson  <jas@extundo.com>
111253         * m4/timegm.m4: New file.
111255 2003-08-31  Simon Josefsson  <jas@extundo.com>
111257         * lib/timegm.h: New file.
111258         * lib/timegm.c: New file.  Based on
111259         wget-1.8.2/src/http.c:mktime_from_utc.
111261 2003-08-31  Karl Berry  <karl@gnu.org>
111263         * lib/argp.h: update from libc.
111265 2003-08-28  Bruno Haible  <bruno@clisp.org>
111267         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
111268         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
111269         followed by '#define fnmatch fnmatch_posix' gives an error.
111271 2003-08-28  Bruno Haible  <bruno@clisp.org>
111273         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
111274         warning on QNX, which defines O_BINARY to 000000.
111276 2003-08-27  Jim Meyering  <jim@meyering.net>
111278         * m4/mkstemp.m4: Require that the system mkstemp be able to create
111279         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
111280         would fail after 32.  Reported by Danny Levinson.  Details here:
111281         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
111283 2003-08-24  Bruno Haible  <bruno@clisp.org>
111285         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
111286         MSVC7 <stdio.h> is included later.
111288 2003-08-22  Simon Josefsson  <jas@extundo.com>
111290         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
111292 2003-08-20  Karl Berry  <karl@gnu.org>
111294         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
111296 2003-08-20  Bruno Haible  <bruno@clisp.org>
111298         * modules/progname: New file.
111299         * MODULES.html.sh (func_all_modules): Add progname.
111301 2003-08-20  Bruno Haible  <bruno@clisp.org>
111303         * lib/progname.h: New file, from GNU gettext.
111304         * lib/progname.c: New file, from GNU gettext.
111305         * lib/progreloc.c: New file, from GNU gettext.
111307 2003-08-19  Jim Meyering  <jim@meyering.net>
111309         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
111310         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
111312 2003-08-19  Bruno Haible  <bruno@clisp.org>
111314         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
111315         more.
111317 2003-08-19  Bruno Haible  <bruno@clisp.org>
111319         * lib/xstrdup.c: Assume <string.h> exists.
111321 2003-08-18  Paul Eggert  <eggert@twinsun.com>
111323         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
111324         in makefile rules.
111326 2003-08-18  Jim Meyering  <jim@meyering.net>
111328         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
111329         * m4/lib-ld.m4: Likewise.
111331 2003-08-18  Jim Meyering  <jim@meyering.net>
111333         * lib/setenv.h: Indent nested cpp directive.
111334         * lib/vasnprintf.c: Remove trailing blanks.
111336 2003-08-17  Simon Josefsson  <jas@extundo.com>
111338         * modules/xstrndup: New file.
111339         * MODULES.html.sh (func_all_modules): Add xstrndup.
111341 2003-08-17  Simon Josefsson  <jas@extundo.com>
111343         * modules/argp: Fix autoconf macro name. Add more dependencies.
111345 2003-08-17  Simon Josefsson  <jas@extundo.com>
111347         * m4/xstrndup.m4: New file.
111349 2003-08-17  Simon Josefsson  <jas@extundo.com>
111351         * m4/argp.m4: New file.
111353 2003-08-17  Simon Josefsson  <jas@extundo.com>
111354             Bruno Haible  <bruno@clisp.org>
111356         * lib/xstrndup.h: New file.
111357         * lib/xstrndup.c: New file.
111359 2003-08-17  Bruno Haible  <bruno@clisp.org>
111361         * modules/strndup (Files, Include): Add lib/strndup.h.
111363 2003-08-17  Bruno Haible  <bruno@clisp.org>
111365         * modules/euidaccess (Files): Add lib/euidaccess.h.
111367 2003-08-17  Bruno Haible  <bruno@clisp.org>
111369         * lib/strndup.h: New file.
111371 2003-08-17  Bruno Haible  <bruno@clisp.org>
111373         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
111374         like AC_GNU_SOURCE.
111375         * modules/extensions (configure.ac): Comment out the invocation of
111376         gl_USE_SYSTEM_EXTENSIONS.
111378 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111380         Merges from coreutils, etc.
111381         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
111382         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
111383         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
111384         fixing a typo.
111385         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
111386         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
111388 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111390         Document merge from coreutils.
111391         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
111392         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
111393         * modules/utime: Add m4/utimes-null.m4.
111395 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111397         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
111398         space, undoing this 2003-08-12 change:
111399         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111401 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111403         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
111404         strtoul.c from libc, undoing this 2003-08-12 change:
111405         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111407 2003-08-16  Jim Meyering  <jim@meyering.net>
111409         Merges from coreutils.
111410         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
111411         prefix.  Adjust cache variables similarly.  Create 500 rather than
111412         just 300 files, to exercise bug on Darwin6.5, too.
111413         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
111414         $missing_dir.
111415         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
111416         AM_SYS_POSIX_TERMIOS.
111417         Reported by mkc@mathdogs.com.
111418         Also change use of $am_cv_sys_posix_termios
111419         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
111420         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
111421         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
111422         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
111423         in /proc/mounts until it finds one with matching device number.  This
111424         is unnecessary when the FILE argument *is* a mount point.  No stat call
111425         is necessary in that case.  So, disable the statvfs-testing code on
111426         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
111427         as RedHat bug# 84846.
111428         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111429         to 1MB, so as not to render systems with no stack size limit (e.g.,
111430         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111431         Include <unistd.h>.  On some systems,
111432         it is required for the definition of _SC_PAGESIZE.
111434 2003-08-16  Jim Meyering  <jim@meyering.net>
111436         Merge from coreutils.
111437         * lib/xstrtoimax.c: #else #if -> #elif.
111438         * lib/xstrtoumax.c: Likewise.
111440 2003-08-16  Jim Meyering  <jim@meyering.net>
111442         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
111443         * m4/utimes.m4: Removed.
111444         * m4/utimes-null.m4: Renamed from utimes.m4.
111446         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111447         to 1MB, so as not to render systems with no stack size limit (e.g.,
111448         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111449         Include <unistd.h>.  On some systems,
111450         it is required for the definition of _SC_PAGESIZE.
111452 2003-08-16  Jim Meyering  <jim@meyering.net>
111453         and Paul Eggert  <eggert@cs.ucla.edu>
111455         Merges from coreutils, etc.
111457         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
111458         using the latest version from cvs.  This avoids problems with #line
111459         directives using a vendor (Sun) compiler.
111460         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
111461         Don't set GETGROUPS_LIB here; now it's
111462         done via getgroups.m4's wrapper function.
111463         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
111464         rather than just in sh-util/configure.in, so that the
111465         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
111466         same.
111467         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
111468         AC_FUNC_GETLOADAVG where to find getloadavg.c.
111469         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
111470         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
111471         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
111472         Remove code that is now done by the newly-required macros.
111473         Append $(EXEEXT) to DF_PROG.
111474         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
111475         Do not invoke or require the following here,
111476         since prereq.m4 or some gnulib .m4 now does this for us:
111477         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
111478         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
111479         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
111480         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
111481         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
111482         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
111483         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
111484         AC_FUNC_OBSTACK.
111485         Do not replace the following functions, as this is now the job
111486         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
111487         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
111488         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
111489         atexit getpass, strdup, getpagesize.
111490         Replace 'raise'.
111491         Do not check for the following functions, as this is now the job
111492         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
111493         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
111494         setregid.
111495         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
111496         Check for sys/sysctl.h.
111497         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
111498         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
111499         of checking for ssize_t ourselves.
111501         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
111502         Require every macro that gnulib/modules/* suggests for us.
111503         (jm_PREREQ_ADDEXT): New macro.
111504         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
111505         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
111507         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
111508         (gl_PHYSMEM): Use it.
111509         Also check for `table' function.
111510         Check for new headers and functions.
111511         Add check for sys/sysmp.h.
111512         With suggestions from Kaveh Ghazi.
111513         Ignore headers that are present but cannot be compiled.  This
111514         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
111515         C 5.4.
111517 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111519         Document merge from coreutils.
111520         * modules/userspec: Depend on posixver.
111521         * modules/strftime: Depend on tzset.
111523 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111525         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
111526         rather than tab, after '#' in shell-script copyright notices.
111527         Suggested by Bruno Haible.
111529 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111531         * config/srclist-update: Use three spaces, rather than tab, after '#'
111532         in shell-script copyright notices.  Suggested by Bruno Haible.
111533         Remove unnecessary parenthesization in regular expression.
111535 2003-08-15  Jim Meyering  <jim@meyering.net>
111537         Merge from coreutils.
111538         * lib/xgethostname.c: Include <stdlib.h>.
111539         (xghostname): Don't exit for anything other than memory-related
111540         failure; just return NULL.
111541         * lib/userspec.c: Include "posixver.h".
111542         (parse_user_spec): Accept `.' as a separator only
111543         in pre-POSIX-200112 mode.
111544         * lib/strtoimax.c: Use #elif rather than #else #if.
111545         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
111546         Remove function, now that we can rely on a working tzset function.
111547         [!_LIBC]: Ensure that the required autoconf test has been run.
111548         [!defined _NL_CURRENT && HAVE_STRFTIME]:
111549         Use underlying_strftime for %r.
111550         * lib/sha.c: Merge in some clean-up and optimization changes from
111551         glibc.
111552         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
111553         Ensure that it is a multiple of 64.
111554         Rearrange loop exit tests so as to avoid performing an
111555         additional fread after encountering an error or EOF.
111556         * lib/realloc.c: Update copyright date.
111558 2003-08-15  Jim Meyering  <jim@meyering.net>
111559         and Paul Eggert  <eggert@twinsun.com>
111561         Merge from coreutils.
111562         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
111563         member but strut utmpx does not.  Needed for AIX 4.3.3.
111564         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
111566 2003-08-15  Jim Meyering  <jim@meyering.net>
111567         and Paul Eggert  <eggert@cs.ucla.edu>
111569         Merges from coreutils, etc.
111570         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
111571         Require gl_FUNC_TZSET_CLOBBER.
111572         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
111573         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
111574         members.
111576 2003-08-14  Paul Eggert  <eggert@twinsun.com>
111578         Help the merge from coreutils.
111579         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
111580         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
111581         * m4/tzset.m4: Use it too.
111583 2003-08-14  Paul Eggert  <eggert@twinsun.com>
111585         * modules/tzset: New file.
111587 2003-08-14  Jim Meyering  <jim@meyering.net>
111589         Merges from coreutils.
111590         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
111591         variable names, rather than @FNMATCH_H@.
111592         * modules/alloca: Likewise for $(ALLOCA_H).
111594         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
111595         the three copies of the literal target, `fnmatch.h'.
111596         * modules/alloca (alloca.h): Likewise.
111598 2003-08-14  Jim Meyering  <jim@meyering.net>
111600         Merge from coreutils.
111601         * m4/tzset.m4: New file.
111602         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
111603         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
111604         otherwise, AIX 5.1 systems would end up using the latter.
111605         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
111606         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
111607         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
111608         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
111610 2003-08-14  Jim Meyering  <jim@meyering.net>
111612         Merge from coreutils.
111613         * lib/obstack.h: Whitespace changes.
111614         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
111615         and xcalloc return values.
111616         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
111617         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
111618         hang on OSF/1 5.1 for DIR on both local and remote file systems.
111619         Reported by (and fix confirmed by) Nelson H. F. Beebe.
111620         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
111621         error from mntctl.
111622         Use mntctl's return value to drive the entry-processing loop, since
111623         we can't rely on the value of the vmt_length member in the last
111624         entry.  On some systems doing so could result in exhausting
111625         virtual memory.  Based in part on a patch from Mike Jetzer.
111627 2003-08-14  Jim Meyering  <jim@meyering.net>
111628         and Paul Eggert  <eggert@twinsun.com>
111630         Merges from coreutils, plus other fixes.
111631         * lib/physmem.c: Merge in portability changes from gcc/libiberty
111632         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
111633         for credits and details.  Thanks to Kaveh Ghazi for helping
111634         to keep these files in sync.
111635         (ARRAY_SIZE): Define it.
111636         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
111637         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
111638         (memcasecmp): Don't assume size_t fits in unsigned int.
111639         Remove casts and duplicate code.
111640         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
111641         (memcpy): Remove definition.
111642         Merge in some clean-up and optimization changes from glibc.
111643         [BLOCKSIZE]: Move definition to top of file.
111644         Ensure that it is a multiple of 64.
111645         Rearrange loop exit tests so as to avoid performing an
111646         additional fread after encountering an error or EOF.
111647         * lib/md5.h (md5_uintptr): Define.
111648         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
111649         return to the initial working directory.  Preserve errno
111650         for caller.
111651         * lib/idcache.c: Include "xalloc.h".
111652         (xmalloc, xrealloc): Remove decls.
111653         (getuser): Remove casts no longer required in C89.
111654         * lib/human.c: Include stdio.h, for sprintf.
111655         * lib/group-member.c: Include "xalloc.h".
111656         (xmalloc, xrealloc): Remove decls.
111657         (get_group_info): Remove casts no longer required in C89.
111658         * lib/getusershell.c (readname): Remove casts no longer required in
111659         C89.
111660         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
111661         * lib/getline.c: Whitespace fix, from coreutils.
111663 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111665         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
111666         Check for isascii.
111668         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
111669         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
111670         Undo previous (whitespace-only) change.
111672 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111674         * lib/exclude.c: Include <ctype.h>
111675         (IN_CTYPE_DOMAIN): New macro.
111676         (is_space): New fn.
111677         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
111678         and empty lines.
111680         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
111681         Undo previous (whitespace-only) change.
111683 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111685         * config/srclist-update: Change update back to the old behavior,
111686         leaving whitespace alone.  Use one 'sed' command rather than a
111687         pipeline.
111688         (fixlicense): Now a variable, not a function.
111689         (remove_trailing_blanks): Remove.
111690         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
111691         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
111692         Undo previous (whitespace-only) change.
111694 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111696         Merge from coreutils.
111697         * modules/euidaccess: Add lib_SOURCES, include for new
111698         file euidaccess.h
111700 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111702         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
111703         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
111704         Normalize leading white space and remove trailing white space.
111706         Merge from coreutils
111707         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
111709         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
111710         0.12.1.  These files are now being upgraded automatically by
111711         ../config/srclist-update.
111713 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111715         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
111716         Normalize leading white space and remove trailing white space.
111717         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
111718         notice, as per ../config/srclist-update.
111720         Merge from coreutils.
111721         * lib/euidaccess.h: New file.
111722         * lib/euidaccess.c: Include it.
111723         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
111724         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
111725         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
111727 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111729         * config/srclist-update: Add copyright notice.
111730         (remove_id_lines, remove_trailing_blanks): New constants.
111731         (fixfile): Use them to normalize spacing a bit in copied files.
111732         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
111733         Normalize leading white space and remove trailing white space.
111735         * config/texinfo.tex: Sync with texinfo.
111737         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
111738         strtoul.c from libc, to merge coreutils whitespace changes.
111740         * config/srclist.txt: Get the following m4 files from gettext:
111741         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
111742         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
111743         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
111744         wint_t.m4.
111746 2003-08-12  Karl Berry  <karl@gnu.org>
111748         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
111749         been made.
111751 2003-08-11  Paul Eggert  <eggert@twinsun.com>
111753         * modules/gnu-source, m4/gnu-source.m4:
111754         Remove; we're assuming Autoconf 2.54 or later now.
111755         Suggested by Bruno Haible.
111756         * MODULES.html.sh (func_all_modules): Remove gnu-source.
111758 2003-08-11  Bruno Haible  <bruno@clisp.org>
111760         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
111762 2003-08-11  Bruno Haible  <bruno@clisp.org>
111764         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
111765         (vasnprintf): Use it instead of wcslen.
111767 2003-08-11  Bruno Haible  <bruno@clisp.org>
111769         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
111770         value to ensure that _Bool promotes to int. Use #define for _Bool when
111771         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
111773 2003-08-10  Karl Berry  <karl@gnu.org>
111775         * lib/regex.h: update from libc (whitespace fix).
111777 2003-08-09  Paul Eggert  <eggert@twinsun.com>
111779         Merge some files from coreutils.  These changes were
111780         originally made by Jim Meyering.
111781         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
111782         many older Unixes require this.
111783         * lib/alloca.c (alloca): Remove cast to argument of free;
111784         no longer needed in C89.
111785         * lib/alloca_.h, regex.h: Fix white space to match
111786         what GNU indent does.
111788 2003-08-09  Paul Eggert  <eggert@twinsun.com>
111790         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
111791         apparently Emacs's Unicode mode got confused before my 2003-08-05
111792         checkin.
111794 2003-08-08  Paul Eggert  <eggert@twinsun.com>
111796         * m4/extensions.m4: New file.
111797         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
111798         Require gl_USE_SYSTEM_EXTENSIONS.
111799         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
111800         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
111802 2003-08-08  Paul Eggert  <eggert@twinsun.com>
111804         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
111805         * modules/extensions, modules/gnu-source: New files.
111806         * modules/timespec, modules/unlocked-io: Depend on extensions.
111808 2003-08-07  Paul Eggert  <eggert@twinsun.com>
111810         * modules/restrict: New file.
111811         * MODULES.html.sh (func_all_modules): Add restrict.
111812         * modules/regex: Depend on restrict.
111814 2003-08-07  Paul Eggert  <eggert@twinsun.com>
111816         * m4/restrict.m4: New file.
111817         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
111819 2003-08-07  Bruno Haible  <bruno@clisp.org>
111821         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
111822         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
111824 2003-08-07  Bruno Haible  <bruno@clisp.org>
111826         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
111827         makes the module 'getndelim2' compatible with the module 'getline'.
111829 2003-08-05  Paul Eggert  <eggert@twinsun.com>
111831         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
111832         byte with "\201" to avoid glitches when editing that source file
111833         with multi-gnome-terminal.
111835 2003-08-05  Paul Eggert  <eggert@twinsun.com>
111837         * lib/bumpalloc.h: Remove.
111839 2003-08-05  Paul Eggert  <eggert@twinsun.com>
111841         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
111842         * modules/bumpalloc: Remove.
111844 2003-08-04  Paul Eggert  <eggert@twinsun.com>
111846         * lib/getloadavg.c: Change copyright notice and spacing to conform to
111847         GNU coding style.
111849         Merge from coreutils.
111850         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
111851         1. From glibc.
111852         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
111853         from Karl Berry, implemented by Jim Meyering.
111854         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
111855         from Dmitry V. Levin.
111856         Remove anachronistic cast of xrealloc.
111857         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
111858         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
111859         type. Otherwise, it wouldn't compile with at least /bin/cc on
111860         ymp-cray-unicos9.0.2.X.
111861         Combine two mostly-identical uses of alloca into one.
111862         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
111864 2003-08-04  Dave Love  <d.love@dl.ac.uk>
111866         [From Emacs.]
111868         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
111869         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
111870         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
111871         obsolete NLIST_NAME_UNION.
111872         [__GNU__]: Undef BSD and FSCALE.
111873         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
111875 2003-08-03  Paul Eggert  <eggert@twinsun.com>
111877         * lib/stdbool_.h (_Bool): Make it signed char, instead of
111878         an enum type, so that it's guaranteed to promote to int.  See:
111879         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
111881 2003-08-03  Karl Berry  <karl@gnu.org>
111883         * config/depcomp: update from automake.
111885 2003-07-31  Paul Eggert  <eggert@twinsun.com>
111887         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
111888         (strerror): Don't assume that a printable int fits in 14 bytes.
111890 2003-07-31  Bruno Haible  <bruno@clisp.org>
111892         * modules/getpass-gnu: New file.
111893         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
111895 2003-07-31  Bruno Haible  <bruno@clisp.org>
111897         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
111899 2003-07-24  Karl Berry  <karl@gnu.org>
111901         * config/missing: update from automake.
111903 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
111904             Bruno Haible  <bruno@clisp.org>
111906         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
111907         * lib/getline.c (getline, getdelim): Likewise.
111908         Remove _GNU_SOURCE define; now it's defined in config.h through
111909         m4/getline.m4.
111911 2003-07-23  Karl Berry  <karl@gnu.org>
111913         * config/config.sub: update from prep.
111915 2003-07-22  Paul Eggert  <eggert@twinsun.com>
111917         * modules/xalloc (Depends-on): Add exitfail.
111918         * modules/xmemcoll: Likewise.
111920 2003-07-22  Paul Eggert  <eggert@twinsun.com>
111922         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
111923         over-parenthesization in macros.
111925         Sync with coreutils.
111927         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
111928         required by C99.
111930         Use `exit_failure' for xalloc and xmemcoll instead of their own
111931         private exit-failure variables.
111932         * lib/xalloc.h (xalloc_exit_failure): Remove.
111933         * lib/xmalloc.c: Likewise.  Include exitfail.h.
111934         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
111935         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
111936         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
111937         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
111939 2003-07-20  Jim Meyering  <jim@meyering.net>
111941         * modules/closeout (Depends-on): Add exitfail.
111942         Suggestion from Bruno Haible.
111944 2003-07-19  Karl Berry  <karl@gnu.org>
111946         * config/config.sub: update from prep.
111948 2003-07-18  Paul Eggert  <eggert@twinsun.com>
111950         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
111951         Remove.
111952         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
111953         to test that it can stand by itself.  Include "exitfail.h".
111954         Clients should set exit_failure instead.
111955         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
111957 2003-07-18  Bruno Haible  <bruno@clisp.org>
111959         * modules/getndelim2: New file.
111960         * modules/getline: Share files with module getndelim2.
111961         * modules/getnline: Depend on getndelim2 instead of sharing files with
111962         it. Add getnline.c to lib_SOURCES.
111963         * MODULES.html.sh (func_all_modules): Add getndelim2.
111965 2003-07-18  Bruno Haible  <bruno@clisp.org>
111967         * m4/getndelim2.m4: New file.
111968         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
111969         invoke gl_PREREQ_GETNDELIM2.
111970         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
111971         gl_PREREQ_GETNDELIM2.
111972         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
111973         gl_GETNDELIM2.
111975 2003-07-18  Bruno Haible  <bruno@clisp.org>
111977         * lib/getndelim2.h: New file.
111978         * lib/getndelim2.c: Make into a module of its own. Include config.h,
111979         getndelim2.h.
111980         (getndelim2): Make non-static. Change return type to ssize_t.
111981         * lib/getline.h: Change argument names.
111982         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
111983         * lib/getnline.c: Include getndelim2.h.
111985 2003-07-18  Andreas Schwab  <schwab@suse.de>
111987         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
111989 2003-07-17  Karl Berry  <karl@gnu.org>
111991         * config/config.sub: update from prep.
111993 2003-07-17  Bruno Haible  <bruno@clisp.org>
111995         * modules/getnline: New file.
111996         * modules/getline: Add lib/getndelim2.c to source file list.
111997         * MODULES.html.sh (func_all_modules): Add getnline.
111999 2003-07-17  Bruno Haible  <bruno@clisp.org>
112001         * m4/getnline.m4: New file.
112003 2003-07-17  Bruno Haible  <bruno@clisp.org>
112005         * m4/Makefile.am.in: Remove file.
112006         * m4/Makefile.am: Remove file.
112007         * m4/Makefile.in: Remove file.
112009 2003-07-17  Bruno Haible  <bruno@clisp.org>
112011         * lib/getnline.h: New file.
112012         * lib/getnline.c: New file.
112013         * lib/getndelim2.c: New file, extracted from getline.c.
112014         (getndelim2): Renamed from getdelim2, with added nmax argument.
112015         * lib/getline.c: Include getndelim2.c.
112016         (getdelim2): Moved out to getndelim2.c.
112017         (getline, getdelim): Update.
112019 2003-07-17  Bruno Haible  <bruno@clisp.org>
112021         * lib/Makefile.am: Remove file.
112022         * lib/Makefile.in: Remove file.
112024 2003-07-17  Bruno Haible  <bruno@clisp.org>
112026         * configure.in: Remove file.
112027         * Makefile.in: Remove file.
112029 2003-07-17  Bruno Haible  <bruno@clisp.org>
112031         * MODULES.html.sh: Put the </BODY> right before </HTML>.
112033 2003-07-16  Karl Berry  <karl@gnu.org>
112035         * config/srclist-update: was running fixlicense twice, which caused
112036                 texinfo.tex to be nullified for some reason.  Simplify,
112037                 $gplsrc is no longer needed as far as I can see?
112039 2003-07-16  Jim Meyering  <jim@meyering.net>
112041         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
112043 2003-07-15  Paul Eggert  <eggert@twinsun.com>
112045         * config/srclist.txt: Get the following files from gettext-runtime/intl
112046         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
112047         ref-del.sin.  From Bruno Haible.
112048         * config/srclist-update (fixfile): Change grep pattern again, since the
112049         previous fix didn't work (there was another trailing $).  Use
112050         '[$]' to escape the $s.
112052 2003-07-15  Karl Berry  <karl@gnu.org>
112054         * lib/vasnprintf.c: update from gettext.
112056 2003-07-15  Karl Berry  <karl@gnu.org>
112058         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
112059         gets expanded when surrounded by '$'.
112061 2003-07-15  Jim Meyering  <jim@meyering.net>
112063         * modules/save-cwd: Don't depend on error.  From Derek Price.
112065 2003-07-15  Jim Meyering  <jim@meyering.net>
112067         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
112069 2003-07-14  Simon Josefsson  <jas@extundo.com>
112071         * modules/mempcpy: New file.
112072         * MODULES.html.sh (func_all_modules): Add mempcpy.
112074 2003-07-14  Simon Josefsson  <jas@extundo.com>
112076         * m4/mempcpy.m4: New file.
112078 2003-07-14  Simon Josefsson  <jas@extundo.com>
112080         * lib/mempcpy.h: New file.
112081         * lib/mempcpy.c: New file.
112083 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112085         * modules/getdate, modules/posixtm: Depend on mktime.
112087 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112089         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
112090         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
112091         unicodeio.c, unicodeio.h, unlocked-io.h:
112092         Switch from LGPL to GPL.
112094 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112096         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
112097         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
112098         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
112099         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
112100         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
112101         updated automatically by ../config/srclist-update.  This changes
112102         their license from LPGL to GPL.
112104 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112106         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
112107         assumed to refer to the root of the most recent stable gettext version.
112108         * config/srclistvars.sh: Add defaults for eggert.
112109         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
112110         Match "This program" as well as "The program".  This is needed
112111         for gettext.
112113 2003-07-14  Jim Meyering  <jim@meyering.net>
112115         Don't emit diagnostics.  Let callers do that.
112116         * lib/save-cwd.c: Don't include "error.h".
112117         (save_cwd): Don't call error.  Ensure that errno is valid
112118         when returning nonzero.
112120         * lib/save-cwd.h (restore_cwd): Update prototype.
112121         * lib/save-cwd.c (restore_cwd): Remove two parameters.
112122         Simplify.  Don't call error upon failure.  Let callers do that.
112123         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
112124         when auditing is enabled.  But don't bother updating the #if.
112126 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
112128         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
112129         it breaks C++ compilation.
112130         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
112132 2003-07-10  Simon Josefsson  <jas@extundo.com>
112134         * modules/strchrnul (Makefile.am): Add strchrnul.h.
112136 2003-07-10  Jim Meyering  <jim@meyering.net>
112138         * m4/clock_time.m4: Remove trailing blank.
112139         * m4/intmax_t.m4: Likewise.
112141 2003-07-10  Jim Meyering  <jim@meyering.net>
112143         * lib/vasnprintf.c: Remove trailing blanks.
112144         Make cpp indentation consistent.
112146 2003-07-09  Paul Eggert  <eggert@twinsun.com>
112148         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
112149         posixver.c, strftime.c, strnlen.c, strverscmp.c:
112150         Switch from LGPL to GPL.
112152 2003-07-09  Paul Eggert  <eggert@twinsun.com>
112154         * config/srclist.txt: Sort sublists.  Add
112155         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
112156         that differ from gnulib for one reason or another; we'd like this list
112157         to be smaller but for now let's document what we have.
112159 2003-07-08  Paul Eggert  <eggert@twinsun.com>
112161         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
112162         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
112163         and sweeter "eval x=$x".
112164         * config/srclist.txt: Get lib/argp* from glibc.
112166 2003-07-07  Paul Eggert  <eggert@twinsun.com>
112168         * lib/mktime.c: Fix some boundary cases and remove need for floating
112169         point.
112171         Issue a compile-time diagnostic if time_t is floating point, or if
112172         two's complement arithmetic is not in effect, or if arithmetic
112173         right shift does not propagate the sign.  These assumptions were
112174         all in the original code but they weren't checked.
112176         (TIME_T_MIDPOINT, verify): New macros.
112177         (__isleap): Remove; it has integer overflow problems.
112178         (leapyear): New function, without those problems.
112179         (ydhms_tm_diff): Remove; splitting into two parts.
112180         (ydhms_diff): New function, containing the arithmetic part of
112181         the old ydhms_tm_diff function.  Issue a compile-time
112182         diagnostic if we are not using C99 integer division.
112183         Avoid casts when possible.
112184         (guess_time_tm): New function, containing the checking part of
112185         the old ydhms_tm_diff function.  Return the new value, rather than
112186         the difference between it and the old.  Accept a new argument T
112187         so that *T specifies the old value.  Check for overflow in the result.
112189         (__mktime_internal): Use a time_t offset, not a long int offset.
112190         This undoes the 2003-06-04 change, which is no longer needed now
112191         that we have better overflow checking.
112192         (localtime_offset): Likewise.
112194         (__mktime_internal): Avoid harmful overflow on hosts where time_t
112195         and long are 64-bit but int is only 32-bit.
112196         (ydhms_diff): Use long int to store year1 and yday1.
112197         Issue a compile-time diagnostic if long int is not wide enough.
112199         (__mktime_internal): Use long int to store adjusted year and yday.
112200         Use plain C rather than preprocessor commands, if that doesn't
112201         affect efficiency.
112202         Check for overflow (and try to repair) after each probe
112203         rather than checking only at the very end.  This avoids some bugs
112204         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
112205         does not equal GMT offset at maximum time).
112206         Use integer to check for overflow rather than floating point; this
112207         is more portable to non-IEEE hosts, and is a tad faster.
112208         When we detect that we are oscillating between two values,
112209         don't check whether tm_isdst has the requested value, since
112210         we already know the answer.  When tm_isdst has the wrong value,
112211         use a different heuristic to find the right one, based on the
112212         extreme values actually observed in practice in tz2003a,
112213         rather than the (overly optimistic) "previous 3 calendar quarters".
112215         (not_equal_tm, print_tm, check_result): Use "const T" rather than
112216         "T const" to accommodate glibc style.
112217         (check_result): Use less-confusing report format.  "long" -> "long int.
112218         (main): Likewise.
112219         Don't loop if the iteration overflows time_t.
112220         Allow a negative step in the iteration.
112222 2003-07-06  Karl Berry  <karl@gnu.org>
112224         * config/depcomp: update from automake.
112225         * config/config.sub: update from prep.
112227 2003-07-03  Karl Berry  <karl@gnu.org>
112229         * config/config.guess: update from prep.
112231 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112233         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
112234         xreadlink.c now includes it unconditionally.
112236 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112238         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
112239         having it depend on HAVE_SYS_TYPES_H.
112241 2003-07-01  Bruno Haible  <bruno@clisp.org>
112243         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
112244         <sys/types.h> should be sufficient.
112245         Reported by Paul Eggert.
112247 2003-06-26  Karl Berry  <karl@gnu.org>
112249         * config/depcomp: update from automake.
112251 2003-06-26  Bruno Haible  <bruno@clisp.org>
112253         * modules/human: Depend on module stdbool.
112255 2003-06-25  Bruno Haible  <bruno@clisp.org>
112257         * modules/readlink: New file.
112258         * modules/xreadlink: Depend on it.
112259         * MODULES.html.sh (func_all_modules): Add readlink.
112261 2003-06-25  Bruno Haible  <bruno@clisp.org>
112263         * m4/readlink.m4: New file.
112265 2003-06-25  Bruno Haible  <bruno@clisp.org>
112267         * lib/readlink.c: New file.
112269 2003-06-22  Karl Berry  <karl@gnu.org>
112271         * config/srclist.txt: update mkinstalldirs from automake.
112272         * config/mkinstalldirs: update.
112274 2003-06-22  Bruno Haible  <bruno@clisp.org>
112276         Portability to mingw32.
112277         * m4/ssize_t.m4: New file, from GNU gettext.
112278         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
112279         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
112281 2003-06-22  Bruno Haible  <bruno@clisp.org>
112283         * modules/safe-read: Add m4/ssize_t.m4.
112284         * modules/xreadlink: Add m4/ssize_t.m4.
112286 2003-06-20  Bruno Haible  <bruno@clisp.org>
112288         Assume C89, so PARAMS isn't needed.
112289         * lib/unicodeio.h (PARAMS): Remove.
112290         * lib/unicodeio.c: Don't use PARAMS.
112292 2003-06-18  Karl Berry  <karl@gnu.org>
112294         * config/config.{guess,sub}: update from prep.
112296 2003-06-18  Jim Meyering  <jim@meyering.net>
112298         Merge changes from coreutils.
112299         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
112300         Remove explicit declarations of xmalloc and realloc.
112301         Include xalloc.h.
112302         (read_utmp): Remove anachronistic cast of xmalloc.
112304 2003-06-17  Paul Eggert  <eggert@twinsun.com>
112306         Assume C89, so PARAMS isn't needed.
112307         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
112308         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
112309         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
112310         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
112311         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
112312         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
112313         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
112314         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
112315         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
112316         lib/xstrtod.h, lib/xstrtol.h: Likewise.
112317         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
112318         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
112319         no longer needed. Anyway, config.h should always be included before any
112320         other file.
112322 2003-06-11  Simon Josefsson  <jas@extundo.com>
112324         * modules/sysexits: New file.
112325         * MODULES.html.sh (func_all_modules): Add sysexits.
112327 2003-06-11  Simon Josefsson  <jas@extundo.com>
112329         * lib/sysexit_.h: New file.
112331 2003-06-11  Derek Price  <derek@ximbiot.com>
112333         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
112334         necessary.
112336 2003-06-11  Bruno Haible  <bruno@clisp.org>
112338         * m4/sysexits.m4: New file.
112340 2003-06-10  Simon Josefsson  <jas@extundo.com>
112342         * lib/argp.h: New file, from glibc.
112343         * lib/argp-ba.c: New file, from glibc.
112344         * lib/argp-eexst.c: New file, from glibc.
112345         * lib/argp-fmtstream.c: New file, from glibc.
112346         * lib/argp-fmtstream.h: New file, from glibc.
112347         * lib/argp-fs-xinl.c: New file, from glibc.
112348         * lib/argp-help.c: New file, from glibc.
112349         * lib/argp-namefrob.h: New file, from glibc.
112350         * lib/argp-parse.c: New file, from glibc.
112351         * lib/argp-pv.c: New file, from glibc.
112352         * lib/argp-pvh.c: New file, from glibc.
112353         * lib/argp-xinl.c: New file, from glibc.
112355 2003-06-10  Simon Josefsson  <jas@extundo.com>
112357         * modules/strchrnul: New file.
112359 2003-06-10  Simon Josefsson  <jas@extundo.com>
112361         * modules/argp: New file.
112363 2003-06-10  Simon Josefsson  <jas@extundo.com>
112365         * m4/strchrnul.m4: New file.
112367 2003-06-10  Simon Josefsson  <jas@extundo.com>
112369         * lib/strchrnul.h: New file.
112370         * lib/strchrnul.c: New file.
112372 2003-06-10  Bruno Haible  <bruno@clisp.org>
112374         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
112376 2003-06-07  Karl Berry  <karl@gnu.org>
112378         * config/config.{guess,sub}: update from prep.
112380 2003-06-07  Jim Meyering  <jim@meyering.net>
112382         * modules/strtod: Use $(...) notation, not @...@ for
112383         AC_REPLACE'd variables.
112384         * modules/localcharset: Likewise.
112386 2003-06-07  Jim Meyering  <jim@meyering.net>
112388         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
112389         in place of my name in the copyright comment.
112390         Remove definition and uses of __P.
112392         From coreutils.
112393         * lib/stat.c: Don't declare xmalloc explicitly.
112394         Instead, include "xalloc.h".
112395         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
112396         xrealloc, and xcalloc return values.
112397         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
112398         Improve comment.
112399         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
112401 2003-06-07  Bruno Haible  <bruno@clisp.org>
112403         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
112404         avoid AC_CONFIG_LINKS.
112405         * modules/fnmatch (Makefile.am): Use explicit creation rule for
112406         fnmatch.h, to avoid AC_CONFIG_LINKS.
112407         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
112409 2003-06-07  Bruno Haible  <bruno@clisp.org>
112411         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
112412         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
112413         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112414         directory.
112415         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
112416         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112417         directory.
112419 2003-06-06  Jim Meyering  <jim@meyering.net>
112421         Merge from coreutils.
112422         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
112423         Consolidate declarations and initializations of *_base* locals.
112425         Merge from coreutils.
112426         This avoids a core dump on systems without GNU putenv,
112427         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
112428         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
112429         (unsetenv): New static function, from GNU libc.
112430         (rpl_putenv): Use it.
112432         * lib/modechange.c: Remove trailing blanks.
112434         Merge from coreutils.
112435         * lib/fsusage.c: Remove declaration of statfs.
112436         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
112438         * lib/posixtm.c: Include <stdbool.h> unconditionally.
112440 2003-06-06  Jim Meyering  <jim@meyering.net>
112442         * lib/stdbool_.h: Renamed from stdbool.h.in.
112444 2003-06-06  Jim Meyering  <jim@meyering.net>
112445             Bruno Haible  <bruno@clisp.org>
112447         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
112448         Adjust Makefile.am snippet not to redirect directly to target.
112449         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
112451 2003-06-05  Paul Eggert  <eggert@twinsun.com>
112453         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
112454         mismatch, look in future quarters as well as past.  This fixes a
112455         bug when processing fall-backwards gaps immediately after a long
112456         period of daylight-saving time.
112458         * lib/mktime.c: Assume freestanding C89 or better.
112459         (HAVE_LIMITS_H): Remove.  Assume it's 1.
112460         (__P): Remove; not used.
112461         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
112462         (mktime, not_equal_tm, print_tm, check_result,
112463         main): Use prototypes.  Use const * where appropriate.
112464         (main): Fix typo in testing code that uncovered by above changes.
112465         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
112467 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112469         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
112470         locale.h, localeconv.  This merges changes from coreutils.
112472         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
112473         It can be removed after the next Autoconf is released.
112474         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
112475         needed.
112477 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112479         * lib/mktime.c: Fix Debian bug 177940
112480         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
112481         (localtime_offset): Now long int, not time_t, because we want it
112482         to be guaranteed to be signed.  All uses changed.
112483         (__mktime_internal): If overflow would occur when adding offset,
112484         don't add it.
112486         Merge 'human' changes from coreutils.  Rewrite to support
112487         locale-specific notations like thousands separators.
112488         * lib/human.c: Simplify authorship notice.
112489         Include human.h immediately after config.h.
112490         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
112491         <limits.h>: Do not include, since human.h does.
112492         (SIZE_MAX, UINTMAX_MAX): New macros.
112493         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
112494         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
112495         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
112496         (power_letter): Renamed from suffixes.
112497         (generate_suffix_backwards): Remove.
112498         (adjust_value): Now takes int style (because of human.h changes)
112499         and long double value (for greater precision on some platforms).
112500         (group_number): New function.
112501         (human_readable): Use it.  Use integer options, not enum.
112502         Put the options before the sizes in the arg list.
112503         Support all the new options.
112504         The old human_readable function has been removed;
112505         use inttostr.h instead.
112506         (human_readable, default_block_size, humblock):
112507         Use uintmax_t, not int, for block sizes.
112508         (human_readable_inexact, block_size_types): Remove.
112509         (block_size_opts): New constant.
112510         (human_options): Renamed from human_block_size, with new signature
112511         that allows block sizes up to UINTMAX_MAX.  All callers changed.
112512         * lib/human.h: Add copyright and authorship notice.
112513         Include <limits.h> and <stdbool.h> unconditionally.
112514         (PARAMS): Remove.  All uses removed.
112515         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
112516         (enum human_inexact_style): Remove tag; now a nameless enum.
112517         (human_floor, human_ceiling, human_round_to_even): Now have
112518         values 2, 0, 1 rather than -1, 1, 0.
112519         (human_group_digits, human_suppress_point_zero, human_autoscale,
112520         human_base_1024, human_SI, human_B): New constants.
112521         (human_readable_inexact, human_block_size): Remove.
112522         (human_readable): Size args are now uintmax_t, not int.
112523         (human_options): New decl.
112525         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
112526         unnecessary now that we assume C89 or better.  This change
112527         imported from coreutils.
112529         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
112530         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
112531         in the 2003-05-30 sync from glibc.
112533         .h files should stand alone, but we shouldn't include <sys/types.h>
112534         if we can get away with just <stddef.h>.
112536         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
112537         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
112538         rather than <sys/types.h>, as we merely need size_t.
112539         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
112540         to get size_t.
112541         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
112542         Include <stdio.h>, to get FILE.
112543         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
112544         memcasecmp.h has included <stddef.h> and all we need is size_t.
112545         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
112546         our interface, instead of including <sys/types.h>
112548 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112550         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
112551         now, as glibc mktime is buggy on non-glibc systems.
112553 2003-06-03  Karl Berry  <karl@gnu.org>
112555         * config/config.sub: update from prep.
112557 2003-06-02  Paul Eggert  <eggert@twinsun.com>
112559         [from coreutils]
112560         Fix some minor time-related bugs with POSIX time arguments.
112561         Some valid time stamps were being rejected (notably -1, and
112562         time stamps before 1900 on 64-bit hosts).  And some invalid
112563         time stamps were being accepted, e.g. September 31.
112565         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
112566         that we can return (time_t) -1 successfully.
112567         * lib/posixtm.c: Likewise.
112568         [HAVE_STDBOOL_H]: Include <stdbool.h>.
112569         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
112570         (t): Remove static var.
112571         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
112572         of static var.  All uses changed.
112573         (year): Do not reject years before 1900; they can occur with
112574         64-bit time_t.
112575         (posix_time_parse): Do not check for out-of-range components;
112576         that is now the caller's responsibility, since our checks were
112577         only approximations.
112578         (posixtime): Use mktime to check for out-of-range components,
112579         since it knows them exactly.
112580         If mktime returns (time_t) -1, check whether an error actually occurred
112581         by invoking localtime on -1.
112582         (main) [TEST_POSIXTIME]: Check for input data errors, and report
112583         posixtime failures better.
112584         Improve the test data (in comments only).
112586 2003-06-02  Karl Berry  <karl@gnu.org>
112588         * config/mkinstalldirs (version): new variable.
112589         (--version): new option.
112590         (usage): improve message.
112592 2003-05-30  Karl Berry  <karl@gnu.org>
112594         * lib/mktime.c: update from libc.
112596 2003-05-30  Bruno Haible  <bruno@clisp.org>
112598         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
112599         * config/config.rpath: Upgrade to gettext-0.12.1.
112601 2003-05-30  Bruno Haible  <bruno@clisp.org>
112603         * m4/gettext.m4: Upgrade to gettext-0.12.1.
112604         * m4/nls.m4: New file, from gettext-0.12.1.
112605         * m4/po.m4: New file, from gettext-0.12.1.
112606         * m4/progtest.m4: Upgrade to gettext-0.12.1.
112608 2003-05-30  Bruno Haible  <bruno@clisp.org>
112610         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
112611         * lib/localcharset.h: Likewise.
112612         * lib/localcharset.c: Likewise.
112614 2003-05-29  Karl Berry  <karl@gnu.org>
112616         * config/config.rpath: update from gettext.
112618 2003-05-28  Paul Eggert  <eggert@twinsun.com>
112620         Assume the headers required for C89 freestanding compilers.
112621         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
112622         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
112623         * m4/human.m4 (gl_HUMAN): Likewise.
112624         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
112625         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
112626         * m4/userspec.m4 (gl_USERSPEC): Likewise.
112627         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
112628         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112629         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
112631 2003-05-28  Paul Eggert  <eggert@twinsun.com>
112633         Assume the headers required for C89 freestanding compilers.
112634         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
112635         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
112636         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
112637         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
112638         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
112639         define, since <limits.h> is guaranteed to do that.
112640         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
112641         * lib/exclude.c: Include <stdbool.h> unconditionally.
112642         * lib/tempname.c: Include <stddef.h> unconditionally.
112643         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
112644         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
112645         <stddef.h> does that.
112646         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
112647         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
112648         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
112649         needed.
112650         * lib/xstrtol.c: Likewise.
112651         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
112652         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
112654         * lib/addext.c (addext): Use assignment rather than cast, to avoid
112655         warnings on some platforms.
112657         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
112658         arbitrarily.
112660 2003-05-26  Jim Meyering  <jim@meyering.net>
112662         Merge in a change from coreutils:
112663         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
112664         that is guaranteed to be `no'.  Use `no_such_member' to indicate
112665         that condition, rather than `-1' which is slightly misleading.
112666         Change the name of the cache variable to have the gl_ prefix.
112667         Prompted by a patch from Richard Dawe for DJGPP.
112669 2003-05-24  Karl Berry  <karl@gnu.org>
112671         * config/config.guess: update from prep.
112673 2003-05-22  Karl Berry  <karl@gnu.org>
112675         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
112677 2003-05-20  Karl Berry  <karl@gnu.org>
112679         * config/config.guess: update from prep.
112681 2003-05-18  Karl Berry  <karl@gnu.org>
112683         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
112684         might actually be set by the user.
112686         * config/depcomp, install-sh, mdate-sh: update from automake.
112688 2003-05-17  Bruno Haible  <bruno@clisp.org>
112690         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
112691         invalid expansion for AC_EGREP_CPP.
112692         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
112693         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
112694         Suggested by Akim Demaille <akim@epita.fr> in
112695         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
112697 2003-05-12  Jim Meyering  <jim@meyering.net>
112699         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
112700         the space-padded-by-default conversion specifiers, %e, %k, %l.
112702 2003-05-12  Bruno Haible  <bruno@clisp.org>
112704         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
112705         the string is longer than 4 KB.
112707 2003-05-11  Karl Berry  <karl@gnu.org>
112709         * config/config.{guess,sub}: update from prep.
112711 2003-05-09  Bruno Haible  <bruno@clisp.org>
112713         * modules/error: Add m4/strerror_r.m4 to file list.
112715 2003-05-03  Bruno Haible  <bruno@clisp.org>
112717         Upgrade to Unicode-4.0.
112718         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
112719         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
112720         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
112721         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
112722         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
112723         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
112724         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
112725         Change width of U+E0100..U+E01EF from 1 to 0.
112727 2003-04-25  Jim Meyering  <jim@meyering.net>
112729         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
112730         of type size_t, not int.
112732 2003-04-25  Bruno Haible  <bruno@clisp.org>
112734         * lib/copy-file.c: Include <stddef.h>, for size_t.
112736 2003-04-21  Paul Eggert  <eggert@twinsun.com>
112738         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
112739         code which expansion is under static control.  Patch imported from
112740         Akim Demaille's patch to Bison; see
112741         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
112743 2003-04-14  Bruno Haible  <bruno@clisp.org>
112745         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
112747 2003-04-11  Jim Meyering  <jim@meyering.net>
112749         Merge changes from Coreutils.
112751         2003-03-22  Jim Meyering  <jim@meyering.net>
112753         * lib/strftime.c (widen): Cast alloca return value to proper type.
112755         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
112757         From GNU libc.
112758         * lib/strftime.c (my_strftime): Handle very large width
112759         specifications for numeric values correctly.  Improve checks for
112760         overflow.
112762         2003-01-19  Jim Meyering  <jim@meyering.net>
112764         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
112765         definitions.
112766         (nl_get_alt_digit) [! defined my_strftime]: Define.
112767         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
112768         _nl_get_alt_digit and _nl_get_walt_digit.
112770         * lib/strftime.c (my_strftime): Merge in locale-related changes from
112771         libc. These changes have no effect outside of _LIBC.
112773 2003-04-10  Bruno Haible  <bruno@clisp.org>
112775         * modules/findprog: New file.
112776         * MODULES.html.sh (func_all_modules): Add it.
112778 2003-04-10  Bruno Haible  <bruno@clisp.org>
112780         * m4/findprog.m4: New file.
112781         * m4/eaccess.m4: New file.
112783 2003-04-10  Bruno Haible  <bruno@clisp.org>
112785         * lib/findprog.h: New file, from GNU gettext.
112786         * lib/findprog.c: New file, from GNU gettext.
112788 2003-04-05  Jim Meyering  <jim@meyering.net>
112790         Merge changes from Coreutils.
112792         * lib/exclude.h (PARAMS): Remove definition and uses.
112793         * lib/exclude.c: Remove uses of `PARAMS'.
112795         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
112796         Add test-cases for DOS filenames. Declare program_name.
112797         (main): Set up program_name.  Patch by Rich Dawe.
112799         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
112800         error from mntctl.
112801         Use mntctl's return value to drive the entry-processing loop, since
112802         we can't rely on the value of the vmt_length member in the last
112803         entry.  On some systems doing so could result in exhausting
112804         virtual memory.  Based in part on a patch from Mike Jetzer.
112806 2003-04-04  Bruno Haible  <bruno@clisp.org>
112808         * modules/linebreak: New file.
112809         * MODULES.html.sh (func_all_modules): Add it.
112811 2003-04-04  Bruno Haible  <bruno@clisp.org>
112813         * m4/linebreak.m4: New file.
112815 2003-04-04  Bruno Haible  <bruno@clisp.org>
112817         * lib/linebreak.h: New file, from GNU gettext.
112818         * lib/linebreak.c: New file, from GNU gettext with slight
112819         modifications.
112820         * lib/lbrkprop.h: New file, from GNU gettext.
112822 2003-04-03  Bruno Haible  <bruno@clisp.org>
112824         * modules/utf8-ucs4: New file.
112825         * modules/utf16-ucs4: New file.
112826         * modules/ucs4-utf8: New file.
112827         * modules/ucs4-utf16: New file.
112828         * MODULES.html.sh (func_all_modules): Add them.
112830 2003-04-03  Bruno Haible  <bruno@clisp.org>
112832         * m4/utf-ucs4.m4: New file.
112833         * m4/ucs4-utf.m4: New file.
112835 2003-04-03  Bruno Haible  <bruno@clisp.org>
112837         * lib/utf8-ucs4.h: New file, from GNU gettext.
112838         * lib/utf16-ucs4.h: New file, from GNU gettext.
112839         * lib/ucs4-utf8.h: New file, from GNU gettext.
112840         * lib/ucs4-utf16.h: New file, from GNU gettext.
112842 2003-04-02  Bruno Haible  <bruno@clisp.org>
112844         * modules/binary-io: New file.
112845         * MODULES.html.sh (func_all_modules): Add it.
112847 2003-04-02  Bruno Haible  <bruno@clisp.org>
112849         * lib/binary-io.h: New file, from GNU gettext.
112851 2003-04-01  Bruno Haible  <bruno@clisp.org>
112853         * modules/pathname: New file.
112854         * MODULES.html.sh (func_all_modules): Add it.
112856 2003-04-01  Bruno Haible  <bruno@clisp.org>
112858         * lib/pathname.h: New file, from GNU gettext.
112859         * lib/concatpath.c: New file, from GNU gettext.
112861 2003-03-30  Bruno Haible  <bruno@clisp.org>
112863         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
112865 2003-03-30  Bruno Haible  <bruno@clisp.org>
112867         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
112868         function chown() doesn't exist.
112870 2003-03-28  Bruno Haible  <bruno@clisp.org>
112872         * modules/copy-file: New file.
112873         * MODULES.html.sh (func_all_modules): Add it.
112875 2003-03-28  Bruno Haible  <bruno@clisp.org>
112877         * m4/copy-file.m4: New file.
112879 2003-03-28  Bruno Haible  <bruno@clisp.org>
112881         * lib/copy-file.h: New file, from GNU gettext.
112882         * lib/copy-file.c: New file, from GNU gettext.
112884 2003-03-18  Jim Meyering  <jim@meyering.net>
112886         * lib/quote.c (quote_n): Fix typo in comment.
112888 2003-03-18  Bruno Haible  <bruno@clisp.org>
112890         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
112891         checking.
112892         * m4/onceonly_2_57.m4: Likewise.
112894 2003-03-17  Bruno Haible  <bruno@clisp.org>
112896         * m4/onceonly.m4: Require autoconf 2.54 or newer.
112897         (m4_quote): Remove macro.
112898         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
112900 2003-03-14  Jim Meyering  <jim@meyering.net>
112902         Merge changes from Coreutils.
112903         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
112904         to be const, in order to avoid warnings.
112905         (obstack_room): Likewise.
112906         (obstack_empty_p): Likewise.
112908 2003-03-14  Bruno Haible  <bruno@clisp.org>
112910         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
112911         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
112913 2003-03-13  Paul Eggert  <eggert@twinsun.com>
112915         Merge changes from Bison.
112916         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
112917         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
112918         when compiling Bison 1.875's `bitset bset = obstack_alloc
112919         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
112920         * lib/hash.c: Include <stdbool.h> unconditionally.
112922 2003-03-13  Paul Eggert  <eggert@twinsun.com>
112924         * m4/onceonly.m4 (m4_quote): New macro.
112925         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
112926         Quote AC_FOREACH variable-expansions properly.
112928 2003-03-13  Paul Eggert  <eggert@twinsun.com>
112930         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
112932 2003-03-09  Paul Eggert  <eggert@twinsun.com>
112934         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
112935         Reported by Bruce Becker; see:
112936         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
112938 2003-03-03  Paul Eggert  <eggert@twinsun.com>
112939             Bruno Haible  <bruno@clisp.org>
112941         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
112942         Reported by John Hughes, see
112943         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
112945 2003-02-20  Bruno Haible  <bruno@clisp.org>
112947         * MODULES.html.sh (func_all_modules): Add poll.
112949 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
112951         * modules/poll: New file.
112953 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
112955         * lib/poll_.h: New file.
112956         * lib/poll.c: New file.
112958 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
112960         * m4/poll.m4: New file.
112962 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
112964         * modules/mathl: New file.
112966 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
112968         * lib/mathl.h: New file.
112969         * lib/acosl.c: New file.
112970         * lib/asinl.c: New file.
112971         * lib/atanl.c: New file.
112972         * lib/ceill.c: New file.
112973         * lib/cosl.c: New file.
112974         * lib/expl.c: New file.
112975         * lib/floorl.c: New file.
112976         * lib/frexpl.c: New file.
112977         * lib/ldexpl.c: New file.
112978         * lib/logl.c: New file.
112979         * lib/sincosl.c: New file.
112980         * lib/sinl.c: New file.
112981         * lib/sqrtl.c: New file.
112982         * lib/tanl.c: New file.
112983         * lib/trigl.c: New file.
112984         * lib/trigl.h: New file.
112986 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
112988         * m4/mathl.m4: New file.
112990 2003-02-18  Bruno Haible  <bruno@clisp.org>
112992         * MODULES.html.sh (func_all_modules): Add mathl.
112994 2003-02-17  Bruno Haible  <bruno@clisp.org>
112996         * modules/mkdtemp: New module.
112997         * MODULES.html.sh (func_all_modules): Add it.
112999 2003-02-17  Bruno Haible  <bruno@clisp.org>
113001         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
113003 2003-02-17  Bruno Haible  <bruno@clisp.org>
113005         * lib/mkdtemp.h: New file, from GNU gettext.
113006         * lib/mkdtemp.c: New file, from GNU gettext.
113008 2003-02-02  Jim Meyering  <jim@meyering.net>
113010         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
113011         e.g. glibc-2.2.93.
113013 2003-01-31  Bruno Haible  <bruno@clisp.org>
113015         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
113016         'rpl_rename'.
113017         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
113018         'rpl_strnlen'.
113019         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
113020         'rpl_strtod'.
113021         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
113022         'rpl_utime'.
113024 2003-01-31  Bruno Haible  <bruno@clisp.org>
113026         * lib/rename.c: #undef rename before defining rpl_rename.
113027         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
113029 2003-01-30  Bruno Haible  <bruno@clisp.org>
113031         * modules/vasnprintf, modules/vasprintf: New modules.
113032         * MODULES.html.sh (func_all_modules): Add them.
113034 2003-01-30  Bruno Haible  <bruno@clisp.org>
113036         * m4/signed.m4: New file, from GNU gettext.
113037         * m4/longdouble.m4: New file, from GNU gettext.
113038         * m4/wchar_t.m4: New file, from GNU gettext.
113039         * m4/wint_t.m4: New file, from GNU gettext.
113040         * m4/vasnprintf.m4: New file.
113041         * m4/vasprintf.m4: New file.
113043 2003-01-30  Bruno Haible  <bruno@clisp.org>
113045         * lib/printf-args.h: New file, from GNU gettext.
113046         * lib/printf-args.c: New file, from GNU gettext.
113047         * lib/printf-parse.h: New file, from GNU gettext.
113048         * lib/printf-parse.c: New file, from GNU gettext.
113049         * lib/vasnprintf.h: New file, from GNU gettext.
113050         * lib/vasnprintf.c: New file, from GNU gettext.
113051         * lib/asnprintf.c: New file, from GNU gettext.
113052         * lib/vasprintf.h: New file, from GNU gettext with modifications.
113053         * lib/vasprintf.c: New file, from GNU gettext.
113054         * lib/asprintf.c: New file, from GNU gettext.
113056 2003-01-29  Bruno Haible  <bruno@clisp.org>
113058         * modules/stpncpy: New module.
113059         * MODULES.html.sh (func_all_modules): Add it.
113061 2003-01-29  Bruno Haible  <bruno@clisp.org>
113063         * m4/stpncpy.m4: New file.
113065 2003-01-29  Bruno Haible  <bruno@clisp.org>
113067         * lib/stpncpy.h: New file, from GNU gettext with modifications.
113068         * lib/stpncpy.c: New file, from GNU gettext with modifications.
113070 2003-01-28  Bruno Haible  <bruno@clisp.org>
113072         * modules/c-ctype: New module.
113073         * MODULES.html.sh (func_all_modules): Add it.
113075 2003-01-28  Bruno Haible  <bruno@clisp.org>
113077         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
113078         Paul Eggert.
113079         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
113080         Paul Eggert.
113082 2003-01-27  Bruno Haible  <bruno@clisp.org>
113084         * modules/xsetenv: New module.
113085         * MODULES.html.sh (func_all_modules): Add it.
113087 2003-01-27  Bruno Haible  <bruno@clisp.org>
113089         * lib/xsetenv.h: New file, from GNU gettext.
113090         * lib/xsetenv.c: New file, from GNU gettext.
113092 2003-01-23  Jim Meyering  <jim@meyering.net>
113094         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
113095         from working on systems without dirfd (at least Irix and OSF1/Tru64).
113097 2003-01-23  Bruno Haible  <bruno@clisp.org>
113099         * modules/minmax: New module.
113100         * MODULES.html.sh (func_all_modules): Add it.
113102 2003-01-23  Bruno Haible  <bruno@clisp.org>
113104         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
113105         Eggert.
113107 2003-01-22  Bruno Haible  <bruno@clisp.org>
113109         * modules/exit: New module.
113110         * MODULES.html.sh (func_all_modules): Add it.
113112 2003-01-22  Bruno Haible  <bruno@clisp.org>
113114         * lib/exit.h: New file, from GNU gettext.
113116 2003-01-19  Bruno Haible  <bruno@clisp.org>
113118         * gnulib-tool: Recognize option --extract-maintainer.
113119         (func_get_maintainer): New function.
113120         * modules/*: Add Maintainer entry.
113122 2003-01-16  Jim Meyering  <jim@meyering.net>
113124         * m4/regex.m4: The `regex' struct is both input and output.
113125         Initialize it before each use.  Patch by Tim Waugh.
113127 2003-01-16  Bruno Haible  <bruno@clisp.org>
113129         * MODULES.html.sh: Add a table of contents. Add the module name as
113130         leftmost column. Add hyperlinks.
113132 2003-01-15  Bruno Haible  <bruno@clisp.org>
113134         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
113136 2003-01-15  Bruno Haible  <bruno@clisp.org>
113138         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
113139         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
113140         suffix.
113142 2003-01-15  Bruno Haible  <bruno@clisp.org>
113144         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
113146 2003-01-15  Bruno Haible  <bruno@clisp.org>
113148         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
113149         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
113151 2003-01-14  Jim Meyering  <jim@meyering.net>
113153         * lib/same.c (same_name): Tweak a comment.
113155 2003-01-14  Bruno Haible  <bruno@clisp.org>
113157         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
113158         when a string comparison is sufficient.
113160 2003-01-14  Bruno Haible  <bruno@clisp.org>
113162         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
113163         'unsigned int'.
113165 2003-01-14  Bruno Haible  <bruno@clisp.org>
113167         * lib/hash-pjw.c: Add comment about low quality of this function.
113169 2003-01-13  Bruno Haible  <bruno@clisp.org>
113171         * modules/stpcpy: Distribute lib/stpcpy.h.
113172         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
113174 2003-01-13  Bruno Haible  <bruno@clisp.org>
113176         * modules/*: Add a description.
113177         * modules/strpbrk: Fix Makefile.am snippet.
113178         * modules/strtoimax: Fix dependencies.
113179         * modules/strtoumax: Likewise.
113181 2003-01-13  Bruno Haible  <bruno@clisp.org>
113183         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
113184         * modules/alloca (Makefile.am): All object files depend on alloca.h.
113185         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
113187 2003-01-13  Bruno Haible  <bruno@clisp.org>
113189         * gnulib-tool (func_create_testdir): Store config/* files in the main
113190         directory.
113191         * config.rpath: Move to ...
113192         * config/config.rpath: ... here.
113193         * modules/gettext: Contains config/config.rpath, not config.rpath.
113194         * modules/iconv: Likewise.
113196 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113198         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113199         to avoid collisions with libcurses and libreadline.
113201         * m4/getstr.m4: Remove.
113202         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
113204 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113206         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113207         to avoid collisions with libcurses and libreadline.
113209         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
113210         * lib/getstr.h, getstr.c: Remove.
113211         * lib/getline.c: Include "getline.h", to check interface.
113212         Move body of old getstr.c here: this defines MIN_CHUNK and
113213         declares getdelim2, which is renamed from getstr.
113214         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
113216         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
113217         All uses changed.
113218         * lib/linebuffer.h: Likewise.
113219         (readline): Remove backward-compatibility macro.
113221 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113223         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113224         to avoid collisions with libcurses and libreadline.
113225         * getstr: Remove.
113226         * MODULES.html.sh: Remove getstr.
113227         * modules/getline: Depend on unlocked-io, not getstr.
113229 2003-01-12  Jim Meyering  <jim@meyering.net>
113231         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
113233 2003-01-10  Bruno Haible  <bruno@clisp.org>
113235         * modules/alloca: Change Makefile.am requirements. Simplify Include
113236         requirements. Add lib/alloca_.h to file list.
113238 2003-01-10  Bruno Haible  <bruno@clisp.org>
113240         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
113242 2003-01-10  Bruno Haible  <bruno@clisp.org>
113244         * lib/alloca_.h: New file.
113245         * lib/getdate.y: Unconditionally include alloca.h.
113246         * lib/makepath.c: Likewise.
113247         * lib/setenv.c: Likewise.
113248         * lib/userspec.c: Likewise.
113250 2003-01-09  Karl Berry  <karl@gnu.org>
113252         * MODULES.html.sh: include `dirname $0` in PATH, to find
113253         gnulib-tool.
113255 2003-01-09  Bruno Haible  <bruno@clisp.org>
113257         * modules/stdbool: Change configure.ac, Makefile.am requirements.
113258         Simplify Include requirements. Add lib/stdbool.h.in to file list.
113260 2003-01-09  Bruno Haible  <bruno@clisp.org>
113262         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
113264 2003-01-09  Bruno Haible  <bruno@clisp.org>
113266         * lib/stdbool.h.in: New file.
113268 2003-01-09  Bruno Haible  <bruno@clisp.org>
113270         * gnulib-tool (func_all_modules): Ignore files ending in ~.
113271         * MODULES.html.sh: Likewise.
113273 2003-01-08  Jim Meyering  <jim@meyering.net>
113275         * lib/full-write.c: Undefine and define-away `const' after inclusion
113276         of errno.h, not before.  Suggestion from Bruno Haible.
113278 2003-01-08  Bruno Haible  <bruno@clisp.org>
113280         * modules/full-read: Depend on full-write.
113282 2003-01-08  Bruno Haible  <bruno@clisp.org>
113284         * lib/safe-read.c: Include specification header first, to ensure its
113285         selfcontainedness.
113286         * lib/full-write.c: Likewise.
113288 2003-01-07  Jim Meyering  <jim@meyering.net>
113290         * lib/full-write.c: Rework so that it may serve to define full_read,
113291         too.
113292         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
113294 2003-01-07  Bruno Haible  <bruno@clisp.org>
113296         * lib/strtoimax.c: Include <stdint.h> as an alternative to
113297         <inttypes.h>.
113298         * lib/xstrtol.h: Likewise.
113299         * lib/xstrtoimax.c: Likewise.
113300         * lib/xstrtoumax.c: Likewise.
113301         * lib/human.h: Likewise.
113303         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
113304         on systems that have <inttypes.h> but not <stdint.h>.
113306 2003-01-07  Bruno Haible  <bruno@clisp.org>
113308         * MODULES.html.sh: Add copyright notice.
113309         (missed_files): Omit CVS directory entries.
113310         (func_module): Make it work with sed-3.02.
113311         * MODULES.txt: Remove file.
113313 2003-01-06  Jim Meyering  <jim@meyering.net>
113315         * lib/version-etc.c: Update year in translatable copyright string.
113317 2003-01-03  Karl Berry  <karl@gnu.org>
113319         * config/config.{guess,sub}: update from prep.
113321 2003-01-02  Karl Berry  <karl@gnu.org>
113323         * doc/COPYING.DOC: belatedly updated to 1.2.
113325 2003-01-01  Karl Berry  <karl@gnu.org>
113327         * gnulib-tool (func_verify_module): report module name $module in
113328         error message, not $1.
113329         * gnulib-tool (create-testdir): don't complain if destdir couldn't
113330         be created, only if it doesn't exist.
113331         * gnulib-tool (last_checkin_date): don't expand the $Date here.
113333 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113335         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
113337 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113339         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
113340         memcmp if strcoll doesn't work.
113342 2002-12-31  Bruno Haible  <bruno@clisp.org>
113344         * lib/utime.c (utime_null): No need to call ftruncate if the file was
113345         nonempty.
113347 2002-12-31  Bruno Haible  <bruno@clisp.org>
113349         * lib/memcoll.c (STRCOLL): New macro.
113350         (memcoll): Use it.
113352 2002-12-31  Bruno Haible  <bruno@clisp.org>
113354         * lib/localcharset.h: New file.
113355         * lib/localcharset.c: Include it.
113356         * lib/unicodeio.c: Likewise.
113358 2002-12-31  Bruno Haible  <bruno@clisp.org>
113360         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
113361         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
113363 2002-12-31  Bruno Haible  <bruno@clisp.org>
113365         * lib/getline.h: Include <stddef.h>, for size_t.
113367         * lib/unicodeio.h: Include <stddef.h>, for size_t.
113368         * lib/unicodeio.c: Don't include <stddef.h>.
113370 2002-12-31  Bruno Haible  <bruno@clisp.org>
113372         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
113373         HAVE_TM_ZONE.
113375 2002-12-24  Karl Berry  <karl@gnu.org>
113377         * config/config.guess: update from prep.
113379 2002-12-24  Bruno Haible  <bruno@clisp.org>
113381         General infrasructure.
113382         * m4/README: Rewritten.
113383         * m4/onceonly.m4: New file.
113384         * m4/onceonly_2_57.m4: New file.
113386         Module atexit.
113387         * m4/atexit.m4: New file.
113389         Module strtod.
113390         * m4/strtod.m4: New file.
113392         Module strtol.
113393         * m4/strtol.m4: New file.
113395         Module strtoul.
113396         * m4/strtoul.m4: New file.
113398         Module memchr.
113399         * m4/memchr.m4: New file.
113401         Module memcmp.
113402         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
113403         (jm_FUNC_MEMCMP): Invoke it.
113405         Module memcpy.
113406         * m4/memcpy.m4: New file.
113408         Module memmove.
113409         * m4/memmove.m4: New file.
113411         Module memset.
113412         * m4/memset.m4: New file.
113414         Module strcspn.
113415         * m4/strcspn.m4: New file.
113417         Module strpbrk.
113418         * m4/strpbrk.m4: New file.
113420         Module strstr.
113421         * m4/strstr.m4: New file.
113423         Module strerror.
113424         * m4/strerror.m4: New file.
113426         Module mktime.
113427         * m4/mktime.m4: Renamed from jm-mktime.m4.
113428         (gl_PREREQ_MKTIME): New macro.
113429         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
113431         Module malloc.
113432         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
113433         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
113434         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
113436         Module realloc.
113437         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
113438         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
113439         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
113441         Module strftime.
113442         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
113443         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
113444         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
113445         gl_TM_GMTOFF.
113446         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
113448         Module xalloc.
113449         * m4/xalloc.m4: New file.
113451         Module alloca.
113452         * m4/alloca.m4: New file.
113454         Module putenv.
113455         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
113456         (jm_FUNC_PUTENV): Invoke it.
113458         Module setenv.
113459         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
113460         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
113461         when invoked twice.
113462         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
113463         gt_FUNC_SETENV.
113465         Module memrchr.
113466         * m4/memrchr.m4: New file.
113468         Module stpcpy.
113469         * m4/stpcpy.m4: New file.
113471         Module strcase.
113472         * m4/strcase.m4: New file.
113474         Module strdup.
113475         * m4/strdup.m4: New file.
113477         Module strnlen.
113478         * m4/strnlen.m4: New file.
113480         Module strndup.
113481         * m4/strndup.m4: New file.
113483         Module xstrtod.
113484         * m4/xstrtod.m4: New file.
113486         Module xstrtol.
113487         * m4/xstrtol.m4: New file.
113489         Module getdate.
113490         * m4/getdate.m4: New file.
113492         Module unlocked-io.
113493         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
113494         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
113495         * m4/jm-glibc-io.m4n: Remove file.
113497         Module long-options.
113498         * m4/long-options.m4: New file.
113500         Module md5.
113501         * m4/md5.m4: New file.
113503         Module sha.
113504         * m4/sha.m4: New file.
113506         Module getstr.
113507         * m4/getstr.m4: New file.
113509         Module getline.
113510         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
113511         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
113512         <sys/types.h>, for size_t. Use the function name gnu_getline, not
113513         simply getline. Infoke gl_PREREQ_GETLINE.
113515         Module obstack.
113516         * m4/obstack.m4: New file.
113518         Module hash.
113519         * m4/hash.m4: New file.
113521         Module readtokens.
113522         * m4/readtokens.m4: New file.
113524         Module strverscmp.
113525         * m4/strverscmp.m4: New file.
113527         Module stdbool.
113528         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
113529         OSF/1.
113531         Module strtoll.
113532         * m4/strtoll.m4: New file.
113534         Module strtoull.
113535         * m4/strtoull.m4: New file.
113537         Module strtoimax.
113538         * m4/strtoimax.m4: New file.
113540         Module strtoumax.
113541         * m4/strtoumax.m4: New file.
113543         Module xstrtoimax.
113544         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
113545         jm_AC_PREREQ_XSTRTOIMAX.
113546         Moved the strtol prerequisites to strtol.m4.
113547         Moved the strtoll prerequisites to strtoll.m4.
113548         Moved the strtoimax prerequisites to strtoimax.m4.
113550         Module xstrtoumax.
113551         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
113552         jm_AC_PREREQ_XSTRTOUMAX.
113553         Moved the strtoul prerequisites to strtoul.m4.
113554         Moved the strtoull prerequisites to strtoull.m4.
113555         Moved the strtoumax prerequisites to strtoumax.m4.
113557         Module chown.
113558         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
113559         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
113561         Module dup2.
113562         * m4/dup2.m4: New file.
113564         Module ftruncate.
113565         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
113566         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
113568         Module getgroups.
113569         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
113570         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
113572         Module gettimeofday.
113573         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
113574         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
113575         gl_PREREQ_GETTIMEOFDAY.
113577         Module mkdir.
113578         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
113579         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
113581         Module mkstemp.
113582         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
113583         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
113584         jm_AC_TYPE_UINTMAX_T.
113585         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
113587         Module stat.
113588         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
113589         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
113591         Module lstat.
113592         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
113593         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
113595         Module timespec.
113596         * m4/timespec.m4 (gl_TIMESPEC): New macro.
113597         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
113598         * m4/st_mtim.m4: Indentation.
113600         Module nanosleep.
113601         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
113602         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
113603         gl_PREREQ_NANOSLEEP.
113605         Module regex.
113606         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
113607         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
113608         (gl_REGEX): New macro.
113610         Module rename.
113611         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
113612         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
113614         Module rmdir.
113615         * m4/rmdir.m4: New file.
113617         Module utime.
113618         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
113619         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
113620         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
113622         Module dirname.
113623         * m4/dirname.m4: New file.
113625         Module getopt.
113626         * m4/getopt.m4: New file.
113628         Module unistd-safer.
113629         * m4/unistd-safer.m4: New file.
113631         Module fnmatch.
113632         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
113633         declaration.
113634         (gl_PREREQ_FNMATCH_EXTRA): New macro.
113635         (gl_FUNC_FNMATCH_POSIX): New macro.
113636         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
113637         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
113638         simply fnmatch.
113640         Module exclude.
113641         * m4/exclude.m4: New file.
113643         Module human.
113644         * m4/human.m4: New file.
113646         Module acl.
113647         * m4/acl.m4: Nop.
113649         Module backupfile.
113650         * m4/backupfile.m4: New file.
113651         * m4/d-ino.m4: Indentation.
113653         Module fsusage.
113654         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
113655         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
113656         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
113658         Module dirfd.
113659         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
113660         requirements.
113662         Module euidaccess.
113663         * m4/euidaccess.m4: New file.
113665         Module file-type.
113666         * m4/file-type.m4: New file.
113668         Module fileblocks.
113669         * m4/fileblocks.m4: New file.
113671         Module filemode.
113672         * m4/filemode.m4: New file.
113674         Module isdir.
113675         * m4/isdir.m4: New file.
113677         Module lchown.
113678         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
113679         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
113681         Module makepath.
113682         * m4/makepath.m4: New file.
113684         Module modechange.
113685         * m4/modechange.m4: New file.
113687         Module mountlist.
113688         * m4/mountlist.m4: New file.
113689         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
113690         Indentation.
113692         Module path-concat.
113693         * m4/path-concat.m4: New file.
113695         Module pathmax.
113696         * m4/pathmax.m4: New file.
113698         Module same.
113699         * m4/same.m4: New file.
113701         Module save-cwd.
113702         * m4/save-cwd.m4: New file.
113704         Module savedir.
113705         * m4/savedir.m4: New file.
113707         Module xgetcwd.
113708         * m4/xgetcwd.m4: New file.
113709         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
113711         Module xreadlink.
113712         * m4/xreadlink.m4: New file.
113714         Module safe-read.
113715         * m4/safe-read.m4: New file.
113717         Module safe-write.
113718         * m4/safe-write.m4: New file.
113720         Module closeout.
113721         * m4/closeout.m4: New file.
113723         Module stdio-safer.
113724         * m4/stdio-safer.m4: New file.
113726         Module getpass.
113727         * m4/getpass.m4: New file.
113729         Module getugroups.
113730         * m4/getugroups.m4: New file.
113732         Module group-member.
113733         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
113734         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
113736         Module idcache.
113737         * m4/idcache.m4: New file.
113739         Module userspec.
113740         * m4/userspec.m4: New file.
113742         Module gettime.
113743         * m4/clock_time.m4: New file.
113744         * m4/gettime.m4: New file.
113746         Module settime.
113747         * m4/settime.m4: New file.
113749         Module posixtm.
113750         * m4/posixtm.m4: New file.
113752         Module gethostname.
113753         * m4/gethostname.m4: New file.
113755         Module canon-host.
113756         * m4/canon-host.m4: New file.
113758         Module gettext.
113759         * m4/codeset.m4: New file, from gettext-0.11.5.
113760         * m4/gettext.m4: New file, from gettext-0.11.5.
113761         * m4/glibc21.m4: New file, from gettext-0.11.5.
113762         * m4/iconv.m4: New file, from gettext-0.11.5.
113763         * m4/intdiv0.m4: New file, from gettext-0.11.5.
113764         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
113765         * m4/inttypes.m4: New file, from gettext-0.11.5.
113766         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
113767         * m4/isc-posix.m4: New file, from gettext-0.11.5.
113768         * m4/lcmessage.m4: New file, from gettext-0.11.5.
113769         * m4/lib-ld.m4: New file, from gettext-0.11.5.
113770         * m4/lib-link.m4: New file, from gettext-0.11.5.
113771         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
113772         * m4/progtest.m4: New file, from gettext-0.11.5.
113773         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
113774         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
113775         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
113777         Module localcharset.
113778         * m4/localcharset.m4: New file.
113780         Module hard-locale.
113781         * m4/hard-locale.m4: New file.
113783         Module mbswidth.
113784         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
113785         onceonly macros.
113786         * m4/mbrtowc.m4: Add comment.
113788         Module memcasecmp.
113789         * m4/memcasecmp.m4: New file.
113791         Module memcoll.
113792         * m4/memcoll.m4: New file.
113794         Module unicodeio.
113795         * m4/unicodeio.m4: New file.
113797         Module rpmatch.
113798         * m4/rpmatch.m4: New file.
113800         Module yesno.
113801         * m4/yesno.m4: New file.
113803         Module exitfail.
113804         * m4/exitfail.m4: New file.
113806         Module c-stack.
113807         * m4/c-stack.m4 (gl_C_STACK): New macro.
113808         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
113810         Module error.
113811         * m4/error.m4 (gl_ERROR): New macro.
113812         (jm_PREREQ_ERROR): Use onceonly macros.
113814         Module fatal.
113815         * m4/fatal.m4: New file.
113817         Module getloadavg.
113818         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
113819         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
113821         Module getpagesize.
113822         * m4/getpagesize.m4: New file.
113824         Module getusershell.
113825         * m4/getusershell.m4: New file.
113827         Module physmem.
113828         * m4/physmem.m4: New file.
113830         Module posixver.
113831         * m4/posixver.m4: New file.
113833         Module quotearg.
113834         * m4/quotearg.m4: New file.
113836         Module quote.
113837         * m4/quote.m4: New file.
113839         Module readutmp.
113840         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
113842         Module sig2str.
113843         * m4/sig2str.m4: New file.
113845         Other.
113846         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
113847         ulonglong.m4.
113848         * m4/intmax_t.m4: New file.
113849         * m4/d-type.m4: Indentation.
113850         * m4/jm-macros.m4: Update.
113851         * m4/prereq.m4 (jm_PREREQ): Update.
113852         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
113853         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
113854         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
113855         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
113856         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
113857         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
113858         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
113859         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
113860         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
113861         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
113862         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
113863         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
113864         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
113865         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
113866         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
113867         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
113868         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
113869         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
113870         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
113872 2002-12-24  Bruno Haible  <bruno@clisp.org>
113874         * MODULES.txt: Update according to m4/ changes.
113876         Module gettext.
113877         * config.rpath: New file, from gettext-0.11.5.
113879         * modules/*: New module descriptions.
113880         * gnulib-tool: New file.
113881         * MODULES.html.sh: New file.
113883 2002-12-21  Karl Berry  <karl@gnu.org>
113885         * doc/fdl.texi: update to version 1.2.
113887 2002-12-19  Karl Berry  <karl@gnu.org>
113889         * config/config.guess: update from prep.
113891 2002-12-18  Bruno Haible  <bruno@clisp.org>
113893         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
113894         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
113896 2002-12-17  Bruno Haible  <bruno@clisp.org>
113898         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
113899         stdlib.h, string.h.
113901 2002-12-17  Bruno Haible  <bruno@clisp.org>
113903         * lib/canon-host.c (strdup): Remove unused declaration.
113905         * lib/fsusage.c: Include full_read.h.
113906         (get_fs_usage): Use full_read instead of safe_read.
113908         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
113910 2002-12-12  Karl Berry  <karl@gnu.org>
113912         * config/config.guess: update from prep.
113914 2002-12-11  Bruno Haible  <bruno@clisp.org>
113916         * m4/setenv.m4: New file, from gettext-0.11.5.
113918 2002-12-11  Bruno Haible  <bruno@clisp.org>
113920         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
113921         not unsetenv().
113922         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
113923         modifications:
113925         2002-12-11  Bruno Haible  <bruno@clisp.org>
113927                 * setenv.c (alloca): Fall back to malloc.
113928                 (freea): New macro.
113929                 (setenv): Use freea() to free memory allocated with alloca().
113931         2002-11-13  Bruno Haible  <bruno@clisp.org>
113933                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
113934                 function declarations.
113935                 * unsetenv.c (unsetenv): Likewise.
113937         2002-03-04  Bruno Haible  <bruno@clisp.org>
113939                 Portability to AIX 4.3.3.
113940                 * unsetenv.c: New file, extracted from setenv.c.
113941                 * setenv.c: Move the unsetenv() function to unsetenv.c.
113943         2001-12-20  Bruno Haible  <bruno@clisp.org>
113945                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
113946                 use malloc instead. For SunOS 4.
113948         2001-12-11  Bruno Haible  <bruno@clisp.org>
113950                 * setenv.c: Declare alloca.
113951                 (compar_fn_t): New typedef.
113952                 (KNOWN_VALUE, STORE_VALUE): Use it.
113954         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
113955         setenv.h.
113957 2002-12-10  Paul Eggert  <eggert@twinsun.com>
113959         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
113960         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
113961         Choose values that are less likely to collide with system fnmatch
113962         options.
113963         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
113964         defined (e.g., a pure POSIX system).
113965         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
113966         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
113968 2002-12-06  Paul Eggert  <eggert@twinsun.com>
113970         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
113971         a pain in practice to deal with generated m4 files.  This change
113972         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
113974         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
113975         and jm-glibc-io.m4, as they are no longer a special case.
113976         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
113977         kludge and the auto-generation stuff.  Check only whether the
113978         functions are declared, not whether they exist, since older hosts
113979         that don't declare the functions can't use the optimization anyway.
113981 2002-12-06  Jim Meyering  <jim@meyering.net>
113983         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
113985         Merge in changes from libc's misc/error.c, in preparation
113986         for the merge of gnulib's changes back into libc.
113988         * lib/error.c (_): Define only if not already defined.
113989         Move definition to follow all #include directives.
113990         Include unlocked-io.h only if !_LIBC.
113991         [_LIBC]: Include <libio/libioP.h>.
113992         [USE_IN_LIBIO]: Include <libio/iolibio.h>
113993         (fflush): Tweak definition to use INTUSE.
113994         (putc): Define.
113996 2002-12-05  Paul Eggert  <eggert@twinsun.com>
113998         * lib/alloca.c [defined emacs]: Include "lisp.h".
113999         (xalloc_die) [defined emacs]: New macro.
114000         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
114001         [! defined emacs]: Include <xalloc.h>.
114002         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
114003         (pointer): Typedef to POINTER_TYPE *.
114004         (malloc): Remove decl; we now always use xmalloc.
114005         (alloca): Use old-style definition, since Emacs needs this.
114006         Check for arithmetic overflow when computing combined size.
114008 2002-12-04  Paul Eggert  <eggert@twinsun.com>
114010         Do not generate unlocked-io.h automatically, since it's easier to
114011         maintain it by hand.
114013         * lib/unlocked-io.h: New file, from GNU diffutils,
114014         but with proper copyright notice and attribution.
114015         * lib/gen-uio: Remove.
114016         * lib/Makefile.am: Add copyright notice.
114017         (libfetish_a_SOURCES): Add unlocked-io.h.
114018         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
114019         (DISTCLEANFILES, io_functions): Remove macros.
114020         (EXTRA_DIST): Remove gen_uio.
114021         (unlocked-io.h): Remove rule.
114023 2002-12-04  Jim Meyering  <jim@meyering.net>
114025         Reflect the fact that stat.c and lstat.c are no longer generated.
114026         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
114027         (DISTCLEANFILES): Likewise.
114028         (EXTRA_DIST): Likewise.
114029         (all_local): Don't depend on stat.c or lstat.c.
114030         (stat.c, lstat.c): Remove rules.
114031         (EXTRA_DIST): Remove xstat.in.
114033         * lib/xstat.in: Remove file.  Contents moved into stat.c.
114034         * lib/stat.c: New file.  Contents mostly from xstat.in.
114035         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
114036         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
114038         * lib/safe-read.c: Rework so that it may serve to define safe_write,
114039         too.
114040         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
114042 2002-12-03  Jim Meyering  <jim@meyering.net>
114044         * lib/safe-read.c, safe-write.c: Change variable names and comments,
114045         but not semantics, to minimize the differences between these two files.
114046         (safe_read): Change comment to mention SAFE_READ_ERROR.
114048         * lib/safe-read.c (IS_EINTR): Define.
114049         (safe_read): Use IS_EINTR in place of in-function cpp directives.
114051 2002-12-02  Jim Meyering  <jim@meyering.net>
114053         * lib/safe-read.c (EINTR): Define.
114054         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
114055         (INT_MAX): Provide fallback.
114056         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
114058         * lib/safe-read.h (SAFE_READ_ERROR): Define.
114060 2002-12-02  Bruno Haible  <bruno@clisp.org>
114062         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
114063         Define, taken from safe-read.c.
114064         (INT_MAX): Provide fallback.
114065         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
114066         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
114068         * lib/safe-read.c (EINTR): Remove definition.
114069         (safe_read): Don't use EINTR if it is absent.
114071 2002-12-01  Jim Meyering  <jim@meyering.net>
114073         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
114074         zero.
114075         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
114077 2002-11-27  Paul Eggert  <eggert@twinsun.com>
114079         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
114080         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
114081         with `if (! (value < limit)) abort ();', for readability.
114083 2002-11-26  Karl Berry  <karl@gnu.org>
114085         * lib/strdup.c: copy from libc again, with jim's ok.
114086         * lib/.cppi-disable: re-add strdup.c
114088 2002-11-25  Karl Berry  <karl@gnu.org>
114090         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
114091         instead of "strtol.c".
114093 2002-11-25  Karl Berry  <karl@gnu.org>
114095         * config/install-sh: update from automake for variable quoting, $0 in
114096         error msgs, etc.
114098         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
114099         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
114100         entry.
114102 2002-11-25  Jim Meyering  <jim@meyering.net>
114104         * lib/mktime.c: Sync from libc, now that it has the latest fix.
114106 2002-11-24  Karl Berry  <karl@gnu.org>
114108         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
114109         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
114111 2002-11-24  Jim Meyering  <jim@meyering.net>
114113         Update from coreutils:
114115         * lib/mktime.c: Merge in changes from libc.
114117         Avoid a link-time failure on some Linux systems.
114118         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
114119         (otherwise).
114120         (__mon_yday): Declare with the STATIC attribute.
114121         (__mktime_internal): Likewise.
114122         Based on a report from Greg Schafer.
114124 2002-11-23  Jim Meyering  <jim@meyering.net>
114126         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
114127         Use `unsigned', not `int', as type of index.
114129         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
114131         * lib/fsusage.c: Remove unneeded parentheses around operands of
114132         `defined'.
114134 2002-11-22  Paul Eggert  <eggert@twinsun.com>
114136         * lib/quotearg.h: Allow multiple inclusion by surrounding with
114137         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
114138         so that we can be included first.
114139         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
114140         * lib/quotearg.c: Include quotearg.h immediately after config.h.
114141         No need to include stddef.h or sys/types.h any more.
114142         Surround local include files with "", not "<>".
114143         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
114144         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
114145         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
114146         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
114147         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
114148         (ISPRINT): Remove; no longer needed now that we assume C89.
114150         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
114151         Preserve errno.
114153         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
114154         quotearg_char): Use SIZE_MAX rather than
114155         (size_t) -1 when we are talking about "infinity".
114157         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
114159 2002-11-22  Paul Eggert  <eggert@twinsun.com>
114161         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
114162         hint that one should use `if (! x) abort ();' rather than `assert
114163         (x);', and anyway it's one less thing to worry about configuring.
114164         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
114165         hash_rehash, hash_insert): Use abort rather than assert.
114167 2002-11-22  Bruno Haible  <bruno@clisp.org>
114169         * lib/safe-read.h: Assume C89. Add comments.
114170         (safe_read): Change return type to size_t.
114171         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
114172         byte counts > SSIZE_MAX correctly.
114173         * lib/safe-write.h: New file.
114174         * lib/safe-write.c: New file.
114175         * lib/full-read.h: New file.
114176         * lib/full-read.c: New file.
114177         * lib/full-write.h: Assume C89. Add comments.
114178         * lib/full-write.c: Include safe-write.h.
114179         (full_write): Rewritten to use safe_write.
114180         Suggested by Jim Meyering and Paul Eggert.
114182 2002-11-21  Jim Meyering  <jim@meyering.net>
114184         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
114186         Merge in changes from the coreutils.
114188         2002-09-25  Paul Eggert  <eggert@twinsun.com>
114189         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
114190         <stdint.h>.
114191         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
114192         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
114193         int.  Work more efficiently if X is the same width as uintmax_t.
114194         Do not compare X to -1, to avoid bogus compiler warning.
114195         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
114196         Don't assume that f_frsize and f_bsize are the same type.
114198         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
114199         warning on FreeBSD.
114201         * lib/makepath.c (make_path): Restore umask *before* creating the final
114202         component.
114203         (make_path): Minor reformatting.
114205         * lib/xmalloc.c: Adjust to work with new autoconf macros,
114206         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
114207         HAVE_MALLOC/HAVE_REALLOC.
114209         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
114210         dummy ones.  At least on GNU/Linux systems, `auto' means something
114211         else.
114212         From Michael Stone.
114214 2002-11-21  Bruno Haible  <bruno@clisp.org>
114216         Remove case insensitive option matching.
114217         * lib/argmatch.h (argcasematch): Remove declaration.
114218         (ARGCASEMATCH): Remove macro.
114219         (__xargmatch_internal): Remove case_sensitive argument.
114220         (XARGMATCH): Update.
114221         (XARGCASEMATCH): Remove macro.
114222         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
114223         case_sensitive argument.
114224         (argcasematch): Remove function.
114225         (__xargmatch_internal): Remove case_sensitive argument.
114226         (main): Use XARGMATCH instead of XARGCASEMATCH.
114228         * lib/xmalloc.c: Change compile-time error message. Add comment about
114229         required autoconf version.
114231 2002-11-20  Paul Eggert  <eggert@twinsun.com>
114233         Merge argmatch cleanups from Bison.  Assume C89.
114235         * lib/argmatch.c: Include config.h here, not in argmatch.h.
114236         Include stdlib.h, for EXIT_FAILURE.
114237         Always include <string.h>, since we assume C89.
114238         (EXIT_FAILURE): Remove pre-C89 bug workaround.
114239         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
114240         Include <stddef.h> instead, since it's all we need for size_t.
114241         (PARAMS): Remove.  All uses removed.
114242         (ARRAY_CARDINALITY): Do not bother to #undef.
114243         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
114244         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114245         Remove unnecessary parentheses.
114246         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114247         Insert necessary parentheses.
114248         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
114249         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
114251 2002-11-19  Bruno Haible  <bruno@clisp.org>
114253         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
114254         * lib/mbswidth.h: Include <stddef.h>, for size_t.
114256         * lib/mbswidth.h (PARAMS): Remove macro.
114257         (mbswidth, mbsnwidth): Use ANSI C function declarations.
114258         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
114260         * lib/gcd.h (PARAMS): Remove macro.
114261         (gcd): Use ANSI C function declarations.
114262         * lib/gcd.c (gcd): Likewise.
114264 2002-11-15  Bruno Haible  <bruno@clisp.org>
114266         * lib/strcspn.c: Include <stddef.h>.
114267         (strcspn): Use ANSI C function declaration. Change return type to
114268         size_t. Use NULL.
114269         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
114270         (strpbrk): Use NULL.
114271         * lib/strpbrk.h (PARAMS): Remove macro.
114272         (strpbrk): Use ANSI C function declaration.
114273         * lib/strstr.c: Don't include <sys/types.h>.
114274         * lib/strstr.h (PARAMS): Remove macro.
114275         (strstr): Use ANSI C function declarations.
114277 2002-11-14  Karl Berry  <karl@gnu.org>
114279         * config/mkinstalldirs: `do' on separate line, instead of
114280         `for var; do'.
114282 2002-11-06  Bruno Haible  <bruno@clisp.org>
114284         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
114285         * lib/gcd.c (gcd): Likewise.
114287 2002-11-05  Bruno Haible  <bruno@clisp.org>
114289         * lib/gcd.h: New file, from gettext-0.11.5.
114290         * lib/gcd.c: New file, from gettext-0.11.5.
114292 2002-11-05  Bruno Haible  <bruno@clisp.org>
114294         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114295         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114296         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114297         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114299         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
114300         <libintl.h>.
114301         * lib/makepath.c: Include gettext.h instead of <locale.h> and
114302         <libintl.h>.
114304         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
114305         * lib/human.c: Include gettext.h instead of <libintl.h>.
114306         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
114307         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
114308         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
114309         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
114310         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
114311         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
114312         (textdomain): Remove definition.
114313         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
114315         * lib/long-options.c: Remove include of <libintl.h> and definition of
114316         _.
114317         * lib/same.c: Remove include of <libintl.h> and definition of _.
114319 2002-11-04  Owen Taylor  <otaylor@redhat.com>
114321         * lib/config.charset: A few additions for Solaris.
114323 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114325         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
114326         * lib/localcharset.c (locale_charset): Declare as extern "C".
114328 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114330         * lib/config.charset: msdos in uk_UA uses CP1125.
114332 2002-11-04  Bruno Haible  <bruno@clisp.org>
114334         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
114335         * lib/strcase.h: New file, from GNU gettext-0.11.5.
114336         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
114337         * lib/strstr.h: New file, from GNU gettext-0.11.5.
114338         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
114340 2002-11-04  Bruno Haible  <bruno@clisp.org>
114342         * lib/localcharset.c (locale_charset): Don't return an empty string.
114344 2002-11-04  Bruno Haible  <bruno@clisp.org>
114346         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
114347         aliases.
114349 2002-11-04  Bruno Haible  <bruno@clisp.org>
114351         * lib/config.charset: Update for newest glibc. Add canonical names
114352         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
114354 2002-11-04  Bruno Haible  <bruno@clisp.org>
114356         * lib/config.charset: Add support for NetBSD.
114358 2002-11-04  Bruno Haible  <bruno@clisp.org>
114360         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
114362 2002-11-01  Bruno Haible  <bruno@clisp.org>
114364         * configure.in: Add AC_CONFIG_AUX_DIR call.
114365         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
114366         test/Makefile.
114367         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
114369 2002-09-28  Karl Berry  <karl@gnu.org>
114371         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
114372         installed automake until the next release, since changes have been
114373         made.
114375 2002-09-25  Karl Berry  <karl@gnu.org>
114377         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
114378         * lib/getopt*: copy from libc/posix.
114379         * lib/gettext.h: copy from gettext.
114380         * lib/.cppi-disable: add strdup.c, gettext.h.
114382 2002-09-25  Karl Berry  <karl@gnu.org>
114384         * config/srclist.txt: enable gettext.h check.
114385         * config/config.{guess,sub}: update from prep.
114386         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
114387                 from automake 1.6.3.
114388         See srclist*.
114390 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
114392         * regex.c (PATFETCH): Remove the translating fetch.
114393         (PATFETCH_RAW): Rename to PATFETCH.
114394         (set_image_of_range): New fun.
114395         (SET_RANGE_TABLE_WORK_AREA): Use it.
114396         (regex_compile): Don't translate the pattern chars so eagerly.
114397         Only do it when inserting an `exactn' bytecode or when handling
114398         a char-range.
114399         (mutually_exclusive_p): Avoid empty statement.
114401 2002-07-06  Jim Meyering  <meyering@lucent.com>
114403         * m4/README: Don't mention Makefile.am.in.
114404         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
114406 2002-07-01  Jim Meyering  <meyering@lucent.com>
114408         * lib/c-stack.c: Include sys/time.h.
114409         From Volker Borchert.
114411 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114413         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
114415 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114417         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
114418         New macro.  Use it uniformly instead of
114419         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
114420         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
114421         reported by Vin Shelton.
114423 2002-06-22  Paul Eggert  <eggert@twinsun.com>
114425         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
114426         Do not assume SA_SIGINFO behavior.
114427         Bug reported by Jim Meyering on NetBSD 1.5.2.
114429 2002-06-22  Jim Meyering  <meyering@lucent.com>
114431         * m4/c-stack.m4: New file, from diffutils-2.8.2.
114432         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
114434         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
114435         now that configure.ac uses AC_GNU_SOURCE.
114436         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
114437         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
114439         Update to latest tools.  Suggestions from Paul Eggert.
114440         * m4/stdbool.m4: New file, from diffutils-2.8.2.
114441         * m4/gnu-source.m4: Update from diffutils-2.8.2.
114442         * m4/fnmatch.m4: Likewise.
114443         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
114444         to AC_HEADER_STDBOOL
114446 2002-06-22  Jim Meyering  <meyering@lucent.com>
114448         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
114449         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
114451 2002-06-22  Jim Meyering  <meyering@lucent.com>
114453         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
114455         * lib/exitfail.c, exitfail.h: Likewise.
114456         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
114458         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
114459         of fnmatch.h.
114460         (EXTRA_DIST): Add fnmatch_loop.c.
114461         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
114463         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
114464         * lib/fnmatch.c: Update from diffutils-2.8.2.
114465         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
114466         * lib/fnmatch.h: Remove file.
114468 2002-06-21  Jim Meyering  <meyering@lucent.com>
114470         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
114471         * m4/mbrtowc.m4: Likewise.
114473         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
114474         * m4/mbswidth.m4: Reflect name change:
114475         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
114476         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
114478         * m4/lib-link.m4: Update from gettext-0.11.2.
114479         * m4/gettext.m4: Likewise.
114481         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
114482         From Alfred M. Szmidt.
114484 2002-06-18  Paul Eggert  <eggert@twinsun.com>
114486         * lib/file-type.h: Report an error if neither S_ISREG nor
114487         S_IFREG is defined, instead of using a test specific to glibc
114488         2.2.  This should be safe, since POSIX requires S_ISREG and
114489         Unix Version 7 had S_IFREG.  We don't need to check for
114490         <sys/types.h> since we don't use any symbols that it defines.
114492 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
114494         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
114495         $@-t, so that each temporary file name is unique and valid in the first
114496         8 characters, for operation under DOS.
114498 2002-06-15  Paul Eggert  <eggert@twinsun.com>
114500         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
114502 2002-06-15  Jim Meyering  <meyering@lucent.com>
114504         Work even with DJGPP 2.03, which lacks support for symlinks.
114505         From Richard Dawe.
114506         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
114507         is defined.
114508         * lib/lchown.c (S_ISLNK): Likewise.
114510 2002-06-15  Jim Meyering  <meyering@lucent.com>
114512         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
114513         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
114514         have been included before this file.
114516 2002-06-14  Jim Meyering  <meyering@lucent.com>
114518         * lib/file-type.h: Use the version from diffutils-2.8.2.
114519         * lib/file-type.c: Likewise.
114521 2002-06-07  Jim Meyering  <meyering@lucent.com>
114523         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
114524         They're needed at least for NetBSD 1.5.2.
114525         ($statxfs_includes): Include those same headers.
114526         ($statxfs_includes): Include sys/vfs.h if available.
114527         ($statxfs_includes): Likewise for sys/statvfs.h.
114528         Check for the following members in both structs statfs and statvfs:
114529         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
114531 2002-06-01  Jim Meyering  <meyering@lucent.com>
114533         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
114534         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
114536 2002-05-28  Jim Meyering  <meyering@lucent.com>
114538         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
114539         Reported by Volker Borchert.
114541 2002-05-27  Jim Meyering  <meyering@lucent.com>
114543         Fix a problem seen only on nonconforming systems whereby ls.c's
114544         use of localtime, and then of gettimeofday would cause trouble:
114545         the localtime call used to initialize rpl_gettimeofday's save
114546         mechanism would clobber ls's current local time information so
114547         that in any long listing the first file would always be listed
114548         with date 1970-01-01.  Analysis by Volker Borchert.
114550         * lib/gettimeofday.c (localtime): Undefine.
114551         (rpl_localtime): New function.
114553 2002-05-27  Jim Meyering  <meyering@lucent.com>
114555         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
114556         localtime.
114558         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
114559         use the replacement function; it wouldn't resolve at link time.
114560         Reported by Volker Borchert.
114562 2002-05-22  Jim Meyering  <meyering@lucent.com>
114564         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
114565         file-type.h.
114566         * lib/file-type.h: New file.
114567         * lib/file-type.c (file_type): New file/function.  Extracted from
114568         diffutils.
114570 2002-04-30  Jim Meyering  <meyering@lucent.com>
114572         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
114574 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114576         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
114578 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114580         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
114581         Do not check for alloca.h (no longer used) or stdbool.h (was never
114582         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
114584 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114586         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
114588 2002-04-29  Jim Meyering  <meyering@lucent.com>
114590         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
114591         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
114592         Use AC_FUNC_STRNLEN here instead.
114594         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
114595         With autoconf-2.53a, it's part of AC_PROG_CC.
114597 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114599         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
114600         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
114602 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114604         * lib/sig2str.h, lib/sig2str.c: New files.
114605         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
114607 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114609         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
114610         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
114611         of 127, since 64 is the largest conceivable number for ancient
114612         nonstandard hosts.
114613         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
114615 2002-04-28  Jim Meyering  <meyering@lucent.com>
114617         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
114619 2002-04-24  Jim Meyering  <meyering@lucent.com>
114621         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
114622         (jm_PREREQ): Use it.
114624         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
114625         mach/mach.h fcntl.h.
114626         Check for this function: setlocale.
114628 2002-04-24  Jim Meyering  <meyering@lucent.com>
114630         * lib/gettext.h: New file, from Gettext.
114631         * lib/Makefile.am (INCLUDES): Remove -I../intl.
114632         (libfetish_a_SOURCES): Add gettext.h.
114634 2002-04-16  Jim Meyering  <meyering@lucent.com>
114636         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
114637         ut_pid, ut_id, ut_exit.
114639 2002-04-16  Jim Meyering  <meyering@lucent.com>
114641         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
114642         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
114643         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
114645 2002-04-12  Jim Meyering  <meyering@lucent.com>
114647         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
114648         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
114649         existence of the getmntinfo function.  Needed for Darwin 5.3.
114651         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
114652         This is necessary at least on Darwin 5.3.
114654         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
114655         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
114656         strnlen.o in the library, and that makes some versions of ranlib
114657         object.
114659 2002-04-12  Jim Meyering  <meyering@lucent.com>
114661         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
114663 2002-04-09  Jim Meyering  <meyering@lucent.com>
114665         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
114666         to be more precise.  Rather than saying we're checking whether the
114667         function `works', say what we're testing.
114668         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
114669         Reported by Bruno Haible.
114671 2002-03-10  Jim Meyering  <meyering@lucent.com>
114673         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
114674         Suggestion from Santiago Vila.
114676 2002-03-08  Jim Meyering  <meyering@lucent.com>
114678         * lib/rename.c: Mention that this wrapper is needed also on
114679         mips-dec-ultrix4.4 systems.
114681 2002-03-02  Jim Meyering  <meyering@lucent.com>
114683         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
114684         not HAVE_CLOCK_SETTIME.
114686 2002-02-27  Paul Eggert  <eggert@twinsun.com>
114688         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
114689         Check for clock_settime.
114691 2002-02-27  Paul Eggert  <eggert@twinsun.com>
114693         * lib/nanosleep.h: Rename to....
114694         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
114696         * lib/gettime.c: New file.
114697         * lib/settime.c: New file.
114698         * lib/stime.c: Remove.
114700         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
114701         timespec.h.  Remove nanosleep.h.
114703 2002-02-25  Paul Eggert  <eggert@twinsun.com>
114705         * m4/acl.m4: New file.
114706         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
114707         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
114709 2002-02-25  Paul Eggert  <eggert@twinsun.com>
114711         * lib/acl.c, lib/acl.h: New files.
114712         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
114714 2002-02-24  Jim Meyering  <meyering@lucent.com>
114716         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
114717         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
114718         cause trouble.  Reported by Nelson Beebe.
114720 2002-02-23  Paul Eggert  <eggert@twinsun.com>
114722         * lib/path-concat.c (xpath_concat): Reorder code to pacify
114723         compilers that don't know that xalloc_die never returns.
114725 2002-02-20  Jim Meyering  <meyering@lucent.com>
114727         * lib/getdate.c: Regenerate using bison-1.33.
114729 2002-02-17  Jim Meyering  <meyering@lucent.com>
114731         * config/config.guess (main): Don't use `head -1'; it's no longer
114732         portable. Use `sed 1q' instead.
114734 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
114736         * m4/codeset.m4: Upgrade to gettext-0.11.
114737         * m4/gettext.m4: Upgrade to gettext-0.11.
114738         * m4/glibc21.m4: Upgrade to gettext-0.11.
114739         * m4/iconv.m4: Upgrade to gettext-0.11.
114740         * m4/isc-posix.m4: Upgrade to gettext-0.11.
114741         * m4/lcmessage.m4: Upgrade to gettext-0.11.
114742         * m4/lib-ld.m4: New file, from gettext-0.11.
114743         * m4/lib-link.m4: New file, from gettext-0.11.
114744         * m4/lib-prefix.m4: New file, from gettext-0.11.
114745         * m4/progtest.m4: Upgrade to gettext-0.11.
114747 2002-02-15  Paul Eggert  <eggert@twinsun.com>
114749         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
114750         (jm_PREREQ): Use it.
114752 2002-02-15  Paul Eggert  <eggert@twinsun.com>
114754         * lib/posixver.c, lib/posixver.h: New files.
114755         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
114757 2002-02-02  Paul Eggert  <eggert@twinsun.com>
114758             Bruno Haible  <bruno@clisp.org>
114760         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
114761         (fwrite_success_callback): New declaration.
114762         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
114763         print_unicode_char. Call failure callback instead of error.
114764         (fwrite_success_callback): New function.
114765         (exit_failure_callback): New function.
114766         (fallback_failure_callback): New function.
114767         (print_unicode_char): Call unicode_to_mb.
114769 2002-01-26  Jim Meyering  <meyering@lucent.com>
114771         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
114772         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
114774 2002-01-26  Jim Meyering  <meyering@lucent.com>
114776         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
114778 2002-01-22  Paul Eggert  <eggert@twinsun.com>
114780         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
114782 2002-01-22  Jim Meyering  <meyering@lucent.com>
114784         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
114785         Otherwise, some versions of automake would omit the rule that makes
114786         Makefile from Makefile.in.
114788 2002-01-21  Paul Eggert  <eggert@twinsun.com>
114790         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
114791         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
114792         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
114793         (memcoll): Set errno to zero if there is no error.
114795         * lib/quotearg.c (quotearg_buffer_restyled):
114796         Fix bug with quoting buffers containing NUL when backslashing escapes.
114797         This bug was exposed by the other changes in this patch.
114798         (quotearg_n_options): New arg ARGSIZE.
114799         All callers changed.
114800         (quoting_options_from_style): New function.
114801         (quotearg_n_style): Use it.
114802         (quotearg_n_style_mem): New function.
114804         * lib/quotearg.h (quotearg_n_style_mem): New function.
114806 2002-01-19  Jim Meyering  <meyering@lucent.com>
114808         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
114809         Remove useless quotes: DF_PROG="df".
114810         * m4/strnlen.m4: New file.
114812 2002-01-16  Paul Eggert  <eggert@twinsun.com>
114814         * lib/backupfile.c (ISDIGIT): Comment fix.
114815         * lib/getdate.y (ISDIGIT): Likewise.
114816         * lib/posixtm.c (ISDIGIT, year): Likewise.
114817         * lib/strverscmp.c (ISDIGIT): Likewise.
114818         * lib/userspec.c (ISDIGIT): Likewise.
114820 2002-01-16  Jim Meyering  <meyering@lucent.com>
114822         * lib/getdate.y: Add three semicolons, each just before a closing
114823         brace. Bison (as of version 1.31) no longer papers over that mistake.
114825 2002-01-05  Jim Meyering  <meyering@lucent.com>
114827         * lib/version-etc.c (version_etc_copyright): Update copyright year.
114829 2001-12-19  Paul Eggert  <eggert@twinsun.com>
114831         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
114832         not silently exit merely because the output buffer happens to
114833         have nothing pending.
114835 2001-12-18  Paul Eggert  <eggert@twinsun.com>
114837         See the big note in ../ChangeLog.
114838         * lib/human.c (suffixes): Prefer K to k for 1024.
114839         (generate_suffix_backwards): New function.
114840         (human_readable_inexact): Use it.
114841         * lib/xstrtol.c (__xstrtol): If there is no number but there
114842         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
114843         Accept 'K' as well as 'k'.
114845 2001-12-15  Jim Meyering  <meyering@lucent.com>
114847         * lib/regex.h (__restrict_arr): Update from libc.
114849         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
114850         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
114851         (STREQ): Define.
114853 2001-12-14  Jim Meyering  <meyering@lucent.com>
114855         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
114856         Suggestion from Bruno Haible.
114858 2001-12-10  Jim Meyering  <meyering@lucent.com>
114860         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
114861         xrealloc, Instead, include "xalloc.h".
114862         (initbuffer): Don't cast xmalloc return value to char*.
114863         (readline): Reword comment.
114864         Don't cast xrealloc return value to char*
114865         Return NULL, not 0.
114867 2001-12-09  Jim Meyering  <meyering@lucent.com>
114869         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
114870         about `signed and unsigned type in conditional expression'.
114871         * lib/posixtm.c (posix_time_parse): Likewise.
114873         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
114875         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
114876         to avoid a pedantic warning.
114878         * lib/getstr.c: Don't include assert.h.
114879         (getstr): Remove warning-evoking assertions.
114880         Return -1 if offset parameter is out of bounds.
114881         Change the type of a local from int to size_t.
114883         * lib/strftime.c (my_strftime_localtime_r): Include this function
114884         definition in the `#if ! HAVE_TM_GMTOFF' block.
114886         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
114887         Include xalloc.h instead.
114889 2001-12-02  Jim Meyering  <meyering@lucent.com>
114891         * lib/tempname.c: Don't declare getenv, thus reverting the change of
114892         2001-11-18.  It's no longer necessary, now that stdlib.h is always
114893         included.
114895         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
114896         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
114898 2001-11-30  Akim Demaille  <akim@epita.fr>
114900         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
114901         before being defined.
114903 2001-11-27  Paul Eggert  <eggert@twinsun.com>
114905         * lib/quotearg.h (quotearg_n, quotearg_n_style):
114906         First arg is int, not unsigned.
114907         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
114908         (SIZE_MAX, UINT_MAX): New macros.
114909         (quotearg_n_options): Abort if N is negative.
114910         Avoid overflow check on hosts where size_t is 64 bits and int
114911         is 32 bits, as overflow is impossible there.
114912         Fix off-by-one typo that caused unnecessary reallocation.
114914 2001-11-27  Jim Meyering  <meyering@lucent.com>
114916         * lib/tempname.c: Merge with version from libc.
114917         * lib/regex.c: Likewise.
114919         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
114920         systems for which STDC_HEADERS is 0, it was not included, resulting in
114921         a warning about an integer-to-pointer conversion problem with getenv.
114922         Reported by Volker Borchert.
114924 2001-11-26  Jim Meyering  <meyering@lucent.com>
114926         * lib/gtod.h: Remove file.
114927         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
114928         * lib/gettimeofday.c: Don't include gtod.h.
114929         (GTOD_init): Remove function.
114930         (rpl_gettimeofday): Do its job here instead, rather than aborting.
114931         Suggestion from Volker Borchert.
114933 2001-11-23  Jim Meyering  <meyering@lucent.com>
114935         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
114936         it.
114937         * lib/hash.c (struct hash_table): Define it here instead.
114939 2001-11-22  Jim Meyering  <meyering@lucent.com>
114941         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
114943 2001-11-20  Jim Meyering  <meyering@lucent.com>
114945         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
114946         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
114948 2001-11-19  Jim Meyering  <meyering@lucent.com>
114950         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
114951         directory.  Use "conftestXXXXXX" as the template.
114952         Suggestion from Paul Eggert.
114954         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
114955         immediately, so the test doesn't mistakenly hit the max-open-files
114956         limit.
114958 2001-11-18  Paul Eggert  <eggert@twinsun.com>
114960         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
114961         (TEMPORARIES): New macro.
114962         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
114963         removes an artificial limitation (e.g. HP-UX 10.20, where
114964         TMP_MAX is 17576).
114966 2001-11-18  Jim Meyering  <meyering@lucent.com>
114968         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
114970 2001-11-18  Jim Meyering  <meyering@lucent.com>
114972         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
114973         on SunOS 4.
114975         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
114976         files will be created before anything else.
114978 2001-11-17  Paul Eggert  <eggert@twinsun.com>
114980         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
114981         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
114983 2001-11-17  Jim Meyering  <meyering@lucent.com>
114985         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
114986         Prompted by a report from Bob Proulx.
114988         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
114989         Instead, require UTILS_FUNC_MKSTEMP.
114991 2001-11-17  Jim Meyering  <meyering@lucent.com>
114993         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
114994         Now, that's done as part of AC_FUNC_STRTOD.
114996 2001-11-17  Jim Meyering  <meyering@lucent.com>
114998         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
114999         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
115000         rather than group writable.  Patch by Juan F. Codagnone.
115002         * lib/readtokens.c: Remove explicit declarations of xmalloc and
115003         xrealloc, Instead, include "xalloc.h".
115005         * lib/mountlist.c: Include unlocked-io.h after all system headers.
115006         Remove explicit declarations of xmalloc, xrealloc,
115007         and xstrdup.  Instead, include "xalloc.h".
115009         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
115010         unlocked-io.h.
115011         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
115012         Likewise.
115013         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
115015         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
115016         Reported by Padraig Brady.
115018         * lib/mkstemp.c: #undef mkstemp.
115019         Include config.h.
115020         (rpl_mkstemp): Rename from mkstemp.
115021         Protoize.
115023 2001-11-16  Jim Meyering  <meyering@lucent.com>
115025         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
115026         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
115027         determine the amount of total physical memory, use pstat_getstatic.
115028         HPUX-11 doesn't define _SC_PHYS_PAGES.
115029         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
115030         If sysconf couldn't be used to determine the amount of available
115031         physical memory, use both pstat_getstatic and pstat_getdynamic.
115032         Based on a patch from Bob Proulx.
115034 2001-11-10  Jim Meyering  <meyering@lucent.com>
115036         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
115037         (jm_PREREQ): Use it.
115039 2001-11-09  Jim Meyering  <meyering@lucent.com>
115041         * m4/jm-macros.m4: Require autoconf-2.52f.
115042         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
115043         Use these AC_-prefixed names, not the AM_-prefixed ones.
115045         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
115047 2001-11-05  Jim Meyering  <meyering@lucent.com>
115049         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
115051 2001-11-04  Jim Meyering  <meyering@lucent.com>
115053         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
115054         $DEFS.
115056 2001-11-03  Jim Meyering  <meyering@lucent.com>
115058         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
115059         of AC_DEFUN.
115061         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
115062         know the name of the variable in the macro definition.
115064 2001-11-03  Jim Meyering  <meyering@lucent.com>
115066         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
115067         in argmatch_to_argument call.
115069         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
115070         argument.
115072         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
115073         e.g., a fault due to an attempt to free a NULL pointer.
115075 2001-11-01  Jim Meyering  <meyering@lucent.com>
115077         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
115078         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
115080 2001-11-01  Jim Meyering  <meyering@lucent.com>
115082         * lib/dirfd.c, lib/dirfd.h: New files.
115083         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
115085         * lib/hash.c (hash_print) [TESTING]: Clean up.
115087 2001-10-22  Paul Eggert  <eggert@twinsun.com>
115089         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
115090         to avoid a warning if -Wall.
115092 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
115094         * README: New file
115095         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
115096         (per RMS's instructions, this is now the canonical source)
115097         * lgpl/, gpl/: New directories.
115099 2001-10-21  Paul Eggert  <eggert@twinsun.com>
115101         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
115103 2001-10-21  Jim Meyering  <meyering@lucent.com>
115105         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
115106         this code would end up calling gettext even in packages built
115107         with --disable-nls.
115108         * lib/getopt.c (_): Likewise.
115109         * lib/regex.c (_): Likewise.
115111 2001-10-20  Paul Eggert  <eggert@twinsun.com>
115113         * m4/error.m4 (jm_PREREQ_ERROR):
115114         Do not invoke AC_CHECK_FUNCS with strerror_r, as
115115         AC_FUNC_STRERROR_R does that.
115116         Check for strerror declaration.
115118         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
115119         are supposed to have them these days.
115120         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
115121         Merge changes from latest Autoconf CVS.
115122         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
115123         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
115124         POSIX decided to standardize on the int flavor of strerror_r.
115126 2001-10-20  Paul Eggert  <eggert@twinsun.com>
115128         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
115129         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
115130         Use strerror_r that is only a macro, even if it is not a function.
115131         (strerror): Check for HAVE_DECL_STRERROR before declaring.
115132         (private_strerror): Use prototypes, not old-style function definition.
115133         (print_errno_message): New function.
115134         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
115135         char*-flavored one.
115136         (error_tail, error, error_at_line): Use it.
115138 2001-10-11  Jim Meyering  <meyering@lucent.com>
115140         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
115141         and quote_n (1, ... to avoid clobbering a buffer.
115143 2001-10-05  Jim Meyering  <meyering@lucent.com>
115145         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
115146         hash-pjw.h.
115147         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
115148         * lib/hash-pjw.h: New file.
115150 2001-09-30  Jim Meyering  <meyering@lucent.com>
115152         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
115153         `struct fsstat' has the `f_fstypename' member.
115154         Use that to define FS_TYPE, which is now used to make
115155         the getfsstat link test tighter.
115157 2001-09-30  Jim Meyering  <meyering@lucent.com>
115159         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
115160         Include <sys/ucred.h>, for Apple Darwin.
115161         Include sys/mount.h and sys/fs_types.h only if available.
115162         (FS_TYPE): Define.
115163         (read_filesystem_list): Use FS_TYPE.
115165 2001-09-29  Paul Eggert  <eggert@twinsun.com>
115167         * lib/exclude.c (excluded_filename): 0 -> false, since it's
115168         a boolean context.
115170 2001-09-29  Jim Meyering  <meyering@lucent.com>
115172         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
115173         [one-argument getmntent function]): Include stdio.h before mntent.h.
115174         SunOS 4.1.x needs it for the declaration of `FILE'.
115175         Patch by Volker Borchert.
115177         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
115178         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
115179         sys/fs_types.h, and make the link-test for getfsstat guard #include
115180         directives with appropriate #if HAVE_*_H tests so that we can
115181         detect getfsstat on Apple Darwin1.3.7 systems.
115182         Reported by Nelson Beebe.
115183         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
115185 2001-09-28  Paul Eggert  <eggert@twinsun.com>
115187         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
115188         #defines strtoimax.  Also treat the other strto* functions
115189         like strtoimax.
115191         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
115192         Check for strtoul and strtoumax,
115193         as those declarations are made even in the signed case.
115194         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
115195         Likewise, for strtol and strtoimax.
115197 2001-09-28  Paul Eggert  <eggert@twinsun.com>
115199         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
115200         #defines strtoimax.  Also treat the other strto* functions
115201         like strtoimax.
115203         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
115204         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
115205         (strtoimax, strtoumax): Do not declare if already defined as a macro.
115207 2001-09-26  Jim Meyering  <meyering@lucent.com>
115209         Most macros in unlocked-io.h had the wrong number of arguments.
115210         * lib/gen-uio: New script.
115211         (USE_UNLOCKED_IO): Define to 1 if not already defined.
115212         * lib/unlocked-io.hin: Remove file.
115213         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
115214         rather than trying to embed it here.
115215         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
115216         Reported by Padraig Brady.
115218 2001-09-25  Volker Borchert  <bt@teknon.de>
115220         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
115221         `result'.
115223 2001-09-24  Jim Meyering  <meyering@lucent.com>
115225         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
115227 2001-09-23  Jim Meyering  <meyering@lucent.com>
115229         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
115230         instead of the mere test for existence of mntent.h.  The latter
115231         would get a false-positive on AIX 3.4 systems.
115232         In the outer getmntent if-block, don't die if neither of the getmntent
115233         tests succeeds.  Instead, just fall through and continue with the
115234         remaining tests.
115236 2001-09-23  Jim Meyering  <meyering@lucent.com>
115238         * lib/mountlist.c: Remove useless parentheses in #if directives.
115239         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
115240         the deprecated MOUNTED symbol is no longer defined in mntent.h.
115242 2001-09-22  Jim Meyering  <meyering@lucent.com>
115244         * m4/gettext.m4: New file.  From gettext.
115245         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
115246         * m4/progtest.m4: Likewise
115247         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
115248         * m4/glibc21.m4: Likewise.
115250         * m4/libintl.m4: Remove.  No longer used.
115252 2001-09-22  Jim Meyering  <meyering@lucent.com>
115254         * lib/localcharset.c: Update from latest gettext.
115255         * lib/config.charset: Likewise.
115257 2001-09-20  Jim Meyering  <meyering@lucent.com>
115259         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
115260         strtoimax.
115261         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
115262         strtoumax.
115264 2001-09-20  Jim Meyering  <meyering@lucent.com>
115266         * lib/xstrtol.c (strtoimax): Guard declaration with
115267         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
115268         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
115269         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
115270         (strtoumax): Likewise, for completeness (it wasn't necessary).
115272 2001-09-17  Paul Eggert  <eggert@twinsun.com>
115274         * lib/strtoimax.c (HAVE_LONG_LONG):
115275         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
115276         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
115277         to work around bug in IBM C compiler.
115279 2001-09-17  Jim Meyering  <meyering@lucent.com>
115281         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
115282         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
115283         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
115284         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
115285         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
115286         whenever the right hand side need not be expanded by the shell.
115288 2001-09-16  Paul Eggert  <eggert@twinsun.com>
115290         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
115291         library.  It's not correct, as some older glibcs are buggy.
115292         fnmatch wasn't fixed until glibc 2.2.
115294         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
115295         special shell magic here.
115297 2001-09-16  Jim Meyering  <meyering@lucent.com>
115299         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
115300         * m4/jm-macros.m4: Require it.
115302 2001-09-16  Jim Meyering  <meyering@lucent.com>
115304         * lib/mkdir.c: New file.
115306 2001-09-15  Jim Meyering  <meyering@lucent.com>
115308         * m4/jm-macros.m4: Check for help2man.
115310 2001-09-11  Jim Meyering  <meyering@lucent.com>
115312         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
115313         The body, by Paul Eggert, was moved here from configure.in.
115314         * m4/jm-macros.m4: Require UTILS_HOST_OS.
115316 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115318         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
115319         (jm_PREREQ): Use it.
115321 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115323         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
115324         Use ssize_t, not int, to store result of readlink.
115325         Check for ssize_t overflow as well as size_t overflow,
115326         as POSIX says the result of readlink is implementation-defined
115327         when ssize_t overflows.
115328         Remove unnecessary cast to char*.
115329         Use free+malloc instead of realloc, as the storage doesn't need
115330         to be preserved and it's clearer and can be more efficient that way.
115331         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
115332         * lib/xreadlink.h (xreadlink): Update prototype.
115334 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115336         * lib/xgetcwd.c: Revert some of the previous change; intead,
115337         fix the HAVE_GETCWD_NULL code to behave more like the
115338         !HAVE_GETCWD_NULL code used to.
115340         Include "xalloc.h".
115341         (xgetcwd): Do not return NULL when memory is exhausted; instead,
115342         invoke xalloc_die.
115344 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115346         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
115347         sys/param.h, as pathmax.h includes them.
115349 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115351         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
115352         (jm_PREREQ_XGETCWD): New macro.
115354         * m4/getcwd.m4: New file.
115356 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115358         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
115359         like the HAVE_GETCWD_NULL code.
115360         Include pathmax.h if not HAVE_GETCWD.
115361         Do not include xalloc.h.
115362         (INITIAL_BUFFER_SIZE): New symbol.
115363         Do not use xmalloc / xrealloc, since the caller is responsible for
115364         handling errors.  Preserve errno around `free' during failure.
115365         Do not overrun buffer when using getwd.
115367 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115369         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
115370         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
115371         getcwd (NULL, 0).
115373 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115375         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
115376         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
115377         spotted by Jim Meyering.
115379 2001-09-03  Jim Meyering  <meyering@lucent.com>
115381         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
115382         failure.
115384 2001-09-02  Jim Meyering  <meyering@lucent.com>
115386         * lib/error.c: Update from GNU libc.
115388 2001-09-01  Jim Meyering  <meyering@lucent.com>
115390         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
115391         Used by df.
115393 2001-09-01  Jim Meyering  <meyering@lucent.com>
115395         * lib/xreadlink.c: New file.
115396         * lib/xreadlink.h: New file.
115397         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
115398         xreadlink.h.
115400         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
115401         doesn't conflict with sparc Solaris 7's definition in
115402         /usr/include/sys/int_types.h.
115404         * lib/exclude.c: Use `""', not `<>' to #include non-system header
115405         files.
115406         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
115407         and strncasecmp as r-values.  Unixware didn't have declarations.
115409 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115411         * lib/xstrtol.h: Add copyright notice.
115412         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
115413         LONGINT_INVALID_SUFFIX_CHAR.
115415 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115417         * lib/xstrtol.c (strtoimax): New decl.
115419 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115421         * lib/xgetcwd.c: Don't include pathmax.h.
115422         Include stdlib.h and unistd.h if available.
115423         Include xalloc.h.
115424         (xmalloc, xstrdup, free): Remove decls.
115425         (xgetcwd): Don't assume sizes fit in unsigned.
115426         Check for overflow when computing sizes.
115427         Simplify reallocation code.
115429 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115431         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
115432         a directory's st_size can have an arbitrary value, so the old
115433         usage could waste an arbitrary amount of memory.  All uses
115434         changed.
115435         * lib/savedir.h: Update prototype.
115437 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115439         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
115441         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
115442         old strtoimax.c.
115444         Also, make the following further changes to make this file's
115445         configuration more similar to that of strtol.c:
115446         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
115447         (strtoumax, uintmax_t, strtoull, strtol): Remove.
115448         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
115449         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
115450         changed to signed values.
115452         And make the following changes as well:
115453         Fix copyright notice, as 1999 was missing.
115454         (verify): New macro.
115455         (strtoimax): Check sizes at compile-time, not run-time.
115456         Prefer strtol to strtoll if both work.
115457         (main): Remove; it was not that useful and was a pain to maintain.
115459         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
115461 2001-08-31  Jim Meyering  <meyering@lucent.com>
115463         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
115464         Use an initial, malloc'd, buffer of length 128 rather than
115465         a statically allocated one of length 1024.
115467 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115469         Simplify code, partly by assuming autoconf 2.52 semantics.
115471         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
115473         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
115474         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
115475         All uses removed.
115476         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
115477         Move AC_REQUIRE to next-to-top level, to avoid confusion.
115478         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
115479         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
115480         jm_AC_HEADER_INTTYPES_H.
115481         * m4/jm-macros.m4 (jm_MACROS): Likewise.
115483         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
115485         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
115486         Quote first arg of AC_DEFUN.
115487         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
115488         since they are needed to parse the include file even if we need
115489         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
115490         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
115491         but with opposite signedness.
115493 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115495         Merge 'exclude' changes from tar 1.13.22.
115496         This fixes one or two unlikely storage allocation overflow bugs,
115497         but doesn't change user-visible behavior otherwise.
115499 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115501         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
115502         (jm_PREREQ_EXCLUDE): New macro.
115504 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115506         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
115507         tm to be declared.
115509 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115511         * lib/hash.c: Remove '2001' from copyright notice.
115513 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115515         * lib/full-write.h: New file.
115516         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
115517         * lib/full-write.c: Correct credits, as cccp.c no longer
115518         exists and anyway it was so heavily changed from the old cccp
115519         code as to be unrecognizable.  Include full-write.h.
115520         (full_write): Return size_t, with short writes meaning failure.
115521         All callers changed.  This fixes a bug with large buffers
115522         on 64-bit hosts.
115523         * lib/utime.c: Include full-write.h.
115525 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115527         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
115528         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
115529         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
115530         Include if available.
115531         (<xalloc.h>): Include
115532         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
115533         (verify): New macro.  Use it to verify that EXCLUDE macros do not
115534         collide with FNM macros.
115535         (struct patopts): New struct.
115536         (struct exclude): Use it, as exclude patterns now come with options.
115537         (new_exclude): Support above changes.
115538         (new_exclude, add_exclude_file):
115539         Initial size must now be a power of two to simplify overflow checking.
115540         (free_exclude, fnmatch_no_wildcards): New function.
115541         (excluded_filename): No longer requires options arg, as the options
115542         are determined by add_exclude.  Now returns bool, not int.
115543         (excluded_filename, add_exclude):
115544         Add support for the fancy new exclusion options.
115545         (add_exclude, add_exclude_file): Now takes int options arg.
115546         Check for arithmetic overflow when computing sizes.
115547         (add_exclude_file): xrealloc might modify errno, so don't
115548         realloc until after errno might be used.
115550         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
115551         New macros.
115552         (free_exclude): New decl.
115553         (add_exclude, add_exclude_file): Now takes int options arg.
115554         (excluded_filename): No longer requires options arg, as the options
115555         are determined by add_exclude.  Now returns bool, not int.
115557 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115559         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
115561 2001-08-27  Jim Meyering  <meyering@lucent.com>
115563         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
115565         * lib/version-etc.c (N_): Remove definition.
115566         Revert most of last change.
115567         Instead, simply don't mark the `Copyright...' string for translation.
115568         Based on advice from Paul Eggert.
115570         * lib/strtoxmax.c: Tweak comment.
115572 2001-08-26  Jim Meyering  <meyering@lucent.com>
115574         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
115576         * m4/xstrtoimax.m4: New file.
115577         * m4/xstrtoumax.m4: Add comments explaining why we
115578         AC_REPLACE_FUNCS(strtol).
115580 2001-08-26  Jim Meyering  <meyering@lucent.com>
115582         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
115583         of copyright with `%s' so translators don't get an untranslated
115584         message in 2002.
115585         (COPYRIGHT_YEAR): Define.
115586         (version_etc): Use fprintf rather than fputs.
115587         Suggestion from Ulrich Drepper.
115589         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
115591         * lib/strtoll.c: New file, from GNU libc.
115592         * lib/xstrtoimax.c: New file.
115594         * lib/xstrtol.h: Add xstrtoimax.
115595         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
115596         * lib/strtoimax.c: New file.  Likewise, but first define
115597         STRTOUXMAX_SIGNED.
115599         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
115600         ...
115601         * lib/strtoxmax.c: ... then renamed to this.
115603 2001-08-18  Paul Eggert  <eggert@twinsun.com>
115605         * m4/inttypes.m4: Add AC_PREREQ(2.13).
115606         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
115607         (jm_AC_TYPE_INTMAX_T): New macro.
115608         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
115610         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
115612         * m4/longlong.m4: Renamed from ulonglong.m4.
115613         * m4/inttypes.m4: Renamed from inttypes_h.m4.
115614         * m4/uintmax_t.m4: Removed.
115616 2001-08-13  Paul Eggert  <eggert@twinsun.com>
115618         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
115619         Port to Solaris 8, where 'sed' requires a space after the 'r'
115620         command, and where sh dislikes "$/".  Clean up the spacing a bit.
115621         Redirect output to $tmp just once.
115623 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
115625         * lib/addext.c (<errno.h>): Include.
115626         (errno): Declare if not defined.
115627         (addext): Work correctly when pathconf returns -1 and leaves
115628         errno alone because there is no limit.  Also, work even if
115629         pathconf returns a value greater than SIZE_MAX.
115631 2001-08-12  Jim Meyering  <meyering@lucent.com>
115633         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
115634         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
115635         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
115636         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
115637         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
115638         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
115639         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
115640         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
115641         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
115642         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
115643         utime.m4, utimes.m4, xstrtoumax.m4:
115644         Quote the first argument in each use of AC_DEFUN.
115646 2001-08-12  Jim Meyering  <meyering@lucent.com>
115648         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
115649         Simply `return getcwd (NULL, 0);'.
115650         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
115651         Use 1300 as initial value for length, not PATH_MAX.
115653         * lib/pathmax.h: Clean up cpp syntax.
115655 2001-08-12  Jim Meyering  <meyering@lucent.com>
115657         * lib/gettimeofday.c: New file.
115658         * lib/gtod.h: New file.
115659         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
115661 2001-08-05  Jim Meyering  <meyering@lucent.com>
115663         * m4/jm-macros.m4: Require autoconf-2.52.
115665 2001-08-04  Jim Meyering  <meyering@lucent.com>
115667         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
115668         stmt, to get in sync with glibc.
115670 2001-08-03  Paul Eggert  <eggert@twinsun.com>
115672         The following changes are from gettext 0.10.39 as maintained by
115673         Bruno Haible.
115675         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
115676         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
115677         with inverted sense.  All uses changed.
115679         * lib/mbswidth.c: Don't include <limits.h>.
115680         Include <stdlib.h> and <string.h> unconditionally.
115681         (iswcntrl, mbsinit, ISCNTRL): New macros.
115682         (mbsnwidth): Use K&R style function declarations.
115683         Don't bother checking for MB_LEN_MAX == 1, since the compiler
115684         can optimize it when MB_CUR_MAX == 1.
115685         The width of control characters is zero, not 1.
115687 2001-08-03  Paul Eggert  <eggert@twinsun.com>
115689         The following changes are from gettext 0.10.39 as maintained by
115690         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
115692         * m4/codeset.m4: Upgrade to serial AM1.
115693         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
115694         all uses changed.  Quote first arg of AC_DEFUN.
115695         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
115697         * m4/iconv.m4: Upgrade to serial AM2.
115698         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
115699         Add --with-libconv-prefix.
115700         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
115701         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
115702         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
115703         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
115704         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
115706         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
115707         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
115708         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
115709         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
115710         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
115711         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
115712         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
115713         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
115714         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
115716         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
115717         string.h any more.
115719         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
115720         not the default value.
115722         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
115723         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
115724         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
115725         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
115726         Also check for iswcntrl, used for wcwidth fallback.
115727         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
115728         to Autoconf 2.13.
115730 2001-08-03  Jim Meyering  <meyering@lucent.com>
115732         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
115733         as it was in the original.  Reported by Paul Eggert.
115735 2001-07-16  Jim Meyering  <meyering@lucent.com>
115737         * m4/gettimeofday.m4: New file.
115738         Prompted by a report from Bernhard Baehr.
115740 2001-07-15  Jim Meyering  <meyering@lucent.com>
115742         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
115743         stuff. Now it's in ../Makefile.cfg.
115745 2001-07-15  Jim Meyering  <meyering@lucent.com>
115747         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
115748         (BUILT_SOURCES): Add unlocked-io.h.
115749         (io_functions): Define.
115750         (unlocked-io.h): New rule.
115751         (DISTCLEANFILES): Add unlocked-io.h.
115752         (all-local): Depend on unlocked-io.h, to ensure it is created.
115754         * lib/unlocked-io.hin: New file
115756         * lib/regex.c: Update from glibc.
115758 2001-07-05  Jim Meyering  <meyering@lucent.com>
115760         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
115761         recommendation.
115762         (libfetish_a_SOURCES): Put all .h files here instead.
115763         Remove a thus-exposed (better checks in automake) duplicate and
115764         two unnecessary .h files.
115766 2001-07-04  Jim Meyering  <meyering@lucent.com>
115768         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
115769         that generates jm-glibc-io.m4 so that it doesn't trigger any make
115770         distcheck failure.
115772 2001-07-02  Jim Meyering  <meyering@lucent.com>
115774         The following changes were prompted by suggestions from Bruno Haible.
115776         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
115777         is now generated.
115778         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
115779         definition of EXTRA_DIST.
115780         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
115781         ensure that the generated file is created/updated whenever the list
115782         of $(unlocked_functions) is changed.
115783         (jm-glibc-io.m4): New rule.
115784         (unlocked-io.h): New rule -- currently unused.
115786 2001-06-24  Jim Meyering  <meyering@lucent.com>
115788         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
115789         unmatched right bracket, rather than kludging it with an extra,
115790         falsely-matching quote in a comment.  Patch by Akim Demaille.
115792 2001-06-11  Jim Meyering  <meyering@lucent.com>
115794         * lib/regex.c: Update from GNU libc.
115796 2001-05-27  Jim Meyering  <meyering@lucent.com>
115798         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
115799         Check for ut_type in struct utmp.
115801 2001-05-27  Jim Meyering  <meyering@lucent.com>
115803         * lib/readutmp.h (UT_TYPE): Define.
115805 2001-05-24  Jim Meyering  <meyering@lucent.com>
115807         * lib/argmatch.c: Include "quote.h".
115808         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
115809         quote function.  Reported by Göran Uddeborg.
115811 2001-05-22  Jim Meyering  <meyering@lucent.com>
115813         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
115814         now that we use the package-supplied version unconditionally.
115815         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
115817 2001-05-21  Jim Meyering  <meyering@lucent.com>
115819         * m4/regex.m4: Change a couple backticks to single quotes to avoid
115820         shell syntax errors.
115822 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
115824         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
115826 2001-05-20  Paul Eggert  <eggert@twinsun.com>
115828         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
115829         Don't bother to check library strftime, since
115830         we'll be using our own my_strftime function anyway.
115831         Define my_strftime instead of strftime.
115833 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
115835         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
115836         which is not yet declared.
115838 2001-05-15  Jim Meyering  <meyering@lucent.com>
115840         * m4/regex.m4: Use proper quoting so brackets appear in the test
115841         program.
115842         Reported by, and with help from, Bruno Haible.
115844 2001-05-13  Jim Meyering  <meyering@lucent.com>
115846         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
115847         undefined.
115849 2001-05-11  Paul Eggert  <eggert@twinsun.com>
115851         dirname code cleanup.  base_name now behaves more compatibly
115852         with POSIX basename when given file names that have trailing
115853         slashes, and similarly for dir_name.  Add new primitives
115854         base_len and dir_len.  Put the directory-name-related decls
115855         into dirname.h.
115857         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
115858         * lib/backupfile.c (base_name): Likewise.
115859         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
115860         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
115861         * lib/makepath.c (strip_trailing_slashes): Likewise.
115862         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
115863         ISSLASH): Likewise.
115864         * lib/rename.c (strip_trailing_slashes): Likewise.
115865         * lib/same.c (base_name): Likewise.
115866         * lib/stripslash.c (ISSLASH): Likewise.
115868         * lib/addext.c: Include <dirname.h> after size_t is defined.
115869         * lib/backupfile.c: Likewise.
115871         * lib/addext.c (addext): Use base_len to trim redundant
115872         trailing slashes instead of doing it ourselves.
115873         But do not trim the last slash if it is not redundant.
115875         * lib/backupfile.c (find_backup_file_name,
115876         max_backup_version): Use base_len instead of rolling it ourselves.
115877         Handle the case of "" and (on DOS) "C:" correctly.
115879         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
115880         needed. Include <string.h>, <dirname.h>.
115881         (base_name): Allow file names ending in slashes, other than names
115882         that are all slashes.  In this case, return the basename followed
115883         by the slashes.  This is more general, and can be used in places
115884         where the original base_name purposely had an assertion failure.
115885         (base_len): New function.
115887         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
115888         Do not include <assert.h>; no longer needed.
115889         Include xalloc.h.
115890         (memrchr): Remove decl.
115891         (dir_name_r): Remove.
115892         (dir_len): Renamed from dirlen.  All callers changed.
115893         Rewrite in terms of base_name, for simplicity and consistency.
115894         (dir_name): Never return NULL.  All callers changed.
115895         Do not include <stdlib.h> in test program; no longer needed.
115896         return 0; is fine for test program.
115898         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
115899         New macros.
115900         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
115902         * lib/path-concat.c (path_concat): Use base_len to compute
115903         base length, not strlen; this means we cannot rely on memcpy
115904         to null-terminate.
115906         * lib/same.c (STREQ): Remove.
115907         (same_name): Handle the case where the basename ends in trailing '/'.
115909         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
115910         a slash was stripped.  Do not strip the last slash after a
115911         file system prefix.
115913 2001-05-11  Paul Eggert  <eggert@twinsun.com>
115915         * lib/Makefile.am (libfetish_a_SOURCES):
115916         Add strftime.c, since we now compile it on all hosts.
115918         * lib/strftime.c (my_strftime):
115919         Define to nstrftime if emacs, but only if my_strftime is not defined.
115920         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
115921         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
115922         Add one more extra argument: a nanoseconds value.
115923         All uses changed.
115924         (ns): New macro.
115925         (my_strftime function): Add %N format.
115926         (emacs_strftimeu): Renamed from emacs_strftime,
115927         with extra ut argument.
115929 2001-05-09  Paul Eggert  <eggert@twinsun.com>
115931         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
115933 2001-04-21  Jim Meyering  <meyering@lucent.com>
115935         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
115936         doesn't interfere.
115938 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
115940         * m4/ftruncate.m4: Check for chsize.
115941         Link with ftruncate.o unconditionally if ftruncate is missing.
115942         This was required when cross-compiling to i586-mingw32msvc.
115944 2001-04-08  Jim Meyering  <meyering@lucent.com>
115946         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
115947         recomputed; that's necessary when the offset spans a DST transition.
115948         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
115950 2001-04-02  Jim Meyering  <meyering@lucent.com>
115952         * lib/regex.h, regex.c: Update from GNU libc.
115954 2001-03-24  Jim Meyering  <meyering@lucent.com>
115956         * m4/jm-macros.m4: Require autoconf-2.49d.
115958 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
115960         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
115962 2001-03-19  Paul Eggert  <eggert@twinsun.com>
115964         * lib/version-etc.c (version_etc_copyright): Update to 2001.
115966 2001-03-17  Jim Meyering  <meyering@lucent.com>
115968         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
115969         now that the version in autoconf is equivalent.
115970         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
115972         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
115973         Suggestion from Akim Demaille.
115975         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
115976         (jm_PREREQ_TEMPNAME): New function.
115978 2001-03-16  Paul Eggert  <eggert@twinsun.com>
115980         * lib/tempname.c (uint64_t): Define to uintmax_t if
115981         not defined, and if UINT64_MAX is not defined.
115982         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
115983         Reported by John David Anglin.
115985 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
115987         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
115988         resolve alias if codeset is empty.
115989         * lib/config.charset (BeOS): Use wildcard syntax.
115991 2001-03-13  Jim Meyering  <meyering@lucent.com>
115993         * lib/path-concat.c (path_concat)
115994         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
115995         concatenating e.g., `C:' and `foo'.
115996         From Bruno Haible.
115998 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
116000         * lib/localcharset.c (locale_charset): Don't use
116001         setlocale(LC_CTYPE,NULL). Don't return NULL.
116002         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
116004 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
116006         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
116007         support for DOS/DJGPP.
116009 2001-03-01  Paul Eggert  <eggert@twinsun.com>
116011         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
116012         lacks mkstemp.  Compile our own tempname.c if we compile our own
116013         mkstemp.c, as mkstemp relies on tempname.
116015 2001-03-01  Jim Meyering  <meyering@lucent.com>
116017         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
116018         AH_VERBATIM really does output its argument verbatim.
116020 2001-02-28  Paul Eggert  <eggert@twinsun.com>
116022         * lib/Makefile.am (libfetish_a_SOURCES):
116023         Add dup-safer.c, fopen-safer.c.
116024         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
116026         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
116027         * lib/unistd-safer.h: New files.
116029 2001-02-25  Paul Eggert  <eggert@twinsun.com>
116031         The mkstemp replacement is taken from glibc 2.2.2, with some
116032         portability fixes for use outside glibc, as follows:
116034         * lib/tempname.c (struct_stat64): New macro.
116035         (direxists, __gen_tempname): Use it.
116036         This avoids a portability problem with Solaris 8.
116038         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
116039         (<stddef.h>, <stdint.h>, <string.h>):
116040         Include only if STDC_HEADERS || _LIBC.
116041         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
116042         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
116043         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
116044         (__set_errno): Define this macro if <errno.h> doesn't.
116045         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
116046         Define these macros if <stdio.h> doesn't.
116047         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
116048         Define these macros if <sys/stat.h>
116049         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
116050         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
116051         __xstat64): Define if not _LIBC.
116052         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
116053         (__gen_tempname): Invoke gettimeofday only if
116054         HAVE_GETTIMEOFDAY || _LIBC;
116055         otherwise, fall back on plain "time".
116056         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
116058         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
116060         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
116062 2001-02-18  Paul Eggert  <eggert@twinsun.com>
116064         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
116066 2001-02-17  Paul Eggert  <eggert@twinsun.com>
116068         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
116069         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
116070         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
116071         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
116073 2001-02-17  Paul Eggert  <eggert@twinsun.com>
116075         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
116076         Remove workaround macros for hosts that have mbrtowc but not
116077         mbstate_t, as we now insist on proper declarations for both
116078         before using mbrtowc.
116080 2001-02-17  Jim Meyering  <meyering@lucent.com>
116082         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
116083         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
116084         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
116085         UnixWare 7.1.1.
116087         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
116088         rather than AC_CACHE_VAL.
116090 2001-02-17  Jim Meyering  <meyering@lucent.com>
116092         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
116093         around included file name.
116095         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
116097         * lib/strftime.c: Update from GNU libc (the only changes were to
116098         comments).
116100 2001-02-17  Jim Meyering  <meyering@lucent.com>
116102         * lib/regex.c: Update from libc.
116104 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
116106         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
116107         clash.
116109 2001-02-16  Paul Eggert  <eggert@twinsun.com>
116111         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
116112         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
116113         Reported by Mark Hounschell via Paul Eggert.
116115 2001-02-07  Jim Meyering  <meyering@lucent.com>
116117         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
116119 2001-02-05  Jim Meyering  <meyering@lucent.com>
116121         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
116122         it includes the patch required for `large file' support with at least
116123         HP-UX's 10.20 /bin/cc.
116125 2001-02-03  Jim Meyering  <meyering@lucent.com>
116127         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
116128         AS_IF, now that it works once again (mysteriously).
116129         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
116131 2001-01-30  Jim Meyering  <meyering@lucent.com>
116133         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
116134         * m4/chown.m4: Rename conftestchown to conftest.chown.
116135         * m4/rename.m4: s/conftestdir/conftest.d1/ and
116136         s/conftestdir2/conftest.d2/.
116137         * m4/utimes.m4: s/conftestdata/conftest.data/
116138         Inspired by Pavel Roskin's change in autoconf.
116140 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
116142         * lib/config.charset: Update for FreeBSD 4.2.
116144 2001-01-27  Jim Meyering  <meyering@lucent.com>
116146         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
116147         a use of AS_IF.
116148         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
116150 2001-01-26  Jim Meyering  <meyering@lucent.com>
116152         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
116153         quotearg.c includes it.
116155 2001-01-26  Jim Meyering  <meyering@lucent.com>
116157         * lib/quotearg.c: Include stddef.h.
116158         * lib/quote.c: Include stddef.h.
116159         Reported by Axel Kittenberger.
116161         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
116162         line in double quotes so that it evokes a better diagnostic.
116163         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
116164         Reported by Axel Kittenberger.
116166 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
116168         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
116169         as if it was a `charset'.
116171 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
116173         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
116174         has const.
116176 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
116178         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
116179         to avoid a warning.  Add back 'const' to inptr.
116181 2001-01-20  Jim Meyering  <meyering@lucent.com>
116183         Be sure that headers are checked before used in code compiled
116184         for the type checks.
116185         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
116186         In place of that, invoke jm_CHECK_ALL_TYPES.
116187         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
116188         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
116189         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
116190         The check for ssize_t was mistakenly run before the test for unistd.h.
116192         The configure-time check for stdbool.h was missing.
116193         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
116194         (jm_PREREQ_HASH): New function.
116196 2001-01-17  Jim Meyering  <meyering@lucent.com>
116198         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
116199         for autoconf-2.49c.
116200         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
116202 2001-01-16  Jim Meyering  <meyering@lucent.com>
116204         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
116205         From Bruno Haible.
116207 2001-01-14  Jim Meyering  <meyering@lucent.com>
116209         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
116210         foo and bar.  Create conftestdir/ in the script, not in the C code.
116211         Remove directories in the script, not in the C code.
116212         Remove conftestdir{,2} before trying to create the directory.
116213         Make the entire configure script fail if the mkdir fails.
116215 2001-01-14  Jim Meyering  <meyering@lucent.com>
116217         * lib/rename.c: New file.  From Volker Borchert.
116218         Include stdlib.h, string.h or strings.h, and xalloc.h.
116219         Use strip_trailing_slashes rather than open-coding it.
116221 2001-01-03  Paul Eggert  <eggert@twinsun.com>
116223         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
116225 2001-01-03  Jim Meyering  <meyering@lucent.com>
116227         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
116228         of local `inptr' to avoid warning with some system declarations of
116229         iconv.
116231 2001-01-02  Volker Borchert  <bt@teknon.de>
116233         * m4/rename.m4: New file.
116234         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
116236 2001-01-01  Jim Meyering  <meyering@lucent.com>
116238         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
116239         even on systems with utmpx.h.  It's necessary for the declaration of
116240         utmp's ut_user member.  Reported by Andreas Jaeger.
116242         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
116243         available. They are required for the declarations of getgrgid and
116244         getpwuid resp.
116245         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
116246         Reported by Andreas Jaeger.
116248 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
116250         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
116251         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
116252         so `make install' also works in VPATH builds.
116254 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
116256         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
116257         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
116258         can be used in subdirectories.
116260 2000-12-29  Paul Eggert  <eggert@twinsun.com>
116262         * lib/modechange.c: Do not assume that mode_t uses the
116263         traditional octal encoding.  E.g. "chmod 1 FOO" should set
116264         the other-execute bit of FOO even if S_IXOTH != 1.
116266         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
116267         WOTH, XOTH, ALLM): New macros.
116268         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
116269          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
116270         Use them.
116271         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
116272         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
116273         (mode_compile):
116274         No need to use uintmax_t; unsigned long is long enough.
116275         Don't bother to get suffix since we don't use it.
116277 2000-12-26  Jim Meyering  <meyering@lucent.com>
116279         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
116280         better with autoheader.
116282 2000-12-24  Jim Meyering  <meyering@lucent.com>
116284         * lib/hash.c (is_prime): Return explicit boolean values.
116285         (hash_get_first): Return NULL to appease Irix5.6's 89.
116286         Reported by Nelson Beebe.
116288 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
116290         * lib/localcharset.c (locale_charset): Add support for Win32.
116292 2000-12-18  Paul Eggert  <eggert@twinsun.com>
116294         * lib/physmem.h, lib/physmem.c: New files.
116296         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
116297         (noinst_HEADERS): Add physmem.h.
116299         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
116300         't' for compatibility with Solaris 8 sort.
116302 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
116304         * lib/config.charset: Add support for BeOS.
116306 2000-12-17  Jim Meyering  <meyering@lucent.com>
116308         * m4/dos.m4 (jm_AC_DOS): New file and macro.
116309         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
116311 2000-12-16  Jim Meyering  <meyering@lucent.com>
116313         This bug had a serious impact on chown: `chown N:M FILE' (for integer
116314         N and M) would have treated it like `chown N:N FILE'.
116316         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
116318 2000-12-16  Jim Meyering  <meyering@lucent.com>
116320         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
116321         SHELLS_FILE to a file name that's useful on djgpp systems.
116322         Include stdlib.h.
116323         (ADDITIONAL_DEFAULT_SHELLS): Define.
116324         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
116325         Based mostly on a patch from Prashant TR.
116327 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
116329         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
116330         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
116331         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
116333 2000-12-08  Andreas Schwab  <schwab@suse.de>
116335         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
116336         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
116338 2000-12-07  Jim Meyering  <meyering@lucent.com>
116340         * lib/stripslash.c (ISSLASH): Define.
116341         (strip_trailing_slashes): Use ISSLASH rather than comparing against
116342         `/'.
116343         From Prashant TR.
116345         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
116346         (dir_name_r): Declare this function as static.
116347         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
116348         manifest itself on a name containing a mix of slashes and
116349         backslashes.
116350         Make this function work with names starting with a DOS-style
116351         drive letter and colon prefix.
116352         (dir_name): Append `.' if necessary.
116353         Based mostly on patches from Prashant TR and Eli Zaretskii.
116355         * lib/dirname.h (dir_name_r): Remove prototype.
116357 2000-12-06  Paul Eggert  <eggert@twinsun.com>
116359         * m4/off_t-format.m4: Remove this file.
116360         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
116362 2000-12-06  Jim Meyering  <meyering@lucent.com>
116364         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
116365         replacement strtoull, we may well need the replacement strtoul, too.
116366         Check for declarations of strtoul and strtoull.
116367         Check for strtol.  Mainly as a cue to cause automake to include
116368         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
116369         Check for limits.h -- strtol.c needs it.
116371 2000-12-05  Jim Meyering  <meyering@lucent.com>
116373         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
116375 2000-12-04  Jim Meyering  <meyering@lucent.com>
116377         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
116378         Also include memory.h, stdlib.h, unistd.h if appropriate.
116379         Reported by Andreas Jaeger (conflicting declaration of malloc).
116381 2000-12-02  Jim Meyering  <meyering@lucent.com>
116383         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
116384         * m4/jm-macros.m4 (jm_MACROS): require it.
116386 2000-12-02  Jim Meyering  <meyering@lucent.com>
116388         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
116390 2000-12-01  Paul Eggert  <eggert@twinsun.com>
116392         * lib/memrchr.c: Include <config.h> before any system include file.
116394 2000-11-30  Jim Meyering  <meyering@lucent.com>
116396         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
116398 2000-11-30  Jim Meyering  <meyering@lucent.com>
116400         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
116402 2000-11-29  Paul Eggert  <eggert@twinsun.com>
116404         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
116406 2000-11-26  Jim Meyering  <meyering@lucent.com>
116408         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
116410 2000-11-22  Paul Eggert  <eggert@twinsun.com>
116412         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
116413         size of (size_t) -1; it's not portable.
116415 2000-11-17  Jim Meyering  <meyering@lucent.com>
116417         * lib/strstr.c: Update from GNU libc.
116419 2000-11-17  Akim Demaille  <akim@epita.fr>
116421         * lib/obstack.h: Formatting changes.
116422         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
116423         prevent type checking.
116424         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
116425         cast the value to (void *): assigning a `foo *' to a `void *'
116426         variable is valid.
116427         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
116429 2000-11-16  Jim Meyering  <meyering@lucent.com>
116431         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
116433 2000-11-11  Jim Meyering  <meyering@lucent.com>
116435         * lib/error.c: Add a couple #includes, merging from GNU libc version.
116437 2000-11-10  Jim Meyering  <meyering@lucent.com>
116439         * lib/obstack.h: Update from GNU libc.
116440         * lib/obstack.c: Likewise.
116442 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
116444         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
116446 2000-11-06  Paul Eggert  <eggert@twinsun.com>
116448         * lib/getusershell.c (setusershell): Use rewind rather than
116449         fseek/fseeko, to avoid configuration hassles with fseeko.
116450         Don't bother opening SHELLS_FILE if shellstream is NULL;
116451         it's not necessary.
116453 2000-11-05  Jim Meyering  <meyering@lucent.com>
116455         * lib/makepath.h (make_dir): Declare.
116456         * lib/makepath.c (make_dir): Remove `static' attribute.
116457         Tweak a comment.
116459 2000-11-04  Jim Meyering  <meyering@lucent.com>
116461         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
116463 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
116465         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
116466         last one in a bucket, advance to the next bucket.
116468 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
116470         * lib/fnmatch.c: Do not comment out all the code if we are using
116471         the GNU C library, because in some cases we are replacing buggy
116472         code in the GNU C library itself.
116474 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
116476         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
116477         (regex_compile): Catch bogus \(\1\).
116479 2000-10-30  Paul Eggert  <eggert@twinsun.com>
116481         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
116482         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
116483         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
116485 2000-10-30  Paul Eggert  <eggert@twinsun.com>
116487         * lib/error.h, getline.h, modechange.h:
116488         Remove "2000" from Copyright line, as the file hasn't been
116489         changed this year other than in the copyright notice.
116491         * lib/xalloc.h: Add "2000" to Copyright line, as this file
116492         was changed this year.
116494 2000-10-29  Jim Meyering  <meyering@lucent.com>
116496         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
116497         renaming.
116498         * m4/ls-mntd-fs.m4: Likewise
116500 2000-10-29  Jim Meyering  <meyering@lucent.com>
116502         * lib/xstat.in: Fix grammar in comment.
116504 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
116506         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
116507         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
116508         doesn't define __restrict_arr.
116510 2000-10-28  Jim Meyering  <meyering@lucent.com>
116512         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
116513         (jm_PREREQ_MEMCHR): New function.
116515 2000-10-28  Jim Meyering  <meyering@lucent.com>
116517         * lib/memchr.c: Update from libc.
116518         Adjust for portability:
116519         [HAVE_STDLIB_H]: Include stdlib.h.
116520         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
116521         Undef __memchr, too.
116522         [!weak_alias]: Define __memchr to memchr.
116524         * lib/regex.c: Update from libc.
116525         * lib/regex.h: Likewise.
116526         * lib/getopt1.c: Likewise.
116527         * lib/memcmp.c: Likewise.
116529         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
116530         Avoid using fseek, when possible -- it's broken by design.
116531         Patch by Ulrich Drepper.
116533 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
116535         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
116536         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
116537         Giving in to popular pressure to shut up the compiler with casts.
116539 2000-10-26  Jim Meyering  <meyering@lucent.com>
116541         * lib/strftime.c: Update from libc.
116543 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
116545         * regex.c: More `unsigned char' -> `re_char' changes.
116546         Also change several `int' into `re_wchar_t'.
116547         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
116548         (PUSH_FAILURE_POINTER): Don't cast any more.
116549         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
116550         We want GCC to complain, since this piece of code makes
116551         re_match non-reentrant, which *should* be fixed.
116552         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
116553         (EXTEND_BUFFER): Use RETALLOC.
116554         (SET_LIST_BIT): Don't cast.
116555         (re_wchar_t): New type.
116556         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
116557         that those two functions will always properly return.
116558         (IMMEDIATE_QUIT_CHECK): Cast to void.
116559         (analyse_first): Use recursion rather than an explicit stack.
116560         (re_compile_fastmap): Can't fail anymore.
116561         (re_search_2): Don't check re_compile_fastmap for failure.
116562         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
116563         Now also sets the new value (passed in a new argument).
116564         (re_match_2_internal): Use it.
116565         Also, use a new var `reg' of type size_t when looping through regs
116566         rather than reuse the inappropriate `mcnt'.
116568 2000-10-25  Jim Meyering  <meyering@lucent.com>
116570         * lib/obstack.c: Update from libc.
116572 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
116574         * regex.c (regex_compile): Change the way of handling a range from
116575         a char less than 256 to a char not less than 256.
116577 2000-10-24  Andrew Innes  <andrewi@gnu.org>
116579         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
116580         NT-Emacs only.
116581         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
116582         so that re_search functions only quit when callers expect them to.
116584 2000-10-23  Jim Meyering  <meyering@lucent.com>
116586         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
116587         wrong.  That set_locale call must not have any side effects.
116588         From Paul Eggert.
116590 2000-10-22  Jim Meyering  <meyering@lucent.com>
116592         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
116593         [CYCLIC]: Remove now-unused definition.
116595         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
116596         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
116597         Suggestion from Ulrich Drepper.
116599 2000-10-21  Jim Meyering  <meyering@lucent.com>
116601         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
116602         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
116603         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
116605 2000-10-21  Jim Meyering  <meyering@lucent.com>
116607         * lib/dirname.c (memrchr): Declare if necessary.
116608         (dir_name): Remove the restriction that there be no
116609         trailing slashes.  Now, this code skips past them, effectively
116610         ignoring them.
116611         [TEST_DIRNAME] (main): New unit tests.
116613         * lib/memrchr.c: New file from GNU libc.
116614         Undef __memrchr, too.
116615         [!weak_alias]: Define __memrchr to memrchr.
116616         Guard weak_alias use with `#ifdef weak_alias'.
116618 2000-10-21  Jim Meyering  <meyering@lucent.com>
116620         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
116621         (dir_name): Use dir_name_r.
116622         * lib/dirname.h (dir_name_r): Declare it.
116624 2000-10-17  Jim Meyering  <meyering@lucent.com>
116626         * lib/quote.h (PARAMS): Define and use.
116627         Reported by Akim Demaille.
116629         * lib/getopt.c: Update from libc.
116631 2000-10-16  Jim Meyering  <meyering@lucent.com>
116633         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
116634         setlocale.
116635         From Jan Fedak.
116637 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
116639         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
116641 2000-09-25  Jim Meyering  <meyering@lucent.com>
116643         * lib/md5.h (rol): Define (from GnuPG).
116645         * lib/sha.c: Give credit (GnuPG) where due.
116646         (M): Use rol rather than open-coding it.
116647         Add a FIXME comment.
116649 2000-09-21  Jim Meyering  <meyering@lucent.com>
116651         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
116652         Reported by Michael Stone.
116654 2000-09-20  Jim Meyering  <meyering@lucent.com>
116656         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
116657         (noinst_HEADERS): Add sha.h.
116658         Based on code from Scott G. Miller and from GnuPG.
116660 2000-09-18  Jim Meyering  <meyering@lucent.com>
116662         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
116663         LIBS. Otherwise, everyone ends up linking with -lelf for some
116664         configurations.
116665         Reported by Mike Stone.
116667 2000-09-15  Jim Meyering  <meyering@lucent.com>
116669         * lib/regex.c: Update from libc.
116671 2000-09-10  Jim Meyering  <meyering@lucent.com>
116673         * lib/getopt.c (_getopt_internal): Update from glibc.
116675 2000-09-09  Jim Meyering  <meyering@lucent.com>
116677         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
116678         think it should be used as a general replacement for isascii.
116679         * lib/fnmatch.c: Likewise.
116680         * lib/mbswidth.c: Likewise
116681         * lib/regex.c: Likewise.
116683         Don't use atoi.
116684         * lib/userspec.c: Include sys/param.h and limits.h.
116685         Include xstrtol.h.
116686         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
116687         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
116688         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
116689         UID, GID.  Check range.
116691 2000-09-06  Jim Meyering  <meyering@lucent.com>
116693         * lib/getopt.c (_getopt_internal): Update from glibc.
116695 2000-08-30  Jim Meyering  <meyering@lucent.com>
116697         * lib/strftime.c: Merge in changes from GNU libc.
116699 2000-08-26  Jim Meyering  <meyering@lucent.com>
116701         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
116702         * m4/fpending.m4: New file.
116704 2000-08-26  Jim Meyering  <meyering@lucent.com>
116706         * lib/closeout.c: Include "__fpending.h".
116707         (close_stdout_status): Return right away if there's nothing to flush.
116709         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
116710         * lib/__fpending.c: New file.
116711         * lib/__fpending.h: New file.
116713 2000-08-20  Jim Meyering  <meyering@lucent.com>
116715         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
116716         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
116717         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
116719 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
116721         Improve fileutils installation on systems where running
116722         programs (like install) can't be unlinked.
116723         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
116724         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
116726 2000-08-07  Paul Eggert  <eggert@twinsun.com>
116728         Standardize on "memory exhausted" instead of "Memory exhausted"
116729         or "virtual memory exhausted".
116730         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
116731         "virtual memory exhausted".
116732         * lib/same.c (same_name): Invoke xalloc_die instead of printing
116733         our own message.
116734         * lib/userspec.c (parse_user_spec): Likewise.
116735         * lib/bumpalloc.h: comment fix
116736         * lib/same.c, userspec.c: Include xalloc.h.
116738         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
116739         not char *const and pointing to a constant array.
116740         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
116741         (xrealloc): Comment fix.
116743         * lib/userspec.c (parse_user_spec):
116744         Don't translate a message until just before returning,
116745         to avoid unnecessary translation.
116747 2000-08-07  Jim Meyering  <meyering@lucent.com>
116749         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
116750         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
116751         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
116752         getgroups.c, gethostname.c, getopt.h, group-member.c,
116753         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
116754         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
116755         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
116756         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
116757         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
116758         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
116759         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
116760         yesno.c: Back out Copyright date changes for each file with no change
116761         this year.  This eases coordination with other programs using the same
116762         source code modules.  From Paul Eggert.
116764 2000-08-06  Paul Eggert  <eggert@twinsun.com>
116766         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
116767         not char, for compatibility with glibc 2.1.3 strftime.c.
116769 2000-08-03  Greg McGary  <greg@mcgary.org>
116771         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
116772         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
116773         (EXTEND_BUFFER): Use them.
116775 2000-08-01  Jim Meyering  <meyering@lucent.com>
116777         * lib/dirname.c (ISSLASH): Define.
116778         (BACKSLASH_IS_PATH_SEPARATOR): Define.
116779         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
116780         both `\' and `/' may be use as path separators.
116781         Based on a patch from Prashant TR.
116783 2000-07-31  Paul Eggert  <eggert@twinsun.com>
116785         * lib/quotearg.c (quotearg_n_options): Don't make the initial
116786         slot vector a constant, since it might get modified.
116788 2000-07-31  Jim Meyering  <meyering@lucent.com>
116790         * lib/xmalloc.c: Use `virtual memory exhausted', not
116791         `Memory exhausted'.
116792         * lib/obstack.c (print_and_abort): Likewise.
116794 2000-07-30  Paul Eggert  <eggert@twinsun.com>
116796         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
116797         buffer, so that the caller can always quote one small
116798         component of a "memory exhausted" message in slot 0.
116799         From a suggestion by Jim Meyering.
116801 2000-07-30  Jim Meyering  <meyering@lucent.com>
116803         * lib/makepath.c (make_path): Quote the other instance, too.
116805         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
116806         (STATIC_BUF_SIZE): Define.
116807         (quotearg_n_options): Use only statically allocated storage when
116808         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
116809         than STATIC_BUF_SIZE.
116811 2000-07-29  Jim Meyering  <meyering@lucent.com>
116813         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
116814         * lib/dirname.c (dir_name): Likewise.
116816         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
116817         `/'.
116819         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
116820         (dir_name): Assert that there are no trailing slashes.
116822 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
116824         * lib/mbswidth.h (mbswidth): Add a flags argument.
116825         (mbswidth): New declaration.
116826         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
116827         * lib/mbswidth.c (mbswidth): Add a flags argument.
116828         (mbsnwidth): New function.
116830 2000-07-24  Jim Meyering  <meyering@lucent.com>
116832         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
116834 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116836         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
116838 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116840         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
116841         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
116842         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
116843         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
116844         invoke multibyte primitives.
116846 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116848         * lib/quotearg.c:
116849         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
116850         so that mbstate_t is always defined.
116852         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
116853         be 1 in at least one GCC installation, and this configuration
116854         error is likely to be common.  Ignoring MB_LEN_MAX hurts
116855         performance on hosts that have mbrtowc but have only unibyte
116856         locales, but I assume these hosts are rare.
116858 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116860         * lib/mbswidth.c (_XOPEN_SOURCE):
116861         Don't define; this causes problems on Solaris 7.
116862         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
116864 2000-07-23  Jim Meyering  <meyering@lucent.com>
116866         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
116867         too: getgrgid, getpwuid, getuid.
116869 2000-07-23  Jim Meyering  <meyering@lucent.com>
116871         * lib/basename.c (base_name): Add an assertion.
116873 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
116875         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
116876         shadow its mbsinit function.
116878 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
116880         * lib/mbswidth.h: New file.
116881         * lib/mbswidth.c: New file.
116882         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
116883         (noinst_HEADERS): Add mbswidth.h.
116885 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
116887         * lib/config.charset: Add support for FreeBSD. Improve support for
116888         HP-UX and IRIX 6.
116890 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
116892         * m4/mbswidth.m4: New file.
116893         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
116895 2000-07-15  Jim Meyering  <meyering@lucent.com>
116897         * lib/makepath.c: Include quote.h.
116898         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
116899         corresponding argument in a `quote (...)' call.
116900         Give better diagnostics.
116902         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
116903         (noinst_HEADERS): Add quote.h.
116905         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
116906         from tar's src/misc.c.
116907         * lib/quote.h: New file.  Prototypes for same.
116909 2000-07-14  Paul Eggert  <eggert@twinsun.com>
116911         From a suggestion by Bruno Haible.
116912         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
116913         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
116914         to decide whether to define the BeOS workaround macro;
116915         this adjusts to the change to AC_MBSTATE_T.
116917 2000-07-14  Jim Meyering  <meyering@lucent.com>
116919         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
116920         jm_AC_TYPE_UINTMAX_T.
116922 2000-07-13  Paul Eggert  <eggert@twinsun.com>
116924         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
116926         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
116927         quotearg_buffer_restyled): Add support for
116928         clocale_quoting_style.  Undo previous change to
116929         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
116930         and "{RIGHT QUOTATION MARK}" msgids.
116932 2000-07-10  Paul Eggert  <eggert@twinsun.com>
116934         From a suggestion by Bruno Haible.
116935         * m4/mbstate_t.m4 (AC_MBSTATE_T):
116936         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
116937         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
116938         and mbstate_t, to a single-part test that simply defines mbstate_t.
116939         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
116940         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
116942 2000-07-10  Jim Meyering  <meyering@lucent.com>
116944         * m4/strerror_r.m4: Mirror the correction made in autoconf.
116946         * m4/gnu-source.m4: Output to confdefs.h directly.
116947         Suggestion from Akim Demaille.
116949 2000-07-09  Paul Eggert  <eggert@twinsun.com>
116951         The old behavior of quoting `like this' doesn't look good with
116952         newer, ISO-style fonts.  See:
116953         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
116955         Instead, quote "like this" by default.  Let the translator
116956         tailor the locale-specific quoting behavior by providing
116957         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
116959         * lib/quotearg.c (N_): New macro.
116960         (gettext_default): New function.
116961         (quotearg_buffer_restyled): Use
116962         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
116963         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
116965 2000-07-09  Jim Meyering  <meyering@lucent.com>
116967         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
116968         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
116970         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
116971         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
116973 2000-07-09  Jim Meyering  <meyering@lucent.com>
116975         * lib/Most files: Update copyright dates to include 2000.
116977 2000-07-08  Jim Meyering  <meyering@lucent.com>
116979         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
116980         if not defined.
116981         (xgethostname): Remove now-unnecessary #ifdef.
116982         Move declaration of `err' into loop where it's used.
116984 2000-07-05  Paul Eggert  <eggert@twinsun.com>
116985         and Bruno Haible  <haible@clisp.cons.org>
116987         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
116988         only if the test for an object-type mbstate_t fails.  This
116989         prevents us from mistakenly reporting that mbstate_t is a
116990         system object type after we "#define mbstate_t int" to work
116991         around its lack.
116993 2000-07-05  Paul Eggert  <eggert@twinsun.com>
116994         and Bruno Haible  <haible@clisp.cons.org>
116996         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
116998 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117000         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
117001         to strerror_r.
117002         Include <ctype.h> for use of isalpha.
117004 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117006         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
117007         by allocating a larger buffer. Test the gethostname return value for
117008         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
117009         returns an error and ENAMETOOLONG isn't defined.
117011 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117013         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
117014         dimension.
117016 2000-07-04  Jim Meyering  <meyering@lucent.com>
117018         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
117019         of the deprecated AC_CHECKING.
117021 2000-07-04  Jim Meyering  <meyering@lucent.com>
117023         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
117024         Reported by Bruno Haible.
117026 2000-07-04  Jim Meyering  <meyering@lucent.com>
117028         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
117029         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
117030         lacks mbrtowc.
117032 2000-07-03  Paul Eggert  <eggert@twinsun.com>
117034         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
117035         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
117037 2000-07-03  Paul Eggert  <eggert@twinsun.com>
117038         and Bruno Haible  <haible@clisp.cons.org>
117040         * lib/quotearg.c (mbrtowc):
117041         Assign to *pwc, and return 1 only if result is nonzero.
117042         (iswprint): Use ISPRINT when substituting our own mbrtowc.
117044 2000-07-03  Jim Meyering  <meyering@lucent.com>
117046         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
117048 2000-07-03  Jim Meyering  <meyering@lucent.com>
117050         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
117051         This is necessary to get a definition of e.g., UTMP_FILE on
117052         HP-UX 10.20.
117053         From Bob Proulx.
117055 2000-07-02  Jim Meyering  <meyering@lucent.com>
117057         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
117059         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
117060         AC_LIBOBJ(function_name).
117061         * m4/chown.m4: Likewise.
117062         * m4/fnmatch.m4: Likewise.
117063         * m4/ftruncate.m4: Likewise.
117064         * m4/getgroups.m4: Likewise.
117065         * m4/getline.m4: Likewise.
117066         * m4/group-member.m4: Likewise.
117067         * m4/jm-macros.m4: Likewise.
117068         * m4/lstat.m4: Likewise.
117069         * m4/malloc.m4: Likewise.
117070         * m4/memcmp.m4: Likewise.
117071         * m4/nanosleep.m4: Likewise.
117072         * m4/putenv.m4: Likewise.
117073         * m4/realloc.m4: Likewise.
117074         * m4/regex.m4: Likewise.
117075         * m4/stat.m4: Likewise.
117076         * m4/strftime.m4: Likewise.
117078 2000-07-02  Jim Meyering  <meyering@lucent.com>
117080         * lib/quotearg.c (mbstate_t): Don't define here.
117082 2000-07-02  Jim Meyering  <meyering@lucent.com>
117084         * lib/nanosleep.c (SIGCONT): Define if not already defined.
117086 2000-07-01  Jim Meyering  <meyering@lucent.com>
117088         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
117090 2000-07-01  Jim Meyering  <meyering@lucent.com>
117092         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
117093         problem.
117095 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
117097         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
117098         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
117100 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
117102         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
117103         per change in ../m4/ls-mntd-fs.m4.
117104         (read_filesystem_list): Ignore symbolic links.
117106 2000-06-29  Jim Meyering  <meyering@lucent.com>
117108         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
117109         for declaration of strcmp.
117111         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
117113         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
117114         Avoid warning by casting result to `char *' to remove `const'.
117116 2000-06-28  Jim Meyering  <meyering@lucent.com>
117118         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
117119         included by quotearg.c, for which we perform this test.  From
117120         Bruno Haible.
117122 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
117124         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
117125         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
117126         <utmpx.h> exists, put readutmp.o into LIBOBJS.
117128 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
117130         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
117132 2000-06-26  Paul Eggert  <eggert@twinsun.com>
117134         savedir now sets errno on failure and invokes xmalloc to get memory.
117135         Fix a couple of other minor bugs while we're at it.
117137         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
117138         (NAMLEN): Remove macro.
117139         (malloc, realloc): Remove decls.
117140         (stpcpy): Likewise.
117141         ("xalloc.h"): Include.
117142         (NAME_SIZE_DEFAULT): New macro.
117143         (savedir): Use xmalloc / xrealloc to allocate memory.
117144         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
117145         Skip "" directory entries.
117146         Use strlen to calculate directory entry length, since the old method
117147         is rarely used these days and isn't worth supporting.
117148         Don't use a pointer after freeing it.
117149         Check for integer overflow when calculating allocation size.
117150         Use memcpy to copy entries, instead of stpcpy.
117151         Set errno properly when returning NULL.
117152         Check for readdir error.
117154 2000-06-26  Jim Meyering  <meyering@lucent.com>
117156         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
117158 2000-06-25  Jim Meyering  <meyering@lucent.com>
117160         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
117161         Linux header bug when _XOPEN_SOURCE is defined to 500.
117163 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
117165         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
117166         deficiency.
117168 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
117170         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
117171         Include xalloc.h.
117172         Don't include <stdlib.h>.  Don't declare malloc, realloc.
117174 2000-06-24  Jim Meyering  <meyering@lucent.com>
117176         * m4/strerror_r.m4: Revive this file -- to try out an experimental
117177         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
117178         for which strerror does return char*, but which lacks a conveniently
117179         accessible declaration of the function.  If the compile-test says
117180         strerror_r doesn't work, then resort to a `run'-test that works on
117181         BeOS and segfaults on DEC Unix.
117183 2000-06-24  Jim Meyering  <meyering@lucent.com>
117185         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
117187 2000-06-23  Paul Eggert  <eggert@twinsun.com>
117189         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
117190         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
117192 2000-06-23  Paul Eggert  <eggert@twinsun.com>
117194         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
117195         (mbrtowc, mbstate_t): Define substitutes if
117196         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
117197         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
117198         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
117200 2000-06-23  Jim Meyering  <meyering@lucent.com>
117202         * m4/afs.m4: Add missing AC_MSG_RESULT.
117203         Reported by Bruno Haible.
117205         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
117206         Suggestion from Bruno Haible.
117208 2000-06-23  Jim Meyering  <meyering@lucent.com>
117210         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
117212 2000-06-21  Jim Meyering  <meyering@lucent.com>
117214         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
117216 2000-06-21  Jim Meyering  <meyering@lucent.com>
117218         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
117219         (noinst_HEADERS): Add getstr.h.
117221         * lib/getline.c (getstr): Move into a separate file.
117222         * lib/getstr.c (getstr): New file, extracted from getline.c, with
117223         the following changes: new parameter, delim2; both delim[12]
117224         parameters have type `int', not `char'.  The latter would lose
117225         with 8-bit delimiters.
117226         * lib/getstr.h: New file.
117228 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117230         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
117231         than 1024, return a memory chunk of least possible size, instead
117232         of size PATH_MAX + 2. In the loop, increment the size proportionally.
117233         Use free/xmalloc instead of xrealloc to avoid copying for very long
117234         paths.
117236 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117238         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
117239         the empty string.
117241 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117243         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
117244         address, not strdup.  Include <stdlib.h> and don't declare free().
117246 2000-06-19  Jim Meyering  <meyering@lucent.com>
117248         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
117250 2000-06-18  Jim Meyering  <meyering@lucent.com>
117252         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
117254         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
117255         `checking whether...' message to be consistent with that of the
117256         lstat test.
117258 2000-06-18  Jim Meyering  <meyering@lucent.com>
117260         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
117261         Besides, these days every porting target provides a mkdir function.
117263         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
117264         needed. (this snippet comes from src/system.h).
117266 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
117268         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
117270 2000-06-15  Paul Eggert  <eggert@twinsun.com>
117272         * lib/human.c (adjust_value): New function.
117273         (human_readable_inexact): Apply rounding style even when
117274         printing approximate values.
117276 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117278         * lib/human.c (human_readable_inexact): Allow an input block
117279         size that is not a multiple of the output block size, and vice versa.
117280         Reported by Piergiorgio Sartor.
117282 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117284         * lib/getdate.y (get_date): Apply relative times after time
117285         zone indicator, not before.  Reported by Todd A. Jacobs.
117287 2000-06-13  Jim Meyering  <meyering@lucent.com>
117289         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
117291         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
117293 2000-06-12  Paul Eggert  <eggert@twinsun.com>
117295         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
117297 2000-06-12  Jim Meyering  <meyering@lucent.com>
117299         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
117300         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
117301         optional argument.
117302         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
117303         the optional argument, `lib'.
117305 2000-06-08  Jim Meyering  <meyering@lucent.com>
117307         * m4/largefile.m4: Remove file (now that it's part of autoconf).
117309 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117311         Rewrite largefile configuration so that we don't need to run
117312         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
117313         AC_CANONICAL_HOST in configure.in -- jmm]
117315         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
117316         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
117317         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
117318         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
117319         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
117320         All uses changed.
117321         Instead of inspecting the output of getconf, try to compile the
117322         test program without and with the macro definition.
117323         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
117324         for getconf.  Instead, check for the needed flags by compiling
117325         test programs.
117327 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117329         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
117331 2000-06-04  Jim Meyering  <meyering@lucent.com>
117333         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
117334         SunOS 4.1.4 for which gid_t is an unsigned type.
117336 2000-06-03  Jim Meyering  <meyering@lucent.com>
117338         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
117339         now that autoconf requires that.
117341         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
117342         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
117343         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
117345 2000-06-03  Jim Meyering  <meyering@lucent.com>
117347         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
117349 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117351         * m4/glibc21.m4: New file.
117352         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
117354 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117356         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
117357         newer, don't install charset.alias.
117358         * lib/config.charset: Change the Linux/glibc rules so they become empty
117359         on glibc-2.1 or newer.
117361 2000-06-02  Jim Meyering  <meyering@lucent.com>
117363         * lib/mountlist.c: Back out last change.  Instead, do this...
117364         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
117365         me_dummy member using the same `ignore'-testing code.
117366         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
117367         fs_type strings.
117368         From Mark D. Roth.
117370 2000-05-29  Jim Meyering  <meyering@lucent.com>
117372         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
117373         mounts with the `ignore' attribute.  Based on a patch from
117374         Mark D. Roth.
117376 2000-05-28  Jim Meyering  <meyering@lucent.com>
117378         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
117379         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117380         * m4/stat.m4: Likewise.
117381         * m4/lstat.m4: Likewise.
117382         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
117384         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
117385         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
117387 2000-05-26  Jim Meyering  <meyering@lucent.com>
117389         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
117391 2000-05-24  Jim Meyering  <meyering@lucent.com>
117393         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
117394         autoconf requires that.
117395         * m4/lib-check.m4: Likewise.
117396         * m4/jm-macros.m4: Likewise.
117397         * m4/strftime.m4: Likewise.
117399         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
117400         AC_CHECK_DECLS, now that autoconf requires that.
117402 2000-05-22  Jim Meyering  <meyering@lucent.com>
117404         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117405         * m4/lstat.m4: Likewise.
117407 2000-05-22  Jim Meyering  <meyering@lucent.com>
117409         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
117411 2000-05-20  Jim Meyering  <meyering@lucent.com>
117413         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
117414         (jm_PREREQ): Use it.
117416 2000-05-18  Jim Meyering  <meyering@lucent.com>
117418         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
117419         back, too, since it may have been modified by allocate_entry.
117420         (hash_delete): Rewrite to use neither the assignment operator
117421         nor the comma operator in an if-expression.
117423 2000-05-15  Paul Eggert  <eggert@twinsun.com>
117425         * lib/closeout.c:
117426         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
117427         Remove; no longer needed.
117428         "quotearg.h": Add include.
117429         (file_name): Do not bother to explicitly initialize to NULL; it's less
117430         efficient on some hosts.
117431         (close_stdout_status): Remove test as to whether stdout was already
117432         closed; it breaks for the case "echo x | sort >&-".
117433         Quote file name colons.
117434         Do not assume that _("write error") lacks format strings.
117436 2000-05-15  Jim Meyering  <meyering@lucent.com>
117438         * lib/version-etc.c (version_etc_copyright): Update the copyright
117439         string used in all --version output.
117441 2000-05-14  Jim Meyering  <meyering@lucent.com>
117443         * lib/closeout.c (close_stdout_set_file_name): New function.
117444         (close_stdout_status): Use new file-scoped global.
117445         Return right away if fstat says the stdout file descriptor is invalid.
117446         * lib/closeout.h (close_stdout_set_file_name): Declare.
117448 2000-05-10  Jim Meyering  <meyering@lucent.com>
117450         * lib/closeout.c [default_exit_status]: New file-scoped variable.
117451         (close_stdout_set_status): New function.
117452         * lib/closeout.h (close_stdout_set_status): Declare.
117454 2000-05-09  Jim Meyering  <meyering@lucent.com>
117456         * m4/gettext.m4: Rename this...
117457         * m4/libintl.m4: ...to this.
117459 2000-05-08  Jim Meyering  <meyering@lucent.com>
117461         * lib/long-options.c: Don't include closeout.h.
117462         (parse_long_options): Don't call close_stdout for --version.
117464 2000-05-06  Paul Eggert  <eggert@twinsun.com>
117466         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
117467         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
117468         2.1.3 bug.  This avoids a clash when files like regex.c define
117469         _GNU_SOURCE.
117471 2000-05-06  Jim Meyering  <meyering@lucent.com>
117473         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
117474         (AC_REPLACE_FUNCS): Add strnlen.
117476         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
117477         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
117479         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
117480         AC_SEARCH_LIBS call for nanosleep.
117481         (LIB_NANOSLEEP): Set and AC_SUBST.
117483 2000-05-06  Jim Meyering  <meyering@lucent.com>
117485         * lib/strnlen.c: Undefine __strnlen and strnlen.
117486         [!weak_alias]: Define __strnlen to strnlen.
117488         * lib/atexit.c: New file, from libiberty.
117490 2000-05-06  Jim Meyering  <meyering@lucent.com>
117492         * lib/closeout.c (close_stdout_status): Also check for errors on the
117493         stderr stream.
117495 2000-05-05  Jim Meyering  <meyering@lucent.com>
117497         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
117498         AC_SEARCH_LIBS call for clock_gettime.
117499         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
117501         * m4/search-libs.m4: Update from autoconf.
117503         su doesn't work on Solaris 2.6.
117504         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
117505         <shadow.h>.  Reported by Dragos Harabor.
117507 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
117509         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
117510         memcpy instead of xmalloc, xrealloc, path_concat.
117511         (locale_charset): Treat empty environment variables as absent.
117512         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
117514 2000-05-04  Jim Meyering  <meyering@lucent.com>
117516         * lib/getopt.c: Update from glibc.
117517         * lib/obstack.c: Likewise.
117518         * lib/obstack.h: Likewise.
117519         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
117520         file
117522         * lib/regex.h: Likewise.
117523         * lib/strndup.c: Likewise.
117524         * lib/strnlen.c: New file, from glibc.
117526 2000-05-03  Jim Meyering  <meyering@lucent.com>
117528         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
117530 2000-05-02  Paul Eggert  <eggert@twinsun.com>
117532         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
117533         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
117534         compile-time test, rather than inspecting host and OS, to
117535         decide whether to define _LARGEFILE_SOURCE.
117537 2000-05-01  Jim Meyering  <meyering@lucent.com>
117539         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
117541         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
117542         Based on a patch from Bruno Haible.
117544 2000-05-01  Jim Meyering  <meyering@lucent.com>
117546         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
117548 2000-04-29  Jim Meyering  <meyering@lucent.com>
117550         * lib/path-concat.c: Declare strdup only if it's not defined.
117551         * lib/canon-host.c: Likewise.
117553 2000-04-28  Jim Meyering  <meyering@lucent.com>
117555         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
117556         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
117557         is included first, then limits.h is included by locale.h by libintl.h.
117558         From John David Anglin.
117560 2000-04-25  Jim Meyering  <meyering@lucent.com>
117562         * lib/makepath.c (S_IRWXUGO): Define.
117563         (make_path): Always perform explicit chmod if MODE specifies any
117564         of the `special' permission bits.  Prompted by a bug report against
117565         install from Mate Wierdl and Joost van Baal.
117567 2000-04-18  Jim Meyering  <meyering@lucent.com>
117569         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
117570         (jm_PREREQ): Use it.
117572 2000-04-18  Jim Meyering  <meyering@lucent.com>
117574         * lib/README: New file.
117576         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
117577         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
117579 2000-04-17  Jim Meyering  <meyering@lucent.com>
117581         Get it right :-)
117582         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
117583         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
117584         Suggestion from Akim Demaille.
117586 2000-04-17  Jim Meyering  <meyering@lucent.com>
117588         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
117589         the definition of it to rpl_strftime also defined-away the system's
117590         declaration.
117592 2000-04-15  Jim Meyering  <meyering@lucent.com>
117594         Use `C' to denote so-called `contiguous' files, the same way
117595         that tar does.
117596         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
117597         (ftypelet): Use S_ISCTG.
117598         From Michael Deutschmann.
117600 2000-04-14  Jim Meyering  <meyering@lucent.com>
117602         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
117603         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
117604         clobbered.
117606 2000-04-14  Jim Meyering  <meyering@lucent.com>
117608         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
117610 2000-04-13  Jim Meyering  <meyering@lucent.com>
117612         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
117613         AH_VERBATIM to insert required #ifndef into config.h.in.
117614         Suggestion from Akim Demaille.
117616 2000-04-12  Jim Meyering  <meyering@lucent.com>
117618         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
117619         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
117620         Christian Krackowizer.
117622         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
117623         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
117624         (AC_SYS_LARGEFILE): Require.
117625         (AM_C_PROTOTYPES): Require.
117627 2000-04-08  Jim Meyering  <meyering@lucent.com>
117629         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
117630         names don't conflict.  Reported by Eli Zaretskii.
117632 2000-04-07  Jim Meyering  <meyering@lucent.com>
117634         * lib/putenv.c: Move inclusion of errno.h so it follows that of
117635         sys/types.h, to work around system header problems on AIX 3.2.5.
117636         From Bruno Haible.
117638 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
117640         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
117641         bug.  Deal with the different error behavior of Irix iconv.
117643 2000-04-05  Paul Eggert  <eggert@twinsun.com>
117645         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
117646         IRIX if the installer said otherwise.
117648 2000-04-05  Jim Meyering  <meyering@lucent.com>
117650         Portability tweaks required for ultrix4.3.
117651         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
117652         (jm_CHECK_DECLS): Add getutent to the list of functions.
117653         (_jm_DECL_HEADERS): Add utmpx.h.
117654         From John David Anglin.
117656         * m4/strftime.m4: Back out the 2000-04-02 change.
117657         Instead of that change, simply undefine putenv in the test program.
117659 2000-04-05  Jim Meyering  <meyering@lucent.com>
117661         Portability tweaks required for ultrix4.3.
117662         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
117663         getutent.
117664         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
117665         * lib/canon-host.c: Declare strdup.
117666         * lib/path-concat.c: Likewise.
117667         From John David Anglin.
117669 2000-04-04  Jim Meyering  <meyering@lucent.com>
117671         Be more DOS 8.3-friendly.
117672         * lib/ref-add.sin: Renamed from ref-add.sed.in.
117673         * lib/ref-del.sin: Renamed from ref-del.sed.in.
117674         * lib/Makefile.am: Reflect renaming.
117675         Reported by Eli Zaretskii.
117677         Use a temporary file name that won't clash with `charset.alias'
117678         in the DOS 8.3 name space.
117679         * lib/Makefile.am (charset_tmp): Define.
117680         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
117681         (uninstall-local): Likewise.
117682         Reported by Eli Zaretskii.
117684 2000-04-03  Jim Meyering  <meyering@lucent.com>
117686         * m4/gettext.m4: Fix typo in comment.
117688         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
117689         textutils/configure.in).  Suggestion from Paul Eggert.
117690         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
117692 2000-04-02  Paul Eggert  <eggert@twinsun.com>
117694         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
117695         variable in the shell rather than using putenv, which isn't
117696         portable.  This avoids the configure-time inter-test dependency
117697         on the potentially-renamed putenv function.
117699 2000-03-30  Paul Eggert  <eggert@twinsun.com>
117701         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
117702         before checking struct stat.st_blksize, so that
117703         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
117705 2000-03-29  Paul Eggert  <eggert@twinsun.com>
117707         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
117708         since strftime.c uses HAVE_STRFTIME to decide whether to use
117709         the underlying strftime.
117711 2000-03-29  Paul Eggert  <eggert@twinsun.com>
117713         * lib/time/strftime.c (my_strftime): Make sure we call the system
117714         strftime, not ourselves, when invoking the underlying strftime.
117716 2000-03-24  Jim Meyering  <meyering@lucent.com>
117718         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
117719         (charset_alias): Define.
117720         (install-exec-local): Factor out common code.
117721         (uninstall-local): Split lines longer than 80.
117722         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
117723         (SUFFIXES): Define.
117724         (.sed.in.sed): New rule.  Don't redirect directly to $@.
117725         (CLEANFILES): Add ref-add.sed and ref-del.sed.
117727 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
117729         * lib/config.charset: Output a line containing "Packages using this
117730         file".
117731         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
117732         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
117733         ref-del.sed): New rules.
117735 2000-03-17  Jim Meyering  <meyering@lucent.com>
117737         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
117738         Otherwise, include <strings.h>
117740 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
117742         * lib/unicodeio.c (utf8_wctomb): New function.
117743         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
117744         format instead of in UCS-4 with platform dependent endianness.
117746 2000-03-10  Jim Meyering  <meyering@lucent.com>
117748         * m4/lib-check.m4: Look for getspnam in -lgen, too.
117749         From Marco Franzen.
117751 2000-03-07  Paul Eggert  <eggert@twinsun.com>
117753         * lib/savedir.c (savedir): Work even if directory size is
117754         negative; this can happen with some screwy NFS configurations.
117756 2000-03-06  Jim Meyering  <meyering@lucent.com>
117758         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
117759         if it's NULL (because we ran out of memory).  From Bruno Haible.
117761 2000-03-05  Jim Meyering  <meyering@lucent.com>
117763         * lib/localcharset.c ("path-concat.h"): Include.
117764         (get_charset_aliases): Use path_concat instead of ANSI string
117765         concatenation.
117767         * lib/unicodeio.h (PARAMS): Define.
117768         Use it to guard prototype.
117770 2000-03-04  Jim Meyering  <meyering@lucent.com>
117772         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
117773         for lib/localcharset.c.
117775 2000-03-04  Jim Meyering  <meyering@lucent.com>
117777         * lib/Makefile.am (install-exec-local): Create $(libdir) before
117778         installing into it.
117779         (uninstall-local): Uncomment this rule so `make distcheck' works
117780         once again.
117782         * lib/unicodeio.c (<errno.h>): Include it.
117783         (errno): Declare if not defined.
117785         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
117787         * lib/config.charset: New version, incorporating remarks from a linux
117788         i18n mailing list.  From Bruno Haible.
117790 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
117792         * m4/codeset.m4: New file.
117793         * m4/iconv.m4: New file.
117794         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
117796 2000-03-03  Jim Meyering  <meyering@lucent.com>
117798         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
117800 2000-03-02  Jim Meyering  <meyering@lucent.com>
117802         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
117803         the messages come out on separate lines.
117805         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
117806         rather than jm_CHECK_DECLARATIONS.
117807         * m4/decl.m4: Remove now-unused file.
117809         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
117810         geteuid.
117812 2000-03-02  Jim Meyering  <meyering@lucent.com>
117814         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
117816 2000-03-01  Jim Meyering  <meyering@lucent.com>
117818         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
117819         * lib/unicodeio.c: Likewise.
117821 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
117823         * lib/config.charset: New file.
117824         * lib/localcharset.c: New file.
117825         * lib/unicodeio.h, lib/unicodeio.c: New files.
117826         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
117827         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
117828         (noinst_HEADERS): Add unicodeio.h.
117829         (all-local, install-exec-local, charset.alias): New targets.
117831 2000-02-28  Paul Eggert  <eggert@twinsun.com>
117833         * lib/quotearg.c (ALERT_CHAR): New macro.
117834         (quotearg_buffer_restyled): Use it.
117836 2000-02-27  Jim Meyering  <meyering@lucent.com>
117838         * m4/check-decl.m4: Add getenv to the list.
117840 2000-02-27  Jim Meyering  <meyering@lucent.com>
117842         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
117843         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
117845         * lib/backupfile.c: Guard inclusion of stdlib.h with
117846         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
117847         Declare malloc if needed.
117849         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
117850         `#ifndef HAVE_DECL..'
117851         now that autoconf always defines the HAVE_DECL_ symbols.
117852         * lib/human.c: Likewise.
117853         * lib/same.c: Likewise.
117854         * lib/strtoumax.c: Likewise.
117856         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
117857         declaration check was not run.
117858         * lib/hash.c: Likewise.
117859         * lib/human.c: Likewise.
117860         * lib/same.c: Likewise.
117861         * lib/strtoumax.c: Likewise.
117863         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
117864         `.', then first look up the entire `.'-containing string as a login
117865         name.
117867 2000-02-23  Jim Meyering  <meyering@lucent.com>
117869         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
117870         in place of my hack.
117872 2000-02-18  Paul Eggert  <eggert@twinsun.com>
117874         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
117875         (textint): New typedef.
117876         (parser_control): Member year changed from int to textint.
117877         All uses changed.
117878         (YYSTYPE): Removed; replaced by %union with int and textint members.
117879         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
117880         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
117881         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
117882         (tSNUMBER, tUNUMBER): Now of type <textintval>.
117883         (date, number, to_year): Use width of number in digits, not its value,
117884         to determine whether it's a 2-digit year, or a 2-digit time.
117885         (yylex): Store number of digits of numeric tokens.
117886         Reported by John Kendall.
117888         (parser_control): Changed from struct parser_control to typedef (for
117889         consistency).  All uses changed.
117891         (tID): Removed; not used.
117892         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
117894 2000-02-14  Paul Eggert  <eggert@twinsun.com>
117896         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
117897         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
117899 2000-02-12  Jim Meyering  <meyering@lucent.com>
117901         * lib/userspec.c (ISDIGIT): Define it.
117902         (isdigit): Remove definition.
117903         (is_number): Use ISDIGIT, not isdigit.
117904         <libintl.h>: Include.
117905         (_ and N_): Define.
117906         (parse_user_spec): Mark translatable strings.
117908 2000-02-10  Jim Meyering  <meyering@lucent.com>
117910         With these changes, nanosleep.[ch] are finally enough like the other
117911         lib/* replacement files to compile on a few more losing systems.
117913         * lib/nanosleep.h: Don't include config.h.
117914         Remove prototype from declaration of nanosleep.
117915         (PARAMS): Remove now-unneeded definition.
117916         * lib/nanosleep.c: #undef nanosleep.
117917         (rpl_nanosleep): Rename from nanosleep.
117919 2000-02-10  Jim Meyering  <meyering@lucent.com>
117921         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
117922         gnu_nanosleep to rpl_nanosleep.
117924 2000-02-09  Jim Meyering  <meyering@lucent.com>
117926         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
117927         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
117929 2000-02-08  Akim Demaille  <akim@epita.fr>
117931         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
117932         `[' and `]' and remove uses of `changequote'.
117933         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
117934         (AC_SYS_LARGEFILE): Likewise.
117935         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
117936         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
117937         of changequote.
117938         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
117939         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
117940         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
117941         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
117943 2000-02-05  Jim Meyering  <meyering@lucent.com>
117945         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
117946         Remove explicit use of AC_HEADER_TIME.  It is required by
117947         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
117948         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
117949         in autoconf whereby the expansion of the latter ended up preceding
117950         the expansion of its prerequisite, AC_HEADER_TIME.
117951         Reported by Volker Borchert.
117953 2000-02-03  Jim Meyering  <meyering@lucent.com>
117955         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
117957 2000-02-03  Jim Meyering  <meyering@lucent.com>
117959         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
117960         rather than with `#if HAVE_UTMPNAME'.
117962 2000-02-02  Jim Meyering  <meyering@lucent.com>
117964         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
117965         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
117966         Reported by Eli Zaretskii.
117968 2000-02-01  Jim Meyering  <meyering@lucent.com>
117970         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
117972 2000-01-31  Jim Meyering  <meyering@lucent.com>
117974         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
117975         functions.  Add the time.h and sys/time.h headers along with the
117976         AC_REQUIRE'ment of AC_HEADER_TIME.
117978 2000-01-31  Jim Meyering  <meyering@lucent.com>
117980         * lib/nanosleep.h (nanosleep): Guard declaration with
117981         `#if ! HAVE_DECL_NANOSLEEP'.
117982         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
117983         the declaration in that vendor's sys/timers.h.
117984         Reported by Christian Krackowizer.
117986         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
117987         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
117988         (ISPRINT): Likewise.
117989         Reported by Tom Tromey.
117991 2000-01-30  Jim Meyering  <meyering@lucent.com>
117993         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
117995         * m4/prereq.m4 (utmp_includes): Define.
117996         Check for ut_user and ut_name members in both struct utmpx
117997         and struct utmp.
117999 2000-01-30  Jim Meyering  <meyering@lucent.com>
118001         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
118002         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
118003         header files where only utmpx.ut_user is declared.
118005         * lib/readutmp.h (UT_USER): Define.
118007 2000-01-29  Jim Meyering  <meyering@lucent.com>
118009         * m4/lib-check.m4: New file containing library-related checks from
118010         fileutils and sh-utils (textutils had none).
118012 2000-01-28  Jim Meyering  <meyering@lucent.com>
118014         * m4/perl.m4: Change format of warning message to look more like that
118015         from the missing script.  Suggestion from François Pinard.
118017 2000-01-25  Jim Meyering  <meyering@lucent.com>
118019         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
118020         well as time.h in the compile check.
118021         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
118022         Fix typo in cross-compiling case: s/yes/no/.
118024 2000-01-23  Jim Meyering  <meyering@lucent.com>
118026         * m4/jm-macros.m4: Move df-related tests here from
118027         fileutils/configure.in
118029         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
118030         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
118032         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
118033         s/space/ac_fsusage_space/.
118034         (jm_FILE_SYSTEM_USAGE): Take two parameters.
118036         * m4/ftruncate.m4: New file (derived from part of
118037         fileutils/configure.in).
118038         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
118039         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
118041         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
118042         AC_SUBST these here, rather than just in sh-util/configure.in, so
118043         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
118044         all the same.
118045         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
118046         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
118047         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
118048         (AC_SUBST(POW_LIBM)): Likewise.
118049         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
118051 2000-01-23  Jim Meyering  <meyering@lucent.com>
118053         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
118054         obstack.c.
118056 2000-01-22  Jim Meyering  <meyering@lucent.com>
118058         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
118060         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
118062         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
118063         configure.in
118064         (AC_CHECK_HEADERS): Likewise for sh-utils.
118065         (AC_CHECK_HEADERS): Likewise for textutils.
118066         Merge the three lists of headers.
118068         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
118069         from fileutils' configure.in.
118071         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
118072         code. Moved tests into their own function (_jm_DECL_HEADERS) in
118073         check-decl.m4.
118075         * m4/check-decl.m4: Use #if rather than #ifdef.
118076         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
118077         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
118078         (_jm_DECL_HEADERS): Define new function.
118079         (jm_CHECK_DECLARATIONS): Require it.
118081 2000-01-22  Jim Meyering  <meyering@lucent.com>
118083         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
118084         [! HAVE_DECL_STRTOULL]: Declare strtoull.
118085         Required for some AIX systems.  Reported by Christian Krackowizer.
118086         [TESTING] (main): New function.
118088         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
118089         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
118090         letters.
118092         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
118093         iswprint.
118095         * lib/strverscmp.c (ISDIGIT): Define.
118096         (strverscmp): Use ISDIGIT, not isdigit.
118098 2000-01-19  Jim Meyering  <meyering@lucent.com>
118100         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
118101         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
118102         defines `struct timespec' in <sys/time.h>
118104         * m4/c-bs-a.m4: Remove uses of changequote altogether.
118105         Thanks to Akim for explaining.
118107 2000-01-17  Paul Eggert  <eggert@twinsun.com>
118109         * lib/nanosleep.c (nanosleep):
118110         Don't use SA_INTERRUPT to decide whether to call sigaction, as
118111         POSIX.1 doesn't require SA_INTERRUPT and some systems
118112         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
118113         it's been part of POSIX.1 since day 1 (in 1988).
118115 2000-01-17  Jim Meyering  <meyering@lucent.com>
118117         * lib/interlock: Remove unused file.  Reported by François Pinard.
118119 2000-01-16  Paul Eggert  <eggert@twinsun.com>
118121         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
118122         alert, backslash, formfeed, and vertical tab unnecessarily in
118123         shell quoting style.
118125 2000-01-16  Jim Meyering  <meyering@lucent.com>
118127         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
118128         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
118129         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
118130         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
118132 2000-01-16  Jim Meyering  <meyering@lucent.com>
118134         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
118135         because the latter didn't work.
118137 2000-01-15  Jim Meyering  <meyering@lucent.com>
118139         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
118140         (AC_REPLACE_FUNCS): Add memcpy and memset.
118141         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
118142         Add strpbrk.
118143         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
118145 2000-01-12  Jim Meyering  <meyering@lucent.com>
118147         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
118148         (jm_PREREQ): Use it.
118149         (jm_PREREQ_READUTMP): New macro.
118150         (jm_PREREQ): Use it.
118152 2000-01-11  Paul Eggert  <eggert@twinsun.com>
118154         Quote multibyte characters correctly.
118155         * m4/c-bs-a.m4: New file.
118156         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
118157         (jm_PREREQ): Use it.
118159 2000-01-11  Paul Eggert  <eggert@twinsun.com>
118161         * m4/uintmax_t.m4: Port to autoconf 2.13.
118163 2000-01-08  Jim Meyering  <meyering@ascend.com>
118165         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
118166         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
118168 2000-01-04  Jim Meyering  <meyering@ascend.com>
118170         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
118171         jm_STRUCT_DIRENT_D_TYPE.
118172         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
118173         jm_STRUCT_DIRENT_D_INO.
118174         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
118175         jm_STRUCT_UTIMBUF.
118176         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
118177         renamings.
118178         * m4/utime.m4: Likewise.
118180         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
118181         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
118183 2000-01-03  Paul Eggert  <eggert@twinsun.com>
118185         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
118186         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
118188 2000-01-02  Jim Meyering  <meyering@ascend.com>
118190         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
118191         remember if this is necessary.
118193 1999-12-26  Jim Meyering  <meyering@ascend.com>
118195         * m4/jm-macros.m4: Use it here.
118196         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
118198 1999-12-23  Jim Meyering  <meyering@ascend.com>
118200         * m4/jm-macros.m4: Check for clock_gettime (moved from
118201         fileutils/configure.in)
118202         Check for gettimeofday.
118204 1999-12-20  Jim Meyering  <meyering@ascend.com>
118206         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
118207         autoconf-2.14a-1999-12-20.
118209 1999-12-19  Jim Meyering  <meyering@ascend.com>
118211         * m4/lstat-slash.m4: New file.
118212         * m4/jm-macros.m4: Use the new macro:
118213         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
118215 1999-12-07  Jim Meyering  <meyering@ascend.com>
118217         * m4/perl.m4: Require that File::Compare be available, too.
118218         Too many systems seem to lack it.
118220         * m4/strftime.m4: Add checks for most of the cpp macros tested in
118221         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
118223 1999-11-18  Paul Eggert  <eggert@twinsun.com>
118225         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
118226         problem with the QNX 4.25 shell, which doesn't propagate exit
118227         status of failed commands inside shell assignments.
118229 1999-11-17  Jim Meyering  <meyering@ascend.com>
118231         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
118233 1999-11-07  Jim Meyering  <meyering@ascend.com>
118235         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
118237 1999-11-06  Jim Meyering  <meyering@ascend.com>
118239         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
118240         * m4/jm-macros.m4 (jm_MACROS): Use it here.
118242 1999-11-05  Jim Meyering  <meyering@ascend.com>
118244         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
118245         configure.in of textutils, fileutils, and sh-utils into this one
118246         (shared between those packages) file.
118247         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
118248         AC_STRUCT_ST_BLKSIZE.
118250 1999-11-03  Jim Meyering  <meyering@ascend.com>
118252         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
118253         of AC_CHECK_TYPE checks includes unistd.h.
118254         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
118255         Suggestion from Akim Demaille.
118257 1999-10-30  Jim Meyering  <meyering@ascend.com>
118259         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
118260         m4-quoted string.
118261         * m4/ls-mntd-fs.m4: Likewise.
118262         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
118263         * m4/jm-winsz1.m4: Likewise.
118265         * m4/const.m4: Remove file, since the fix made it into the experimental
118266         version of autoconf.
118267         * m4/mktime.m4: Likewise.
118269         * m4/check-type.m4: Remove file, now that the latest version of
118270         AC_CHECK_TYPE takes a third arg to specify additional #includes.
118272         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
118273         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
118274         AC_CHECK_TYPE.
118276 1999-10-04  Jim Meyering  <meyering@ascend.com>
118278         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
118280 1999-09-22  Paul Eggert  <eggert@twinsun.com>
118282         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
118283         2.95.1 bug with HP-UX 10.20.
118285 1999-09-17  Jim Meyering  <meyering@ascend.com>
118287         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
118288         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
118289         due to missing strdup (against sh-utils-2.0).
118291 1999-08-29  Jim Meyering  <meyering@ascend.com>
118293         * m4/jm-macros.m4: Require jm_BISON.
118294         * m4/bison.m4: New file.
118296 1999-08-17  Paul Eggert  <eggert@twinsun.com>
118298         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
118299         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
118301 1999-08-05  Jim Meyering  <meyering@ascend.com>
118303         * m4/getline.m4: Rename test file from conftestdata to conftest.data
118304         to avoid conflicts with `conftest' on 8+3 filesystems.
118305         Suggestion from Eli Zaretskii.
118307 1999-08-04  Jim Meyering  <meyering@ascend.com>
118309         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
118310         fileutils and sh-utils (textutils's getline test was inadequate).
118311         (AM_FUNC_GETLINE): Run this test.
118312         (AC_CHECK_FUNCS): Check for getdelim.
118313         Reported by Bob Proulx.
118315 1999-08-02  Jim Meyering  <meyering@ascend.com>
118317         * m4/jm-macros.m4: Add a comment.
118319 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118321         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
118322         <inttypes.h> defines strtoumax as a macro (and not as a
118323         function).
118325 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118327         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
118328         that we can shift, multiply and divide unsigned long long
118329         values; Ultrix cc can't do it.
118331 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118333         * m4/mktime.m4: New file, which is a preview of what should appear
118334         in the next public autoconf release.
118336 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118338         * m4/lfs.m4: Remove this file.
118339         * m4/largefile.m4: New file.  It contains the old contents of
118340         lfs.m4, except that all names with prefix AC_LFS have been
118341         changed to use the prefix AC_SYS_LARGEFILE instead, to be
118342         compatible with future autoconf versions.  Also, some minor m4
118343         quoting problems have been fixed.
118345 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118347         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
118348         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
118349         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
118350         and simplify the shell code.
118352 1999-08-01  Jim Meyering  <meyering@ascend.com>
118354         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
118355         m4.
118357 1999-07-20  Jim Meyering  <meyering@ascend.com>
118359         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
118361 1999-07-15  Jim Meyering  <meyering@ascend.com>
118363         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
118365 1999-05-22  Jim Meyering  <meyering@ascend.com>
118367         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
118369 1999-05-20  Jim Meyering  <meyering@ascend.com>
118371         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
118372         Add a colon after each `then' in case $4 is empty.
118374 1999-05-16  Jim Meyering  <meyering@ascend.com>
118376         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
118378 1999-05-10  Jim Meyering  <meyering@ascend.com>
118380         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
118382         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
118383         AC_FUNC_MKTIME.
118385 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
118387         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
118389 1999-05-04  Paul Eggert  <eggert@twinsun.com>
118391         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
118392         not CPPFLAGS, so that linking works correctly in IRIX.
118394 1999-04-30  Paul Eggert  <eggert@twinsun.com>
118396         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
118398 1999-04-20  Paul Eggert  <eggert@twinsun.com>
118400         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
118401         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
118402         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
118403         jm_AC_TYPE_UNSIGNED_LONG_LONG.
118404         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
118406         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
118408 1999-04-20  Jim Meyering  <meyering@ascend.com>
118410         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
118411         AC_REPLACE xstroull if necessary.  From Paul Eggert.
118412         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
118414 1999-04-18  Jim Meyering  <meyering@ascend.com>
118416         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
118417         * m4/jm-macros.m4: Use it.
118419 1999-04-06  Jim Meyering  <meyering@ascend.com>
118421         * m4/strftime.m4: Remove test for %f.
118423 1999-03-29  Jim Meyering  <meyering@ascend.com>
118425         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
118426         superset of the AC_TYPE_* checks in the textutils, fileutils,
118427         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
118428         AC_TYPE_PID_T.
118430 1999-03-28  Jim Meyering  <meyering@ascend.com>
118432         * m4/jm-macros.m4: Define GNU_PACKAGE here.
118433         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
118434         replaced e.g., in the *.sh files of the sh-utils.
118436 1999-03-20  Jim Meyering  <meyering@ascend.com>
118438         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
118439         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
118440         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
118442 1999-03-19  Jim Meyering  <meyering@ascend.com>
118444         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
118446 1999-03-12  Jim Meyering  <meyering@ascend.com>
118448         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
118450 1999-03-07  Jim Meyering  <meyering@ascend.com>
118452         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
118453         declared.
118455 1999-02-17  Jim Meyering  <meyering@ascend.com>
118457         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
118458         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
118460 1999-02-07  Jim Meyering  <meyering@ascend.com>
118462         * m4/group-member.m4: New file -- extracted from sh-utils'
118463         configure.in.
118465         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
118466         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
118468 1999-02-06  Jim Meyering  <meyering@ascend.com>
118470         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
118471         * m4/fnmatch.m4: Likewise.
118472         * m4/getgroups.m4: Likewise.
118473         * m4/lstat.m4: Likewise.
118474         * m4/malloc.m4: Likewise.
118475         * m4/putenv.m4: Likewise.
118476         * m4/realloc.m4: Likewise.
118477         * m4/regex.m4: Likewise.
118478         * m4/stat.m4: Likewise.
118479         * m4/strftime.m4: Likewise.
118480         Suggestion from Alain Magloire.
118482         * m4/chown.m4: Use `.$ac_objext', not `.o'.
118483         * m4/fnmatch.m4: Likewise.
118484         * m4/getgroups.m4: Likewise.
118485         * m4/getline.m4: Likewise.
118486         * m4/lstat.m4: Likewise.
118487         * m4/malloc.m4: Likewise.
118488         * m4/memcmp.m4: Likewise.
118489         * m4/putenv.m4: Likewise.
118490         * m4/realloc.m4: Likewise.
118491         * m4/regex.m4: Likewise.
118492         * m4/stat.m4: Likewise.
118493         * m4/strftime.m4: Likewise.
118494         Suggestion from Alain Magloire.
118496         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
118497         an argument.
118499         * m4/regex.m4: Add a run-time Test for proper operation of
118500         re_compile_pattern.
118502 1999-01-31  Jim Meyering  <meyering@ascend.com>
118504         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
118506 1999-01-30  Jim Meyering  <meyering@ascend.com>
118508         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
118510         * m4/jm-mktime.m4: Make this a wrapper around the official
118511         AM_FUNC_MKTIME rather than my private copy, now that the official one
118512         is up to date.
118513         * m4/mktime.m4: Remove file.
118515         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
118516         * m4/uptime.m4: Likewise.
118517         * m4/uintmax_t.m4: Likewise.
118519 1999-01-28  Jim Meyering  <meyering@ascend.com>
118521         * m4/jm-macros.m4: Use jm_AFS.
118522         * m4/afs.m4: New file (from fileutils' configure.in).
118524         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
118525         * m4/chown.m4: Likewise.
118526         * m4/d-ino.m4: Likewise.
118527         * m4/d-type.m4: Likewise.
118528         * m4/fnmatch.m4: Likewise.
118529         * m4/getgroups.m4: Likewise.
118530         * m4/gettext.m4: Likewise.
118531         * m4/jm-mktime.m4: Likewise.
118532         * m4/jm-winsz2.m4: Likewise.
118533         * m4/lcmessage.m4: Likewise.
118534         * m4/ls-mntd-fs.m4: Likewise.
118535         * m4/malloc.m4: Likewise.
118536         * m4/memcmp.m4: Likewise.
118537         * m4/putenv.m4: Likewise.
118538         * m4/realloc.m4: Likewise.
118539         * m4/st_mtim.m4: Likewise.
118540         * m4/strftime.m4: Likewise.
118542 1999-01-16  Jim Meyering  <meyering@ascend.com>
118544         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
118545         (ARGMATCH_DIE_DECL): Define.
118547 1999-01-12  Jim Meyering  <meyering@ascend.com>
118549         * m4/Makefile.am.in: Rewrite to avoid using fmt.
118550         Reported by Lars Hecking.
118552 1999-01-10  Jim Meyering  <meyering@ascend.com>
118554         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
118555         gross kludge.
118556         * m4/inttypes_h.m4: Likewise.
118557         * m4/lstat.m4: Likewise.
118558         * m4/malloc.m4: Likewise.
118559         * m4/readdir.m4: Likewise.
118560         * m4/realloc.m4: Likewise.
118561         * m4/st_dm_mode.m4: Likewise.
118562         * m4/stat.m4: Likewise.
118563         * m4/utimbuf.m4: Likewise.
118564         * m4/utimes.m4: Likewise.
118566         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
118567         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
118568         comments in config.h.in are meaningful.
118570         * m4/jm-macros.m4: Require autoconf-2.13 here.
118572         * m4/regex.m4: By default, don't use the included regex.c on systems
118573         with glibc 2.  Suggestion from Uli Drepper.
118575 1999-01-02  Jim Meyering  <meyering@ascend.com>
118577         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
118579 1998-12-18  Jim Meyering  <meyering@ascend.com>
118581         * m4/Makefile.am.in (Makefile.am): Simplify rule.
118582         Based on a suggestion from Lars Hecking.
118584 1998-11-16  Paul Eggert  <eggert@twinsun.com>
118586         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
118588 1998-11-16  Jim Meyering  <meyering@ascend.com>
118590         * m4/lfs.m4: Double-quote the `uname...` expression.
118592 1998-11-14  Jim Meyering  <meyering@ascend.com>
118594         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
118595         * m4/stat.m4: Likewise.
118597 1998-11-03  Jim Meyering  <meyering@ascend.com>
118599         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
118600         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
118602 1998-10-18  Jim Meyering  <meyering@ascend.com>
118604         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
118606 1998-10-17  Jim Meyering  <meyering@ascend.com>
118608         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
118609         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
118610         calls for those previously hard-coded headers.  Instead, take a new
118611         parameter.
118612         (jm_CHECK_DECLARATIONS): Reflect interface change.
118613         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
118614         (jm_CHECK_DECL_LOCALTIME_R): New macro.
118616         * m4/mktime.m4: Test for spring-forward gap before long-running test.
118618 1998-10-14  Jim Meyering  <meyering@ascend.com>
118620         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
118621         instead of "TZ=America/Vancouver".  From Paul Eggert.
118623 1998-10-11  Jim Meyering  <meyering@ascend.com>
118625         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
118626         This adds a test for a recently added compatibility fix for mktime.c.
118627         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
118629 1998-09-27  Jim Meyering  <meyering@ascend.com>
118631         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
118633         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
118634         ../configure.in, including a change from Gordon Matzigkeit to allow
118635         cross-compiling for the Hurd.
118637         * m4/glibc.m4: New file/macro to test for the GNU C Library
118638         versions 1 and 2.  From Gordon Matzigkeit.
118639         Indent.
118641 1998-09-21  Jim Meyering  <meyering@ascend.com>
118643         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
118645 1998-08-18  Paul Eggert  <eggert@twinsun.com>
118647         Port nanosecond-resolution times to UnixWare 2.1.2 and
118648         pedantic Solaris 2.6.
118650         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
118651         AC_STRUCT_ST_MTIM.
118652         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
118653         Generate name of ns member, instead of just 1 or undef.
118654         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
118656 1998-08-15  Jim Meyering  <meyering@ascend.com>
118658         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
118659         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
118660         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
118661         instead of jm_TYPE_SSIZE_T.
118663 1998-08-12  Jim Meyering  <meyering@ascend.com>
118665         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
118667 1998-08-02  Jim Meyering  <meyering@ascend.com>
118669         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
118670         in acconfig.h manually.
118672 1998-07-31  Paul Eggert  <eggert@twinsun.com>
118674         * m4/st_mtim.m4: New file.
118676 1998-07-28  Jim Meyering  <meyering@ascend.com>
118678         * m4/utimes.m4: Undef stat.
118680 1998-07-25  Jim Meyering  <meyering@ascend.com>
118682         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
118683         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
118685 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
118687         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
118688         uid and gid actually remain unchanged.
118690 1998-07-07  Jim Meyering  <meyering@ascend.com>
118692         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
118694 1998-07-04  Jim Meyering  <meyering@ascend.com>
118696         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
118697         to prove that this macro can be used in packages without regex.c.
118699 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
118701         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
118702         is to be used.
118704 1998-07-03  Jim Meyering  <meyering@ascend.com>
118706         * m4/gettext.m4: Add -lintl if it's found to be necessary.
118708         * m4/gettext.m4: New file -- from gettext-0.10.35.
118709         * m4/lcmessage.m4: Likewise.
118710         * m4/progtest.m4: Likewise.
118712         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
118713         * m4/jm-macros.m4: Require the new macro.
118715 1998-06-29  Jim Meyering  <meyering@ascend.com>
118717         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
118718         for the definition of NGROUPS (used in a system header included
118719         by sys/mount.h).
118721 1998-06-28  Jim Meyering  <meyering@ascend.com>
118723         * m4/ls-mntd-fs.m4: New file.
118724         * m4/fstypename.m4: New file.
118726         * m4/jm-macros.m4: Require the new macro.
118727         * m4/jm-glibc-io.m4: New file.
118729 1998-05-19  Jim Meyering  <meyering@ascend.com>
118731         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
118732         * m4/lchown.m4: New file.
118734         * m4/Makefile.am.in: New file.
118735         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
118737 1998-05-14  Jim Meyering  <meyering@ascend.com>
118739         * m4/Makefile.am (EXTRA_DIST): Add them.
118740         * m4/jm-macros.m4: New file.
118741         * m4/utimbuf.m4: New file.
118743 1998-05-12  Jim Meyering  <meyering@ascend.com>
118745         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
118747 1998-05-11  Jim Meyering  <meyering@ascend.com>
118749         * m4/isc-posix.m4: New file.
118751 1998-05-10  Jim Meyering  <meyering@ascend.com>
118753         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
118755 1998-05-09  Jim Meyering  <meyering@ascend.com>
118757         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
118758         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
118759         with automake.
118761         * m4/ssize_t.m4: New file.
118762         * m4/mktime.m4: Remove file -- the new automake has this now.
118764 1998-04-26  Jim Meyering  <meyering@ascend.com>
118766         * m4/assert.m4: New file.
118767         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
118769 1998-04-05  Jim Meyering  <meyering@ascend.com>
118771         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
118772         (jm_PREREQ): Use it here.
118774 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
118776         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
118777         in acconfig.h.
118779 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
118781         * m4/prereq.m4: New file.
118782         * m4/error.m4: New file.
118783         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
118785 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
118787         * m4/getline.m4: Don't set am_cv_func_working_getline before the
118788         cache-check for the same variable -- that defeated the purpose of
118789         the test; the test program was never run.  This was a problem only
118790         on systems with losing getline functions -- HP-UX 10.20 is one.
118791         Reported by Bjorn Helgaas.
118793 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
118795         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
118797 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
118799         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
118801         * m4/const.m4: New file.  Use an initializer in this declaration
118802         typedef int charset[2]; const charset x;
118803         Reported by Bob Glickstein.
118805 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
118807         * m4/chown.m4: Fix reversed types on -1 args to chown.
118808         From Kaveh Ghazi.
118810 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
118812         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
118813         Add lseek and memchr.
118815         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
118816         T.E.Dickey <dickey@clark.net> said that some older preprocessors
118817         have a 20-character limit on names.
118819 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
118821         * m4/inttypes_h.m4: New file.
118822         * m4/uintmax_t.m4: New file.
118823         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
118826         -----
118828         Local Variables:
118829         coding: utf-8
118830         End:
118832         Copyright (C) 1997-2019 Free Software Foundation, Inc.
118834         Copying and distribution of this file, with or without
118835         modification, are permitted provided the copyright notice
118836         and this notice are preserved.